/* ========================================================================
   assets/css/style.css
   Combined Styles for Multi-Seller E-Commerce (Ekzola Theme)
   ======================================================================== */

/* ===== CSS VARIABLES (COLOR SYSTEM) ===== */
:root {
    --maroon: #800000;
    --mustard: #DAA520;
    --burnt-orange: #CC5500;
    --forest-green: #1B4D3E;
    --black: #1A1A1A;
    --off-white: #F9F5F0;
    --gray: #666;
    --border: #E0E0E0;
    --light-gray: #f5f5f5;
    --dark-charcoal: #2C2C2C;
    --warm-beige: #E8E0D5;
    --soft-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 6px 25px rgba(128, 0, 0, 0.08);
    --card-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
    --card-hover-shadow: 0 20px 40px -15px rgba(128,0,0,0.15);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--off-white);
    color: var(--black);
    line-height: 1.5;
    font-size: 15px;
    overflow-x: hidden;
    padding-top: 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, .logo {
    font-family: 'Lora', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
}

/* ===== NAVBAR FIX - NO GAP BELOW ===== */
.navbar {
    background: white !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.logo-img {
    height: 40px;
    width: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.navbar-nav .nav-item .nav-link {
    font-size: 15px !important;
    font-weight: 500;
    color: var(--dark-charcoal) !important;
    padding: 0.5rem 0 !important;
    transition: color 0.2s;
    letter-spacing: 0.3px;
    text-transform: none;
    position: relative;
}

.navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--maroon), var(--mustard));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-item:hover .nav-link::after,
.navbar-nav .nav-item .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-nav .nav-link:hover {
    color: var(--maroon) !important;
}

/* Remove underline for dropdown and cart */
.user-auth-wrapper .nav-link::after,
.cart-link::after {
    display: none !important;
}

/* Pre-order Button */
.preorder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--maroon), #a52a2a);
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px !important;
    border-radius: 10px !important;
    border: 2px solid var(--mustard);
    box-shadow: 0 8px 18px -6px rgba(128,0,0,0.4);
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.preorder-btn:hover {
    background: linear-gradient(145deg, #9e3a3a, #c43b3b);
    color: white !important;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 5px 10px 5px 15px;
    margin-right: 0.5rem;
    border: 1px solid rgba(128,0,0,0.1);
}

.search-input {
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 5px 0;
    width: 200px;
    outline: none;
    color: var(--dark-charcoal);
}

.search-input::placeholder {
    color: #999;
    font-size: 13px;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--maroon);
    font-size: 1rem;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--mustard);
}

/* Cart Link */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: var(--dark-charcoal);
    transition: color 0.2s;
}

.cart-link:hover {
    color: var(--maroon);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--maroon);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-badge.show {
    display: inline-block;
}

/* Mobile Toggler */
.navbar-toggler {
    border: 1px solid rgba(128,0,0,0.2);
    padding: 0.4rem 0.6rem;
    font-size: 1.2rem;
    background: white;
    color: var(--maroon);
    order: 3;
    margin-left: 10px;
}

/* Mobile Offcanvas */
.offcanvas {
    background: var(--off-white);
    border-left: 3px solid var(--mustard);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(128,0,0,0.1);
    padding: 1rem 1.5rem;
}

.offcanvas-body .nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-charcoal);
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(128,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.offcanvas-body .nav-link i {
    color: var(--maroon);
    font-size: 1.1rem;
    width: 24px;
}

.offcanvas-categories h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--maroon);
    margin: 1.2rem 0 0.5rem 0;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.offcanvas-categories a {
    color: var(--gray);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.3rem 0;
    display: inline-block;
    transition: all 0.2s;
}

.offcanvas-categories a:hover {
    color: var(--maroon);
    transform: translateX(3px);
}

.offcanvas-search {
    display: flex;
    background: white;
    border-radius: 40px;
    border: 1px solid rgba(128,0,0,0.15);
    overflow: hidden;
    margin: 1.2rem 0 0.5rem;
}

