/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    --primary: #c5a880;          /* Warm Gold */
    --primary-dark: #a68558;     /* Darker Gold */
    --primary-light: #faf5ef;    /* Soft Gold/Cream */
    --primary-glow: rgba(197, 168, 128, 0.15);
    
    --maroon: #4a0e17;           /* Deep Maroon */
    --maroon-dark: #31060b;      /* Darker Maroon */
    --maroon-light: #f4eaeb;     /* Soft Maroon Tint */
    
    --bg-canvas: #faf6f0;        /* Warm off-white canvas */
    --bg-surface: #ffffff;       /* Pure white card backgrounds */
    --bg-neutral: #faf5ef;       /* Soft cream neutral */
    
    --text-main: #1e1214;        /* Dark slate brown/black */
    --text-muted: #7a6b6c;       /* Muted slate-maroon */
    --text-light: #ffffff;       /* White text */
    
    --border-color: #efe7dc;     /* Warm cream/beige border */
    --border-focus: #c5a880;     /* Focus outline gold */
    
    --success: #10b981;          /* Emerald Green */
    --success-light: #d1fae5;
    --info: #3b82f6;             /* Ocean Blue */
    --info-light: #dbeafe;
    --warning: #f59e0b;          /* Orange warning */
    --warning-light: #fef3c7;
    --danger: #f43f5e;           /* Rose Red */
    --danger-light: #ffe4e6;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(74, 14, 23, 0.03);
    --shadow-md: 0 10px 20px rgba(74, 14, 23, 0.04), 0 2px 6px rgba(74, 14, 23, 0.03);
    --shadow-lg: 0 20px 40px rgba(74, 14, 23, 0.06), 0 1px 3px rgba(74, 14, 23, 0.04);
    --shadow-glow: 0 0 20px rgba(197, 168, 128, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 80px;
}

/* Dark Mode Adjustments - Keeping bright accent aesthetics */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-canvas: #fcf9f5;
        --bg-surface: #ffffff;
        --text-main: #1e1214;
        --border-color: #efe7dc;
    }
}

/* ==========================================================================
   BASE STYLES & CORE LAYOUT
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-canvas);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main.main-content {
    flex: 1;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 60px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    letter-spacing: 0.2px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-glow);
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255,255,255,0.6);
    color: var(--text-light);
}

.btn-outline-white:hover {
    background-color: var(--text-light);
    color: var(--maroon-dark);
    border-color: var(--text-light);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-success {
    background-color: var(--success);
    color: var(--text-light);
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--text-light);
}

.btn-danger:hover {
    background-color: #e11d48;
}

.btn-disabled {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover {
    color: #e11d48;
    transform: scale(1.1);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
    height: var(--header-height);
    background-color: var(--maroon);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-light);
    letter-spacing: 1.5px;
}

.brand-logo .logo-icon {
    font-size: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo .logo-text {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
}

.brand-logo .logo-text span {
    color: var(--primary);
    font-weight: 300;
    font-size: 13px;
    text-transform: lowercase;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Cart Button */
.cart-btn {
    position: relative;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary);
    color: var(--maroon);
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--maroon);
}

/* User Profile Dropdown */
.user-profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    color: #ffffff;
}

.user-profile-menu:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.user-avatar {
    font-size: 26px;
    color: var(--primary);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-surface);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 8px 0;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.user-profile-menu:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-main);
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: var(--bg-neutral);
    color: var(--primary);
}

.dropdown-content .logout-link {
    border-top: 1px solid var(--border-color);
    color: var(--danger);
    margin-top: 4px;
}

.dropdown-content .logout-link:hover {
    background-color: var(--danger-light);
    color: var(--danger);
}

/* Notification Dropdown */
.notification-dropdown {
    position: relative;
}

.notif-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.notif-btn:hover {
    color: var(--primary);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--danger);
    color: var(--text-light);
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

.notif-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: -100px;
    background-color: var(--bg-surface);
    width: 320px;
    max-height: 400px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 12px;
    z-index: 1001;
    overflow-y: auto;
}

.notif-menu.active {
    display: block;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-neutral);
    position: sticky;
    top: 0;
}

.notif-header h3 {
    font-size: 14px;
    font-family: var(--font-heading);
}

.notif-header a {
    font-size: 12px;
}

