/* ============================================
   New Taste - GLOBAL STYLES
   Version: 2.0 (Consolidated)
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors */
    --primary: #E63946;
    --primary-dark: #C1121F;
    --primary-light: #FF6B6B;
    --secondary: #1A1A2E;
    --secondary-light: #16213E;
    --accent: #FDCB6E;
    --success: #00B894;
    --warning: #FDCB6E;
    --danger: #E63946;
    --info: #0984E3;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #F1F3F5;
    --gray-300: #E9ECEF;
    --gray-400: #DEE2E6;
    --gray-500: #CED4DA;
    --gray-600: #ADB5BD;
    --gray-700: #6C757D;
    --gray-800: #495057;
    --gray-900: #343A40;
    --black: #212529;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-tooltip: 600;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--gray-100);
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);
}

.form-group .error-message {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: var(--spacing-xs);
}

/* Error messages - hidden by default */
.error-message {
    display: none;
    font-size: 0.75rem;
    color: #E63946;
    margin-top: 4px;
}

/* Show when validation fails */
.error-message.show {
    display: block;
}

/* ========== CARDS ========== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-300);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-300);
}

/* ========== NAVBAR STYLES ========== */
.navbar {
    background: var(--secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    position: relative;
}

.logo a {
    color: white;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    min-width: 220px;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-auth {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-icons a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 14px;
}

.nav-icons a:hover {
    color: var(--primary);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: white;
    font-size: 20px;
}

.cart-icon:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -15px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.welcome-text {
    color: var(--accent);
}

.logout-link {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.1s ease;
}

.logout-link:hover {
    color: var(--primary);
}

.logout-link:active {
    transform: scale(0.97);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* ========== DESKTOP MEGA MENU ========== */
.desktop-menu {
    display: block;
}

.category-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-menu > a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.category-menu > a:hover {
    color: var(--primary);
}

.all-products-link {
    color: white !important;
    font-weight: 600 !important;
}

.mega-dropdown {
    position: relative;
}

.mega-dropdown-toggle {
    cursor: pointer;
    display: inline-block;
}

.mega-dropdown-toggle i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 800px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    margin-top: 10px;
    overflow: hidden;
}

.mega-dropdown:hover .mega-menu {
    display: flex;
}

.mega-dropdown:hover .mega-dropdown-toggle i {
    transform: rotate(180deg);
}

.mega-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
    background: white;
}

.mega-column h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
}

.mega-column h4 a {
    color: var(--secondary);
    text-decoration: none;
}

.mega-column h4 a:hover {
    color: var(--primary);
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column ul li {
    margin-bottom: 8px;
}

.mega-column ul li a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.mega-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.view-all {
    margin-top: 8px;
}

.view-all-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary) !important;
}

.mega-banner.text-only {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.mega-banner.text-only .banner-overlay {
    padding: 20px;
}

.mega-banner.text-only .banner-overlay i {
    color: white;
    opacity: 0.6;
}

.banner-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.banner-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 20px;
}

.banner-btn {
    display: inline-block;
    background: white;
    color: var(--primary) !important;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    transform: translateX(5px);
    background: var(--secondary);
    color: white !important;
}

/* ========== MOBILE ACCORDION MENU ========== */
/* Fix HTML and BODY height for scroll calculations */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh; /* Use viewport height instead of 100% */
    max-height: 100vh;
    background: var(--secondary);
    z-index: 2100; /* Higher than overlay (which is 1999) */
    transition: left 0.3s ease;
    overflow-y: auto; /* Enable vertical scrolling */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000; /* Lower than menu (2100) */
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-container {
    padding: 20px;
    display: block;
    min-height: 100%; /* Allow content to fill, but scroll works */
}

/* All other styles (mobile-link, accordion, etc.) remain unchanged */
.mobile-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link:hover {
    color: var(--primary);
}

.mobile-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
}

.accordion-title {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.accordion-title:hover {
    color: var(--primary);
}

.accordion-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding-left: 15px;
    margin-bottom: 10px;
}

.accordion-content.open {
    display: block;
}

.mobile-sub-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 0;
    font-size: 14px;
}

.mobile-sub-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.mobile-logout-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--primary);
    text-align: left;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-logout-btn:hover {
    color: var(--primary-dark);
}

