/* =============================================
   Arwana Super Red — Shopee-like Premium CSS
   ============================================= */

/* --- CSS Variables / Design Tokens --- */
:root {
    --primary: #C62828;
    --primary-dark: #8E0000;
    --primary-light: #FF5F52;
    --accent: #FF6F00;
    --accent-light: #FFA040;
    --gold: #FFD700;
    --bg-dark: #0f0f14;
    --bg-card: #ffffff;
    --bg-page: #f5f5f8;
    --bg-section: #fafafe;
    --text-primary: #1a1a2e;
    --text-secondary: #666680;
    --text-muted: #9999aa;
    --border: #e8e8f0;
    --border-light: #f0f0f5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --header-height: 68px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ========================
   HEADER
   ======================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 2px 20px rgba(198, 40, 40, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--header-height);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    white-space: nowrap;
}

/* Search Form */
.search-form {
    flex: 1;
    max-width: 600px;
}

.search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    position: relative;
}

.action-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.btn-header-login,
.btn-header-register {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-header-login {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-header-login:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-header-register {
    background: #fff;
    color: var(--primary);
}

.btn-header-register:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px;
    display: none;
    z-index: 1100;
    border: 1px solid var(--border);
}

.dropdown-menu-custom.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header-custom {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.dropdown-header-custom strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.dropdown-header-custom small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dropdown-divider-custom {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.dropdown-item-custom:hover {
    background: var(--bg-page);
    color: var(--primary);
}

/* Mobile Menu Toggle — posisi di kanan */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
}

/* Search di dalam hamburger menu */
.mobile-nav-search {
    margin-bottom: 16px;
}

.mobile-nav-search .search-wrapper {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 50px;
}

.mobile-nav-search .search-input {
    color: var(--text-primary);
    padding: 10px 16px;
    font-size: 0.9rem;
}

.mobile-nav-search .search-input::placeholder {
    color: var(--text-muted);
}

.mobile-nav-search .search-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 50px 50px 0;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-nav-header .logo-text {
    color: var(--primary);
    font-size: 1.1rem;
}

.mobile-nav-close {
    border: none;
    background: var(--bg-page);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--bg-page);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

.mobile-nav-user i {
    font-size: 1.4rem;
    color: var(--primary);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-links a,
.mobile-nav-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.mobile-nav-links a:hover,
.mobile-nav-logout:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.mobile-nav-logout {
    color: var(--primary);
}

/* ========================
   HERO SECTION
   ======================== */
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 50%, var(--primary-dark) 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.7;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.4);
    color: #fff;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(198, 40, 40, 0.3), transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* ========================
   SECTIONS
   ======================== */
.section-categories,
.section-products {
    padding: 40px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.section-title i {
    color: var(--primary);
}

.section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--primary);
}

.category-icon {
    font-size: 2rem;
}

.category-info {
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.category-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ========================
   PRODUCT GRID & CARD
   ======================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8fc;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.badge-soldout {
    background: #666;
}

.badge-limited {
    background: var(--accent);
}

.product-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.product-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-sold {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================
   INFO BANNER
   ======================== */
.info-banner {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--bg-dark), #1a1a2e);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.info-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 14px;
}

.info-card h4 {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* ========================
   PRODUCT DETAIL
   ======================== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav i {
    font-size: 0.7rem;
}

.product-detail-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: #f8f8fc;
    aspect-ratio: 1;
    margin-bottom: 12px;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    gap: 8px;
    font-size: 1rem;
}

.gallery-no-image i {
    font-size: 4rem;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    padding: 0;
    background: none;
    transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-name {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
}

.product-detail-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-detail-stats .divider {
    color: var(--border);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.product-detail-desc h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.desc-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-page);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--border);
}

.qty-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
}

.btn-add-cart {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.35);
    color: #fff;
}

/* ========================
   SEARCH & SORT BAR
   ======================== */
.page-header-section {
    margin-bottom: 24px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.sort-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sort-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sort-option {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-page);
    transition: var(--transition);
    border: 1px solid transparent;
}

.sort-option:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sort-option.active {
    background: var(--primary);
    color: #fff;
}

/* ========================
   SIDEBAR
   ======================== */
.sidebar-categories {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.sidebar-link.active {
    background: rgba(198, 40, 40, 0.08);
    color: var(--primary);
    font-weight: 600;
}

/* ========================
   EMPTY STATE
   ======================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
    display: block;
}

.empty-state h4 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ========================
   BUTTONS
   ======================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.35);
    color: #fff;
}

/* ========================
   PAGINATION
   ======================== */
.pagination-wrapper {
    margin-top: 32px;
    padding-top: 20px;
}

.pagination .page-link {
    border: none;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm) !important;
    font-weight: 500;
    margin: 0 2px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}

/* ========================
   AUTH FORMS
   ======================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 100px);
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-page);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.35);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-error {
    background: #FFF5F5;
    border: 1px solid #FFCDD2;
    color: var(--primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* ========================
   CART TABLE
   ======================== */
.cart-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8fc;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
}