.offcanvas-search input {
    border: none;
    background: transparent;
    padding: 0.6rem 1rem;
    flex: 1;
    outline: none;
    font-size: 0.9rem;
}

.offcanvas-search button {
    background: transparent;
    border: none;
    color: var(--maroon);
    padding: 0 1rem;
    font-size: 1rem;
}

.offcanvas-auth {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.offcanvas-auth-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--maroon);
    background: white;
    color: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.offcanvas-auth-btn.login {
    background: var(--maroon);
    color: white;
    border: 1px solid var(--maroon);
}

.offcanvas-auth-btn.login:hover {
    background: white;
    color: var(--maroon);
}

.offcanvas-auth-btn.register:hover {
    background: var(--maroon);
    color: white;
}

@media (max-width: 991px) {
    .navbar-collapse {
        display: none;
    }
    .navbar-brand {
        order: 1;
    }
    .cart-link.d-lg-none {
        order: 2;
        margin-left: auto;
        margin-right: 0;
        display: flex !important;
    }
}

/* ===== NOTIFICATION TOAST ===== */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25), 0 0 0 1px rgba(128,0,0,0.1);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    border-left: 6px solid var(--maroon);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, #fce9e9, #fff0f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-charcoal);
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

.notification-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--maroon);
}

/* ===== AUTH MODAL STYLES ===== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: white;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 4px solid var(--maroon);
}

.auth-modal-overlay.show .auth-modal {
    transform: scale(1) translateY(0);
}

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid rgba(128, 0, 0, 0.08);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.auth-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin: 0;
    font-family: 'Lora', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-modal-header h3 i {
    color: var(--maroon);
    font-size: 1.1rem;
}

.auth-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 0, 0, 0.05);
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.auth-modal-close:hover {
    background: rgba(128, 0, 0, 0.1);
    color: var(--maroon);
    transform: rotate(90deg);
}

.auth-modal-content {
    padding: 1.5rem 1.8rem 2rem;
}

.auth-form-group {
    margin-bottom: 1.2rem;
}

.auth-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark-charcoal);
    margin-bottom: 0.4rem;
}

.auth-form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(128, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.auth-form-control:focus {
    outline: none;
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 1.5rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray);
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    accent-color: var(--maroon);
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.auth-forgot-link {
    color: var(--maroon);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--mustard);
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    background: var(--maroon);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--maroon);
    margin-bottom: 1.2rem;
}

.auth-submit-btn:hover {
    background: transparent;
    color: var(--maroon);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -6px rgba(128, 0, 0, 0.3);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(128, 0, 0, 0.1);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 1rem;
    color: var(--gray);
    font-size: 0.8rem;
}

.auth-social-login {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.auth-social-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(128, 0, 0, 0.15);
    background: white;
    color: var(--dark-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-social-btn.google:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    color: #4285f4;
}

.auth-social-btn.facebook:hover {
    background: #f8f9fa;
    border-color: #1877f2;
    color: #1877f2;
}

.auth-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    border-top: 1px solid rgba(128, 0, 0, 0.08);
    padding-top: 1.2rem;
}

.auth-footer a {
    color: var(--maroon);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--mustard);
    text-decoration: underline;
}

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.2rem 0 1.5rem;
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
}

.auth-terms input[type="checkbox"] {
    accent-color: var(--maroon);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ===== USER AUTH DROPDOWN ===== */
.user-auth-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.user-auth-wrapper .auth-dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(-8px);
    pointer-events: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    padding: 0.5rem 0;
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
    margin-top: 12px;
    border-top: 3px solid var(--mustard);
    z-index: 1020;
}

.user-auth-wrapper:hover .auth-dropdown-menu,
.user-auth-wrapper .auth-dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.auth-dropdown-header {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(128,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-dropdown-header i {
    font-size: 1.2rem;
    color: var(--maroon);
}

.auth-dropdown-header span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-charcoal);
}

.auth-dropdown-body {
    padding: 0.5rem 0;
}

.auth-dropdown-btn {
    width: 100%;
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dark-charcoal);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
}