/* ========== BREADCRUMB STYLES ========== */
.breadcrumb {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 40px;
    font-size: 14px;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span:last-child {
    color: var(--secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 0 20px;
        font-size: 12px;
    }
}

/* ========== CATEGORY TREE (SIDEBAR) ========== */
.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tree li {
    list-style: none;
    margin-bottom: 6px;
}

.category-tree > li {
    margin-bottom: 10px;
}

.category-tree .subcategories {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.category-tree a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.category-tree a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.category-tree a.active {
    color: var(--primary);
    font-weight: 600;
}

.product-count {
    font-size: 11px;
    color: var(--gray-500);
    margin-left: 5px;
}

/* Category Icons (Optional) */
.category-tree > li > a::before {
    content: "📁 ";
    font-size: 12px;
}

.category-tree .subcategories li a::before {
    content: "📄 ";
    font-size: 10px;
    opacity: 0.7;
}

/* ========== SHOP PAGE STYLES ========== */
.shop-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    min-height: 500px;
}

.sidebar {
    width: 280px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.products-main {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.products-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid var(--gray-400);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* ========== PRODUCT GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--gray-200);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Quick Add Button */
.quick-add {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 12px;
    transition: bottom 0.3s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.product-card:hover .quick-add {
    bottom: 0;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 20px;
}

.original-price {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: normal;
}

.product-stock {
    font-size: 12px;
    margin-top: 8px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

.in-stock {
    background: #D4EDDA;
    color: #155724;
}

.low-stock {
    background: #FFF3CD;
    color: #856404;
}

.out-of-stock {
    background: #F8D7DA;
    color: #721C24;
}

/* ========== PRODUCT BADGES ========== */
.product-badge-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.product-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    letter-spacing: 0.3px;
}

.product-badge i {
    font-size: 11px;
}

.badge-bestseller {
    background: #F59E0B;
}

.badge-new {
    background: #3B82F6;
}

.badge-hot {
    background: var(--primary);
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sale-badge i {
    font-size: 11px;
}

/* ========== CATEGORY PAGE STYLES ========== */
.category-header {
    max-width: 1400px;
    margin: 20px auto 20px;
    padding: 0 40px;
}

.category-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.category-description {
    color: var(--gray-600);
    font-size: 16px;
    margin-top: 10px;
}

.shop-controls {
    max-width: 1400px;
    margin: 0 auto 30px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: var(--gray-600);
    font-size: 14px;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail {
    max-width: 1400px;
    margin: 20px auto 60px;
    padding: 0 40px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.product-images {
    position: sticky;
    top: 100px;
}

.main-image-container {
    background: var(--gray-100);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    transition: transform 0.5s;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    color: var(--secondary);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.nav-arrow:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
    left: 15px;
}

.nav-arrow.next {
    right: 15px;
}

.thumbnail-gallery {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.2);
}

.product-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stars {
    color: var(--accent);
    font-size: 16px;
}

.description {
    margin: 25px 0;
    line-height: 1.8;
    color: var(--gray-600);
    border-top: 1px solid var(--gray-300);
    padding-top: 25px;
}

.variant-selector {
    margin: 20px 0;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 20px;
}

.attribute-group {
    margin-bottom: 25px;
}

.attribute-group strong {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
}

.attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.attribute-option {
    padding: 10px 24px;
    border: 2px solid var(--gray-400);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    background: white;
}

.attribute-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.attribute-option.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.attribute-option.out-of-stock {
    opacity: 0.5;
    text-decoration: line-through;
    cursor: not-allowed;
}

.reset-attributes-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 15px;
    display: inline-block;
}

.stock-status {
    margin: 20px 0;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.quantity-section {
    margin: 25px 0;
}

.quantity-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid var(--gray-400);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.quantity {
    font-size: 20px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
}

.btn-add-cart:disabled {
    background: var(--gray-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== WISHLIST BUTTON (Product Detail) ===== */
.btn-wishlist {
    width: 100%;
    background: white;
    border: 2px solid #E63946;
    color: #E63946;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    font-size: 16px;
    margin-top: 15px;
}

.btn-wishlist:hover {
    background: #E63946;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.2);
}

.btn-wishlist.active {
    background: #E63946;
    color: white;
}

.btn-wishlist.active:hover {
    background: #C1121F;
}

.btn-wishlist i {
    font-size: 18px;
}

.shipping-info {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-300);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.shipping-info p {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-size: 14px;
}

.shipping-info i {
    font-size: 20px;
    color: var(--primary);
}

/* ========== IMAGE ZOOM & LIGHTBOX STYLES ========== */
.main-image-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.main-image {
    transition: transform 0.3s ease;
    transform-origin: 0 0;
}

.main-image-container:hover .main-image {
    transform: scale(2);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #E63946;
    transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: #E63946;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 14px;
    z-index: 10001;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== STICKY ADD TO CART (Mobile) ========== */
.mobile-sticky-cart {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-sticky-cart.visible {
    transform: translateY(0);
}

/* Hide sticky cart when cart drawer is open */
body.drawer-open .mobile-sticky-cart {
    display: none !important;
}

.sticky-cart-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sticky-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.sticky-original-price {
    font-size: 16px;
    color: #B2BEC3;
    text-decoration: line-through;
    margin-left: 8px;
}

.sticky-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    padding: 5px 10px;
    border-radius: 50px;
}

.sticky-quantity button {
    width: 35px;
    height: 35px;
    background: white;
    border: 1px solid var(--gray-400);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.sticky-quantity span {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.sticky-add-btn {
    background: linear-gradient(135deg, #E63946 0%, #C1121F 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    font-size: 16px;
}

.sticky-add-btn:disabled {
    background: #B2BEC3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .mobile-sticky-cart {
        display: block;
    }

    .btn-add-cart {
        display: none;
    }
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* ========== RELATED PRODUCTS ========== */
.related-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.related-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.related-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.related-info {
    padding: 15px;
}

.related-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.related-price {
    font-weight: 700;
    color: var(--primary);
}

/* ========== REVIEWS SECTION ========== */
.reviews-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-300);
}

.reviews-summary {
    background: var(--gray-100);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.rating-box .rating-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.rating-stars {
    color: var(--accent);
    font-size: 20px;
    margin: 10px 0;
}

.rating-count {
    color: var(--gray-600);
    font-size: 14px;
}

.reviews-list h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.review-card {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-info strong {
    font-size: 16px;
    margin-right: 15px;
}

.review-stars {
    color: var(--accent);
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: var(--gray-600);
}

.review-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.review-content {
    color: var(--gray-800);
    line-height: 1.5;
    margin-bottom: 8px;
}

.verified-badge {
    font-size: 12px;
    color: var(--success);
    margin-top: 5px;
}

.write-review {
    background: var(--gray-100);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.write-review h3 {
    margin-bottom: 20px;
}

.rating-select {
    padding: 10px;
    border: 1px solid var(--gray-400);
    border-radius: 8px;
    width: 100%;
}

.btn-submit-review {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-submit-review:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.already-reviewed,
.login-to-review {
    text-align: center;
    padding: 30px;
    background: var(--gray-100);
    border-radius: 15px;
    margin-top: 20px;
}

.already-reviewed i {
    color: var(--success);
    margin-right: 8px;
}

.login-to-review a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ========== HOME PAGE STYLES (except hero, already replaced) ========== */
.trust-banner {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 48px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.flash-sale {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 30px;
    padding: 32px;
    margin-bottom: 48px;
    color: white;
}

.sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.countdown-timer {
    display: flex;
    gap: 12px;
    font-family: monospace;
    font-size: 28px;
    font-weight: 700;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.countdown-unit span:first-child {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.countdown-unit span:last-child {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
}

.section {
    margin-bottom: 64px;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section-header p {
    margin-top: 16px;
    color: var(--gray-600);
}

.newsletter-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 30px;
    padding: 48px;
    text-align: center;
    margin-bottom: 48px;
    color: white;
}

.newsletter-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: white;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.recently-viewed-section {
    margin: 60px 0 40px;
    padding: 20px 0;
    background: var(--gray-100);
    border-radius: 20px;
}

.recently-viewed-grid {
    padding: 0 20px;
}

/* ========== CART DRAWER ========== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: calc(var(--z-modal) + 1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 25px;
    background: var(--secondary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h2 {
    font-size: 20px;
    margin: 0;
    color: white;
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.close-drawer:hover {
    color: var(--primary);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-300);
}

.drawer-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.drawer-item-details {
    flex: 1;
}

.drawer-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.drawer-item-price {
    color: var(--primary);
    font-weight: bold;
}

.drawer-item-quantity {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 5px;
}

.drawer-item-total {
    font-weight: bold;
}

.remove-item {
    background: none;
    border: none;
    color: #FF7675;
    cursor: pointer;
    font-size: 18px;
}

.remove-item:hover {
    color: var(--primary);
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 2px solid var(--gray-300);
    background: var(--gray-100);
}

.drawer-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.drawer-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    border-top: 1px solid var(--gray-300);
    padding-top: 15px;
    margin-top: 10px;
}

.view-cart-btn,
.checkout-btn-drawer {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.view-cart-btn {
    background: var(--gray-800);
    color: white;
}

.checkout-btn-drawer {
    background: var(--primary);
    color: white;
}

.empty-cart-drawer {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

/* ========== LOADING STATES ========== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--spacing-sm);
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: var(--spacing-md);
}

.skeleton-image {
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.skeleton-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    animation: pulse 1.5s infinite;
}

.skeleton-image {
    height: 280px;
}

.skeleton-text {
    height: 80px;
    margin: 15px;
    border-radius: 8px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    animation: slideInRight 0.3s ease;
    min-width: 280px;
    max-width: 400px;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-error i {
    color: var(--danger);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========== ALERTS ========== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

.alert-info {
    background: #CCE5FF;
    color: #004085;
    border: 1px solid #B8DAFF;
}

/* ========== EMPTY STATES ========== */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: white;
    border-radius: var(--radius-xl);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-800);
}

.empty-state p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-section p {
    margin: 10px 0;
    color: var(--gray-400);
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section a i {
    font-size: 10px;
    margin-right: 5px;
    opacity: 0.7;
}

/* Footer social icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 14px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Footer payment strip */
.footer-payments {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-payments span {
    color: var(--gray-600);
    font-size: 13px;
}

.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-400);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.payment-badge i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-payments {
        padding: 16px 20px;
        gap: 12px;
    }

    .footer-social {
        gap: 8px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

/* ========== WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-gray {
    color: var(--gray-600);
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.p-1 {
    padding: var(--spacing-xs);
}

.p-2 {
    padding: var(--spacing-sm);
}

.p-3 {
    padding: var(--spacing-md);
}

.p-4 {
    padding: var(--spacing-lg);
}

.p-5 {
    padding: var(--spacing-xl);
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.flex-column {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: var(--spacing-xs);
}

.gap-2 {
    gap: var(--spacing-sm);
}

.gap-3 {
    gap: var(--spacing-md);
}

.gap-4 {
    gap: var(--spacing-lg);
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* ========== NEWLY ADDED PAGE STYLES (Account, Cart, Checkout, etc.) ========== */

/* Account Page */
.account-container {
    max-width: 1000px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    flex-wrap: wrap;
    gap: 15px;
}

.account-header h1 {
    font-size: 28px;
    color: var(--secondary);
    margin: 0;
}

.account-badge {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.info-note {
    color: var(--gray-600);
    font-size: 12px;
    margin-top: 5px;
}

.btn-orders {
    background: #2A9D8F;
    color: white;
}

.btn-orders:hover {
    background: #1E7A6F;
}

.btn-logout {
    background: #636E72;
}

.btn-logout:hover {
    background: #4A5559;
}

/* Cart Page */
.cart-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.cart-header {
    margin-bottom: 30px;
}

.cart-header h1 {
    font-size: 36px;
    font-weight: 700;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.cart-items {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--gray-300);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.item-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.item-stock {
    font-size: 12px;
    color: var(--success);
    margin-top: 5px;
    display: inline-block;
    padding: 4px 12px;
    background: #D4EDDA;
    border-radius: 20px;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    background: var(--gray-100);
    border: 1px solid var(--gray-400);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.quantity-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.quantity {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: #FF7675;
    cursor: pointer;
    font-size: 20px;
}

.remove-btn:hover {
    color: var(--primary);
}

.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.continue-shopping {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.empty-cart {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
}

.empty-cart i {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}

.shop-now-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
}

.shop-now-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Checkout Page */
.checkout-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.checkout-header {
    margin-bottom: 30px;
}

.checkout-header h1 {
    font-size: 36px;
    font-weight: 700;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.checkout-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-300);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    color: var(--primary);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--gray-400);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--primary);
    background: #FFF5F5;
}

.payment-option input {
    width: auto;
    margin: 0;
}

.payment-details {
    flex: 1;
}

.payment-name {
    font-weight: 600;
}

.payment-desc {
    font-size: 12px;
    color: var(--gray-700);
}

.place-order-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.free-shipping-badge {
    background: #D4EDDA;
    color: #155724;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

.free-shipping-message {
    margin-top: 15px;
    padding: 10px;
    background: #FFF3CD;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ========== CHECKOUT PAGE – MOBILE FIXES ========== */

/* Style the order summary as a card */
.order-summary {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-top: 0;
    height: fit-content;
}

/* Summary items inside order summary */
.summary-items {
    margin: 20px 0;
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
}

.summary-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-300);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.summary-item-details {
    flex: 1;
}

.summary-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--secondary);
}

.summary-item-price {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.summary-item-quantity {
    font-size: 12px;
    color: var(--gray-600);
}

.summary-item-total {
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}

/* Make form rows stack on mobile */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Mobile overrides */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    .summary-item {
        flex-wrap: wrap;
    }

    .summary-item-image {
        width: 60px;
        height: 60px;
    }

    .summary-item-details {
        flex: 1;
        min-width: 120px;
    }

    .summary-item-total {
        margin-left: auto;
        font-size: 14px;
    }

    .order-summary {
        margin-top: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .summary-item-image {
        width: 80px;
        height: 80px;
    }

    .summary-item-total {
        align-self: flex-end;
    }
}

/* Order Confirmation Page */
.confirmation-container {
    max-width: 600px;
    margin: 60px auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.confirmation-container h1 {
    color: var(--success);
    margin-bottom: 15px;
}

.order-number {
    background: var(--gray-100);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
}

.order-number span {
    font-weight: bold;
    color: var(--primary);
    font-size: 20px;
}

.message {
    color: var(--gray-700);
    margin-bottom: 30px;
    line-height: 1.6;
}

.buttons .btn-primary,
.buttons .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 10px;
}

.btn-secondary {
    background: #2A9D8F;
    color: white;
}

.btn-secondary:hover {
    background: #1E7A6F;
}

/* Order History & Order Detail Pages */

.orders-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.orders-header h1 {
    font-size: 36px;
    font-weight: 700;
}

.order-stats {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-700);
    margin-top: 5px;
}

.no-orders {
    text-align: center;
    padding: 80px;
    background: white;
    border-radius: 20px;
}

.no-orders i {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 15px;
}

.order-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.order-number span {
    color: var(--primary);
}

.order-date {
    color: var(--gray-700);
    font-size: 14px;
}

.order-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.badge-pending {
    background: #FFF3CD;
    color: #856404;
}

.badge-processing {
    background: #CCE5FF;
    color: #004085;
}

.badge-shipped {
    background: #D4EDDA;
    color: #155724;
}

.badge-delivered {
    background: #D1ECF1;
    color: #0C5460;
}

.badge-cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.order-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-300);
}

.btn-view, .btn-reorder, .btn-cancel {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-view {
    background: var(--primary);
    color: white;
}

.btn-view:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-reorder {
    background: var(--gray-800);
    color: white;
}

.btn-reorder:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-cancel {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-cancel:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Order Detail Page Specific */
.order-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
}

.order-detail-container .order-card {
    margin-bottom: 30px;
}

.order-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
}

.order-header h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.info-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
}

.section {
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-300);
}

.items-table {
    width: 100%;
    border-collapse: collapse;
}

.items-table th,
.items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

.items-table th {
    background: var(--gray-100);
    font-weight: 600;
}

.product-price {
    color: var(--primary);
    font-weight: 600;
}

.totals {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.totals-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    margin-top: 10px;
    padding-top: 15px;
}

.shipping-address {
    background: var(--gray-100);
    padding: 15px;
    border-radius: 10px;
    line-height: 1.6;
}

/* Search Results Page */
.search-header {
    max-width: 1400px;
    margin: 40px auto 20px;
    padding: 0 40px;
}

.search-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.search-header p {
    color: var(--gray-700);
}

.no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    margin: 40px auto;
}

.no-results i {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Track Order Pages */
.track-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
}

.track-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.track-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
}

.track-card h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.track-card p {
    color: var(--gray-700);
    margin-bottom: 30px;
}

.btn-track {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* Track Order Result Page */
.track-result-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    z-index: 2;
    background: white;
    border: 2px solid var(--gray-400);
}

.timeline-icon.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.timeline-icon.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.timeline-content {
    flex: 1;
}

.timeline-status {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.timeline-description {
    color: var(--gray-700);
    font-size: 13px;
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 12px;
    color: #ADB5BD;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background: var(--gray-400);
    z-index: 1;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

/* Wishlist Page */
.wishlist-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.wishlist-header {
    margin-bottom: 30px;
}

.wishlist-header h1 {
    font-size: 36px;
    font-weight: 700;
}

.wishlist-header p {
    color: var(--gray-700);
    margin-top: 5px;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stats-card .count {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.stats-card .label {
    color: var(--gray-700);
}

.remove-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.remove-wishlist:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.empty-wishlist {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
}

.empty-wishlist i {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Forgot Password & Reset Password */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: var(--secondary);
}

.auth-header p {
    color: var(--gray-700);
    font-size: 14px;
}

.social-login {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.social-login-btn {
    min-height: 46px;
    border: 1px solid var(--gray-400);
    border-radius: 10px;
    background: var(--white);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.social-login-btn:hover {
    color: var(--secondary);
    border-color: var(--gray-500);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.social-login-google i {
    color: #DB4437;
}

.social-login-facebook i {
    color: #1877F2;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-600);
    font-size: 13px;
    margin: 0 0 24px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-300);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.password-hint {
    color: var(--gray-700);
    font-size: 12px;
    margin-top: 5px;
}

/* Password visibility toggle */
.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.toggle-password:hover {
    color: var(--primary);
}

.toggle-password:focus {
    outline: none;
    box-shadow: none;
    color: var(--primary);
}

/* Auth container mobile fix */
@media (max-width: 540px) {
    .auth-container {
        margin: 20px auto;
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 360px) {
    .auth-container {
        margin: 12px auto;
        padding: 20px 14px;
    }
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 968px) {
    .shop-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 240px;
    }

    .nav-top {
        flex-wrap: nowrap;
    }

    .mobile-menu-toggle {
        display: block;
        order: 0;
    }

    .logo {
        order: 1;
        margin-right: auto;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 15px;
    }

    .nav-icons {
        order: 2;
    }

    .nav-auth {
        display: none;
    }

    .desktop-menu {
        display: none;
    }

    .nav-top {
        flex-wrap: wrap;
    }

    .product-detail {
        padding: 0 20px;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }

    .product-images {
        position: static;
    }

    .product-info h1 {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .mega-menu {
        position: static;
        width: 100%;
        display: none;
        flex-direction: column;
        margin-top: 5px;
        box-shadow: none;
        background: transparent;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        padding: 10px 0 10px 20px;
        gap: 10px;
    }

    .mega-banner.text-only {
        display: none;
    }

    .mega-dropdown:hover .mega-menu {
        display: none;
    }

    .mega-dropdown.active .mega-menu {
        display: flex;
    }

    .category-menu {
        gap: 15px;
        justify-content: center;
    }

    .category-menu > a {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: block !important;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-slide {
        padding: 40px 24px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-image {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .countdown-unit {
        padding: 4px 8px;
        min-width: 50px;
    }

    .countdown-unit span:first-child {
        font-size: 18px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 200px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .thumbnail {
        width: 70px;
        height: 70px;
    }

    .shipping-info {
        flex-direction: column;
    }

    .attribute-option {
        padding: 8px 16px;
        font-size: 12px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-box .rating-number {
        font-size: 36px;
    }

    .category-header h1 {
        font-size: 28px;
    }

    .shop-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .breadcrumb {
        padding: 0 20px;
        font-size: 12px;
    }

    .category-header,
    .products-grid,
    .shop-controls,
    .loading-skeleton {
        padding: 0 20px;
    }

    button,
    .btn,
    .nav-icons a,
    .mobile-menu-toggle,
    .mobile-link,
    .mobile-sub-link,
    .accordion-title,
    .cart-icon,
    .attribute-option {
        cursor: pointer;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Additional responsive for new pages */
    .cart-container,
    .checkout-container,
    .orders-container,
    .wishlist-container,
    .order-detail-container {
        padding: 0 20px;
    }

    .cart-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .item-actions {
        justify-content: center;
    }

    .item-image {
        margin: 0 auto;
    }

    .orders-header {
        flex-direction: column;
        text-align: center;
    }

    .order-stats {
        width: 100%;
        justify-content: center;
    }

    .order-header {
        flex-direction: column;
        text-align: center;
    }

    .order-actions {
        justify-content: center;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

    .timeline-line {
        left: 19px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

@media (min-width: 969px) {
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .footer,
    .cart-drawer,
    .whatsapp-float,
    .menu-toggle {
        display: none !important;
    }

    body {
        background: white;
    }

    .card,
    .product-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* ========== ACCESSIBILITY ========== */
:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.4);
}

:focus:not(:focus-visible) {
    box-shadow: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== PROFESSIONAL IMAGE-BASED HERO SECTION ========== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 48px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/hero/hero.webp');
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.hero:hover .hero-background {
    transform: scale(1.05);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease;
}

.hero-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s ease;
}

.hero-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 400px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }
}

/* ========== IMAGE-BASED CATEGORY GRID ========== */
.category-section {
    padding: 40px 0;
    background: var(--gray-100);
    border-radius: 30px;
    margin-bottom: 48px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-link {
    display: block;
    text-decoration: none;
}

.category-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio – change to 100% for square */
    overflow: hidden;
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px 15px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: white;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.9;
    display: block;
    margin-bottom: 8px;
}

.shop-now-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    transition: background 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-card:hover .shop-now-link {
    opacity: 1;
    transform: translateY(0);
}

.shop-now-link:hover {
    background: var(--primary-dark);
}

.empty-categories {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    margin-top: 20px;
}

/* ========== MOBILE CATEGORY GRID – FORCED TWO COLUMNS ========== */
@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .category-card {
        margin: 0 !important;
        width: auto !important;
    }

    .category-image {
        padding-top: 100% !important; /* square on mobile – optional, keeps consistency */
    }

    .category-overlay {
        padding: 10px 8px 8px !important;
    }

    .category-overlay h3 {
        font-size: 0.9rem !important;
    }

    .category-count {
        font-size: 0.65rem !important;
    }

    .shop-now-link {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
    }
}

/* Shipping Options */
.shipping-options-container {
    margin-top: 10px;
}

.shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 15px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-option:hover,
.shipping-option.selected {
    border-color: var(--primary);
    background: #FFF5F5;
}

.shipping-option input {
    margin-top: 2px;
    flex-shrink: 0;
}

.shipping-details {
    flex: 1;
}

.delivery-estimate {
    font-size: 12px;
    color: var(--gray-600);
}

.shipping-cost {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

@media (max-width: 480px) {
    .shipping-option {
        gap: 10px;
        padding: 10px;
    }

    .shipping-details strong {
        font-size: 14px;
    }
}

/* ========== TRACK ORDER RESULT PAGE – ADDITIONAL STYLES ========== */

/* Tracking info box */
.tracking-info {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    border-left: 4px solid #E63946;
}

.tracking-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.tracking-info ul {
    margin: 10px 0 0 20px;
    list-style: disc;
}

.tracking-info li {
    margin-bottom: 5px;
    font-size: 13px;
}

/* Clean Auth-Page Context Polish */
body.auth-page-body .search-bar,
body.auth-page-body .desktop-menu,
body.auth-page-body .category-menu {
    display: none !important;
}

.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Ensure the absolute bottom query is patched and cleanly closed */
@media (max-width: 480px) {
    .shipping-option {
        gap: 10px;
        padding: 10px;
    }

    .auth-container {
        margin: 20px auto;
        padding: var(--spacing-lg);
        width: 92%;
    }

    h1 {
        font-size: 2rem;
    }
}


/* ============================================
   RESPONSIVE MOBILE OVERRIDES
   ============================================ */
@media (max-width: 991px) {
    /* Fix Desktop Dropdown Conflicts */
    .desktop-menu {
        display: none !important;
    }

    /* Reveal Mobile Burger Toggle */
    .mobile-menu-toggle {
        display: block !important;
        order: 1;
    }

    .logo {
        order: 2;
    }

    .nav-icons {
        order: 3;
    }

    /* Drop Search Bar to its own full-width line below header elements */
    .search-bar {
        max-width: 100%;
        width: 100%;
        order: 4;
        margin-top: 10px;
    }

    /* Convert Cart Pages to single column rows */
    .cart-grid,
    .checkout-grid,
    .product-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cart-summary,
    .sidebar {
        position: static !important;
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    /* Adapt Trust banner to layout stacked rows */
    .trust-grid {
        grid-template-columns: 1fr !important;
    }

    /* Adjust hero header sizing for smaller displays */
    h1 {
        font-size: 1.8rem !important;
    }

    /* Force full-width action items for simple touch targets */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 50px;
    }
}


/* ========== MOBILE MENU AUTH BUTTON ========== */
.mobile-auth-section {
    margin-top: auto; /* Pushes the section safely to the bottom of the drawer */
    padding: var(--spacing-lg) var(--spacing-md);
    border-top: 1px solid var(--gray-300);
    background: var(--gray-100);
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--secondary); /* High contrast matching your dark UI element */
    color: var(--white) !important;
    padding: 14px var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast) ease;
}

/* Micro-interaction touch state feedback for smartphones */
.mobile-login-btn:active {
    background: var(--primary); /* Changes to fashion red on physical finger tap */
    transform: scale(0.98);
}

.mobile-login-btn i {
    font-size: 18px;
    color: var(--accent); /* Elegant golden color accent on user icon */
}

/* ===== MODERN ECOMMERCE FOOTER ===== */

.footer {
    background: #111;
    color: #ddd;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column p {
    line-height: 1.7;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-trust {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-trust span {
    font-size: 0.92rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contact */
.footer-contact i {
    width: 20px;
    color: var(--primary);
}

/* Social */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Security & Partners */
.footer-security,
.footer-partners {
    max-width: 1400px;
    margin: 2.5rem auto 0;
    padding: 0 40px;
    border-top: 1px solid #222;
    padding-top: 2rem;
}

.footer-security {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.95rem;
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.partner-group h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.logo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.logo-list img {
    height: 36px;
    width: auto;
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    transition: transform 0.25s ease;
}

.logo-list img:hover {
    transform: translateY(-2px);
}

/* Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
    color: #888;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-grid {
        padding: 0 20px;
    }

    .footer-security,
    .footer-partners {
        padding: 0 20px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-partners {
        justify-content: center;
        text-align: center;
    }
}

/* ========== ORDER DETAIL PAGE – RESOLUTION & MODAL ========== */

/* Resolution items list */
.resolution-item {
    border-bottom: 1px solid var(--gray-300);
    padding: 10px 0;
}

.resolution-item:last-child {
    border-bottom: none;
}

/* Mobile overrides for order actions and buttons */
@media (max-width: 768px) {
    .order-actions {
        flex-direction: column;
        gap: 10px;
    }

    .order-actions form,
    .order-actions .btn,
    .order-actions .btn-view,
    .order-actions .btn-reorder,
    .order-actions .btn-cancel {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .resolution-item .btn-secondary.btn-sm {
        margin-top: 8px;
        display: inline-block;
    }
}

/* Image preview for return modal */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.image-preview img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-400);
}

/* ============================================
   ORDER DETAIL TABLE RESPONSIVENESS
   ============================================ */

.table-responsive {
    overflow-x: auto;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Forces horizontal scroll on very small screens if needed */
}

.items-table th,
.items-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

.items-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

.items-table tr:last-child td {
    border-bottom: none;
}

/* ===================== MOBILE RESPONSIVE TABLE ===================== */
@media (max-width: 768px) {
    .items-table thead {
        display: none; /* Hide header on mobile */
    }

    .items-table tr {
        display: block;
        margin-bottom: 16px;
        background: white;
        border: 1px solid var(--gray-300);
        border-radius: 12px;
        padding: 12px;
        box-shadow: var(--shadow-sm);
    }

    .items-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        border: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .items-table td:last-child {
        border-bottom: none;
    }

    .items-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-700);
        flex: 1;
    }

    /* Make product name wrap nicely */
    .items-table td:first-child {
        font-weight: 600;
        color: var(--secondary);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .items-table td {
        padding: 9px 10px;
        font-size: 15px;
    }
}

/* ============================================
   Resolution Thread (Customer)
   ============================================ */

/* Container for thread page */
.thread-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Message bubbles */
.message-bubble {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #E63946;
}

.message-bubble.customer {
    background: #E9ECEF;
    border-left-color: #1A1A2E;
}

.message-bubble.staff {
    background: #FFF5F5;
    border-left-color: #E63946;
}

/* Message metadata */
.message-meta {
    font-size: 12px;
    color: #6C757D;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.message-sender {
    font-weight: 600;
    color: #1A1A2E;
}

.message-text {
    line-height: 1.5;
    word-break: break-word;
}

/* Reply form */
.reply-form {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-send {
    background: #E63946;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send:hover {
    background: #C1121F;
    transform: translateY(-2px);
}

/* Status badges (already have some, but add missing ones) */
.status-approved_shipping {
    background: #CCE5FF;
    color: #004085;
}

.status-inspection_in_progress {
    background: #D4EDDA;
    color: #155724;
}

.status-inspection_completed {
    background: #D1ECF1;
    color: #0C5460;
}

.status-clarification_requested {
    background: #FFF3CD;
    color: #856404;
}

/* Thread messages container */
.thread-messages {
    max-height: 500px;
    overflow-y: auto;
}

/* Mobile responsiveness for thread */
@media (max-width: 768px) {
    .thread-container {
        padding: 0 15px;
        margin: 20px auto;
    }

    .message-bubble {
        padding: 12px 15px;
    }

    .reply-form {
        padding: 20px;
    }
}

/* Exchange replacement selection */
.replacement-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.replacement-item select, .replacement-item input {
    flex: 1;
    min-width: 150px;
}

@media (max-width: 768px) {
    .replacement-item {
        flex-direction: column;
        align-items: stretch;
    }
}


/* Product Form Mobile Fixes */

@media (max-width: 768px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-danger {
        width: 100%;
    }

    .image-upload-area {
        min-height: 120px;
        padding: 20px;
    }

}


/* ============================================
   ORDER DETAIL – CUSTOMER PAGES
   ============================================ */

/* Order Detail Container */
.order-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
}

.order-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 30px;
}

.order-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    padding: 25px 30px;
}

.order-header h1 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 15px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 10px;
}

.info-label {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
}

.section {
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-300);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.badge-pending {
    background: #FFF3CD;
    color: #856404;
}

.badge-processing {
    background: #CCE5FF;
    color: #004085;
}

.badge-shipped {
    background: #D4EDDA;
    color: #155724;
}

.badge-delivered {
    background: #D1ECF1;
    color: #0C5460;
}

.badge-cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.status-returned {
    color: #E63946;
    font-weight: 600;
}

/* Totals */
.totals {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.totals-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    margin-top: 8px;
    padding-top: 14px;
}

/* Resolution Card */
.resolution-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: 30px;
}

.resolution-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--gray-300);
}

.resolution-header h2 {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resolution-body {
    padding: 25px 30px;
}

.resolution-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-300);
}

.resolution-item:last-child {
    border-bottom: none;
}

.resolution-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-exchange {
    background: #0984E3;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-exchange:hover {
    background: #0652DD;
    transform: translateY(-2px);
}

.btn-select-replacement {
    background: #6C5CE7;
}

.btn-select-replacement:hover {
    background: #5A4BD1;
}

.btn-cancel-order {
    background: var(--danger);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel-order:hover {
    background: #C1121F;
    transform: translateY(-2px);
}

/* Order Actions */
.order-actions {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid var(--gray-300);
}

.order-action-form {
    display: inline;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.error-danger {
    color: var(--danger);
}

.loading-spinner-centered {
    margin: 20px auto;
}

/* ============================================
   PRODUCT NOT FOUND
   ============================================ */

.product-not-found {
    text-align: center;
    padding: 60px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.product-not-found-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.btn-back-to-shop {
    display: inline-block !important;
    width: auto !important;
    margin-top: 20px;
    padding: 14px 40px;
}

/* ============================================
   EMPTY CART
   ============================================ */

.empty-cart-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    color: var(--gray-500);
}

/* ============================================
   FREE SHIPPING MESSAGES
   ============================================ */

.free-shipping-success {
    background: #D4EDDA;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
}

.free-shipping-warning {
    background: #FFF3CD !important;
    color: #856404 !important;
}

/* ============================================
   SHIPPING OPTIONS (moved from checkout.html)
   ============================================ */

.shipping-options-container {
    margin-top: 10px;
}

.shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 15px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-option:hover,
.shipping-option.selected {
    border-color: var(--primary);
    background: #FFF5F5;
}

.shipping-option input[type="radio"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.shipping-details {
    flex: 1;
}

.shipping-details strong {
    display: block;
    font-weight: 600;
}

.delivery-estimate {
    font-size: 12px;
    color: var(--gray-600);
}

.shipping-cost {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

@media (max-width: 480px) {
    .shipping-option {
        gap: 10px;
        padding: 10px;
    }

    .shipping-details strong {
        font-size: 14px;
    }
}

/* ============================================
   CHECKOUT – ACCOUNT FIELDS
   ============================================ */

.account-fields-visible {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ORDER HISTORY
   ============================================ */

.orders-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.orders-header h1 {
    font-size: 32px;
    font-weight: 700;
}

.order-stats {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-700);
    margin-top: 4px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 15px;
}

.order-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.order-number span {
    color: var(--primary);
}

.order-date {
    color: var(--gray-700);
    font-size: 14px;
}

.order-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.cancellation-warning {
    background: #FFF3CD;
    color: #856404;
    padding: 10px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
}

.cancellation-warning i {
    margin-right: 8px;
}

.order-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-300);
}

.btn-view {
    background: var(--primary);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-reorder {
    background: var(--gray-800);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-reorder:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-cancel {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   TRACK ORDER RESULT
   ============================================ */

.track-result-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    z-index: 2;
    background: var(--white);
    border: 2px solid var(--gray-400);
}

.timeline-icon.completed {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.timeline-icon.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.timeline-content {
    flex: 1;
}

.timeline-status {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.timeline-description {
    color: var(--gray-700);
    font-size: 13px;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 12px;
    color: #ADB5BD;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background: var(--gray-400);
    z-index: 1;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.live-tracking {
    margin-top: 20px;
}

.live-tracking-result {
    margin-top: 15px;
}

.tracking-link {
    color: var(--primary);
    margin-left: 8px;
    text-decoration: none;
    font-weight: 500;
}

.tracking-link:hover {
    text-decoration: underline;
}

.resolution-guest-card {
    background: #FFF3CD;
    border-left: 5px solid var(--primary);
}

.resolution-guest-header {
    padding: 20px 25px 0;
}

.resolution-guest-header h2 {
    font-size: 20px;
    color: var(--secondary);
}

.resolution-guest-body {
    padding: 15px 25px 25px;
}

.resolution-guest-body p {
    margin-bottom: 10px;
}

.resolution-features {
    margin: 12px 0 18px 20px;
    list-style: disc;
}

.resolution-features li {
    margin-bottom: 6px;
}

.resolution-guest-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.link-primary {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.link-primary:hover {
    color: var(--primary-dark);
}

.track-result-footer {
    text-align: center;
    margin-top: 30px;
}

.btn-continue {
    display: inline-block;
    background: var(--gray-800);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */

@media (max-width: 768px) {
    .order-detail-container {
        padding: 0 20px;
        margin: 20px auto;
    }

    .order-header {
        padding: 20px;
    }

    .order-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 20px;
    }

    .order-actions {
        padding: 16px 20px;
        flex-direction: column;
    }

    .order-actions form,
    .order-actions .btn,
    .order-actions .btn-view,
    .order-actions .btn-reorder,
    .order-actions .btn-cancel {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .resolution-header,
    .resolution-body {
        padding: 16px 20px;
    }

    .resolution-actions {
        flex-direction: column;
    }

    .resolution-actions .btn,
    .resolution-actions .btn-primary,
    .resolution-actions .btn-exchange {
        width: 100%;
        justify-content: center;
    }

    .orders-container {
        padding: 0 20px;
    }

    .orders-header {
        flex-direction: column;
        text-align: center;
    }

    .order-stats {
        width: 100%;
        justify-content: center;
    }

    .order-header {
        flex-direction: column;
        text-align: center;
    }

    .order-actions {
        justify-content: center;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

    .timeline-line {
        left: 19px;
    }

    .resolution-guest-actions {
        flex-direction: column;
    }

    .resolution-guest-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
    }
}

/* ========== PAYMENT PENDING CARD ========== */
.payment-pending-card {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.payment-pending-header {
    font-size: 18px;
    font-weight: 600;
    color: #F57F17;
    margin-bottom: 10px;
}

.payment-pending-card p {
    margin-bottom: 15px;
}

.btn-complete-payment {
    padding: 12px 30px;
    font-size: 16px;
}

.payment-note {
    font-size: 13px;
    color: #6C757D;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .btn-complete-payment {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   COMPLETE MOBILE RESPONSIVENESS & POLISH
   Version: 2.0 - All Pages
   ============================================================ */

/* ========== 1. ROOT VARIABLES - TOUCH FRIENDLY ========== */
:root {
    /* Touch targets - minimum 44px for mobile */
    --touch-min: 44px;
    --touch-min-small: 36px;
    --font-base: 16px;
    --font-small: 14px;
    --font-tiny: 12px;

    /* Spacing */
    --mobile-padding: 16px;
    --mobile-gap: 12px;
    --card-radius-mobile: 16px;
}

/* ========== 2. GLOBAL MOBILE IMPROVEMENTS ========== */

/* Prevent text zoom on input focus (iOS) */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Better touch targets for all interactive elements */
    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-danger,
    .btn-warning,
    .btn-outline,
    a.btn,
    .clickable,
    [role="button"],
    .cart-icon,
    .mobile-menu-toggle {
        min-height: var(--touch-min);
        min-width: var(--touch-min);
        touch-action: manipulation;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-tap-highlight-color: transparent;
    }

    /* Better spacing for containers */
    .container {
        padding: 0 var(--mobile-padding);
    }

    /* Card improvements */
    .card {
        border-radius: var(--card-radius-mobile);
        padding: var(--mobile-padding);
        margin-bottom: var(--mobile-gap);
    }

    /* Alert improvements */
    .alert {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    .alert i {
        font-size: 18px;
    }
}

/* ========== 3. NAVBAR - POLISHED MOBILE ========== */

@media (max-width: 968px) {
    .navbar {
        padding: 12px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--secondary);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-top {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
        position: relative;
    }

    .logo a {
        font-size: 22px;
        white-space: nowrap;
    }

    .logo span {
        color: var(--primary);
    }

    /* Mobile menu toggle - polished */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 22px;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .mobile-menu-toggle:active {
        background: rgba(230, 57, 70, 0.3);
        transform: scale(0.95);
    }

    .mobile-menu-toggle i {
        font-size: 24px;
    }

    /* Cart icon - polished */
    .cart-icon {
        padding: 8px 12px;
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        transition: background 0.3s ease;
    }

    .cart-icon:active {
        background: rgba(230, 57, 70, 0.2);
    }

    .cart-icon i {
        font-size: 22px;
        color: white;
    }

    .cart-badge {
        position: absolute;
        top: 0;
        right: 0;
        background: var(--primary);
        color: white;
        font-size: 11px;
        font-weight: 700;
        min-width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--secondary);
        transform: translate(25%, -25%);
    }

    /* Search bar - polished */
    .search-bar {
        grid-column: 1 / -1;
        margin-top: 0;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .search-bar:focus-within {
        box-shadow: 0 2px 20px rgba(230, 57, 70, 0.2);
        background: white;
    }

    .search-bar input {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 50px;
        border-radius: 50px 0 0 50px;
        background: transparent;
        color: var(--secondary);
    }

    .search-bar input::placeholder {
        color: var(--gray-500);
        font-weight: 400;
    }

    .search-bar button {
        padding: 14px 22px;
        min-height: 50px;
        min-width: 54px;
        border-radius: 0 50px 50px 0;
        background: var(--primary);
        color: white;
        border: none;
        font-size: 18px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .search-bar button:active {
        background: var(--primary-dark);
        transform: scale(0.97);
    }

    /* Hide auth links in nav on mobile - they're in the drawer */
    .nav-auth {
        display: none !important;
    }

    /* Nav icons - only cart and menu */
    .nav-icons {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

/* ========== 4. MOBILE MENU DRAWER - POLISHED ========== */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--secondary);
    z-index: 2100;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-container {
    padding: 20px 24px 40px;
}

/* Menu header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.mobile-menu-header .logo-small {
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.mobile-menu-header .logo-small span {
    color: var(--primary);
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:active {
    background: rgba(230, 57, 70, 0.3);
    transform: scale(0.95);
}

/* Mobile links */
.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 52px;
    transition: all 0.2s ease;
}

.mobile-link:active {
    color: var(--primary);
    padding-left: 8px;
}

.mobile-link i {
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.mobile-link:active i {
    color: var(--primary);
}

/* Accordion */
.mobile-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 14px 0;
    min-height: 52px;
    user-select: none;
}

.accordion-header:active {
    background: rgba(255, 255, 255, 0.03);
}

.accordion-title {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-title i {
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.accordion-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    transition: transform 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    display: none;
    padding-left: 36px;
    padding-bottom: 8px;
}

.accordion-content.open {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 10px 0 10px 8px;
    font-size: 14px;
    min-height: 40px;
    transition: all 0.2s ease;
}

.mobile-sub-link:active {
    color: var(--primary);
    padding-left: 16px;
}

.mobile-sub-link i {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

/* Mobile auth section */
.mobile-auth-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    min-height: 52px;
    transition: all 0.3s ease;
}

.mobile-login-btn:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

.mobile-register-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 12px;
    font-size: 14px;
    min-height: 44px;
    border-radius: 8px;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.mobile-register-link:active {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    min-height: 52px;
    transition: all 0.2s ease;
}

.mobile-logout-btn:active {
    color: var(--primary-dark);
    padding-left: 8px;
}

/* ========== 5. HERO SECTION - MOBILE ========== */

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 380px;
        border-radius: 0 0 20px 20px;
        margin-bottom: 32px;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
        padding: 0 10px;
    }

    .hero-text p {
        font-size: 1rem;
        padding: 0 20px;
        max-width: 100%;
    }

    .hero-btn {
        padding: 14px 32px;
        font-size: 15px;
        min-height: 52px;
        min-width: 200px;
        border-radius: 50px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 320px;
        border-radius: 0 0 16px 16px;
        margin-bottom: 24px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        padding: 0 16px;
    }

    .hero-btn {
        padding: 12px 28px;
        font-size: 14px;
        min-height: 48px;
        min-width: 160px;
    }
}

/* ========== 6. CATEGORY GRID - POLISHED MOBILE ========== */

.category-section {
    padding: 24px 0 16px;
    background: var(--gray-100);
    border-radius: 20px;
    margin-bottom: 32px;
}

.section-header {
    padding: 0 16px;
}

.section-header h2 {
    font-size: 24px;
}

@media (max-width: 768px) {
    .category-section {
        padding: 16px 0 12px;
        border-radius: 16px;
        margin: 0 12px 24px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .section-header p {
        font-size: 13px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 12px;
    }

    .category-card {
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .category-card:active {
        transform: scale(0.97);
    }

    .category-image {
        padding-top: 100% !important;
    }

    .category-overlay {
        padding: 12px 10px 10px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    }

    .category-overlay h3 {
        font-size: 15px !important;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .category-count {
        font-size: 11px !important;
        opacity: 0.8;
        margin-bottom: 4px;
    }

    .shop-now-link {
        font-size: 11px !important;
        padding: 4px 14px !important;
        opacity: 1 !important;
        transform: none !important;
        background: var(--primary);
        color: white;
        border-radius: 20px;
        display: inline-block;
    }

    .shop-now-link:active {
        background: var(--primary-dark);
        transform: scale(0.97);
    }
}

@media (max-width: 480px) {
    .category-section {
        margin: 0 8px 16px;
        padding: 12px 0 8px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .category-grid {
        gap: 10px !important;
        padding: 0 8px;
    }

    .category-overlay {
        padding: 8px 6px 6px !important;
    }

    .category-overlay h3 {
        font-size: 13px !important;
    }

    .category-count {
        font-size: 10px !important;
    }

    .shop-now-link {
        font-size: 10px !important;
        padding: 3px 10px !important;
    }
}

/* ========== 7. PRODUCT GRID - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        padding: 0 12px;
    }

    .product-card {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .product-image {
        height: 200px !important;
        background: var(--gray-100);
    }

    .product-image img {
        transition: transform 0.4s ease;
    }

    .product-info {
        padding: 14px 14px 16px;
    }

    .product-title {
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        font-size: 16px !important;
        font-weight: 700;
        color: var(--primary);
    }

    .original-price {
        font-size: 13px !important;
    }

    .product-stock {
        font-size: 11px !important;
        padding: 3px 10px !important;
        border-radius: 20px;
        display: inline-block;
        margin-top: 6px;
    }

    /* Badges - smaller on mobile */
    .product-badge-container {
        top: 8px;
        left: 8px;
        gap: 6px;
    }

    .product-badge {
        font-size: 9px !important;
        padding: 3px 8px !important;
        border-radius: 12px;
        gap: 4px;
    }

    .product-badge i {
        font-size: 9px !important;
    }

    .sale-badge {
        top: 8px;
        right: 8px;
        font-size: 10px !important;
        padding: 3px 10px !important;
        border-radius: 12px;
    }

    /* Quick add - always visible on mobile (no hover) */
    .quick-add {
        bottom: 0;
        opacity: 1;
        padding: 10px;
        font-size: 12px;
        background: var(--secondary);
        color: white;
        text-align: center;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .quick-add:active {
        background: var(--primary);
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 10px !important;
        padding: 0 8px;
    }

    .product-image {
        height: 160px !important;
    }

    .product-info {
        padding: 10px 10px 12px;
    }

    .product-title {
        font-size: 12px !important;
    }

    .product-price {
        font-size: 14px !important;
    }

    .original-price {
        font-size: 11px !important;
    }

    .product-stock {
        font-size: 10px !important;
        padding: 2px 8px !important;
    }

    .product-badge {
        font-size: 8px !important;
        padding: 2px 6px !important;
    }

    .sale-badge {
        font-size: 9px !important;
        padding: 2px 8px !important;
    }

    .quick-add {
        font-size: 11px;
        padding: 8px;
    }
}

/* ========== 8. SHOP PAGE - SIDEBAR & FILTERS ========== */

@media (max-width: 968px) {
    .shop-container {
        flex-direction: column;
        padding: 0 16px;
        gap: 20px;
        margin: 20px auto;
    }

    .sidebar {
        width: 100%;
        position: static;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        order: 2;
    }

    .sidebar h3 {
        font-size: 17px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .category-tree a {
        font-size: 15px;
        padding: 8px 0;
        min-height: 40px;
    }

    .products-main {
        order: 1;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .products-header h1 {
        font-size: 24px;
    }

    .sort-select {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
        min-height: 48px;
        border-radius: 12px;
        background: white;
        border: 2px solid var(--gray-300);
    }
}

@media (max-width: 480px) {
    .shop-container {
        padding: 0 12px;
        gap: 16px;
    }

    .sidebar {
        padding: 16px;
        border-radius: 14px;
    }

    .sidebar h3 {
        font-size: 15px;
    }

    .category-tree a {
        font-size: 14px;
        padding: 6px 0;
    }

    .products-header h1 {
        font-size: 20px;
    }

    .sort-select {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* ========== 9. PRODUCT DETAIL - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .product-detail {
        padding: 0 16px;
        margin: 16px auto 40px;
    }

    .product-container {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 20px !important;
        border-radius: 20px;
    }

    .product-images {
        position: static;
    }

    .main-image-container {
        border-radius: 16px;
        min-height: 280px;
    }

    .main-image {
        min-height: 280px;
        object-fit: cover;
    }

    .thumbnail-gallery {
        gap: 10px;
        margin-top: 14px;
        justify-content: center;
    }

    .thumbnail {
        width: 70px;
        height: 70px;
        border-radius: 12px;
    }

    .product-info h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .product-rating {
        gap: 10px;
        font-size: 14px;
    }

    .stars {
        font-size: 15px;
    }

    .description {
        font-size: 15px;
        padding-top: 20px;
        margin-top: 20px;
    }

    .variant-selector {
        padding: 16px;
        border-radius: 16px;
    }

    .attribute-group strong {
        font-size: 13px;
    }

    .attribute-option {
        padding: 10px 18px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 30px;
    }

    .quantity-selector {
        gap: 12px;
    }

    .quantity-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .quantity {
        font-size: 18px;
        min-width: 50px;
    }

    .btn-add-cart {
        font-size: 16px;
        padding: 16px;
        min-height: 56px;
        border-radius: 50px;
    }

    .btn-wishlist {
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 50px;
    }

    .shipping-info {
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
        margin-top: 20px;
    }

    .shipping-info p {
        font-size: 14px;
    }

    /* Related products */
    .related-section {
        padding: 0 16px;
        margin: 40px auto;
    }

    .related-header h2 {
        font-size: 22px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .related-image {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 0 12px;
    }

    .product-container {
        padding: 14px !important;
        gap: 16px !important;
        border-radius: 16px;
    }

    .main-image-container {
        min-height: 220px;
    }

    .main-image {
        min-height: 220px;
    }

    .thumbnail {
        width: 56px;
        height: 56px;
    }

    .product-info h1 {
        font-size: 20px;
    }

    .description {
        font-size: 14px;
    }

    .attribute-option {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 38px;
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .quantity {
        font-size: 16px;
        min-width: 40px;
    }

    .btn-add-cart {
        font-size: 15px;
        padding: 14px;
        min-height: 50px;
    }

    .btn-wishlist {
        font-size: 14px;
        padding: 12px;
        min-height: 46px;
    }

    .related-image {
        height: 140px;
    }

    .related-title {
        font-size: 13px;
    }

    .related-price {
        font-size: 14px;
    }
}

/* ========== 10. CART PAGE - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .cart-container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .cart-header h1 {
        font-size: 26px;
    }

    .cart-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cart-items {
        border-radius: 16px;
        overflow: hidden;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        text-align: center;
        border-bottom: 1px solid var(--gray-200);
    }

    .item-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
        border-radius: 12px;
        object-fit: cover;
    }

    .item-info h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .item-price {
        font-size: 17px;
    }

    .item-stock {
        font-size: 12px;
        padding: 3px 12px;
    }

    .item-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        margin-top: 4px;
    }

    .quantity-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--gray-100);
        padding: 4px 12px;
        border-radius: 50px;
        border: 1px solid var(--gray-300);
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 20px;
        background: white;
        border: 1px solid var(--gray-300);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        min-height: 40px;
        min-width: 40px;
    }

    .quantity-btn:active {
        background: var(--primary);
        color: white;
        transform: scale(0.95);
        border-color: var(--primary);
    }

    .quantity {
        font-size: 18px;
        min-width: 36px;
        font-weight: 600;
    }

    .remove-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #FFF5F5;
        border: 1px solid #F8D7DA;
        color: var(--primary);
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        min-height: 44px;
        min-width: 44px;
    }

    .remove-btn:active {
        background: var(--primary);
        color: white;
        transform: scale(0.95);
    }

    .cart-summary {
        padding: 24px 20px;
        border-radius: 16px;
        position: static;
    }

    .cart-summary h2 {
        font-size: 19px;
        margin-bottom: 16px;
    }

    .summary-row {
        font-size: 15px;
        padding: 10px 0;
    }

    .summary-total {
        font-size: 20px;
        padding-top: 14px;
        margin-top: 10px;
    }

    .checkout-btn {
        font-size: 16px;
        padding: 16px;
        min-height: 54px;
        border-radius: 50px;
        margin-top: 16px;
    }

    .continue-shopping {
        font-size: 14px;
        margin-top: 16px;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .cart-header h1 {
        font-size: 22px;
    }

    .cart-item {
        padding: 12px;
        gap: 10px;
    }

    .item-image {
        width: 80px;
        height: 80px;
    }

    .item-info h3 {
        font-size: 14px;
    }

    .item-price {
        font-size: 15px;
    }

    .quantity-wrapper {
        gap: 8px;
        padding: 3px 10px;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        min-height: 36px;
        min-width: 36px;
    }

    .quantity {
        font-size: 16px;
        min-width: 30px;
    }

    .remove-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
        min-height: 38px;
        min-width: 38px;
    }

    .cart-summary {
        padding: 18px 16px;
    }

    .cart-summary h2 {
        font-size: 17px;
    }

    .summary-row {
        font-size: 14px;
        padding: 8px 0;
    }

    .summary-total {
        font-size: 18px;
    }

    .checkout-btn {
        font-size: 15px;
        padding: 14px;
        min-height: 48px;
    }
}

/* ========== 11. CHECKOUT PAGE - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .checkout-container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .checkout-header h1 {
        font-size: 26px;
    }

    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .checkout-form {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .form-section {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .form-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 16px;
    }

    .form-row .form-group:last-child {
        margin-bottom: 0;
    }

    .form-group label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        padding: 14px 16px;
        border-radius: 12px;
        border: 2px solid var(--gray-300);
        min-height: 50px;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    }

    /* Payment methods */
    .payment-methods {
        gap: 10px;
    }

    .payment-option {
        padding: 16px;
        border-radius: 12px;
        gap: 14px;
        border: 2px solid var(--gray-300);
        min-height: 60px;
    }

    .payment-option input[type="radio"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
        flex-shrink: 0;
    }

    .payment-name {
        font-size: 15px;
        font-weight: 600;
    }

    .payment-desc {
        font-size: 13px;
        color: var(--gray-600);
    }

    /* Shipping options */
    .shipping-option {
        padding: 16px;
        gap: 14px;
        border-radius: 12px;
        min-height: 60px;
    }

    .shipping-option input[type="radio"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .shipping-details strong {
        font-size: 15px;
    }

    .delivery-estimate {
        font-size: 13px;
    }

    .shipping-cost {
        font-size: 15px;
    }

    /* Order summary */
    .order-summary {
        padding: 20px 16px;
        border-radius: 16px;
        margin-top: 0;
    }

    .order-summary h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .summary-item {
        padding: 12px 0;
        gap: 12px;
    }

    .summary-item-image {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .summary-item-title {
        font-size: 14px;
    }

    .summary-item-price {
        font-size: 13px;
    }

    .summary-item-quantity {
        font-size: 12px;
    }

    .summary-item-total {
        font-size: 14px;
    }

    .summary-row {
        font-size: 15px;
        padding: 10px 0;
    }

    .summary-total {
        font-size: 20px;
        padding-top: 14px;
    }

    .place-order-btn {
        font-size: 16px;
        padding: 16px;
        min-height: 56px;
        border-radius: 50px;
        margin-top: 16px;
    }

    .free-shipping-message {
        font-size: 13px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .checkout-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .checkout-header h1 {
        font-size: 22px;
    }

    .checkout-form {
        padding: 16px 12px;
        border-radius: 14px;
    }

    .form-section h2 {
        font-size: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        padding: 12px 14px;
        min-height: 44px;
    }

    .payment-option {
        padding: 12px 14px;
        gap: 10px;
        min-height: 50px;
    }

    .payment-option input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .payment-name {
        font-size: 14px;
    }

    .payment-desc {
        font-size: 12px;
    }

    .shipping-option {
        padding: 12px 14px;
        gap: 10px;
        min-height: 50px;
    }

    .shipping-option input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .shipping-details strong {
        font-size: 14px;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 0;
    }

    .summary-item-image {
        width: 70px;
        height: 70px;
    }

    .summary-item-total {
        align-self: flex-end;
    }

    .order-summary {
        padding: 16px 12px;
    }

    .summary-row {
        font-size: 14px;
        padding: 8px 0;
    }

    .summary-total {
        font-size: 18px;
    }

    .place-order-btn {
        font-size: 15px;
        padding: 14px;
        min-height: 50px;
    }
}

/* ========== 12. ACCOUNT PAGE - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .account-container {
        margin: 20px 16px;
        padding: 24px 20px;
        border-radius: 20px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    }

    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .account-header h1 {
        font-size: 24px;
    }

    .account-badge {
        font-size: 13px;
        padding: 6px 18px;
        border-radius: 20px;
    }

    .form-section {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .form-section h2 {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .form-section h2 i {
        font-size: 18px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 16px;
    }

    .form-row .form-group:last-child {
        margin-bottom: 0;
    }

    .form-group label {
        font-size: 14px;
        font-weight: 500;
    }

    .form-group input {
        font-size: 16px !important;
        padding: 14px 16px;
        border-radius: 12px;
        border: 2px solid var(--gray-300);
        min-height: 50px;
    }

    .form-group input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    }

    .form-group input:disabled {
        background: var(--gray-100);
        cursor: not-allowed;
    }

    .info-note {
        font-size: 12px;
        color: var(--gray-500);
        margin-top: 4px;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 8px;
    }

    .buttons .btn-save,
    .buttons .btn-orders,
    .buttons .btn-logout {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 15px;
        min-height: 52px;
        border-radius: 12px;
        text-align: center;
    }

    .btn-save {
        background: var(--primary);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-save:active {
        background: var(--primary-dark);
        transform: scale(0.98);
    }

    .btn-orders {
        background: #2A9D8F;
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-orders:active {
        background: #1E7A6F;
        transform: scale(0.98);
    }

    .btn-logout {
        background: var(--gray-600);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-logout:active {
        background: var(--gray-700);
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .account-container {
        margin: 12px 12px;
        padding: 18px 14px;
        border-radius: 16px;
    }

    .account-header h1 {
        font-size: 20px;
    }

    .account-badge {
        font-size: 11px;
        padding: 4px 14px;
    }

    .form-section h2 {
        font-size: 15px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        font-size: 16px !important;
        padding: 12px 14px;
        min-height: 44px;
    }

    .buttons .btn-save,
    .buttons .btn-orders,
    .buttons .btn-logout {
        padding: 14px;
        font-size: 14px;
        min-height: 48px;
    }
}

/* ========== 13. ORDER HISTORY - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .orders-container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .orders-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 20px;
    }

    .orders-header h1 {
        font-size: 26px;
    }

    .order-stats {
        width: 100%;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .stat-card {
        flex: 1;
        padding: 12px 10px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .orders-list {
        gap: 16px;
    }

    .order-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .order-number {
        font-size: 16px;
    }

    .order-date {
        font-size: 13px;
    }

    .order-total {
        font-size: 18px;
        align-self: flex-start;
    }

    .order-status {
        font-size: 12px;
        padding: 5px 14px;
        margin-bottom: 10px;
    }

    .order-actions {
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
        margin-top: 12px;
    }

    .order-actions form {
        width: 100%;
    }

    .order-actions .btn-view,
    .order-actions .btn-reorder,
    .order-actions .btn-cancel {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
    }

    .cancellation-warning {
        font-size: 13px;
        padding: 10px 14px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .orders-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .orders-header h1 {
        font-size: 22px;
    }

    .order-stats {
        gap: 8px;
    }

    .stat-card {
        padding: 10px 8px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 10px;
    }

    .order-card {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .order-number {
        font-size: 14px;
    }

    .order-total {
        font-size: 16px;
    }

    .order-status {
        font-size: 11px;
        padding: 4px 12px;
    }

    .order-actions .btn-view,
    .order-actions .btn-reorder,
    .order-actions .btn-cancel {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* ========== 14. ORDER DETAIL - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .order-detail-container {
        padding: 0 16px;
        margin: 16px auto;
    }

    .order-card {
        border-radius: 16px;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .order-header {
        padding: 18px 16px;
        border-radius: 0;
    }

    .order-header h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .order-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .info-item {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .info-label {
        font-size: 10px;
    }

    .info-value {
        font-size: 14px;
    }

    .section {
        padding: 16px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .section h2 i {
        font-size: 16px;
    }

    .shipping-address {
        font-size: 14px;
        padding: 12px;
        border-radius: 10px;
    }

    /* Items table - card style */
    .items-table {
        min-width: unset;
    }

    .items-table thead {
        display: none;
    }

    .items-table tr {
        display: block;
        margin-bottom: 10px;
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 12px;
        padding: 10px 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .items-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid var(--gray-100);
        font-size: 14px;
    }

    .items-table td:last-child {
        border-bottom: none;
    }

    .items-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-700);
        font-size: 13px;
    }

    .totals {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .totals-row {
        font-size: 14px;
        padding: 8px 0;
    }

    .totals-row.total {
        font-size: 18px;
        padding-top: 12px;
        margin-top: 8px;
    }

    /* Resolution card */
    .resolution-card {
        border-radius: 16px;
        margin-top: 20px;
        overflow: hidden;
    }

    .resolution-header {
        padding: 16px;
    }

    .resolution-header h2 {
        font-size: 16px;
    }

    .resolution-body {
        padding: 16px;
    }

    .resolution-item {
        padding: 10px 0;
        font-size: 14px;
    }

    .resolution-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 12px;
    }

    .resolution-actions .btn-primary,
    .resolution-actions .btn-exchange {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
    }

    .btn-cancel-order {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
    }

    .btn-select-replacement {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
    }

    /* Order actions */
    .order-actions {
        padding: 16px;
        flex-direction: column;
        gap: 10px;
    }

    .order-actions form {
        width: 100%;
    }

    .order-actions .btn-view,
    .order-actions .btn-reorder,
    .order-actions .btn-cancel {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
    }

    /* Payment pending card */
    .payment-pending-card {
        padding: 16px;
        border-radius: 12px;
        margin: 16px 0;
    }

    .payment-pending-header {
        font-size: 16px;
    }

    .btn-complete-payment {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
    }

    .payment-note {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .order-detail-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .order-header {
        padding: 14px 12px;
    }

    .order-header h1 {
        font-size: 18px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 8px 10px;
    }

    .info-value {
        font-size: 13px;
    }

    .section {
        padding: 12px;
    }

    .section h2 {
        font-size: 15px;
    }

    .items-table tr {
        padding: 8px 10px;
    }

    .items-table td {
        font-size: 13px;
        padding: 6px 0;
    }

    .items-table td:before {
        font-size: 12px;
    }

    .totals-row {
        font-size: 13px;
        padding: 6px 0;
    }

    .totals-row.total {
        font-size: 16px;
    }

    .resolution-header {
        padding: 12px;
    }

    .resolution-header h2 {
        font-size: 15px;
    }

    .resolution-body {
        padding: 12px;
    }

    .resolution-actions .btn-primary,
    .resolution-actions .btn-exchange {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }

    .btn-cancel-order {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }

    .order-actions .btn-view,
    .order-actions .btn-reorder,
    .order-actions .btn-cancel {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* ========== 15. WISHLIST - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .wishlist-container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .wishlist-header h1 {
        font-size: 26px;
    }

    .stats-card {
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .stats-card .count {
        font-size: 36px;
    }

    .product-card {
        position: relative;
        border-radius: 14px;
    }

    .remove-wishlist {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }

    .remove-wishlist:active {
        transform: scale(0.95);
    }
}

@media (max-width: 480px) {
    .wishlist-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .wishlist-header h1 {
        font-size: 22px;
    }

    .stats-card .count {
        font-size: 30px;
    }
}

/* ========== 16. AUTH PAGES - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .auth-container {
        margin: 30px 16px;
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-header p {
        font-size: 14px;
    }

    .social-login {
        gap: 10px;
    }

    .social-login-btn {
        min-height: 50px;
        font-size: 15px;
        border-radius: 12px;
    }

    .form-group input {
        font-size: 16px !important;
        padding: 14px 16px;
        min-height: 50px;
        border-radius: 12px;
    }

    .btn-auth {
        font-size: 16px;
        padding: 16px;
        min-height: 54px;
        border-radius: 12px;
    }

    .auth-footer {
        font-size: 14px;
        padding-top: 16px;
        margin-top: 16px;
    }

    .back-link {
        font-size: 14px;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 20px 12px;
        padding: 24px 16px;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 20px;
    }

    .auth-header p {
        font-size: 13px;
    }

    .social-login-btn {
        min-height: 44px;
        font-size: 14px;
        border-radius: 10px;
    }

    .form-group input {
        font-size: 16px !important;
        padding: 12px 14px;
        min-height: 44px;
    }

    .btn-auth {
        font-size: 15px;
        padding: 14px;
        min-height: 48px;
    }

    .auth-footer {
        font-size: 13px;
    }

    .back-link {
        font-size: 13px;
    }
}

/* ========== 17. RESOLUTION THREAD - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .thread-container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }

    .card-header h2 {
        font-size: 18px;
    }

    .card-body {
        padding: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .message-bubble {
        padding: 14px 16px;
        border-radius: 16px;
    }

    .message-meta {
        font-size: 11px;
        flex-direction: column;
        gap: 4px;
    }

    .message-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .reply-form {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .reply-form h3 {
        font-size: 17px;
    }

    .reply-form textarea {
        font-size: 16px !important;
        padding: 14px;
        min-height: 100px;
        border-radius: 12px;
    }

    .btn-send {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .thread-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .card-header h2 {
        font-size: 16px;
    }

    .card-body {
        padding: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        padding: 12px 14px;
    }

    .message-text {
        font-size: 13px;
    }

    .reply-form {
        padding: 14px 12px;
    }

    .reply-form h3 {
        font-size: 15px;
    }

    .reply-form textarea {
        font-size: 16px !important;
        padding: 12px;
        min-height: 80px;
    }

    .btn-send {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* ========== 18. CART DRAWER - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        max-width: 400px;
        right: -100%;
        max-width: 85vw;
    }

    .cart-drawer-header {
        padding: 16px 20px;
    }

    .cart-drawer-header h2 {
        font-size: 18px;
    }

    .close-drawer {
        width: 44px;
        height: 44px;
        font-size: 28px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .close-drawer:active {
        background: rgba(230, 57, 70, 0.3);
        transform: scale(0.95);
    }

    .cart-drawer-items {
        padding: 16px;
    }

    .drawer-item {
        padding: 12px 0;
        gap: 12px;
    }

    .drawer-item-image {
        width: 64px;
        height: 64px;
        border-radius: 10px;
    }

    .drawer-item-title {
        font-size: 14px;
    }

    .drawer-item-price {
        font-size: 14px;
    }

    .drawer-item-quantity {
        font-size: 12px;
    }

    .drawer-item-total {
        font-size: 14px;
    }

    .remove-item {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 16px;
        border-radius: 50%;
        background: #FFF5F5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .remove-item:active {
        background: var(--primary);
        color: white;
        transform: scale(0.95);
    }

    .cart-drawer-footer {
        padding: 16px 20px;
    }

    .drawer-summary-row {
        font-size: 15px;
        padding: 6px 0;
    }

    .drawer-total {
        font-size: 18px;
        padding-top: 12px;
        margin-top: 8px;
    }

    .view-cart-btn,
    .checkout-btn-drawer {
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
        width: 100%;
        right: -100%;
    }

    .cart-drawer-header {
        padding: 14px 16px;
    }

    .cart-drawer-header h2 {
        font-size: 16px;
    }

    .close-drawer {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .cart-drawer-items {
        padding: 12px;
    }

    .drawer-item {
        padding: 10px 0;
        gap: 10px;
    }

    .drawer-item-image {
        width: 56px;
        height: 56px;
    }

    .drawer-item-title {
        font-size: 13px;
    }

    .drawer-item-price {
        font-size: 13px;
    }

    .drawer-item-total {
        font-size: 13px;
    }

    .remove-item {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 14px;
    }

    .cart-drawer-footer {
        padding: 14px 16px;
    }

    .drawer-summary-row {
        font-size: 14px;
    }

    .drawer-total {
        font-size: 16px;
    }

    .view-cart-btn,
    .checkout-btn-drawer {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* ========== 19. TOAST NOTIFICATIONS - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .toast-container {
        bottom: 80px;
        right: 16px;
        left: 16px;
        gap: 8px;
    }

    .toast {
        min-width: unset;
        max-width: 100%;
        padding: 14px 18px;
        border-radius: 14px;
        font-size: 14px;
        gap: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .toast i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .toast-container {
        bottom: 70px;
        right: 12px;
        left: 12px;
    }

    .toast {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 12px;
        gap: 10px;
    }

    .toast i {
        font-size: 18px;
    }
}

/* ========== 20. EMPTY STATES & LOADING - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .empty-state {
        padding: 40px 20px;
    }

    .empty-state i {
        font-size: 48px;
    }

    .empty-state h3 {
        font-size: 18px;
    }

    .empty-state p {
        font-size: 14px;
    }

    .shop-now-btn {
        padding: 12px 32px;
        font-size: 15px;
        min-height: 48px;
        border-radius: 50px;
    }

    .no-results {
        padding: 40px 20px;
        margin: 20px auto;
    }

    .no-results i {
        font-size: 48px;
    }

    .no-results h3 {
        font-size: 18px;
    }

    .no-results p {
        font-size: 14px;
    }

    .loading-skeleton {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .skeleton-image {
        height: 200px;
    }

    .skeleton-text {
        height: 60px;
        margin: 12px;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 30px 16px;
    }

    .empty-state i {
        font-size: 36px;
    }

    .empty-state h3 {
        font-size: 16px;
    }

    .empty-state p {
        font-size: 13px;
    }

    .shop-now-btn {
        padding: 10px 24px;
        font-size: 14px;
        min-height: 44px;
    }

    .loading-skeleton {
        gap: 10px !important;
    }

    .skeleton-image {
        height: 160px;
    }

    .skeleton-text {
        height: 50px;
        margin: 10px;
    }
}

/* ========== 21. BREADCRUMB - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .breadcrumb {
        padding: 0 16px;
        margin: 16px auto 0;
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .breadcrumb a {
        display: inline-block;
        padding: 4px 0;
    }

    .breadcrumb span:last-child {
        display: inline-block;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 0 12px;
        font-size: 11px;
    }

    .breadcrumb span:last-child {
        max-width: 120px;
    }
}

/* ========== 22. FOOTER - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .footer {
        padding: 32px 0 20px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 0 16px;
        text-align: left;
    }

    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 13px;
        line-height: 1.6;
        margin: 6px 0;
    }

    .footer-social {
        gap: 8px;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-payments {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .footer-payments span {
        font-size: 12px;
    }

    .payment-icons {
        gap: 8px;
        flex-wrap: wrap;
    }

    .payment-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 16px;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 12px;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 15px;
    }

    .footer-section p {
        font-size: 12px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-payments {
        padding: 12px;
        align-items: center;
        text-align: center;
    }

    .payment-icons {
        justify-content: center;
    }
}

/* ========== 23. WHATSAPP FLOAT - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 24px;
        right: 24px;
        font-size: 28px;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-float:active {
        transform: scale(0.95);
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* ========== 24. TRUST BANNER - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .trust-banner {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 32px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .trust-item {
        gap: 8px;
        padding: 8px 4px;
    }

    .trust-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .trust-item strong {
        font-size: 14px;
    }

    .trust-item div:last-child {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .trust-banner {
        padding: 12px;
        margin: 0 8px 24px;
        border-radius: 14px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .trust-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .trust-item strong {
        font-size: 13px;
    }

    .trust-item div:last-child {
        font-size: 11px;
    }
}

/* ========== 25. FLASH SALE - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .flash-sale {
        padding: 20px 16px;
        border-radius: 20px;
        margin-bottom: 32px;
        margin-left: 16px;
        margin-right: 16px;
    }

    .sale-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }

    .sale-header h2 {
        font-size: 22px;
    }

    .countdown-timer {
        font-size: 20px;
        gap: 8px;
    }

    .countdown-unit {
        padding: 6px 12px;
        min-width: 56px;
        border-radius: 8px;
    }

    .countdown-unit span:first-child {
        font-size: 20px;
    }

    .countdown-unit span:last-child {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .flash-sale {
        padding: 16px 12px;
        border-radius: 16px;
        margin: 0 8px 24px;
    }

    .sale-header h2 {
        font-size: 18px;
    }

    .countdown-timer {
        font-size: 16px;
        gap: 6px;
    }

    .countdown-unit {
        padding: 4px 8px;
        min-width: 44px;
    }

    .countdown-unit span:first-child {
        font-size: 16px;
    }
}

/* ========== 26. NEWSLETTER SECTION - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .newsletter-section {
        padding: 32px 20px;
        border-radius: 20px;
        margin: 0 16px 32px;
    }

    .newsletter-section h2 {
        font-size: 24px;
    }

    .newsletter-section p {
        font-size: 14px;
        padding: 0 10px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }

    .newsletter-form input {
        padding: 14px 18px;
        font-size: 16px !important;
        min-height: 50px;
        border-radius: 50px;
    }

    .newsletter-form button {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 50px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 24px 16px;
        border-radius: 16px;
        margin: 0 8px 24px;
    }

    .newsletter-section h2 {
        font-size: 20px;
    }

    .newsletter-section p {
        font-size: 13px;
    }

    .newsletter-form {
        padding: 0 4px;
    }

    .newsletter-form input {
        padding: 12px 16px;
        min-height: 44px;
        font-size: 16px !important;
    }

    .newsletter-form button {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* ========== 27. RECENTLY VIEWED - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .recently-viewed-section {
        margin: 32px 16px;
        padding: 16px 0;
        border-radius: 16px;
    }

    .recently-viewed-grid {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .recently-viewed-section {
        margin: 24px 8px;
        padding: 12px 0;
    }

    .recently-viewed-grid {
        padding: 0 8px;
    }
}

/* ========== 28. SEARCH RESULTS - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .search-header {
        padding: 0 16px;
        margin: 20px auto 16px;
    }

    .search-header h1 {
        font-size: 24px;
    }

    .search-header p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-header {
        padding: 0 12px;
        margin: 16px auto 12px;
    }

    .search-header h1 {
        font-size: 20px;
    }
}

/* ========== 29. PAYMENT SUCCESS - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .payment-success-container {
        margin: 40px 16px;
        padding: 32px 24px;
        border-radius: 20px;
    }

    .success-icon {
        font-size: 60px;
    }

    .payment-success-container h1 {
        font-size: 24px;
    }

    .payment-success-container p {
        font-size: 15px;
    }

    .order-number {
        font-size: 16px;
        padding: 12px;
    }

    .btn-shop,
    .btn-track {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
        margin: 8px 0;
    }

    .small-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .payment-success-container {
        margin: 24px 12px;
        padding: 24px 16px;
        border-radius: 16px;
    }

    .success-icon {
        font-size: 48px;
    }

    .payment-success-container h1 {
        font-size: 20px;
    }

    .payment-success-container p {
        font-size: 14px;
    }

    .order-number {
        font-size: 14px;
        padding: 10px;
    }

    .btn-shop,
    .btn-track {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* ========== 30. EXCHANGE PAGES - POLISHED MOBILE ========== */

@media (max-width: 768px) {
    .container.exchange-container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .card {
        border-radius: 16px;
        padding: 16px;
    }

    .card-header h2 {
        font-size: 18px;
    }

    .card-body {
        padding: 16px;
    }

    .credit-summary {
        padding: 12px;
        border-radius: 12px;
    }

    .credit-amount {
        font-size: 20px;
    }

    .replacement-item {
        padding: 12px;
        border-radius: 12px;
        gap: 10px;
    }

    .replacement-item .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .replacement-item .form-group {
        width: 100%;
    }

    .replacement-item select,
    .replacement-item input {
        font-size: 16px !important;
        padding: 12px 14px;
        min-height: 44px;
        border-radius: 10px;
    }

    .credit-info {
        padding: 12px;
        border-radius: 10px;
    }

    .credit-info p {
        font-size: 14px;
        margin: 6px 0;
    }

    .final-difference {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .container.exchange-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .card {
        padding: 12px;
        border-radius: 14px;
    }

    .card-header h2 {
        font-size: 16px;
    }

    .card-body {
        padding: 12px;
    }

    .credit-amount {
        font-size: 18px;
    }

    .replacement-item {
        padding: 10px;
    }

    .replacement-item select,
    .replacement-item input {
        font-size: 16px !important;
        padding: 10px 12px;
        min-height: 40px;
    }

    .credit-info p {
        font-size: 13px;
    }

    .final-difference {
        font-size: 15px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
}


/* ============================================
   STATIC PAGES STYLES
   Version: 1.0
   ============================================ */

/* ========== STATIC PAGE CONTAINER ========== */
.static-page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.static-page-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* ========== STATIC PAGE HEADER ========== */
.static-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.static-page-icon-wrapper {
    display: inline-block;
    background: rgba(230, 57, 70, 0.1);
    padding: 16px 24px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.static-page-icon-wrapper i {
    font-size: 28px;
    color: var(--primary);
}

.static-page-title {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.static-page-divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.static-page-subtitle {
    color: var(--gray-600);
    margin-top: 16px;
    font-size: 18px;
}

/* ========== STATIC PAGE CONTENT ========== */
.static-content {
    line-height: 1.8;
    color: var(--gray-700);
}

.static-content h3 {
    color: var(--secondary);
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.static-content h3 i {
    color: var(--primary);
}

.static-content p {
    margin-bottom: 16px;
}

/* ========== FEATURE GRID ========== */
.static-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.static-feature-item {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.static-feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.static-feature-item i {
    font-size: 24px;
}

.static-feature-item i.text-success {
    color: var(--success);
}

.static-feature-item i.text-primary {
    color: var(--primary);
}

.static-feature-item i.text-warning {
    color: var(--warning);
}

.static-feature-item i.text-info {
    color: var(--info);
}

.static-feature-item h4 {
    margin: 10px 0 5px;
    color: var(--secondary);
}

.static-feature-item p {
    font-size: 14px;
    margin: 0;
    color: var(--gray-600);
}

/* ========== CONTACT INFO BOX ========== */
.static-contact-box {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 16px;
    color: white;
}

.static-contact-box h4 {
    color: white;
    margin-top: 0;
}

.static-contact-box h4 i {
    color: var(--primary);
}

.static-contact-box p {
    margin: 0;
    opacity: 0.9;
}

.static-contact-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.static-contact-details span i {
    color: var(--primary);
}

/* ========== CTA BUTTON ========== */
.static-cta {
    margin-top: 30px;
    text-align: center;
}

.static-cta .btn-primary {
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ========== FAQ SECTION ========== */
.static-faq-item {
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.static-faq-item:hover {
    border-color: var(--primary);
}

.static-faq-question {
    padding: 16px 20px;
    background: var(--gray-100);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--secondary);
    transition: background 0.3s ease;
}

.static-faq-question:hover {
    background: var(--gray-200);
}

.static-faq-question .fa-chevron-down {
    transition: transform 0.3s ease;
    color: var(--gray-600);
}

.static-faq-question.active .fa-chevron-down {
    transform: rotate(180deg);
}

.static-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.static-faq-answer.open {
    padding: 16px 20px;
    max-height: 500px;
}

.static-faq-answer p {
    margin: 0;
    color: var(--gray-700);
}

/* ========== CONTACT FORM ========== */
.static-contact-form {
    margin-top: 24px;
}

.static-contact-form .form-group {
    margin-bottom: 20px;
}

.static-contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.static-contact-form input,
.static-contact-form textarea,
.static-contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-400);
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.static-contact-form input:focus,
.static-contact-form textarea:focus,
.static-contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.static-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.static-contact-form .btn-submit {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.static-contact-form .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* ========== POLICY CONTENT ========== */
.static-policy-content ul,
.static-policy-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.static-policy-content ul li,
.static-policy-content ol li {
    margin-bottom: 8px;
}

.static-policy-content .policy-date {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* ========== RESPONSIVE - STATIC PAGES ========== */
@media (max-width: 768px) {
    .static-page-container {
        margin: 20px auto;
        padding: 0 16px;
    }

    .static-page-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .static-page-title {
        font-size: 28px;
    }

    .static-page-subtitle {
        font-size: 15px;
    }

    .static-feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .static-contact-details {
        flex-direction: column;
        gap: 10px;
    }

    .static-cta .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .static-faq-question {
        font-size: 14px;
        padding: 14px 16px;
    }

    .static-faq-answer.open {
        padding: 12px 16px;
    }

    .static-contact-form .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .static-page-card {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .static-page-title {
        font-size: 22px;
    }

    .static-page-icon-wrapper {
        padding: 12px 16px;
    }

    .static-page-icon-wrapper i {
        font-size: 22px;
    }

    .static-content h3 {
        font-size: 18px;
    }

    .static-contact-form input,
    .static-contact-form textarea,
    .static-contact-form select {
        font-size: 16px !important;
        padding: 10px 14px;
    }
}


/* ========== NEWSLETTER SECTION STYLES ========== */

.newsletter-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 30px;
    padding: 48px;
    text-align: center;
    margin-bottom: 48px;
    color: white;
}

.newsletter-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: white;
}

.newsletter-section p {
    opacity: 0.85;
    margin-bottom: 24px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    min-height: 50px;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3);
}

.newsletter-form button {
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-form button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.3);
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: rgba(0, 184, 148, 0.2);
    color: #00B894;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.newsletter-message.error {
    display: block;
    background: rgba(230, 57, 70, 0.2);
    color: #E63946;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

/* Newsletter mobile responsive */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 32px 20px;
        border-radius: 20px;
        margin: 0 16px 32px;
    }

    .newsletter-section h2 {
        font-size: 24px;
    }

    .newsletter-section p {
        font-size: 14px;
        padding: 0 10px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }

    .newsletter-form input {
        padding: 14px 18px;
        font-size: 16px !important;
        min-height: 50px;
        border-radius: 50px;
    }

    .newsletter-form button {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 50px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 24px 16px;
        border-radius: 16px;
        margin: 0 8px 24px;
    }

    .newsletter-section h2 {
        font-size: 20px;
    }

    .newsletter-section p {
        font-size: 13px;
    }

    .newsletter-form {
        padding: 0 4px;
    }

    .newsletter-form input {
        padding: 12px 16px;
        min-height: 44px;
        font-size: 16px !important;
    }

    .newsletter-form button {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    .newsletter-message {
        font-size: 13px;
        padding: 10px 14px;
    }
}


/* ============================================================
   REVIEWS MODULE ENHANCEMENTS – PHASE 1
   ============================================================ */

/* ----- Star Rating Picker ----- */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    margin: 12px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 32px;
    color: #DEE2E6;
    cursor: pointer;
    transition: color 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #FDCB6E;
}

/* ----- Review Images Preview ----- */
.review-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.review-image-preview .preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    position: relative;
}

.review-image-preview .preview-thumb .remove-img {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #E63946;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- Rating Distribution Bars ----- */
.rating-distribution {
    margin: 20px 0;
}

.distribution-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    cursor: pointer;
}

.distribution-row .star-label {
    min-width: 44px;
    font-weight: 500;
    font-size: 14px;
    color: #1A1A2E;
}

.distribution-row .bar-container {
    flex: 1;
    height: 12px;
    background: #F1F3F5;
    border-radius: 6px;
    overflow: hidden;
}

.distribution-row .bar-fill {
    height: 100%;
    background: #FDCB6E;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.distribution-row .bar-count {
    min-width: 36px;
    font-size: 13px;
    color: #636E72;
    text-align: right;
}

/* ----- Review Filter Pills ----- */
.review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 16px 0;
}

.review-filters .sort-select {
    padding: 8px 14px;
    border: 2px solid #E0E0E0;
    border-radius: 30px;
    background: white;
    font-size: 14px;
    min-height: 44px;
}

.review-filters .filter-pill {
    padding: 6px 16px;
    border-radius: 30px;
    border: 2px solid #E0E0E0;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.review-filters .filter-pill:hover {
    border-color: #E63946;
}

.review-filters .filter-pill.active {
    background: #E63946;
    color: white;
    border-color: #E63946;
}

/* ----- Review Images in List ----- */
.review-images-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.review-images-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #E0E0E0;
    cursor: pointer;
}

/* ----- Mobile Responsiveness ----- */
@media (max-width: 768px) {
    .review-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .review-filters .sort-select {
        width: 100%;
    }

    .review-filters .filter-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .review-filters .filter-pill {
        flex: 1;
        justify-content: center;
        min-width: 40px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .distribution-row {
        gap: 8px;
    }

    .distribution-row .star-label {
        min-width: 36px;
        font-size: 13px;
    }

    .star-rating label {
        font-size: 28px;
        min-width: 38px;
        min-height: 38px;
    }

    .review-image-preview .preview-thumb {
        width: 64px;
        height: 64px;
    }

    .review-images-list img {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .star-rating label {
        font-size: 24px;
        min-width: 34px;
        min-height: 34px;
    }

    .review-filters .filter-pill {
        font-size: 11px;
        padding: 4px 8px;
        min-height: 38px;
    }

    .review-images-list img {
        width: 48px;
        height: 48px;
    }
}


/* ============================================================
   PHASE 2: RATING DISTRIBUTION & FILTERS
   ============================================================ */

/* ----- Rating Distribution Bars ----- */
.rating-distribution {
    margin: 16px 0;
    padding: 12px 0;
}

.distribution-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
    min-height: 32px;
}

.distribution-row:hover {
    background: rgba(230, 57, 70, 0.05);
}

.distribution-row .star-label {
    min-width: 42px;
    font-weight: 500;
    font-size: 13px;
    color: #1A1A2E;
    text-align: right;
    flex-shrink: 0;
}

.distribution-row .bar-container {
    flex: 1;
    height: 10px;
    background: #F1F3F5;
    border-radius: 5px;
    overflow: hidden;
    min-width: 40px;
}

.distribution-row .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FDCB6E, #F59E0B);
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.distribution-row .bar-count {
    min-width: 32px;
    font-size: 12px;
    color: #6C757D;
    text-align: left;
    flex-shrink: 0;
}

/* Active filter row highlight */
.distribution-row.active .star-label {
    color: #E63946;
    font-weight: 700;
}

.distribution-row.active .bar-fill {
    background: linear-gradient(90deg, #E63946, #C1121F);
}

/* ----- Review Filters ----- */
.review-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 20px;
    padding: 12px 0;
    border-top: 1px solid #E9ECEF;
    border-bottom: 1px solid #E9ECEF;
}

.review-filters .sort-select {
    padding: 8px 14px;
    border: 2px solid #E0E0E0;
    border-radius: 30px;
    background: white;
    font-size: 13px;
    min-height: 40px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 140px;
}

.review-filters .sort-select:focus {
    outline: none;
    border-color: #E63946;
}

.review-filters .filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.review-filters .filter-pill {
    padding: 6px 14px;
    border-radius: 30px;
    border: 2px solid #E0E0E0;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1.2;
}

.review-filters .filter-pill:hover {
    border-color: #E63946;
    background: #FFF5F5;
}

.review-filters .filter-pill.active {
    background: #E63946;
    color: white;
    border-color: #E63946;
}

.review-filters .filter-pill .pill-count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 4px;
    font-weight: 400;
}

.review-filters .filter-pill.active .pill-count {
    opacity: 0.9;
}

/* ----- Review List with Animation ----- */
.review-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.review-card.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.review-card.fade-in {
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Empty State for Filters ----- */
.review-empty-state {
    text-align: center;
    padding: 30px 16px;
    color: #6C757D;
}

.review-empty-state i {
    font-size: 32px;
    color: #DEE2E6;
    display: block;
    margin-bottom: 12px;
}

.review-empty-state p {
    margin: 0;
    font-size: 15px;
}

.review-empty-state .clear-filter-link {
    display: inline-block;
    margin-top: 10px;
    color: #E63946;
    text-decoration: none;
    font-weight: 500;
}

.review-empty-state .clear-filter-link:hover {
    text-decoration: underline;
}

/* ============================================================
   PHASE 2: MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 768px) {
    .review-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 0;
    }

    .review-filters .sort-select {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
    }

    .review-filters .filter-pills {
        justify-content: center;
        gap: 6px;
    }

    .review-filters .filter-pill {
        flex: 1;
        min-width: 44px;
        padding: 6px 10px;
        font-size: 12px;
        min-height: 40px;
        text-align: center;
    }

    .distribution-row {
        gap: 8px;
        padding: 6px 0;
        min-height: 38px;
    }

    .distribution-row .star-label {
        min-width: 36px;
        font-size: 12px;
    }

    .distribution-row .bar-container {
        height: 8px;
    }

    .distribution-row .bar-count {
        min-width: 28px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .review-filters .filter-pill {
        font-size: 11px;
        padding: 4px 8px;
        min-height: 36px;
    }

    .distribution-row .star-label {
        min-width: 32px;
        font-size: 11px;
    }

    .distribution-row .bar-count {
        font-size: 10px;
        min-width: 24px;
    }
}

/* ========== FLASH SALE STYLES ========== */

.flash-sale {
    background: linear-gradient(135deg, #E63946 0%, #C1121F 100%);
    border-radius: 30px;
    padding: 32px;
    margin-bottom: 48px;
    color: white;
}

.flash-sale .sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.flash-sale .sale-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.flash-sale .countdown-timer {
    display: flex;
    gap: 12px;
    font-family: monospace;
    font-size: 28px;
    font-weight: 700;
}

.flash-sale .countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.flash-sale .countdown-unit span:first-child {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.flash-sale .countdown-unit span:last-child {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
}

.flash-sale .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.flash-sale .product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flash-sale .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flash-sale .product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #F8F9FA;
}

.flash-sale .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.flash-sale .product-card:hover .product-image img {
    transform: scale(1.05);
}

.flash-sale .product-info {
    padding: 16px;
}

.flash-sale .product-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-sale .product-price {
    font-weight: 700;
    color: #E63946;
    font-size: 18px;
}

.flash-sale .original-price {
    font-size: 14px;
    color: #ADB5BD;
    text-decoration: line-through;
    font-weight: normal;
    margin-right: 8px;
}

/* Flash Sale Badge */
.flash-sale-badge {
    background: #E63946 !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.flash-sale-badge i {
    margin-right: 4px;
}

/* Sale Ended Section */
.flash-sale-ended {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 48px;
    text-align: center;
    border: 2px dashed #DEE2E6;
}

.sale-ended-content {
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .flash-sale {
        padding: 20px;
        border-radius: 20px;
        margin-left: 16px;
        margin-right: 16px;
    }

    .flash-sale .sale-header {
        flex-direction: column;
        text-align: center;
    }

    .flash-sale .countdown-timer {
        font-size: 20px;
        gap: 8px;
    }

    .flash-sale .countdown-unit {
        padding: 4px 12px;
        min-width: 56px;
    }

    .flash-sale .countdown-unit span:first-child {
        font-size: 20px;
    }

    .flash-sale .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .flash-sale .product-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .flash-sale {
        padding: 16px;
        margin-left: 8px;
        margin-right: 8px;
    }

    .flash-sale .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .flash-sale .product-image {
        height: 130px;
    }

    .flash-sale .product-title {
        font-size: 13px;
    }

    .flash-sale .product-price {
        font-size: 15px;
    }
}


/* ============================================================
   RUNNER MODULE – PHASE 1 & 2
   ============================================================ */

/* ----- Runner Dashboard ----- */
.runner-dashboard-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.runner-welcome-banner {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.runner-welcome-banner h1 {
    color: white;
    margin: 0;
}

.runner-welcome-banner p {
    opacity: 0.8;
    margin: 5px 0 0;
}

.runner-welcome-banner .referral-code {
    text-align: right;
}

.runner-welcome-banner .referral-code .label {
    font-size: 13px;
    opacity: 0.7;
    display: block;
}

.runner-welcome-banner .referral-code .code {
    font-size: 22px;
    font-weight: 700;
    color: #FDCB6E;
    letter-spacing: 1px;
}

/* ----- Runner Stats Grid ----- */
.runner-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.runner-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.2s ease;
}

.runner-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.runner-stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.runner-stat-card .stat-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 4px;
}

.runner-stat-card .stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

/* Status badges */
.status-badge-large {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-verified {
    background: #D4EDDA;
    color: #155724;
}

.status-pending {
    background: #FFF3CD;
    color: #856404;
}

/* ----- Quick Actions ----- */
.runner-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* ----- Benefit Grid ----- */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.benefit-item {
    background: #F8F9FA;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.benefit-item i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.benefit-item h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.benefit-item p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
}

/* ----- Order Stats Summary ----- */
.order-stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background: #F8F9FA;
    padding: 15px 20px;
    border-radius: 12px;
}

.order-stats-summary span {
    font-size: 14px;
}

/* ----- Status Filter Pills ----- */
.status-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.status-filter-pill {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    background: #6C757D;
    color: white;
    transition: all 0.2s ease;
}

.status-filter-pill:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.status-filter-pill.active {
    background: #E63946;
    color: white;
}

/* ----- Referral Code Display ----- */
.referral-code-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.referral-share-banner {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.referral-share-banner h3 {
    color: white;
    margin-bottom: 10px;
}

.referral-share-banner p {
    opacity: 0.8;
    margin-bottom: 15px;
}

.referral-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ----- Runner Registration Page ----- */
.runner-registration-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.runner-registration-card {
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    background: white;
}

.runner-registration-header {
    text-align: center;
    margin-bottom: 30px;
}

.runner-registration-header .icon-wrapper {
    display: inline-block;
    background: rgba(230, 57, 70, 0.1);
    padding: 20px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.runner-registration-header .icon-wrapper i {
    font-size: 48px;
    color: #E63946;
}

.runner-registration-header h1 {
    margin: 0;
    color: var(--secondary);
}

.runner-registration-header p {
    color: var(--gray-600);
}

.runner-benefits-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 12px;
}

.runner-benefits-summary .benefit {
    text-align: center;
}

.runner-benefits-summary .benefit i {
    font-size: 24px;
    color: #E63946;
    display: block;
    margin-bottom: 5px;
}

.runner-benefits-summary .benefit strong {
    display: block;
    font-size: 14px;
}

.runner-benefits-summary .benefit span {
    font-size: 12px;
    color: #636E72;
}

.runner-info-box {
    background: #FFF3CD;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #FDCB6E;
}

.runner-info-box p {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

.runner-info-box a {
    color: #856404;
}

/* ============================================================
   RUNNER MODULE – MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 768px) {
    .runner-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .runner-stat-card {
        padding: 16px;
    }

    .runner-stat-card .stat-number {
        font-size: 22px;
    }

    .runner-welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .runner-welcome-banner .referral-code {
        text-align: left;
        width: 100%;
    }

    .runner-welcome-banner .referral-code .code {
        font-size: 18px;
    }

    .benefit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .benefit-item {
        padding: 12px;
    }

    .benefit-item i {
        font-size: 22px;
    }

    .runner-registration-card {
        padding: 24px 20px;
    }

    .runner-registration-header .icon-wrapper i {
        font-size: 36px;
    }

    .runner-registration-header h1 {
        font-size: 24px;
    }

    .runner-benefits-summary {
        grid-template-columns: 1fr 1fr;
        padding: 15px;
    }

    .order-stats-summary {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }

    .order-stats-summary span {
        font-size: 13px;
    }

    .status-filter-pills {
        gap: 6px;
    }

    .status-filter-pill {
        font-size: 12px;
        padding: 4px 12px;
    }

    .runner-quick-actions {
        gap: 10px;
    }

    .runner-quick-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .runner-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .runner-stat-card {
        padding: 12px;
    }

    .runner-stat-card .stat-number {
        font-size: 18px;
    }

    .runner-stat-card .stat-label {
        font-size: 11px;
    }

    .runner-welcome-banner {
        padding: 16px;
    }

    .runner-welcome-banner h1 {
        font-size: 20px;
    }

    .runner-welcome-banner .referral-code .code {
        font-size: 16px;
    }

    .benefit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .benefit-item {
        padding: 10px;
    }

    .benefit-item h4 {
        font-size: 14px;
    }

    .benefit-item p {
        font-size: 12px;
    }

    .runner-registration-card {
        padding: 16px 14px;
    }

    .runner-registration-header h1 {
        font-size: 20px;
    }

    .runner-benefits-summary {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .runner-quick-actions .btn {
        font-size: 13px;
        padding: 10px;
        min-width: 100%;
    }

    .status-badge-large {
        font-size: 11px;
        padding: 4px 12px;
    }

    .order-stats-summary {
        font-size: 12px;
        padding: 10px 14px;
    }

    .referral-share-banner {
        padding: 20px;
    }

    .referral-share-row .btn {
        width: 100%;
        justify-content: center;
    }

    .referral-code-display {
        font-size: 18px;
        padding: 10px 16px;
        width: 100%;
        text-align: center;
    }

    .runner-info-box {
        padding: 12px;
        font-size: 13px;
    }
}


/* ============================================================
   RUNNER PROMOTION – Registration Page CTA
   ============================================================ */

.runner-promotion-cta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-300);
}

.runner-promotion-cta .runner-promotion-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-600);
    font-size: 13px;
    margin-bottom: 8px;
}

.runner-promotion-cta .runner-promotion-divider::before,
.runner-promotion-cta .runner-promotion-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.runner-promotion-cta .runner-promotion-divider span {
    white-space: nowrap;
    padding: 0 8px;
}

.runner-promotion-cta p {
    margin: 8px 0 4px;
    font-size: 14px;
    color: var(--gray-700);
}

.runner-promotion-cta a {
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================
   RUNNER BENEFITS SUMMARY
   ============================================================ */

.runner-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 12px;
}

.runner-benefits-grid .benefit-item {
    text-align: center;
}

.runner-benefits-grid .benefit-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.runner-benefits-grid .benefit-item strong {
    font-size: 13px;
    display: block;
}

.runner-benefits-grid .benefit-item span {
    font-size: 11px;
    color: var(--gray-600);
}

/* ============================================================
   RUNNER REGISTRATION – Logged In Info Alert
   ============================================================ */

.runner-logged-in-alert {
    margin-bottom: 16px;
}

/* ============================================================
   RUNNER REGISTRATION – Login/Register Prompt
   ============================================================ */

.runner-login-prompt {
    text-align: center;
    padding: 20px 10px;
}

.runner-login-prompt .lock-icon {
    font-size: 56px;
    color: #6C757D;
    display: block;
    margin-bottom: 16px;
}

.runner-login-prompt h3 {
    color: var(--secondary);
}

.runner-login-prompt p {
    color: var(--gray-600);
    max-width: 400px;
    margin: 0 auto 20px;
    font-size: 15px;
    line-height: 1.6;
}

.runner-login-prompt .action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.runner-login-prompt .action-buttons .btn-login {
    max-width: 180px;
    padding: 12px 24px;
    font-size: 15px;
}

.runner-login-prompt .action-buttons .btn-register {
    max-width: 220px;
    padding: 12px 24px;
    font-size: 15px;
    background: #6C757D;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.runner-login-prompt .action-buttons .btn-register:hover {
    background: #5A6268;
}

.runner-login-prompt .login-link {
    margin-top: 20px;
    font-size: 13px;
    color: #6C757D;
}

.runner-login-prompt .login-link a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE – Runner Registration
   ============================================================ */

@media (max-width: 480px) {
    .runner-benefits-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        padding: 12px;
    }

    .runner-benefits-grid .benefit-item i {
        font-size: 16px;
    }

    .runner-benefits-grid .benefit-item strong {
        font-size: 12px;
    }

    .runner-benefits-grid .benefit-item span {
        font-size: 10px;
    }

    .runner-login-prompt .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .runner-login-prompt .action-buttons .btn-login,
    .runner-login-prompt .action-buttons .btn-register {
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }
}


/* ========== PROMOTION SECTION ========== */
.promotion-section {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #E9ECEF;
    margin-bottom: 15px;
}

.promotion-section label {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A2E;
    display: block;
    margin-bottom: 6px;
}

.promotion-input-group {
    display: flex;
    gap: 8px;
}

.promotion-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.promotion-input-group input:focus {
    border-color: #E63946;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.btn-apply-promotion {
    background: #E63946;
    color: white;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-apply-promotion:hover {
    background: #C1121F;
}

.btn-apply-promotion:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.applied-promotion-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #D4EDDA;
    border-radius: 8px;
    border-left: 4px solid #00B894;
    flex-wrap: wrap;
    gap: 8px;
}

.applied-promotion-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.applied-promotion-info i {
    color: #00B894;
}

.applied-promotion-info strong {
    font-size: 14px;
    color: #155724;
}

#appliedPromoCode {
    display: inline-block;
    background: #155724;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.btn-remove-promotion {
    background: none;
    border: none;
    color: #721C24;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-remove-promotion:hover {
    background: rgba(114, 28, 36, 0.1);
}

.applied-promotion-discount {
    margin-top: 8px;
    font-size: 14px;
    color: #00B894;
    font-weight: 600;
}

.promotion-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.promotion-message.promotion-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.promotion-message.promotion-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.promotion-message.promotion-info {
    background: #CCE5FF;
    color: #004085;
    border: 1px solid #B8DAFF;
}

.promotion-remaining {
    margin-top: 4px;
    font-size: 12px;
    color: #856404;
}

.shipping-hint {
    font-size: 12px;
    color: #999;
    display: block;
}

@media (max-width: 480px) {
    .promotion-input-group {
        flex-direction: column;
    }

    .btn-apply-promotion {
        width: 100%;
        justify-content: center;
    }

    .applied-promotion-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .btn-remove-promotion {
        align-self: center;
    }
}

/* ===== CHECKOUT DISCOUNT STYLES ===== */
.discount-row {
    color: #00B894;
    font-weight: 500;
}

.discount-row .discount-amount {
    color: #00B894;
    font-weight: 600;
}

.discount-badge {
    display: inline-block;
    background: #E9ECEF;
    color: #1A1A2E;
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.subtotal-after-discount {
    border-top: 1px dashed #E0E0E0;
    padding-top: 10px;
    margin-top: 5px;
    font-weight: 600;
}

.savings-message {
    margin-top: 15px;
    padding: 10px 14px;
    background: #D4EDDA;
    border-radius: 8px;
    border-left: 4px solid #00B894;
    font-size: 14px;
    color: #155724;
}

.savings-message i {
    margin-right: 8px;
}

@media (max-width: 480px) {
    .discount-badge {
        font-size: 10px;
        padding: 1px 6px;
    }

    .savings-message {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* ========== CHECKOUT BUTTON REORDER ========== */
@media (max-width: 768px) {
    .checkout-grid {
        display: flex;
        flex-direction: column;
    }

    .checkout-form {
        order: 2;
    }

    .order-summary {
        order: 1;
        margin-bottom: 20px;
    }

    .btn-place-order-mobile {
        display: block !important;
        width: 100%;
    }

    .btn-place-order-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .btn-place-order-mobile {
        display: none !important;
    }

    .btn-place-order-desktop {
        display: block !important;
    }
}

.btn-place-order-mobile,
.btn-place-order-desktop {
    margin-top: 20px;
}

/* ========== CHECKOUT BUTTON REORDER ========== */
@media (max-width: 768px) {
    .checkout-grid {
        display: flex;
        flex-direction: column;
    }

    .checkout-form {
        order: 1;
    }

    .order-summary {
        order: 2;
        margin-top: 20px;
    }

    .btn-place-order-mobile {
        display: block !important;
        width: 100%;
    }

    .btn-place-order-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .btn-place-order-mobile {
        display: none !important;
    }

    .btn-place-order-desktop {
        display: block !important;
    }
}

.btn-place-order-mobile {
    margin-top: 20px;
}

/* ========== TOTAL HIDDEN UNTIL SHIPPING SELECTED ========== */
.summary-total-hidden {
    display: none;
}

.summary-total-visible {
    display: flex;
}

/* ========== PROMOTION STATUS ========== */
.promotion-status {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.promotion-status.promotion-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.promotion-status.promotion-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.promotion-status.promotion-info {
    background: #CCE5FF;
    color: #004085;
    border: 1px solid #B8DAFF;
}

/* ============================================================ */
/* BULK DISCOUNT STYLES                                         */
/* ============================================================ */

.bulk-discount-row {
    background: #FFFBEB;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 4px 0;
    border-left: 3px solid #F59E0B;
}

.bulk-discount-row span:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bulk-eligible-hint {
    font-size: 11px;
    color: #999;
    font-weight: normal;
    margin-top: 2px;
}

.savings-breakdown {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.savings-breakdown span {
    display: inline-block;
}

.subtotal-after-discount {
    border-top: 1px dashed #DEE2E6;
    padding-top: 8px;
    margin-top: 4px;
}

.discount-row {
    font-size: 14px;
}

.discount-amount {
    color: #00B894;
    font-weight: 600;
}

.discount-badge {
    display: inline-block;
    background: #E9ECEF;
    color: #1A1A2E;
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .bulk-discount-row {
        padding: 6px 8px;
    }

    .bulk-eligible-hint {
        font-size: 10px;
    }

    .savings-breakdown {
        font-size: 11px;
    }

    .savings-breakdown span {
        display: block;
        line-height: 1.6;
    }
}


/* ============================================================ */
/* RUNNER PROFILE STYLES                                        */
/* ============================================================ */

.runner-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #E63946;
}

.profile-photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .runner-profile-photo {
        width: 100px;
        height: 100px;
    }
}


/* ================================================================
   RUNNER DASHBOARD – CLIENT WIDGET
   ================================================================ */

.runner-recent-clients {
    margin-top: 30px;
}

.runner-recent-clients .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.runner-client-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.runner-client-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-300);
}

.runner-client-item:last-child {
    border-bottom: none;
}

.runner-client-name {
    font-weight: 500;
}

.runner-client-meta {
    color: var(--gray-600);
    font-size: 13px;
}

.runner-client-meta .order-count {
    font-weight: 600;
}

.runner-client-empty {
    padding: 16px;
    color: var(--gray-600);
    margin: 0;
}

.runner-client-empty a {
    color: var(--primary);
    text-decoration: underline;
}

/* ================================================================
   RUNNER CLIENTS PAGE
   ================================================================ */

.runner-clients-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.runner-clients-actions .btn-primary,
.runner-clients-actions .btn-secondary {
    padding: 8px 20px;
    font-size: 14px;
}

.runner-stat-card-client {
    border-bottom: 3px solid #0984E3;
}

.runner-stat-card-client .stat-icon i {
    color: #0984E3;
}

.btn-client-action {
    background: #0984E3;
    color: white;
}

.btn-client-action:hover {
    background: #006bb3;
    color: white;
}

/* Client table adjustments for mobile */
@media (max-width: 768px) {
    .runner-client-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .runner-client-meta {
        font-size: 12px;
    }

    .runner-client-actions {
        width: 100%;
        display: flex;
        gap: 8px;
        margin-top: 6px;
    }
}


/* ================================================================
   RUNNER DASHBOARD – STAT CARD BORDERS & ICON COLOURS
   ================================================================ */

.stat-card-border-red {
    border-bottom: 3px solid #E63946;
}

.stat-card-border-green {
    border-bottom: 3px solid #00B894;
}

.stat-card-border-yellow {
    border-bottom: 3px solid #FDCB6E;
}

.stat-card-border-blue {
    border-bottom: 3px solid #0984E3;
}

.icon-red {
    color: #E63946;
}

.icon-green {
    color: #00B894;
}

.icon-yellow {
    color: #FDCB6E;
}

.icon-blue {
    color: #0984E3;
}

/* ================================================================
   RUNNER QUICK ACTION BUTTONS
   ================================================================ */

.btn-quick-action-dark {
    background: #2D3436;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-quick-action-dark:hover {
    background: #1e2224;
    color: white;
}

.btn-quick-action-blue {
    background: #0984E3;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-quick-action-blue:hover {
    background: #006bb3;
    color: white;
}

.btn-quick-action-primary {
    background: #E63946;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-quick-action-primary:hover {
    background: #c62835;
    color: white;
}

/* ================================================================
   RECENT CLIENTS WIDGET
   ================================================================ */

.runner-recent-clients {
    margin-top: 30px;
}

.runner-recent-clients .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.runner-client-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.runner-client-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-300);
}

.runner-client-item:last-child {
    border-bottom: none;
}

.runner-client-name {
    font-weight: 500;
}

.runner-client-meta {
    color: var(--gray-600);
    font-size: 13px;
}

.runner-client-meta .order-count {
    font-weight: 600;
}

.runner-client-empty {
    padding: 16px;
    color: var(--gray-600);
    margin: 0;
}

.runner-client-empty a {
    color: var(--primary);
    text-decoration: underline;
}

/* ================================================================
   SMALL UTILITY
   ================================================================ */

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}


/* ================================================================
   FILE UPLOAD (Runner Registration)
   ================================================================ */

.file-upload-group {
    margin-bottom: 20px;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    transition: border-color 0.3s;
}

.file-upload-wrapper:hover {
    border-color: #E63946;
}

.file-upload-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #E63946;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.file-upload-label:hover {
    background: #c62835;
}

.file-upload-filename {
    color: #636E72;
    font-size: 13px;
    word-break: break-all;
}

.file-preview-container {
    width: 100%;
    margin-top: 10px;
}

.file-preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    object-fit: cover;
}

.file-preview-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #E63946;
    font-size: 14px;
    font-weight: 600;
}

.file-preview-pdf i {
    font-size: 28px;
}

@media (max-width: 768px) {
    .file-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .file-upload-label {
        justify-content: center;
    }

    .file-upload-filename {
        text-align: center;
        font-size: 12px;
    }

    .file-preview-image {
        max-width: 100%;
        max-height: 150px;
    }
}


/* ================================================================
   FILE UPLOAD (Runner Registration) - FIXED STACKING
   ================================================================ */

.file-upload-group {
    margin-bottom: 20px;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    transition: border-color 0.3s;
    min-height: 52px;
}

.file-upload-wrapper:hover {
    border-color: #E63946;
}

.file-upload-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #E63946;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.file-upload-label:hover {
    background: #c62835;
}

.file-upload-filename {
    color: #636E72;
    font-size: 13px;
    word-break: break-all;
    flex: 1;
    min-width: 60px;
}

/* ----- FIX: Preview container clears floats and prevents overlap ----- */
.file-preview-container {
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    display: block;
    clear: both;
    overflow: hidden;
    min-height: 40px;
}

.file-preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    object-fit: cover;
    display: block; /* Prevents extra space below the image */
}

.file-preview-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #E63946;
    font-size: 14px;
    font-weight: 600;
}

.file-preview-pdf i {
    font-size: 28px;
}

@media (max-width: 768px) {
    .file-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .file-upload-label {
        justify-content: center;
    }

    .file-upload-filename {
        text-align: center;
        font-size: 12px;
        word-break: break-all;
    }

    .file-preview-image {
        max-width: 100%;
        max-height: 150px;
    }
}

/* ================================================================
   RUNNER PROFILE PAGE
   ================================================================ */

.profile-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

.profile-photo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.profile-photo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #E63946;
    background: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.profile-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-photo-actions .btn-secondary {
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    cursor: pointer;
}

.profile-photo-actions .remove-photo-label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-control-static {
    background: #F8F9FA;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 0;
    border: 1px solid #E9ECEF;
    color: #2D3436;
    font-weight: 500;
}

.profile-info-box {
    background: #F8F9FA;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.profile-info-box p {
    margin: 8px 0;
}

.profile-info-box .referral-code {
    font-weight: 700;
    color: #E63946;
}

.profile-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-related-links a {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.profile-related-links .link-account {
    border: 2px solid #E63946;
    color: #E63946;
}

.profile-related-links .link-account:hover {
    background: #E63946;
    color: white;
}

.profile-related-links .link-referrals {
    border: 2px solid #FDCB6E;
    color: #856404;
}

.profile-related-links .link-referrals:hover {
    background: #FDCB6E;
    color: #2D3436;
}

.profile-related-links .link-orders {
    border: 2px solid #2A9D8F;
    color: #1E7A6F;
}

.profile-related-links .link-orders:hover {
    background: #2A9D8F;
    color: white;
}

.profile-related-links .link-clients {
    border: 2px solid #0984E3;
    color: #0984E3;
}

.profile-related-links .link-clients:hover {
    background: #0984E3;
    color: white;
}

@media (max-width: 768px) {
    .profile-related-links {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-related-links a {
        text-align: center;
    }
}

/* ================================================================
   RUNNER REGISTRATION PAGE
   ================================================================ */

.auth-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header-icon {
    display: inline-block;
    background: rgba(230, 57, 70, 0.1);
    padding: 16px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.auth-header-icon i {
    font-size: 36px;
    color: #E63946;
}

.auth-header h1 {
    font-size: 26px;
    margin: 0 0 4px;
}

.auth-header p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

/* Benefits Summary */
.benefit-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 12px;
}

.benefit-summary-item {
    text-align: center;
}

.benefit-summary-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.benefit-summary-item strong {
    font-size: 13px;
    display: block;
}

.benefit-summary-item p {
    font-size: 11px;
    color: #636E72;
    margin: 0;
}

/* Alerts */
.alert-logged-in {
    margin-bottom: 16px;
}

/* Read-only form controls */
.form-control-readonly {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Terms Box */
.terms-box {
    background: #FFF3CD;
    padding: 14px;
    border-radius: 10px;
    margin: 16px 0;
    border-left: 4px solid #FDCB6E;
}

.terms-box p {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

.terms-box a {
    color: #856404;
    text-decoration: underline;
}

.terms-checkbox {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.terms-checkbox .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.terms-checkbox .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-checkbox .checkbox-label a {
    color: #E63946;
    text-decoration: underline;
}

.terms-checkbox .checkbox-label a:hover {
    color: #c62835;
}

.terms-checkbox small {
    display: block;
    margin-top: 4px;
    color: #636E72;
    font-size: 12px;
}

/* Full width button */
.btn-auth-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* Auth actions and helper */
.auth-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0;
}

.auth-helper {
    margin-top: 20px;
    font-size: 13px;
    color: #6C757D;
}

.auth-helper a {
    color: var(--primary);
    font-weight: 600;
}

.auth-back-link {
    text-align: center;
    margin-top: 16px;
}

.auth-back-link a {
    color: var(--gray-600);
    font-size: 14px;
}

.auth-not-logged-in {
    text-align: center;
    padding: 20px 10px;
}

.auth-not-logged-in i {
    font-size: 56px;
    color: #6C757D;
    display: block;
    margin-bottom: 16px;
}

.auth-not-logged-in h3 {
    color: var(--secondary);
}

.auth-not-logged-in p {
    color: var(--gray-600);
    max-width: 400px;
    margin: 0 auto 20px;
    font-size: 15px;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .benefit-summary {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .benefit-summary-item {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .benefit-summary-icon {
        margin-bottom: 0;
        font-size: 24px;
        flex-shrink: 0;
    }

    .benefit-summary-item strong {
        font-size: 14px;
    }

    .benefit-summary-item p {
        font-size: 12px;
    }

    .auth-actions {
        flex-direction: column;
        align-items: center;
    }

    .auth-actions .btn-auth,
    .auth-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .auth-container {
        padding: 16px 12px;
    }

    .terms-checkbox .checkbox-label {
        font-size: 13px;
    }
}


/* ================================================================
   REFERRAL CODE VALIDATION
   ================================================================ */

.referral-input-wrapper {
    position: relative;
}

.referral-input-wrapper .form-control {
    padding-right: 40px;
}

.referral-feedback {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.referral-feedback.loading {
    color: #FDCB6E;
}

.referral-feedback.valid {
    color: #00B894;
}

.referral-feedback.invalid {
    color: #E63946;
}

.referral-message {
    margin-top: 6px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
}

.referral-message.valid {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.referral-message.invalid {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.referral-message .referrer-name {
    font-weight: 600;
}

.commission-rate-badge {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: 4px;
}


/* ================================================================
   RUNNER TERMS PAGE
   ================================================================ */

.runner-terms-acknowledgement {
    background: #D4EDDA;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 30px 0 10px;
    border-left: 4px solid #00B894;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.runner-terms-acknowledgement i {
    color: #00B894;
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.runner-terms-acknowledgement p {
    margin: 0;
    color: #155724;
    font-weight: 500;
    font-size: 15px;
}

.runner-terms-acknowledgement a {
    color: #155724;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .runner-terms-acknowledgement {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .runner-terms-acknowledgement i {
        font-size: 28px;
    }
}


/* ================================================================
   RUNNER INCENTIVE GRID (Dashboard & Transactions)
   ================================================================ */

.runner-incentive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 16px;
}

.incentive-item {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.incentive-item .incentive-label {
    font-size: 13px;
    color: #636E72;
    margin-bottom: 4px;
}

.incentive-item .incentive-value {
    font-size: 18px;
    font-weight: 600;
    color: #2D3436;
}

.incentive-item.total {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
}

.incentive-item.total .incentive-value {
    color: #0c5460;
}

.incentive-item.withdrawable {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.incentive-item.withdrawable .incentive-value {
    color: #155724;
}

@media (max-width: 768px) {
    .runner-incentive-grid {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
        gap: 10px;
    }

    .incentive-item .incentive-value {
        font-size: 16px;
    }
}

/* Badge colors for transaction types (on runner pages) */
.badge-discount {
    background: #e8f4fd;
    color: #0c5460;
}

.badge-bonus {
    background: #d4edda;
    color: #155724;
}

.badge-commission {
    background: #fff3cd;
    color: #856404;
}

.badge-payout {
    background: #f8d7da;
    color: #721c24;
}

.badge-adjustment {
    background: #e2e3e5;
    color: #383d41;
}


/* ============================================================
   PRODUCT CARD ENHANCEMENTS
   ============================================================ */

/* ----- Ratings on Product Cards ----- */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.product-rating .rating-stars {
    font-size: 12px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

.product-rating .rating-count {
    font-size: 12px;
    color: #6C757D;
}

/* ----- Product Actions (Wishlist, Cart, Quick View) ----- */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #1A1A2E;
    touch-action: manipulation;
}

.product-action:hover {
    background: #E63946;
    border-color: #E63946;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.product-action.wishlist-btn.active {
    background: #E63946;
    border-color: #E63946;
    color: white;
}

.product-action.wishlist-btn.active i {
    font-weight: 900;
}

.product-action.cart-btn:hover {
    background: #00B894;
    border-color: #00B894;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.product-action.quick-view-btn:hover {
    background: #0984E3;
    border-color: #0984E3;
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.2);
}

.product-action:active {
    transform: scale(0.95);
}

/* Mobile: always visible */
@media (max-width: 768px) {
    .product-actions {
        opacity: 1;
        transform: translateY(0);
        justify-content: center;
    }

    .product-action {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .product-action:active {
        transform: scale(0.92);
    }
}

@media (max-width: 480px) {
    .product-actions {
        gap: 6px;
    }

    .product-action {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}

/* ============================================================
   SEARCH SUGGESTIONS
   ============================================================ */

.search-bar {
    position: relative;
    flex: 1;
    max-width: 500px;
    min-width: 220px;
}

.search-input-wrapper {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.search-bar.focused .search-input-wrapper {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.search-bar input {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
    outline: none;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

.search-suggestions .suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 13px;
    color: #6C757D;
}

.search-suggestions .suggestions-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #6C757D;
    padding: 4px 8px;
    touch-action: manipulation;
}

#suggestionsList {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #1A1A2E;
    touch-action: manipulation;
}

.suggestion-item:hover {
    background: #F8F9FA;
}

.suggestion-item .suggestion-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.suggestion-item .suggestion-icon.product {
    background: #f0f0f0;
}

.suggestion-item .suggestion-icon.category {
    background: #E9ECEF;
    color: #6C757D;
}

.suggestion-item .suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-item .suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-item .suggestion-name {
    font-weight: 500;
    font-size: 14px;
    word-break: break-word;
}

.suggestion-item .suggestion-type {
    font-size: 11px;
    color: #6C757D;
}

.suggestion-item .suggestion-price {
    font-weight: 600;
    color: #E63946;
    font-size: 14px;
    flex-shrink: 0;
}

.suggestions-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #6C757D;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Search Suggestions - Full screen */
@media (max-width: 768px) {
    .search-suggestions {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        max-height: 100vh;
        z-index: 2000;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    #suggestionsList {
        max-height: calc(100vh - 120px);
    }

    .suggestion-item {
        padding: 12px 16px;
        min-height: 52px;
    }

    .suggestion-item .suggestion-name {
        font-size: 15px;
    }

    .suggestion-item .suggestion-price {
        font-size: 15px;
    }

    .search-suggestions .suggestions-header {
        padding: 16px;
        font-size: 15px;
    }

    .search-suggestions .suggestions-header button {
        font-size: 24px;
        padding: 8px 12px;
    }

    .suggestions-footer {
        padding: 14px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .suggestion-item {
        padding: 10px 14px;
        gap: 10px;
    }

    .suggestion-item .suggestion-image {
        width: 36px;
        height: 36px;
    }

    .suggestion-item .suggestion-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .suggestion-item .suggestion-name {
        font-size: 14px;
    }

    .suggestion-item .suggestion-price {
        font-size: 14px;
    }
}

/* ============================================================
   STICKY HEADER
   ============================================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 300;
    transition: all 0.3s ease;
    background: var(--secondary);
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .logo a {
    font-size: 22px;
}

.navbar.scrolled .search-bar input {
    padding: 8px 16px;
}

.navbar.scrolled .nav-top {
    margin-bottom: 0;
}

.navbar.scrolled .category-menu {
    padding-top: 8px;
    padding-bottom: 4px;
}

.navbar.scrolled .category-menu > a {
    font-size: 12px;
}

.navbar.scrolled .mega-dropdown-toggle {
    font-size: 12px;
}

/* Mobile header adjustments */
@media (max-width: 968px) {
    .navbar.scrolled {
        padding: 8px 0;
    }

    .navbar.scrolled .logo a {
        font-size: 18px;
    }

    .navbar.scrolled .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .navbar.scrolled .search-bar input {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 40px;
    }

    .navbar.scrolled .search-bar button {
        padding: 10px 14px;
        min-height: 40px;
    }
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */

#backToTop {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #E63946;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

#backToTop:hover {
    background: #C1121F;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.4);
}

#backToTop:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 80px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #backToTop {
        bottom: 70px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* ============================================================
   FLASH SALE NOTIFICATION
   ============================================================ */

#flashSaleNotification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #E63946;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    font-weight: 600;
    text-align: center;
    max-width: 90%;
    font-size: 14px;
    animation: slideUp 0.5s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

#flashSaleNotification button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    touch-action: manipulation;
}

#flashSaleNotification #flashNotifTimer {
    font-family: monospace;
    font-weight: 700;
    font-size: 16px;
    min-width: 80px;
    display: inline-block;
}

@media (max-width: 768px) {
    #flashSaleNotification {
        font-size: 12px;
        padding: 10px 16px;
        bottom: 12px;
        border-radius: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #flashSaleNotification #flashNotifTimer {
        font-size: 14px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    #flashSaleNotification {
        font-size: 11px;
        padding: 8px 12px;
        bottom: 8px;
        border-radius: 20px;
        gap: 8px;
    }

    #flashSaleNotification #flashNotifTimer {
        font-size: 12px;
        min-width: 60px;
    }
}

/* ============================================================
   HERO CAROUSEL (complete mobile-first)
   ============================================================ */

.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 48px;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 0.8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: #E63946;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge.badge-new {
    background: #3B82F6;
}

.hero-content-wrapper h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin: 0 0 15px;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.hero-content-wrapper h1 .highlight {
    color: #FDCB6E;
}

.hero-content-wrapper p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 0 25px;
    animation: fadeInUp 1s ease;
    line-height: 1.6;
}

.hero-countdown {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    animation: fadeInUp 1.2s ease;
}

.hero-countdown-unit {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 70px;
}

.hero-countdown-unit span {
    font-size: 32px;
    font-weight: 700;
    display: block;
    font-family: monospace;
}

.hero-countdown-unit label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.7;
}

.hero-cta {
    display: inline-block;
    background: #E63946;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    animation: fadeInUp 1.4s ease;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.hero-cta:hover {
    background: #C1121F;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.5);
}

.hero-cta i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.hero-cta:hover i {
    transform: translateX(5px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content-wrapper h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
        min-height: 400px;
        border-radius: 0 0 20px 20px;
        margin-bottom: 32px;
    }

    .hero-content-wrapper {
        padding: 0 20px;
        align-items: center;
        text-align: center;
    }

    .hero-content-wrapper h1 {
        font-size: 2.4rem;
    }

    .hero-content-wrapper p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-countdown {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-countdown-unit {
        padding: 8px 12px;
        min-width: 56px;
    }

    .hero-countdown-unit span {
        font-size: 22px;
    }

    .hero-cta {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-dots {
        gap: 10px;
        bottom: 20px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 60vh;
        min-height: 350px;
        border-radius: 0 0 16px 16px;
        margin-bottom: 24px;
    }

    .hero-content-wrapper h1 {
        font-size: 1.8rem;
    }

    .hero-content-wrapper p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .hero-countdown-unit {
        padding: 4px 8px;
        min-width: 44px;
    }

    .hero-countdown-unit span {
        font-size: 18px;
    }

    .hero-countdown-unit label {
        font-size: 8px;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 14px;
        max-width: 220px;
    }

    .hero-arrow {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .hero-prev {
        left: 6px;
    }

    .hero-next {
        right: 6px;
    }

    .hero-dots {
        gap: 8px;
        bottom: 14px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }
}


/* ============================================================
   NEW CLASSES – CLEANED UP INLINE STYLES
   ============================================================ */

/* ----- Hero Carousel ----- */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 0.8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay-sale {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.85) 0%, rgba(193, 18, 31, 0.7) 100%);
}

.hero-overlay-new {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.7) 100%);
}

.hero-overlay-shipping {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.85) 0%, rgba(0, 150, 120, 0.7) 100%);
}

/* ----- Hero Badge ----- */
.hero-badge {
    display: inline-block;
    background: #E63946;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge.badge-new {
    background: #3B82F6;
}

.hero-badge.badge-shipping {
    background: #00B894;
}

/* ----- Flash Sale Ended ----- */
.flash-sale-ended {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 48px;
    text-align: center;
    border: 2px dashed #DEE2E6;
}

.sale-ended-content {
    max-width: 500px;
    margin: 0 auto;
}

.sale-ended-content .icon-clock {
    font-size: 36px;
    color: #6C757D;
    display: block;
    margin-bottom: 15px;
}

.sale-ended-content h3 {
    color: #1A1A2E;
    margin-bottom: 8px;
}

.sale-ended-content p {
    color: #6C757D;
    font-size: 14px;
}

.sale-ended-content .browse-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    background: #2D3436;
    color: white;
    transition: background 0.3s;
}

.sale-ended-content .browse-link:hover {
    background: #1A1A2E;
}

/* ----- Back to Top Button ----- */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #E63946;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    display: none;
    z-index: 999;
    transition: all 0.3s;
    touch-action: manipulation;
}

.back-to-top:hover {
    background: #C1121F;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.4);
}

.back-to-top:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 70px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* ----- Flash Sale Notification (Floating Banner) ----- */
.flash-sale-notification {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #E63946;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    font-weight: 600;
    text-align: center;
    max-width: 90%;
    font-size: 14px;
    animation: slideUp 0.5s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-sale-notification .notif-timer {
    font-family: monospace;
    font-weight: 700;
    font-size: 16px;
    min-width: 80px;
    display: inline-block;
}

.flash-sale-notification .notif-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .flash-sale-notification {
        font-size: 12px;
        padding: 10px 16px;
        bottom: 12px;
        border-radius: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .flash-sale-notification .notif-timer {
        font-size: 14px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .flash-sale-notification {
        font-size: 11px;
        padding: 8px 12px;
        bottom: 8px;
        border-radius: 20px;
        gap: 8px;
    }

    .flash-sale-notification .notif-timer {
        font-size: 12px;
        min-width: 60px;
    }
}

/* ----- Empty State (Large) ----- */
.empty-state-large {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
}

.empty-state-large i {
    font-size: 48px;
    color: #E63946;
    margin-bottom: 20px;
    display: block;
}

.empty-state-large p {
    color: #6C757D;
}

@media (max-width: 768px) {
    .empty-state-large {
        padding: 40px 20px;
    }

    .empty-state-large i {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .empty-state-large {
        padding: 30px 16px;
    }

    .empty-state-large i {
        font-size: 30px;
    }
}

/* ----- Search Camera Button ----- */
.search-camera-btn {
    background: #2D3436;
    border: none;
    color: white;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: background 0.3s;
    min-height: 50px;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-camera-btn:hover {
    background: #1A1A2E;
}

.search-camera-btn:active {
    transform: scale(0.97);
}

/* ----- Countdown Unit (for hero) ----- */
.hero-countdown-unit {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 70px;
}

.hero-countdown-unit span {
    font-size: 32px;
    font-weight: 700;
    display: block;
    font-family: monospace;
}

.hero-countdown-unit label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hero-countdown-unit {
        padding: 8px 12px;
        min-width: 56px;
    }

    .hero-countdown-unit span {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-countdown-unit {
        padding: 4px 8px;
        min-width: 44px;
    }

    .hero-countdown-unit span {
        font-size: 18px;
    }

    .hero-countdown-unit label {
        font-size: 8px;
    }
}


/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal.active,
.modal[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #E0E0E0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1A1A2E;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6C757D;
    padding: 0 8px;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #E63946;
}

.modal-body {
    padding: 24px;
}

/* Quick View specific styles */
.original-price {
    font-size: 16px;
    color: #ADB5BD;
    text-decoration: line-through;
    margin-right: 8px;
}

.product-stock {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-stock.in-stock {
    background: #D4EDDA;
    color: #155724;
}

.product-stock.out-of-stock {
    background: #F8D7DA;
    color: #721C24;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        border-radius: 16px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-close {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: 12px;
    }

    .modal-body {
        padding: 12px;
    }
}


/* ============================================================
   HERO CAROUSEL – PROFESSIONAL OVERLAYS
   ============================================================ */

.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 48px;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay-sale {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.85) 0%, rgba(193, 18, 31, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-overlay-new {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.8) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-overlay-shipping {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.85) 0%, rgba(0, 150, 120, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
}

/* ===== HERO CONTENT ===== */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
}

.hero-content-inner {
    max-width: 620px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background: #E63946;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-badge.badge-new {
    background: #3B82F6;
}

.hero-badge.badge-shipping {
    background: #00B894;
}

.hero-content-inner h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin: 0 0 15px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content-inner h1 .highlight {
    color: #FDCB6E;
}

.hero-content-inner p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 0 30px;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ===== COUNTDOWN ===== */
.hero-countdown {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-countdown-unit {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 75px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-countdown-unit span {
    font-size: 32px;
    font-weight: 700;
    display: block;
    font-family: 'Inter', monospace;
    color: white;
    line-height: 1.2;
}

.hero-countdown-unit label {
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* ===== CTA BUTTON ===== */
.hero-cta {
    display: inline-block;
    background: #E63946;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.hero-cta:hover {
    background: #C1121F;
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(230, 57, 70, 0.5);
    color: white;
}

.hero-cta i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateX(5px);
}

/* ===== NAVIGATION ARROWS ===== */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

/* ===== DOTS ===== */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== ANIMATION ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE – HERO
   ============================================================ */

@media (max-width: 1024px) {
    .hero-content-inner h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
        min-height: 400px;
        border-radius: 0 0 20px 20px;
        margin-bottom: 32px;
    }

    .hero-content-wrapper {
        padding: 0 24px;
        justify-content: center;
        text-align: center;
    }

    .hero-content-inner {
        max-width: 100%;
    }

    .hero-content-inner h1 {
        font-size: 2.2rem;
    }

    .hero-content-inner p {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto 20px;
    }

    .hero-countdown {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-countdown-unit {
        padding: 8px 14px;
        min-width: 56px;
    }

    .hero-countdown-unit span {
        font-size: 22px;
    }

    .hero-countdown-unit label {
        font-size: 9px;
    }

    .hero-cta {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        text-align: center;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-dots {
        gap: 10px;
        bottom: 20px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 60vh;
        min-height: 350px;
        border-radius: 0 0 16px 16px;
        margin-bottom: 24px;
    }

    .hero-content-wrapper {
        padding: 0 16px;
    }

    .hero-content-inner h1 {
        font-size: 1.8rem;
    }

    .hero-content-inner p {
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 14px;
    }

    .hero-countdown-unit {
        padding: 4px 10px;
        min-width: 44px;
    }

    .hero-countdown-unit span {
        font-size: 18px;
    }

    .hero-countdown-unit label {
        font-size: 8px;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 14px;
        max-width: 220px;
    }

    .hero-arrow {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .hero-prev {
        left: 6px;
    }

    .hero-next {
        right: 6px;
    }

    .hero-dots {
        gap: 8px;
        bottom: 14px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }
}

/* ============================================================
   ANNOUNCEMENT BAR – REFINED
   ============================================================ */

.announcement-bar {
    position: sticky;
    top: 0;
    z-index: 10000;
    overflow: hidden;
    height: 44px;
    background: #1A1A2E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.announcement-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.announcement-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: translateY(4px);
    padding: 0 48px 0 16px;
}

.announcement-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    max-width: 100%;
    white-space: nowrap;
}

.announcement-content i {
    font-size: 14px;
    flex-shrink: 0;
}

.announcement-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.announcement-link:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.announcement-countdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.18);
    padding: 1px 10px;
    border-radius: 20px;
    font-family: 'Inter', monospace;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.announcement-countdown .countdown-timer {
    font-variant-numeric: tabular-nums;
}

/* ===== CLOSE BUTTON ===== */
.announcement-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 8px;
    opacity: 0.5;
    transition: opacity 0.2s, background 0.2s;
    border-radius: 4px;
    min-height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    z-index: 2;
}

.announcement-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.announcement-close:active {
    transform: translateY(-50%) scale(0.92);
}

/* ===== DOTS (hidden by default, shown if >1 slide) ===== */
.announcement-dots {
    position: absolute;
    bottom: 6px;
    right: 56px;
    display: none;
    gap: 6px;
    z-index: 1;
}

.announcement-dots.visible {
    display: flex;
}

.announcement-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    min-height: 6px;
    min-width: 6px;
}

.announcement-dots .dot.active {
    background: white;
    transform: scale(1.25);
}

.announcement-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE – MOBILE ===== */
@media (max-width: 768px) {
    .announcement-bar {
        height: 48px;
        min-height: 48px;
    }

    .announcement-slide {
        padding: 0 44px 0 12px;
    }

    .announcement-content {
        font-size: 12px;
        gap: 6px;
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        line-height: 1.3;
    }

    .announcement-content i {
        font-size: 12px;
    }

    .announcement-link {
        font-size: 11px;
        padding: 2px 6px;
    }

    .announcement-countdown {
        font-size: 11px;
        padding: 1px 8px;
        gap: 4px;
    }

    .announcement-close {
        right: 8px;
        font-size: 15px;
        min-height: 44px;
        min-width: 44px;
        padding: 4px 6px;
    }

    .announcement-dots {
        bottom: 4px;
        right: 52px;
        gap: 5px;
    }

    .announcement-dots .dot {
        width: 5px;
        height: 5px;
        min-height: 5px;
        min-width: 5px;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        height: 52px;
        min-height: 52px;
    }

    .announcement-content {
        font-size: 11px;
        gap: 4px;
    }

    .announcement-content i {
        font-size: 11px;
    }

    .announcement-link {
        font-size: 10px;
        padding: 1px 5px;
    }

    .announcement-countdown {
        font-size: 10px;
        padding: 1px 6px;
    }

    .announcement-close {
        font-size: 14px;
        min-height: 44px;
        min-width: 44px;
        right: 4px;
    }

    .announcement-dots {
        right: 48px;
        gap: 4px;
    }

    .announcement-dots .dot {
        width: 4px;
        height: 4px;
        min-height: 4px;
        min-width: 4px;
    }
}

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
    width: 100%;
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    z-index: calc(var(--z-header) + 1);
}

.announcement-wrapper {
    position: relative;
    overflow: hidden;
}

.announcement-slide {
    display: none; /* Hides inactive slides */
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
}

.announcement-slide.active {
    display: flex; /* Displays active slide */
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.announcement-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.announcement-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
}

.announcement-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.announcement-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
}

.announcement-dots .dot.active {
    background: var(--white);
}


.announcement-slide.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.announcement-content {
    display: flex !important;
    align-items: center;
    gap: 10px;
    visibility: visible !important;
    opacity: 1 !important;
}


/* ========== ANNOUNCEMENT BAR VISIBILITY FIX ========== */
.announcement-bar {
    width: 100%;
    background-color: var(--secondary, #d9534f) !important;
    color: #ffffff !important;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.announcement-slide.active {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 4px 16px;
}

.announcement-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    margin: 0 auto;
    color: #ffffff !important;
}

/* Force all text inside to be visible white */
.announcement-content span,
.announcement-content a,
.announcement-content i {
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.4;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.announcement-link {
    text-decoration: underline !important;
    font-weight: 600;
}

.announcement-close {
    background: none;
    border: none;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
}

/* ==========================================================================
   ANNOUNCEMENT BAR COMPONENT FIX
   ========================================================================== */

.announcement-bar {
    display: block !important;
    width: 100% !important;
    min-height: 40px !important;
    /* height: auto !important; */
    background-color: #d9534f !important; /* Red background */
    color: #ffffff !important;
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

.announcement-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 8px 16px !important;
}

.announcement-slide.active {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 24px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.announcement-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force inline element resets */
.announcement-content span,
.announcement-content a,
.announcement-content i {
    color: #ffffff !important;
    font-size: 14px !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
}

.announcement-link {
    text-decoration: underline !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.announcement-close {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 18px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 8px !important;
}


.announcement-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.announcement-content {
    display: inline-block !important;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 15s linear infinite;
}

/* Pause animation on hover so users can click links */
.announcement-wrapper:hover .announcement-content {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* ==========================================================================
   CONTINUOUS MARQUEE / TICKER ANNOUNCEMENT BAR
   ========================================================================== */

.announcement-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
}

.announcement-track {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    padding-left: 100%; /* Starts off-screen to the right */
    will-change: transform;
    animation: continuous-ticker 20s linear infinite; /* Adjust 20s for speed */
}

/* Pause animation seamlessly when user hovers */
.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}

/* Infinite right-to-left movement keyframes */
@keyframes continuous-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.announcement-content {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding-right: 50px; /* Space between announcements if multiple exist */
    color: #ffffff !important;
}

.announcement-content span,
.announcement-content a,
.announcement-content i {
    color: #ffffff !important;
    font-size: 14px !important;
    text-decoration: none;
}

.announcement-link {
    text-decoration: underline !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   MOBILE-RESPONSIVE CONTINUOUS ANNOUNCEMENT BAR
   ========================================================================== */

.announcement-bar {
    width: 100%;
    background-color: var(--secondary, #d9534f);
    color: #ffffff;
    position: relative;
    z-index: 1000;
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
}

.announcement-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 35px; /* Leave room for close button */
}

.announcement-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    /* Smooth linear animation without easing jumps */
    animation: marquee-continuous 25s linear infinite;
}

/* Pause when touched or hovered on any device */
.announcement-bar:hover .announcement-track,
.announcement-bar:active .announcement-track {
    animation-play-state: paused;
}

/* Keyframes shifting exactly 50% (the width of one duplicated set) */
@keyframes marquee-continuous {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 30px; /* Space between announcements */
    font-size: 14px;
    line-height: 1;
}

.announcement-item span,
.announcement-item a,
.announcement-item i {
    color: #ffffff !important;
    font-size: 14px;
    white-space: nowrap;
}

.announcement-link {
    text-decoration: underline !important;
    font-weight: 600;
}

/* Fixed Close Button (Accessible on Mobile) */
.announcement-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary, #d9534f); /* Solid background to overlay scrolling text */
    border: none;
    color: #ffffff !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    z-index: 2;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.15); /* Subtle shadow separator */
}

/* --------------------------------------------------------------------------
   MOBILE BREAKPOINTS (Screens <= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .announcement-bar {
        height: 34px;
    }

    .announcement-item {
        padding: 0 18px; /* Slightly tighter padding on small screens */
        font-size: 13px;
    }

    .announcement-item span,
    .announcement-item a,
    .announcement-item i {
        font-size: 13px;
    }

    .announcement-close {
        font-size: 18px;
        padding: 4px 8px;
    }
}

/* Extra Small Screens (<= 480px) */
@media (max-width: 480px) {
    .announcement-track {
        /* Slightly faster speed on tiny screens so long text doesn't take too long */
        animation-duration: 18s;
    }
}


/* ==========================================================================
   SEAMLESS INFINITE TICKER & CLOSE BUTTON
   ========================================================================== */

.announcement-bar {
    width: 100%;
    background-color: var(--secondary, #d9534f);
    color: #ffffff;
    position: relative;
    z-index: 1000;
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
}

.announcement-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 40px; /* Space for the fixed close button */
}

.announcement-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: marquee-seamless 20s linear infinite;
}

/* Pause when hovered or touched */
.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}

/* Keyframes shifting exactly half-width (Set 1) */
@keyframes marquee-seamless {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 35px;
    font-size: 14px;
}

.announcement-item span,
.announcement-item a,
.announcement-item i {
    color: #ffffff !important;
    font-size: 14px;
    white-space: nowrap;
}

.announcement-link {
    text-decoration: underline !important;
    font-weight: 600;
}

/* Close Button Styling */
.announcement-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary, #d9534f);
    border: none;
    color: #ffffff !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 12px;
    z-index: 999; /* Ensures it sits above other sliding text layers */
    pointer-events: auto !important; /* Enable click capture */
}

@media (max-width: 768px) {
    .announcement-bar {
        height: 34px;
    }

    .announcement-item {
        padding: 0 20px;
        font-size: 13px;
    }
}


/* ============================================================ */
/* RUNNER NOTIFICATIONS STYLES                                  */
/* ============================================================ */

.notification-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #F1F3F5;
}

.notification-item:hover {
    background: #F8F9FA;
}

.notification-item.unread {
    border-left-color: #E63946;
    background: #FFFBFB;
}

.notification-item.unread:hover {
    background: #FFF5F5;
}

.notification-item .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-item .notification-icon.icon-order {
    background: #CCE5FF;
    color: #004085;
}

.notification-item .notification-icon.icon-commission {
    background: #FFF3CD;
    color: #856404;
}

.notification-item .notification-icon.icon-bonus {
    background: #D4EDDA;
    color: #155724;
}

.notification-item .notification-icon.icon-payout {
    background: #D1ECF1;
    color: #0C5460;
}

.notification-item .notification-icon.icon-verified {
    background: #D4EDDA;
    color: #155724;
}

.notification-item .notification-icon.icon-tier {
    background: #E8D5F5;
    color: #6C3483;
}

.notification-item .notification-icon.icon-order-status {
    background: #FFF3CD;
    color: #856404;
}

.notification-item .notification-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notification-title {
    font-weight: 600;
    font-size: 15px;
    color: #1A1A2E;
    margin-bottom: 4px;
}

.notification-item .notification-message {
    font-size: 14px;
    color: #636E72;
    line-height: 1.5;
    margin-bottom: 4px;
}

.notification-item .notification-time {
    font-size: 12px;
    color: #ADB5BD;
}

.notification-item .notification-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.notification-item .btn-mark-read {
    background: none;
    border: none;
    color: #636E72;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-item .btn-mark-read:hover {
    background: #E9ECEF;
    color: #E63946;
}

.notification-item .notification-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex: 1;
}

.notification-item .notification-link:hover {
    text-decoration: none;
}

/* Unread dot */
.unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E63946;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Notification type badge */
.type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.type-badge.type-order {
    background: #CCE5FF;
    color: #004085;
}

.type-badge.type-commission {
    background: #FFF3CD;
    color: #856404;
}

.type-badge.type-bonus {
    background: #D4EDDA;
    color: #155724;
}

.type-badge.type-payout {
    background: #D1ECF1;
    color: #0C5460;
}

.type-badge.type-verified {
    background: #D4EDDA;
    color: #155724;
}

.type-badge.type-tier {
    background: #E8D5F5;
    color: #6C3483;
}

.type-badge.type-order-status {
    background: #FFF3CD;
    color: #856404;
}

/* Notification page empty state */
.notification-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}

.notification-empty-state i {
    font-size: 48px;
    color: #DEE2E6;
    display: block;
    margin-bottom: 16px;
}

.notification-empty-state h3 {
    color: #1A1A2E;
    margin-bottom: 8px;
}

.notification-empty-state p {
    color: #636E72;
    margin-bottom: 20px;
}

/* ============================================================ */
/* RESPONSIVE – NOTIFICATIONS                                   */
/* ============================================================ */

@media (max-width: 768px) {
    .notification-item {
        padding: 14px 16px;
    }

    .notification-item .notification-link {
        flex-direction: column;
        gap: 10px;
    }

    .notification-item .notification-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .notification-item .notification-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .notification-item .notification-title {
        font-size: 14px;
    }

    .notification-item .notification-message {
        font-size: 13px;
    }

    .notification-empty-state {
        padding: 40px 16px;
    }

    .notification-empty-state i {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .notification-item {
        padding: 12px 14px;
    }

    .notification-item .notification-link {
        gap: 8px;
    }

    .notification-item .notification-title {
        font-size: 13px;
    }

    .notification-item .notification-message {
        font-size: 12px;
    }

    .type-badge {
        font-size: 10px;
        padding: 1px 8px;
    }

    .notification-empty-state i {
        font-size: 28px;
    }
}


/* For ticket detail page */
.ticket-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-message-wrapper {
    padding: 0 16px 16px;
}

.ticket-message {
    background: #F8F9FA;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}

/* Replies */
.replies-container {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.reply-item {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
}

.reply-runner {
    background: #F8F9FA;
}

.reply-support {
    background: #E3F2FD;
}

.reply-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.reply-date {
    font-size: 12px;
    color: #999;
}

.reply-message {
    margin: 0;
    white-space: pre-wrap;
}

.no-replies {
    text-align: center;
    padding: 20px;
    color: #999;
}

.no-replies i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

/* Pagination (tickets list) */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-300);
}

.pagination-info {
    font-size: 13px;
    color: var(--gray-600);
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.pagination-current {
    padding: 6px 14px;
    font-size: 13px;
    background: #E63946;
    color: white;
    border-radius: 6px;
}


/* ===== RUNNER PAGE UTILITY CLASSES ===== */

/* Page header flex layout */
.runner-page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

/* Stat card border colours */
.runner-stat-card-red-border {
    border-bottom: 3px solid #E63946;
}

.runner-stat-card-green-border {
    border-bottom: 3px solid #00B894;
}

.runner-stat-card-yellow-border {
    border-bottom: 3px solid #FDCB6E;
}

.runner-stat-card-blue-border {
    border-bottom: 3px solid #0984E3;
}

.runner-stat-card-purple-border {
    border-bottom: 3px solid #6C5CE7;
}

/* Stat number colours */
.runner-stat-number-red {
    color: #E63946;
}

.runner-stat-number-green {
    color: #00B894;
}

/* Custom button variants */
.btn-export-earnings {
    background: #00B894;
    color: white;
}

.btn-export-earnings:hover {
    background: #0a7a6e;
    color: white;
}

.btn-support-tickets {
    background: #FDCB6E;
    color: #1A1A2E;
}

.btn-support-tickets:hover {
    background: #f0b429;
    color: #1A1A2E;
}

.btn-payout-requests {
    background: #6C5CE7;
    color: white;
    position: relative;
}

.btn-payout-requests:hover {
    background: #5A4BD1;
    color: white;
}

.btn-analytics {
    background: #0984E3;
    color: white;
}

.btn-analytics:hover {
    background: #006bb3;
    color: white;
}

/* Badge with count */
.badge-count {
    background: #E63946;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 5px;
}

/* Promotions grid */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 16px;
}

/* Misc */
.ticket-badge-with-margin {
    margin-left: 10px;
}

.info-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.chart-container-300 {
    height: 300px;
}

.flex-form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.bg-light-gray {
    background: #F8F9FA;
    padding: 10px 14px;
    border-radius: 6px;
}

.timeline-padding {
    padding: 10px 0;
}

.back-link-margin {
    margin-top: 20px;
}

.back-link-margin a {
    color: var(--primary);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.order-stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #F8F9FA;
    padding: 15px 20px;
    border-radius: 12px;
}

/* Pagination (runner pages) */
.pagination-wrapper-runner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-300);
}

.pagination-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.pagination-current-sm {
    padding: 6px 14px;
    font-size: 13px;
    background: #E63946;
    color: white;
    border-radius: 6px;
}

/* Profile photo fallback & preview */
.profile-fallback-icon {
    font-size: 64px;
    color: #DEE2E6;
}

.profile-photo-preview {
    display: none;
    margin-top: 10px;
}

.profile-photo-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00B894;
}

/* Notifications */
.notification-unread-dot {
    display: inline-block;
    margin-left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E63946;
    vertical-align: middle;
}

.notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.notification-read-status {
    font-size: 11px;
}

.notification-read-status.read {
    color: #00B894;
}

.notification-read-status.unread {
    color: #E63946;
}

/* Forms */
.auth-container-max-700 {
    max-width: 700px;
    margin: 30px auto;
}


/* ===== TIER BADGES (Runner) ===== */
.tier-badge {
    font-weight: 600;
}

.tier-bronze {
    background: #A9A9A9;
    color: white;
}

.tier-silver {
    background: #BDC3C7;
    color: #1A1A2E;
}

.tier-gold {
    background: #FDCB6E;
    color: #1A1A2E;
}

.tier-platinum {
    background: #6C3483;
    color: white;
}


/* ===== RUNNER PAGE UTILITY CLASSES (Add to app.css) ===== */

/* Page header flex layout */
.runner-page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

/* Stat card border colours */
.runner-stat-card-red-border {
    border-bottom: 3px solid #E63946;
}

.runner-stat-card-green-border {
    border-bottom: 3px solid #00B894;
}

.runner-stat-card-yellow-border {
    border-bottom: 3px solid #FDCB6E;
}

.runner-stat-card-blue-border {
    border-bottom: 3px solid #0984E3;
}

.runner-stat-card-purple-border {
    border-bottom: 3px solid #6C5CE7;
}

/* Stat number colours */
.runner-stat-number-red {
    color: #E63946;
}

.runner-stat-number-green {
    color: #00B894;
}

/* Custom button variants */
.btn-export-earnings {
    background: #00B894;
    color: white;
}

.btn-export-earnings:hover {
    background: #0a7a6e;
    color: white;
}

.btn-support-tickets {
    background: #FDCB6E;
    color: #1A1A2E;
}

.btn-support-tickets:hover {
    background: #f0b429;
    color: #1A1A2E;
}

.btn-payout-requests {
    background: #6C5CE7;
    color: white;
    position: relative;
}

.btn-payout-requests:hover {
    background: #5A4BD1;
    color: white;
}

.btn-analytics {
    background: #0984E3;
    color: white;
}

.btn-analytics:hover {
    background: #006bb3;
    color: white;
}

/* Badge with count */
.badge-count {
    background: #E63946;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 5px;
}

/* Promotions grid */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 16px;
}

/* Tier badges */
.tier-badge {
    font-weight: 600;
}

.tier-bronze {
    background: #A9A9A9;
    color: white;
}

.tier-silver {
    background: #BDC3C7;
    color: #1A1A2E;
}

.tier-gold {
    background: #FDCB6E;
    color: #1A1A2E;
}

.tier-platinum {
    background: #6C3483;
    color: white;
}

/* Misc utility */
.info-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.chart-container-300 {
    height: 300px;
}

.flex-form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.bg-light-gray {
    background: #F8F9FA;
    padding: 10px 14px;
    border-radius: 6px;
}

.timeline-padding {
    padding: 10px 0;
}

.back-link-margin {
    margin-top: 20px;
}

.back-link-margin a {
    color: var(--primary);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.auth-container-max-700 {
    max-width: 700px;
    margin: 30px auto;
}

/* Pagination (runner pages) */
.pagination-wrapper-runner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-300);
}

.pagination-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.pagination-current-sm {
    padding: 6px 14px;
    font-size: 13px;
    background: #E63946;
    color: white;
    border-radius: 6px;
}

/* Profile photo */
.profile-fallback-icon {
    font-size: 64px;
    color: #DEE2E6;
}

.profile-photo-preview {
    display: none;
    margin-top: 10px;
}

.profile-photo-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00B894;
}

/* Notifications */
.notification-unread-dot {
    display: inline-block;
    margin-left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E63946;
    vertical-align: middle;
}

.notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.notification-read-status.read {
    color: #00B894;
}

.notification-read-status.unread {
    color: #E63946;
}