.cart-summary {
    background: var(--bg-page);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.cart-summary-row.total {
    font-size: 1.15rem;
    font-weight: 700;
    border-top: 2px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
    color: var(--primary);
}

/* ========================
   ORDER TABS & STATUS
   ======================== */
.order-tabs {
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.order-tab:hover {
    color: var(--primary);
    background: rgba(198, 40, 40, 0.03);
}

.order-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(198, 40, 40, 0.03);
}

.order-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.order-code {
    font-weight: 700;
    font-size: 0.95rem;
}

.status-badge {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-menunggu {
    background: #FFF3E0;
    color: #E65100;
}

.status-dikemas {
    background: #E3F2FD;
    color: #1565C0;
}

.status-dikirim {
    background: #F3E5F5;
    color: #7B1FA2;
}

.status-tiba {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-selesai {
    background: #E0F2F1;
    color: #00695C;
}

.status-ditolak {
    background: #FFEBEE;
    color: #C62828;
}

.status-dibatalkan {
    background: #ECEFF1;
    color: #546E7A;
}

/* ========================
   STEPPER (Order Tracking)
   ======================== */
.order-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 30px 0;
    margin: 20px 0;
}

.order-stepper::before {
    content: '';
    position: absolute;
    top: 46px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border);
    z-index: 1;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: #fff;
    border: 3px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}

.stepper-step.active .stepper-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(198, 40, 40, 0.15);
}

.stepper-step.completed .stepper-circle {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.stepper-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.stepper-step.active .stepper-label,
.stepper-step.completed .stepper-label {
    color: var(--text-primary);
}

/* ========================
   TIMELINE
   ======================== */
.order-timeline {
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 26px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.65rem;
    color: #fff;
}

.timeline-dot.secondary {
    background: var(--border);
}

.timeline-content {
    flex: 1;
}

.timeline-content strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: block;
}

.timeline-content small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* ========================
   ADMIN LAYOUT
   ======================== */
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    flex-shrink: 0;
}

.admin-sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 0 14px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
}

.admin-nav-item:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.admin-nav-item.active {
    background: rgba(198, 40, 40, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.admin-nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    min-width: 22px;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 30px;
    max-width: calc(100% - 260px);
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-page-title i {
    color: var(--primary);
}

/* Admin Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.red {
    background: #FFEBEE;
    color: var(--primary);
}

.stat-icon.blue {
    background: #E3F2FD;
    color: #1565C0;
}

.stat-icon.green {
    background: #E8F5E9;
    color: #2E7D32;
}

.stat-icon.orange {
    background: #FFF3E0;
    color: #E65100;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Admin Table */
.admin-table-wrapper {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--bg-page);
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(198, 40, 40, 0.02);
}

/* ========================
   PAYMENT PAGE
   ======================== */
.payment-instructions {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.bank-info {
    background: linear-gradient(135deg, var(--bg-dark), #1a1a2e);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.bank-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.bank-account {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 8px 0;
}

.bank-holder {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.bank-copy-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.bank-copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================
   NOTIFICATION INBOX
   ======================== */
.inbox-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    transition: var(--transition);
}

.inbox-item.unread {
    border-left: 3px solid var(--primary);
    background: #FFF8F8;
}

.inbox-item:hover {
    box-shadow: var(--shadow-sm);
}

.inbox-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFEBEE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.inbox-content {
    flex: 1;
}

.inbox-content strong {
    font-size: 0.9rem;
}

.inbox-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
    line-height: 1.5;
}

.inbox-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ========================
   FOOTER
   ======================== */
.main-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.footer-brand h5 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================
   ADMIN MOBILE TOPBAR & NAV
   ======================== */

/* Topbar: hanya tampil di mobile */
.admin-mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0 16px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-mobile-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-mobile-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.admin-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Overlay backdrop */
.admin-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.admin-mobile-overlay.active {
    display: block;
}

/* Slide-in nav panel dari kiri */
.admin-mobile-nav {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    padding: 24px 16px;
    overflow-y: auto;
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.admin-mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-mobile-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
    margin-bottom: 8px;
}

.admin-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.admin-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    position: relative;
}

.admin-mobile-link:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.admin-mobile-link.active {
    background: rgba(198, 40, 40, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.admin-mobile-logout {
    color: var(--primary) !important;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 991px) {
    .admin-sidebar {
        display: none;
    }

    .admin-mobile-topbar {
        display: flex;
    }

    .admin-content {
        max-width: 100%;
        padding: 20px;
    }

    .admin-wrapper {
        min-height: calc(100vh - 56px);
    }
}

@media (max-width: 767px) {
    .header-inner {
        position: relative;
        justify-content: space-between;
    }

    .search-form {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-section {
        padding: 40px 0 50px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-detail-wrapper {
        padding: 20px 16px;
    }

    .product-detail-name {
        font-size: 1.2rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .sort-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-tabs {
        flex-wrap: wrap;
    }

    .order-tab {
        flex: 0 0 50%;
    }

    .stepper-label {
        font-size: 0.65rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .info-card {
        padding: 20px 14px;
    }

    .auth-card {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-img {
        width: 60px;
        height: 60px;
    }

    .btn-add-cart {
        min-width: unset;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================
   VIDEO SECTION
   ======================== */
.section-videos {
    padding: 40px 0;
    background: #fff;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Desktop: 2 kolom */
    gap: 24px;
}

.video-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Mobile Responsive Video Override */
@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: 1fr;
        /* Mobile: 1 kolom (atas bawah) */
        gap: 20px;
    }

    .video-info {
        padding: 16px;
    }

    .video-info h4 {
        font-size: 1rem;
    }
}