.auth-dropdown-btn i {
    color: var(--maroon);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.auth-dropdown-btn:hover {
    background: rgba(128,0,0,0.03);
    color: var(--maroon);
    transform: translateX(3px);
}

.auth-dropdown-divider {
    height: 1px;
    background: rgba(128,0,0,0.08);
    margin: 0.5rem 0;
}

.auth-dropdown-link {
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gray);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-dropdown-link i {
    color: var(--mustard);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.auth-dropdown-link:hover {
    background: rgba(128,0,0,0.03);
    color: var(--maroon);
}

/* ===== CATEGORIES SECTION - AVIF OPTIMIZED ===== */
.categories-wrapper {
    position: relative;
    padding: 50px 0 30px;
    background: linear-gradient(180deg, var(--off-white) 0%, rgba(249,245,240,0.5) 100%);
    border-radius: 60px 60px 0 0;
    margin-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-header .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-family: 'Lora', serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-header .section-title .highlight {
    color: var(--maroon);
    position: relative;
    display: inline-block;
}

.section-header .section-description {
    font-size: 0.9rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-showcase {
    position: relative;
    width: 100%;
    margin: 30px 0 20px;
    padding: 0 10px;
}

.category-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-grid::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 auto;
    width: calc((100% - (5 * 20px)) / 5.4);
    min-width: 140px;
    background: white;
    border-radius: 18px;
    padding: 25px 12px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(128, 0, 0, 0.03);
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px -15px rgba(0,0,0,0.15);
}

.category-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(128,0,0,0.02), rgba(218,165,32,0.02));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.08);
}

.category-icon {
    font-size: 2.4rem;
    color: var(--maroon);
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.category-card:hover .category-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Custom uploaded icon styles with AVIF support */
.category-custom-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.category-card:hover .category-custom-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Picture element wrapper */
picture.category-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

picture.category-icon-wrapper img,
picture.category-icon-wrapper source {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--dark-charcoal);
    transition: color 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.3;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--maroon), var(--mustard));
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.category-card:hover .category-title::after {
    transform: translateX(-50%) scaleX(1);
}

.category-count {
    font-size: 0.7rem;
    color: var(--gray);
    padding: 4px 8px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.4;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--maroon);
    border: 2px solid transparent;
}

.nav-arrow:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--maroon), var(--mustard));
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.25);
    border-color: white;
}

.nav-arrow.disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nav-arrow-left {
    left: -15px;
}

.nav-arrow-right {
    right: -15px;
}

.nav-arrow svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