.notif-list {
    padding: 8px 0;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background-color: var(--primary-glow);
}

.notif-item-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.notif-item-body {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 6px;
}

.notif-item-time {
    font-size: 10px;
    color: var(--text-muted);
}

.no-notif {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.mobile-toggle {
    display: none;
    font-size: 22px;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   PWA INSTALL BANNER
   ========================================================================== */
.pwa-banner {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--primary-light);
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    z-index: 999;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.4s ease;
}

@media (min-width: 769px) {
    .pwa-banner {
        display: none !important;
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pwa-icon {
    font-size: 24px;
    color: var(--primary);
}

.pwa-banner-content h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.pwa-banner-content p {
    font-size: 12px;
    color: var(--text-muted);
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-text {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, rgba(49, 6, 11, 0.96), rgba(197, 168, 128, 0.1)), url('../images/products/default_product.jpg') center/cover no-repeat;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    padding: 120px 0;
    color: var(--text-light);
    margin-bottom: 48px;
    margin-top: -24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   CATALOG / PRODUCTS SECTION
   ========================================================================== */
.catalog-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.sub-title {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
}

.search-filter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 480px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Shop filter Chips */
.shop-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
}

.shop-chips::-webkit-scrollbar {
    height: 4px;
}

.shop-chips::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 2px;
}

.chip {
    padding: 8px 18px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.chip:hover, .chip.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    height: 200px;
    position: relative;
    background-color: var(--bg-neutral);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.06);
}

.shop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.product-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--primary-dark);
}