/* ===== PRODUCT CARD STYLES ===== */
.product-card-modern {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px -8px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(128, 0, 0, 0.03);
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -12px rgba(128,0,0,0.2);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-new, .badge-bestseller, .badge-limited, .badge-featured {
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.badge-new, .badge-featured {
    background: linear-gradient(135deg, var(--forest-green), #2d5a3d);
}

.badge-bestseller {
    background: linear-gradient(135deg, var(--mustard), #b8860b);
}

.badge-limited {
    background: linear-gradient(135deg, var(--maroon), #5c1e1e);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 210px;
    width: 100%;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.product-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-modern:hover .product-img-modern {
    transform: scale(1.05);
}

.product-content {
    padding: 15px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.product-category {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mustard);
    margin-bottom: 5px;
}

.product-title-modern {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--dark-charcoal);
    transition: color 0.2s ease;
    font-family: 'Lora', serif;
}

.product-card-modern:hover .product-title-modern {
    color: var(--maroon);
}

.product-price-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(128, 0, 0, 0.05);
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--maroon);
    line-height: 1.2;
    white-space: nowrap;
}

.original-price {
    font-size: 0.7rem;
    color: var(--gray);
    text-decoration: line-through;
    white-space: nowrap;
}

.discount-percent {
    background: var(--forest-green);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Add to Cart Button */
.add-to-cart-modern {
    background: transparent;
    border: 2px solid var(--maroon);
    color: var(--maroon);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
}

.add-to-cart-modern:hover {
    background: var(--maroon);
    color: white;
    transform: scale(1.1);
}

.add-to-cart-modern.added {
    background: var(--forest-green);
    border-color: var(--forest-green);
    color: white;
    pointer-events: none;
}

/* ===== FEATURED SECTION ===== */
.featured-wrapper {
    padding: 60px 0 60px;
    position: relative;
    background: white;
}

.featured-header-left {
    margin-bottom: 30px;
    position: relative;
}

.featured-header-left .featured-subtitle {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mustard);
    background: rgba(218, 165, 32, 0.08);
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 8px;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.featured-header-left .featured-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 0;
    font-family: 'Lora', serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.featured-header-left .featured-title .highlight {
    color: var(--maroon);
    position: relative;
    display: inline-block;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--maroon);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.view-all-link:hover {
    color: var(--mustard);
    gap: 10px;
    border-bottom-color: var(--mustard);
}

.view-all-link i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.view-all-link:hover i {
    transform: translateX(4px);
}

/* ===== SELLER SECTION ===== */
.seller-simple-wrapper {
    background: linear-gradient(145deg, #ffffff 0%, #fcf5eb 100%);
    border-radius: 50px 50px 0 0;
    padding: 60px 0;
    margin-top: 50px;
    border-top: 6px solid var(--mustard);
    box-shadow: var(--soft-shadow);
    position: relative;
    overflow: hidden;
}

.seller-simple-wrapper .container {
    position: relative;
    z-index: 2;
}

.seller-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

.seller-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--maroon);
    font-family: 'Lora', serif;
    margin-bottom: 12px;
}

.seller-header h2 span {
    color: var(--dark-charcoal);
    background: rgba(218,165,32,0.15);
    padding: 0 10px;
    border-radius: 60px;
    display: inline-block;
}

.seller-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

.seller-cta-simple {
    text-align: center;
    margin: 25px 0 35px;
}

.btn-seller-simple {
    background: var(--maroon);
    color: white;
    border: none;
    padding: 14px 45px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 8px 18px -6px var(--maroon);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-seller-simple:hover {
    background: var(--mustard);
    color: var(--dark-charcoal);
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px #b8860b;
    border-color: var(--maroon);
}

.seller-stats-simple {
    display: flex;
    justify-content: center;
    gap: 35px;
    text-align: center;
}

.seller-stats-simple div {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--maroon);
    font-family: 'Lora', serif;
}

.seller-stats-simple span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray);
    margin-top: 4px;
    letter-spacing: 0.3px;
}

/* ===== CATEGORY SECTION ===== */
.category-section {
    padding: 40px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 8px;
}

.section-head h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-charcoal);
    font-family: 'Lora', serif;
    letter-spacing: -0.01em;
    margin: 0;
}

/* ===== RATING STYLES ===== */
.rating-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 10px;
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--mustard);
    font-size: 0.8rem;
}

.rating-stars .star-filled {
    color: var(--mustard);
}

.rating-stars .star-half {
    color: var(--mustard);
    position: relative;
}

.rating-stars .star-empty {
    color: #ddd;
}

.rating-value {
    font-weight: 600;
    color: var(--dark-charcoal);
    font-size: 0.8rem;
    white-space: nowrap;
}

.rating-count {
    color: var(--gray);
    font-size: 0.75rem;
    white-space: nowrap;
}

.divider {
    color: var(--gray);
    opacity: 0.5;
    margin: 0 2px;
    font-size: 0.75rem;
}