.product-stock {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.in-stock {
    background-color: var(--success-light);
    color: var(--success);
}

.out-of-stock {
    background-color: var(--danger-light);
    color: var(--danger);
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn {
    flex: 1;
}

/* ==========================================================================
   SHOPS GRID
   ========================================================================== */
.shops-section {
    margin-bottom: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.shop-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.shop-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.shop-logo-container {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-placeholder-logo {
    font-size: 24px;
    color: var(--primary);
}

.shop-card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.shop-owner-name {
    font-size: 12px;
    color: var(--text-muted);
}

.shop-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.shop-details-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.shop-details-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-details-info i {
    color: var(--primary);
}

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - 200px);
}

.auth-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    background-color: var(--bg-canvas);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail-container {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
}

.product-detail-image-box {
    background-color: var(--bg-neutral);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 480px;
}

.product-detail-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info-box {
    display: flex;
    flex-direction: column;
}

.shop-badge-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.shop-badge-label a {
    font-weight: 700;
    color: var(--primary);
}

.product-detail-info-box h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.price-stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.detail-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 28px;
    color: var(--primary-dark);
}

.detail-stock-badge {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 24px 0;
}

.product-description h3 {
    font-family: var(--font-heading);
    margin-bottom: 12px;
}

.product-description p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Purchase Controls */
.purchase-form {
    margin-top: 8px;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-control button {
    background-color: var(--bg-neutral);
    border: none;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.quantity-control button:hover {
    background-color: var(--border-color);
}

.quantity-control input {
    width: 50px;
    height: 42px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-body);
}

.purchase-actions-row {
    margin-bottom: 24px;
}

.out-of-stock-alert {
    background-color: var(--danger-light);
    color: var(--danger);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-seller-box {
    margin-top: 12px;
    padding: 20px;
    background-color: var(--bg-neutral);
    border-radius: var(--radius-md);
}

.contact-seller-box h4 {
    margin-bottom: 12px;
    font-size: 14px;
}

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.cart-shop-group {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.cart-shop-header {
    background-color: var(--bg-neutral);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.cart-shop-header h3 {
    font-size: 15px;
    font-family: var(--font-heading);
}

.cart-table-wrapper {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th, .cart-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.cart-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-product-cell img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.form-control-qty {
    width: 60px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
}

.cart-shop-footer {
    padding: 16px 24px;
    text-align: right;
    font-size: 14px;
}

.cart-shop-footer strong {
    color: var(--primary-dark);
}

.cart-summary-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.grand-total-row {
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.grand-total-row .price-val {
    font-size: 28px;
    color: var(--primary-dark);
    margin-left: 12px;
}

.cart-summary-actions {
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.checkout-form-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.checkout-bank-info {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

.checkout-bank-info h4 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.checkout-bank-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.bank-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bank-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.bank-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.bank-acc {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 2px;
}

.bank-holder {
    font-size: 11px;
}

.checkout-summary-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.checkout-summary-box h3 {
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.summary-shop-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.summary-shop-group h4 {
    font-size: 13px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.summary-items-list {
    list-style: none;
}

.summary-items-list li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.summary-shop-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
}

.summary-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    padding-top: 16px;
    border-top: 2px solid var(--text-main);
}

.summary-grand-total .price {
    font-size: 24px;
    color: var(--primary-dark);
}

/* ==========================================================================
   CUSTOMER ORDERS TABLE & BADGES
   ========================================================================== */
.order-list-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th, .order-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.order-table th {
    font-family: var(--font-heading);
    color: var(--text-muted);
    background-color: var(--bg-neutral);
    font-weight: 700;
}

.order-price-cell {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.status-pending {
    background-color: var(--warning-light);
    color: var(--warning);
}

.status-paid {
    background-color: var(--info-light);
    color: var(--info);
}

.status-verified {
    background-color: var(--success-light);
    color: var(--success);
}

.status-rejected {
    background-color: var(--danger-light);
    color: var(--danger);
}

.status-completed {
    background-color: #e0f2fe;
    color: #0284c7;
}

/* ==========================================================================
   ORDER DETAILS VIEW
   ========================================================================== */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
}

.card-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.card-box h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-info-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-info-table th, .detail-info-table td {
    padding: 8px 0;
    text-align: left;
    font-size: 14px;
}

.detail-info-table th {
    color: var(--text-muted);
    width: 130px;
}

.order-items-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.order-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-item-prod {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-item-prod img {
    width: 50px;
    height: 38px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.order-item-prod h4 {
    font-size: 14px;
}

.order-item-prod .qty-info {
    font-size: 11px;
    color: var(--text-muted);
}

.order-item-row .subtotal {
    font-family: var(--font-heading);
    font-weight: 700;
}

.order-detail-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
}

.order-detail-total-box .price {
    font-size: 24px;
    color: var(--primary-dark);
}

.highlight-card {
    border-color: var(--primary);
    background-color: #fffbeb;
}

.bank-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bank-item-compact {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

/* ==========================================================================
   SUPER ADMIN DASHBOARD
   ========================================================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Tabs */
.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    gap: 8px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    top: 2px;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.admin-table th {
    background-color: var(--bg-neutral);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
}

.admin-action-btns {
    display: flex;
    gap: 8px;
}

.receipt-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--info);
}

.admin-table tbody tr:hover {
    background-color: var(--bg-neutral);
}

/* Shop owner and Admin tab split */
.shop-tab-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

/* User role badges */
.badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.badge-admin {
    background-color: #fee2e2;
    color: #ef4444;
}

.badge-owner {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-customer {
    background-color: #d1fae5;
    color: #10b981;
}

/* ==========================================================================
   SHOP OWNER PAGE
   ========================================================================== */
.shop-owner-header-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.shop-owner-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.owner-shop-logo {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.owner-shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-owner-info-left h2 {
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.shop-owner-info-left p {
    font-size: 13px;
    color: var(--text-muted);
}

.shop-owner-info-right {
    display: flex;
    gap: 16px;
}

.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-neutral);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    min-width: 110px;
}

.mini-stat .val {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
}

.mini-stat .lbl {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   SHOP DETAIL HEADER
   ========================================================================== */
.shop-profile-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.shop-profile-info {
    display: flex;
    gap: 32px;
    align-items: center;
}

.shop-profile-logo {
    width: 120px;
    height: 120px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.shop-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-profile-text {
    flex: 1;
}

.shop-profile-text h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.shop-profile-text .owner {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.shop-profile-text .description {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.shop-meta-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
}

.shop-meta-info-grid span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-meta-info-grid i {
    color: var(--primary-dark);
}

.shops-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.shop-card-large {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.shop-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.shop-card-large-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.shop-logo-large {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.shop-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-title-meta h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 4px;
}

.shop-badge-products {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-dark);
    background-color: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.shop-card-large-body {
    flex: 1;
    margin-bottom: 24px;
}

.shop-card-large-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.shop-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.shop-details-list .detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-details-list i {
    color: var(--primary);
    width: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer-section {
    background-color: var(--maroon-dark);
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    padding: 60px 0 20px 0;
    margin-top: auto;
    color: var(--text-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary);
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--maroon-dark);
}

.social-links a.tokopedia-link:hover {
    background-color: #42b549 !important;
    color: #ffffff !important;
}

.social-links a.shopee-link:hover {
    background-color: #ee4d2d !important;
    color: #ffffff !important;
}

.social-links a.blibli-link:hover {
    background-color: #0095da !important;
    color: #ffffff !important;
}

.footer-links h4, .footer-info h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile Bottom Navigation Bar (Hidden by default on Desktop) */
.mobile-bottom-nav {
    display: none;
}

/* ==========================================================================
   COMMON UTILITY CLASSES
   ========================================================================== */
.section-header-simple {
    text-align: center;
    margin-bottom: 40px;
}

.section-header-simple h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-header-simple p {
    color: var(--text-muted);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.empty-state i {
    font-size: 60px;
    color: var(--primary-light);
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.no-data {
    color: var(--text-muted);
    font-style: italic;
    padding: 16px;
    background-color: var(--bg-neutral);
    border-radius: var(--radius-sm);
    text-align: center;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.mobile-auth-links,
.mobile-user-links {
    display: none;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .product-detail-layout, .checkout-layout, .order-detail-grid, .shop-tab-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-detail-image-box {
        height: 360px;
    }
    
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 32px;
    }
    .footer-info {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .main-header {
        position: fixed;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-section {
        padding: 60px 0;
        margin-top: -24px;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter-form {
        max-width: 100%;
    }
    
    /* Footer layout on small screens */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-info {
        grid-column: span 1;
    }
    
    .main-footer-section {
        padding-bottom: 90px; /* Leave space for bottom nav */
    }
    
    /* PWA Mobile Bottom Navigation Styling */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 64px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        z-index: 999;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    }
    
    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 700;
        text-align: center;
        flex: 1;
        height: 100%;
        transition: var(--transition);
        font-family: var(--font-heading);
    }
    
    .mob-nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .mob-nav-item.active {
        color: var(--primary);
    }
    
    .header-actions .auth-buttons,
    .header-actions .user-profile-menu {
        display: none;
    }

    .mobile-auth-links,
    .mobile-user-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }

    .mobile-user-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
    }

    .mobile-user-header .user-avatar {
        font-size: 36px;
        color: var(--primary);
    }

    .mobile-user-header .user-info {
        display: flex !important;
        flex-direction: column;
        line-height: 1.3;
    }

    .mobile-user-header .user-name {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-main);
    }

    .mobile-user-header .user-role {
        font-size: 12px;
        color: var(--text-muted);
    }
    
    .nav-menu .logout-link {
        color: var(--danger) !important;
    }
    
    .nav-menu .logout-link:hover {
        color: #e11d48 !important;
    }
}

/* ==========================================================================
   NEW CLIENT CONCEPT THEME SECTIONS (MAROON & GOLD MAKMUR JAYA x PROSPERO STYLING)
   ========================================================================== */

/* Button Additions */
.btn-maroon {
    background-color: var(--maroon);
    color: var(--text-light);
}
.btn-maroon:hover {
    background-color: var(--maroon-dark);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.btn-maroon-dark {
    background-color: var(--maroon-dark);
    color: var(--text-light);
}
.btn-maroon-dark:hover {
    background-color: var(--maroon);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Categories Section */
.categories-section {
    margin-bottom: 56px;
    text-align: center;
}
.section-title-wrapper {
    margin-bottom: 32px;
}
.categories-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 4px 20px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.categories-grid::-webkit-scrollbar {
    height: 8px;
}
.categories-grid::-webkit-scrollbar-track {
    background: var(--bg-neutral);
    border-radius: 10px;
}
.categories-grid::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}
.categories-grid::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
.category-card {
    flex: 0 0 calc(16.666% - 17px);
    min-width: 170px;
    background-color: var(--bg-neutral);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}
.category-card:hover {
    background-color: var(--bg-surface);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.category-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--maroon);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.category-card:hover .category-icon-box {
    background-color: var(--maroon);
    color: #ffffff;
}
.category-card h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}
.category-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.category-card:hover .category-action {
    color: var(--maroon);
}

/* Promo Banners Section */
.promo-banners-section {
    margin-bottom: 56px;
}
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.promo-banner-card {
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.promo-maroon {
    background-color: var(--maroon);
    color: #ffffff;
    border-color: transparent;
}
.promo-cream {
    background-color: var(--primary-light);
    color: var(--text-main);
}
.promo-banner-content {
    max-width: 60%;
    z-index: 2;
}
.promo-subtitle {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
.promo-maroon .promo-subtitle {
    color: var(--primary);
}
.promo-cream .promo-subtitle {
    color: var(--primary-dark);
}
.promo-banner-card h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.promo-banner-card p {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 24px;
}
.promo-banner-card .btn {
    padding: 10px 20px;
    font-size: 13px;
}
.promo-banner-image {
    position: absolute;
    right: 32px;
    bottom: -20px;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    z-index: 1;
}
.promo-bg-icon {
    font-size: 120px;
}
.promo-badge-circle {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--maroon);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    transform: rotate(-12deg);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    opacity: 1;
}

/* Features Ribbon */
.features-ribbon-section {
    background-color: var(--maroon);
    color: #ffffff;
    padding: 40px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 56px;
}
.features-ribbon-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.feature-icon {
    font-size: 32px;
    color: var(--primary);
    flex-shrink: 0;
}
.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: var(--primary-light);
}
.feature-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    margin-bottom: 56px;
    box-shadow: var(--shadow-sm);
}
.newsletter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.newsletter-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}
.newsletter-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--maroon-light);
    color: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.newsletter-text h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-main);
}
.newsletter-text p {
    font-size: 13px;
    color: var(--text-muted);
}
.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 480px;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background-color: var(--bg-neutral);
    transition: var(--transition);
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--border-focus);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Product Card Override Updates */
.product-card {
    border-radius: var(--radius-md);
}
.product-price {
    color: var(--maroon);
}

@media (max-width: 1024px) {
    .categories-grid {
        display: flex;
    }
    .category-card {
        flex: 0 0 170px;
    }
    .promo-grid {
        grid-template-columns: 1fr;
    }
    .features-ribbon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .categories-grid {
        display: flex;
    }
    .category-card {
        flex: 0 0 150px;
        padding: 16px 12px;
    }
    .promo-banner-card {
        padding: 32px;
    }
    .features-ribbon-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .newsletter-container {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form {
        max-width: 100%;
    }
}

/* ==========================================================================
   SUPER ADMIN SIDEBAR LAYOUT
   ========================================================================== */
.admin-dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.admin-sidebar {
    background-color: var(--maroon);
    border-radius: 12px;
    padding: 30px 20px;
    color: var(--text-light);
    height: fit-content;
    box-shadow: 0 4px 20px rgba(74, 14, 23, 0.15);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.admin-sidebar::-webkit-scrollbar {
    display: none;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    font-family: var(--font-heading);
    color: var(--primary);
}

.admin-sidebar-header i {
    font-size: 20px;
}

.admin-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    padding: 18px 18px 6px;
    margin-top: 5px;
    user-select: none;
    font-family: var(--font-heading);
}

.sidebar-group-label:first-of-type {
    padding-top: 0;
    margin-top: 0;
}

.sidebar-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-heading);
}

.sidebar-menu-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    transition: transform 0.2s;
}

.sidebar-menu-item:hover {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.sidebar-menu-item:hover i {
    transform: scale(1.1);
}

.sidebar-menu-item.active {
    color: var(--maroon-dark);
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.25);
}

.sidebar-menu-item.active i {
    color: var(--maroon-dark);
}

.admin-main-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    min-height: 500px;
}

.admin-mobile-header {
    display: none;
    background-color: var(--maroon);
    color: var(--text-light);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1001;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.mobile-menu-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
}

.mobile-header-brand i {
    color: var(--primary);
}

.mobile-header-user {
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    transition: color 0.2s;
}

.mobile-sidebar-close-btn:hover {
    color: var(--danger);
}

.shop-form-container {
    background: var(--bg-neutral);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

/* Category styling inside manage shop */
.category-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.category-badge-item {
    background-color: var(--primary-light);
    border: 1px solid var(--primary);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-badge-item a {
    color: var(--danger);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.category-badge-item a:hover {
    color: #b91c1c;
}

@media (max-width: 992px) {
    .admin-dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .admin-sidebar {
        width: 100%;
    }
}

/* ==========================================================================
   EDGE-TO-EDGE ADMIN THEME
   ========================================================================== */
.admin-layout-wrapper {
    flex: 1;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.admin-layout-wrapper .admin-dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    margin: 0;
    width: 100%;
    min-height: 100vh;
}

.admin-layout-wrapper .admin-sidebar {
    background-color: var(--maroon);
    border-radius: 0;
    padding: 35px 24px;
    color: var(--text-light);
    height: 100vh;
    position: sticky;
    top: 0;
    box-shadow: 4px 0 20px rgba(74, 14, 23, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.admin-layout-wrapper .admin-main-content {
    background-color: #fbf9f4;
    border-radius: 0;
    padding: 40px 50px;
    border: none;
    min-height: 100vh;
    box-shadow: none;
}

.admin-layout-wrapper .auth-wrapper {
    min-height: 100vh;
    background-color: #fbf9f4;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 992px) {
    .admin-mobile-header {
        display: flex;
    }
    
    .admin-layout-wrapper .admin-dashboard-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .admin-layout-wrapper .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1005 !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3) !important;
        border-radius: 0 !important;
        padding: 30px 20px !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .admin-layout-wrapper .admin-sidebar.open {
        left: 0 !important;
    }
    
    .mobile-sidebar-close-btn {
        display: block;
    }
    
    .admin-layout-wrapper .admin-main-content {
        padding: 30px 20px !important;
        border-radius: 0 !important;
        min-height: calc(100vh - 64px) !important;
    }
    
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        z-index: 1004;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ==========================================================================
   MODAL WINDOW STYLING
   ========================================================================== */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: none; /* Controlled by display: flex in JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.admin-modal-content {
    background-color: var(--bg-surface);
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.admin-modal.active .admin-modal-content {
    transform: translateY(0);
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-neutral);
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--maroon);
    font-family: var(--font-heading);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: var(--danger);
}

.admin-modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Modal action buttons layout */
.form-group-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

/* Print Styles for Sales Report */
@media print {
    body * {
        visibility: hidden;
    }
    #tab-sales-report, #tab-sales-report * {
        visibility: visible;
    }
    #tab-sales-report {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .admin-sidebar, .btn, .btn-outline, button, .section-header-simple button, a.sidebar-menu-item {
        display: none !important;
    }
    .admin-dashboard-layout {
        display: block !important;
    }
    .admin-main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .card-box {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Floating WhatsApp Widget Styling */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(8deg);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp .tooltip-text {
    visibility: hidden;
    width: 110px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 8px;
    position: absolute;
    z-index: 1;
    right: 75px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.floating-whatsapp .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}

.floating-whatsapp:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* On mobile devices, adjust position to not overlap bottom nav */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 85px; /* Stay above the PWA bottom navigation bar */
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .floating-whatsapp .tooltip-text {
        display: none; /* Hide tooltips on mobile touch */
    }
}

/* Floating Cart Widget Styling */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--maroon);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(49, 6, 11, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-cart.has-whatsapp {
    bottom: 105px; /* Stay above the floating WhatsApp */
}

.floating-cart:hover {
    transform: scale(1.1) rotate(-8deg);
    background-color: var(--maroon-dark);
    box-shadow: 0 6px 20px rgba(49, 6, 11, 0.6);
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart .tooltip-text {
    visibility: hidden;
    width: 110px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 8px;
    position: absolute;
    z-index: 1;
    right: 75px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.floating-cart .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}

.floating-cart:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* On mobile devices, adjust position to not overlap bottom nav */
@media (max-width: 768px) {
    .floating-cart {
        bottom: 85px; /* Stay above the PWA bottom navigation bar */
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .floating-cart.has-whatsapp {
        bottom: 150px; /* Stay above the floating WhatsApp on mobile */
    }
    
    .floating-cart .tooltip-text {
        display: none; /* Hide tooltips on mobile touch */
    }
}

/* Cart Pulse Animation */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.cart-pulse {
    animation: cartPulse 0.5s ease-in-out !important;
}

/* Product Detail Responsive Styles */
@media (max-width: 768px) {
    .product-detail-container {
        padding: 16px;
        margin: 10px;
        border-radius: var(--radius-md);
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-image-box {
        height: 280px;
        border-radius: var(--radius-sm);
    }

    .product-detail-info-box h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .price-stock-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .detail-price {
        font-size: 22px;
    }

    .variant-option-card {
        padding: 10px;
        gap: 8px;
    }

    .variant-option-card div div {
        font-size: 13px !important;
    }

    .quantity-input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .quantity-control {
        width: 100%;
        display: flex;
    }

    .quantity-control button {
        flex: 1;
    }

    .quantity-control input {
        width: 60px;
    }

    .purchase-actions-row {
        margin-bottom: 16px;
    }

    .floating-cart {
        display: none !important;
    }

    /* 2-Column Catalog Grid (Shopee/Tokopedia Style) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card {
        border-radius: 10px !important;
    }

    .product-card-image {
        height: 140px !important;
    }

    .product-card-content {
        padding: 10px !important;
    }

    .product-card-content h3 {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        height: 34px !important;
    }

    .product-desc {
        display: none !important; /* Hide description on grid card for cleaner grid */
    }

    .product-meta {
        margin-bottom: 8px !important;
    }

    .product-price {
        font-size: 13px !important;
    }

    .product-price-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .product-price-original {
        font-size: 9px !important;
        margin-left: 0 !important;
        margin-top: 2px !important;
    }

    .product-price-from {
        font-size: 9px !important;
        margin-left: 0 !important;
    }

    .product-stock {
        font-size: 9px !important;
        padding: 2px 4px !important;
    }

    .variant-card-select {
        font-size: 10px !important;
        padding: 4px 6px !important;
        height: 28px !important;
    }

    .variant-select-wrapper {
        display: none !important;
    }

    .product-actions {
        gap: 4px !important;
    }

    .product-actions .btn {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }

    .product-share-bar {
        margin-top: 8px !important;
        padding-top: 8px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .product-share-bar span {
        font-size: 9px !important;
        display: none !important; /* Hide 'Bagikan' label to save horizontal space */
    }

    .product-share-bar .share-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
        border-radius: 50% !important;
        background-color: var(--bg-neutral) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid var(--border-color) !important;
    }

    .product-share-bar .share-fb,
    .product-share-bar .share-x,
    .product-share-bar .share-tg {
        display: none !important;
    }

    /* Responsive Cart Table */
    .cart-table, 
    .cart-table thead, 
    .cart-table tbody, 
    .cart-table th, 
    .cart-table td, 
    .cart-table tr { 
        display: block !important; 
    }
    
    .cart-table thead {
        display: none !important;
    }
    
    .cart-table tr {
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        padding: 16px !important;
        background: #fff !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .cart-table td { 
        border: none !important;
        position: relative !important;
        padding: 8px 0 !important;
        padding-left: 45% !important; 
        text-align: right !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        min-height: 48px !important;
    }
    
    .cart-table td:before { 
        content: attr(data-label) !important;
        position: absolute !important;
        left: 0 !important;
        width: 40% !important; 
        padding-right: 10px !important; 
        white-space: nowrap !important;
        text-align: left !important;
        font-weight: 700 !important;
        color: var(--text-muted) !important;
    }
    
    .cart-table td[data-label="Produk"] {
        padding-left: 0 !important;
        text-align: left !important;
        border-bottom: 1px solid var(--border-color) !important;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
        display: block !important;
        min-height: auto !important;
    }
    
    .cart-table td[data-label="Produk"]:before {
        content: none !important;
    }
    
    .cart-product-cell {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
    }
    
    .cart-product-cell img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 8px !important;
    }
    
    .cart-product-cell h4 {
        font-size: 14px !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }

    .cart-table td[data-label="Jumlah"] {
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .cart-summary-box {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
        margin-top: 24px !important;
        gap: 16px !important;
    }
    
    .grand-total-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 16px !important;
    }
    
    .grand-total-row .price-val {
        font-size: 22px !important;
        margin-left: 0 !important;
    }
    
    .cart-summary-actions {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .cart-summary-actions .btn,
    .cart-summary-actions a {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        justify-content: center !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
}

/* Bottom-sheet Variant Selector Modal */
.catalog-variant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.catalog-variant-modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-variant-option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-variant-option-label:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.modal-variant-option-label.active {
    border-color: var(--maroon);
    background-color: var(--maroon-light);
}