.sold-badge {
    color: var(--forest-green);
    background: rgba(27, 77, 62, 0.08);
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.7rem;
    border: 1px solid rgba(27, 77, 62, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.sold-badge i {
    font-size: 0.75rem;
    color: var(--maroon);
}

.rating-compact {
    display: none;
}

@media (max-width: 767px) {
    .rating-wrapper {
        display: none;
    }
    .rating-compact {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 3px;
        margin-bottom: 8px;
        font-size: 0.6rem;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
}

/* ===== CART STYLES ===== */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #e67e22;
    font-weight: bold;
}

.cart-item-subtotal {
    font-weight: bold;
    color: #27ae60;
}

.order-summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

/* ===== TABLE STYLES ===== */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #2c3e50;
    font-weight: 600;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: #e67e22;
    border: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.btn-success {
    background: #27ae60;
    border: none;
    transition: all 0.3s;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* ===== ALERT STYLES ===== */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: #e67e22;
    margin: 20px 0;
}

/* ===== QUANTITY INPUT ===== */
.quantity-input {
    width: 80px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

/* ===== DASHBOARD STATS CARDS ===== */
.stats-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-card h3 {
    font-size: 2rem;
    margin: 10px 0;
    color: #2c3e50;
}

.stats-card p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.9rem;
}

.stats-icon {
    font-size: 2.5rem;
    color: #e67e22;
    opacity: 0.5;
}

/* ===== ADMIN/SELLER PANEL SIDEBAR ===== */
.sidebar {
    background: #2c3e50;
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h4 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.sidebar-header p {
    color: #95a5a6;
    font-size: 0.8rem;
    margin: 5px 0 0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover {
    background: #34495e;
    padding-left: 25px;
}

.sidebar-nav a.active {
    background: #e67e22;
    color: white;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        position: fixed;
        z-index: 999;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
    }
    .mobile-toggle {
        display: block;
    }
}

/* ===== BADGE STYLES ===== */
.badge-pending, .badge-processing, .badge-completed, .badge-cancelled,
.badge-active, .badge-inactive, .badge-featured {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    display: inline-block;
}

.badge-pending { background: #f39c12; color: white; }
.badge-processing { background: #3498db; color: white; }
.badge-completed { background: #27ae60; color: white; }
.badge-cancelled { background: #e74c3c; color: white; }
.badge-active { background: #27ae60; color: white; }
.badge-inactive { background: #e74c3c; color: white; }
.badge-featured { background: #f39c12; color: white; }

/* ===== CURRENCY BADGE ===== */
.currency-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* ===== PRODUCT IMAGE PLACEHOLDER ===== */
.product-image-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #95a5a6;
    font-size: 3rem;
}

/* ===== PRODUCT PRICE ===== */
.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e67e22;
}

/* ===== CUSTOM SCROLLBAR - HIDDEN BUT FUNCTIONAL ===== */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* For Firefox - hides scrollbar but keeps functionality */
* {
    scrollbar-width: none;
}

/* For Internet Explorer and Edge */
body {
    -ms-overflow-style: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-badge-update {
    animation: bounce 0.3s ease-in-out;
}

.featured-section {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e67e22;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* ===== AVIF OPTIMIZATION BADGE ===== */
.avif-badge {
    background: linear-gradient(135deg, #6f42c1, #8b5cf6);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== COIN SYSTEM STYLES ===== */
.coin-earning-display {
    background: linear-gradient(135deg, #fff8e7 0%, #fff3d6 100%);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 15px 0;
    border: 1px solid rgba(218, 165, 32, 0.3);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.coins-earned {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.coin-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.coins-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: #DAA520;
}

.coins-percent {
    background: rgba(218, 165, 32, 0.15);
    color: #B8860B;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.coins-info {
    font-size: 0.7rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.coins-info i {
    color: #DAA520;
    font-size: 0.65rem;
}

/* Cart Coin Redemption Styles */
.coins-redemption-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.coins-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.coins-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-charcoal);
}

.coins-value {
    font-weight: 700;
    color: var(--maroon);
    font-size: 1rem;
}

.redeem-slider {
    margin: 1rem 0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    z-index: 1;
}

.slider-fill {
    position: absolute;
    height: 6px;
    background: linear-gradient(90deg, var(--mustard), #f5c542);
    border-radius: 3px;
    z-index: 2;
    pointer-events: none;
}

.slider-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--maroon);
    box-shadow: 0 2px 8px rgba(128,0,0,0.2);
    z-index: 4;
    pointer-events: none;
    transform: translateX(-50%);
}

.redeem-range {
    position: absolute;
    width: 100%;
    height: 24px;
    -webkit-appearance: none;
    background: transparent;
    outline: none;
    z-index: 3;
    margin: 0;
    cursor: pointer;
}

.redeem-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--gray);
}

.coins-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 30px;
    margin-top: 1rem;
    border: 1px dashed rgba(128,0,0,0.2);
}

.preview-text {
    font-size: 0.85rem;
    color: var(--gray);
}

.preview-discount {
    font-weight: 700;
    color: var(--forest-green);
    font-size: 1rem;
}

.btn-redeem {
    width: 100%;
    background: var(--maroon);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-redeem:hover:not(:disabled) {
    background: #9c2222;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128,0,0,0.2);
}

.btn-redeem:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coins-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(27,77,62,0.05);
    padding: 0.7rem 1rem;
    border-radius: 30px;
    margin-top: 0.8rem;
    border: 1px solid rgba(27,77,62,0.15);
}

.applied-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--forest-green);
    font-size: 0.85rem;
}

.applied-remove {
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.applied-remove:hover {
    color: #dc3545;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .category-card {
        min-width: 160px;
    }
}

@media (max-width: 991px) {
    .category-card {
        min-width: 140px;
    }
    .category-icon-wrapper {
        width: 55px;
        height: 55px;
    }
    .category-icon {
        font-size: 1.8rem;
    }
    .category-custom-icon {
        width: 55px;
        height: 55px;
    }
    .product-image-container {
        height: 150px !important;
    }
    .featured-wrapper .row.g-4 > .col-md-6.col-lg-3,
    .category-section .row.g-4 > .col-md-3 {
        width: 50%;
        padding-left: 8px;
        padding-right: 8px;
        flex: 0 0 auto;
    }
    .product-content {
        padding: 12px 10px 12px;
    }
    .product-title-modern {
        font-size: 0.85rem;
    }
    .current-price {
        font-size: 0.9rem !important;
    }
    .original-price {
        display: none;
    }
    .price-container .discount-percent {
        margin-left: 30px !important;
        margin-bottom: -2px !important;
        margin-top: -8px !important;
        font-size: 0.5rem !important;
        padding: 1px 4px;
        order: -1;
        align-self: flex-start;
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.5rem !important;
    }
    .btn-hero-primary, .btn-hero-secondary {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    .section-header .section-title {
        font-size: 1.6rem;
    }
    .featured-header-left .featured-title {
        font-size: 1.5rem;
    }
    .seller-header h2 {
        font-size: 1.8rem;
    }
    .seller-stats-simple {
        flex-direction: column;
        gap: 15px;
    }
    .category-card {
        min-width: 120px;
    }
    .category-title {
        font-size: 0.8rem;
    }
    .category-count {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .featured-wrapper .row.g-4 > .col-md-6.col-lg-3,
    .category-section .row.g-4 > .col-md-3 {
        width: 100%;
    }
    .container {
        padding: 0 15px;
    }
    .cart-item {
        padding: 10px;
    }
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    .category-card {
        min-width: 100px;
        padding: 15px 8px 12px;
    }
    .category-title {
        font-size: 0.7rem;
    }
    .category-count {
        font-size: 0.55rem;
    }
    .category-icon-wrapper {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }
    .category-icon {
        font-size: 1.2rem;
    }
    .category-custom-icon {
        width: 40px;
        height: 40px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .navbar,
    footer,
    .btn,
    .mobile-toggle {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    body {
        background: white;
    }
}

/* ===== PERFORMANCE: REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .category-card,
    .category-icon-wrapper,
    .category-custom-icon,
    .category-icon,
    .nav-arrow,
    .product-card-modern,
    .product-img-modern {
        transition: none !important;
    }
    
    .category-card:hover {
        transform: none !important;
    }
    
    .category-card:hover .category-icon-wrapper {
        transform: none !important;
    }
    
    .category-card:hover .category-custom-icon {
        transform: none !important;
    }
    
    .category-card:hover .category-icon {
        transform: none !important;
    }
}