/* Modern E-commerce Design - Inspired by premium templates */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --content-side-space: 96px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reserve space for scrollbar so left/right margins stay equal */
html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    padding-top: 140px; /* Space for fixed top-header (73px) + main-navbar (67px) */
    transition: padding-top 0.4s ease;
    overflow-x: hidden;
}

body.has-floating-coupon {
    padding-top: 200px; /* Header + Coupon Banner */
}

/* Content blocks: side margin (hero slider stays full width) */
.container,
.container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: var(--content-side-space) !important;
    padding-right: var(--content-side-space) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Hero slider only: break out to full width (no side margin) */
.container > #heroSlider,
.container > .hero-section {
    margin-left: calc(-1 * var(--content-side-space)) !important;
    margin-right: calc(-1 * var(--content-side-space)) !important;
    width: calc(100% + 2 * var(--content-side-space)) !important;
    max-width: none !important;
}

/* Responsive side spacing: reduce on tablet and mobile */
@media (max-width: 992px) {
    :root {
        --content-side-space: 48px;
    }
}
/* Tablet: reduced left/right space */
@media (min-width: 769px) and (max-width: 991px) {
    :root {
        --content-side-space: 24px;
    }
}
@media (max-width: 768px) {
    :root {
        --content-side-space: 24px;
    }
}
@media (max-width: 576px) {
    :root {
        --content-side-space: 8px;
    }
}

/* ========== Tablet view (768px - 991px): responsive like desktop and mobile ========== */
@media (min-width: 768px) and (max-width: 991px) {
    /* Equal left and right margin/padding on tablet */
    .container,
    .container-fluid {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Section titles scale on tablet */
    .section-title-modern,
    .display-5,
    .display-6 {
        font-size: 1.75rem !important;
    }
    .section-subtitle-modern {
        font-size: 0.95rem;
    }
    /* Product block and image: no border radius on tablet */
    .product-card {
        border-radius: 0 !important;
    }
    .product-card > .position-relative {
        border-radius: 0 !important;
    }
    .product-card .card-img-top {
        border-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
    /* Product cards: comfortable padding and spacing */
    .product-card .card-body {
        padding: 1.25rem 1.25rem 1.25rem;
    }
    .product-card .card-title {
        font-size: 1rem;
    }
    /* Product grid: ensure row gutters on tablet */
    .row.g-4 > [class*="col-"] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    /* Product block (Best Sellers / Featured): full width on tablet, equal left/right space */
    .container .section-with-side-decor:has(.product-card) {
        margin-left: calc(-1 * var(--content-side-space)) !important;
        margin-right: calc(-1 * var(--content-side-space)) !important;
        width: calc(100% + 2 * var(--content-side-space)) !important;
        max-width: none !important;
    }
    .container .section-with-side-decor:has(.product-card) > section {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    /* Best Sellers only: reduced left/right space on tablet */
    .container .section-with-side-decor.best-sellers-block > section {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    /* Products listing page: reduced left/right space on tablet */
    .products-page.container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    /* Category show page (e.g. /categories/slug): reduced left/right space on tablet */
    .category-show-page.container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    /* Category block: full width on tablet so 3 cards fit in one row */
    .container .section-with-side-decor:has(.category-section-modern) {
        margin-left: calc(-1 * var(--content-side-space)) !important;
        margin-right: calc(-1 * var(--content-side-space)) !important;
        width: calc(100% + 2 * var(--content-side-space)) !important;
        max-width: none !important;
    }
    .container .section-with-side-decor:has(.category-section-modern) .category-section-modern {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    /* Category cards: 3 per row, smaller gutters so cards are wider and fit properly */
    .category-section-modern .row.g-4 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
    .category-section-modern .row.g-4 > [class*="col-"] {
        flex: 0 0 calc((100%) / 3) !important;
        max-width: calc((100%) / 3) !important;
        min-width: 0;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        box-sizing: border-box;
    }
    /* Tables: horizontal scroll on tablet so layout doesn't break */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table.table {
        min-width: 600px;
    }
    /* Forms: stack or comfortable width on tablet */
    .checkout-form .row [class*="col-"],
    .profile-form .row [class*="col-"] {
        margin-bottom: 0.75rem;
    }
    /* Order detail / product detail: ensure main content area uses space well */
    .col-lg-8.col-md-12,
    .col-lg-6.col-md-12 {
        margin-bottom: 1rem;
    }
    /* Certificates block inner padding on tablet */
    .certificates-block-inner {
        padding-left: 24px;
        padding-right: 24px;
    }
    /* Footer: allow columns to wrap cleanly */
    .modern-footer .row [class*="col-"] {
        margin-bottom: 1.25rem;
    }
}

/* Top Header */
.top-header {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.top-header .container {
    max-width: 100%;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    flex: 0 0 auto;
    min-width: 150px;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

@media (min-width: 992px) {
    .header-logo {
        min-width: 200px;
    }
    .site-logo {
        max-height: 72px;
        width: auto;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    /* Top header is taller with larger logo; push navbar below it */
    body {
        padding-top: 178px !important;
    }
    .main-navbar {
        top: 106px !important;
    }
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 100%;
    position: relative;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    color: #111827;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 0.625rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-button:hover {
    color: var(--primary-color);
}

.search-button i {
    font-size: 1rem;
}

/* Header Cart Section */
.header-cart {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-summary {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    border: 1px solid;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cart-summary:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.cart-summary i.fa-shopping-cart {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cart-count {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.cart-divider {
    color: #d1d5db;
    margin: 0 0.25rem;
}

.cart-summary .rupee-icon {
    color: #111827;
    font-size: 1.2rem;
    display: inline-block;
    font-weight: 600;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.cart-total {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.logout-link {
    color: #111827;
    text-decoration: none;
    font-size: 0.95rem;
    background: none;
    border: 1px solid;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.logout-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
    cursor: pointer;
}

.logout-link i {
    color: inherit;
    font-size: 0.9rem;
}

.logout-link strong {
    font-weight: 600;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

/* Keep dropdown open when hovering over it or the menu itself - controlled by JavaScript */
.user-dropdown-menu.show-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #111827;
    cursor: pointer;
    border: 1px solid;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.user-trigger:hover {
    background: #f3f4f6;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.user-trigger i {
    color: var(--primary-color);
    font-size: 1rem;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 180px;
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Enable pointer events when menu is visible */
.user-dropdown-menu.show-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Ensure all child elements are interactive when menu is visible */
.user-dropdown-menu.show-menu * {
    pointer-events: auto !important;
}


.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #111827;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}




.user-dropdown-menu .dropdown-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}


.user-dropdown-menu .dropdown-item i {
    color: var(--primary-color);
    width: 16px;
}

.dropdown-item-form {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    pointer-events: auto;
    position: relative;
}

/* Bridge to prevent gap between submenu and logout form */
.dropdown-item-form::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    pointer-events: auto;
    z-index: 1;
}

.dropdown-item-form .dropdown-item {
    border-top: 1px solid #e5e7eb;
    margin-top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #111827;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
}

.dropdown-item-form .dropdown-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.dropdown-item-form .dropdown-item i {
    color: var(--primary-color);
    width: 16px;
}

/* Dropdown Submenu */
.user-dropdown-menu .dropdown-submenu {
    position: relative;
}

.user-dropdown-menu .dropdown-submenu .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 1rem;
    color: #111827;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    gap: 0.75rem;
}

.user-dropdown-menu .dropdown-submenu .dropdown-toggle i.fa-shopping-bag {
    color: var(--primary-color);
    width: 16px;
}

.user-dropdown-menu .dropdown-submenu .dropdown-toggle i.fa-chevron-right {
    margin-left: auto;
    font-size: 0.75rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.user-dropdown-menu .dropdown-submenu:hover .dropdown-toggle {
    background: #f3f4f6;
    color: var(--primary-color);
}

.user-dropdown-menu .dropdown-submenu:hover .dropdown-toggle i.fa-chevron-right {
    transform: translateX(3px);
    color: var(--primary-color);
}

.user-dropdown-menu .dropdown-submenu-content {
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: auto;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: auto;
    padding: 0;
    pointer-events: none !important;
    white-space: normal;
    margin: 0;
    width: 100%;
}

/* Hide all items inside submenu-content by default */
.user-dropdown-menu .dropdown-submenu-content .dropdown-item,
.user-dropdown-menu .dropdown-submenu-content a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    padding-left: 2rem !important;
}

/* Show submenu only when hovering directly on the dropdown-submenu container */
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    pointer-events: auto !important;
    height: auto !important;
    padding: 0 !important;
    padding-bottom: 0.25rem !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
}

.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content a,
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content .dropdown-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content span,
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content i,
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content .badge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: revert !important;
    margin: revert !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

/* Keep submenu visible when hovering over the submenu content itself */
.user-dropdown-menu .dropdown-submenu-content:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    pointer-events: auto !important;
    height: auto !important;
    padding: 0 !important;
    padding-bottom: 0.25rem !important;
    overflow: visible !important;
}

.user-dropdown-menu .dropdown-submenu-content:hover .dropdown-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    position: static !important;
}

.user-dropdown-menu .dropdown-submenu-content:hover i,
.user-dropdown-menu .dropdown-submenu-content:hover span,
.user-dropdown-menu .dropdown-submenu-content:hover .badge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: revert !important;
    margin: revert !important;
    overflow: visible !important;
    pointer-events: auto !important;
    position: static !important;
}

.user-dropdown-menu .dropdown-submenu-content:hover a,
.user-dropdown-menu .dropdown-submenu-content:hover .dropdown-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.user-dropdown-menu .dropdown-submenu-content:hover span,
.user-dropdown-menu .dropdown-submenu-content:hover i,
.user-dropdown-menu .dropdown-submenu-content:hover .badge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: revert !important;
    margin: revert !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

/* Submenu items - hidden by default, shown only when submenu is visible */
.user-dropdown-menu .dropdown-submenu-content .dropdown-item {
    padding: 0.75rem 1rem;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #111827;
    transition: background 0.2s ease;
    gap: 0.75rem;
}

/* Show submenu items when submenu is visible - override the * rule */
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content .dropdown-item,
.user-dropdown-menu .dropdown-submenu-content:hover .dropdown-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    gap: 0.75rem !important;
    justify-content: flex-start !important;
}

.user-dropdown-menu .dropdown-submenu-content .dropdown-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
    text-decoration: none;
}

.user-dropdown-menu .dropdown-submenu-content .dropdown-item i {
    color: var(--primary-color);
    width: 16px;
    flex-shrink: 0;
    margin: 0;
}

.user-dropdown-menu .dropdown-submenu-content .dropdown-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
    pointer-events: none;
}

/* Password Input with Eye Icon */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--primary-color, #007bff);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--primary-color, #007bff);
}

.password-toggle-btn i {
    font-size: 1rem;
}

/* Main Navigation Bar */
.main-navbar {
    background: var(--primary-color);
    padding: 0;
    margin: 0;
    position: fixed;
    top: 73px; /* Height of top-header (approximately) */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
}

.main-navbar .container {
    max-width: 100%;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    gap: 1.5rem;
    min-height: 50px;
}

/* Ensure All Categories button is always visible */
.all-categories-btn {
    display: flex !important;
}

.all-categories-btn {
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid #d1d5db;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 44px;
    min-width: 280px;
    line-height: 1;
}

.all-categories-btn i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.all-categories-btn:hover {
    background: #f9fafb;
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    height: 100%;
}

/* Hide nav-links on tablet and mobile by default */
@media (max-width: 992px) {
    .nav-links {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
}

.main-navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    height: 100%;
}

/* Hide navbar-nav on tablet and mobile by default */
@media (max-width: 992px) {
    .main-navbar .navbar-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-navbar .navbar-nav {
        display: none !important;
    }
}

.main-navbar .nav-item {
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Hide nav-item on tablet and mobile by default */
@media (max-width: 992px) {
    .main-navbar .nav-item {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-navbar .nav-item {
        display: none !important;
    }
}

.main-navbar .nav-links .nav-item {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 4px !important;
    min-height: 44px;
    flex: 1 1 0;
    min-width: 280px;
}
.main-navbar .nav-links .nav-item:first-child {
    margin-left: 0 !important;
}
.main-navbar .nav-links .nav-item:last-child {
    margin-right: 0 !important;
}
.main-navbar .nav-links .nav-item:hover {
    background: #f9fafb !important;
}

.main-navbar .nav-link {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 100%;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

/* Hide nav-link on tablet and mobile by default */
@media (max-width: 992px) {
    .main-navbar .nav-link {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-navbar .nav-link {
        display: none !important;
    }
}

/* Hide category menus on tablet and mobile - ensure all selectors are covered */
@media (max-width: 991.98px) {
    .main-navbar .nav-item,
    .main-navbar .nav-link,
    .nav-links,
    .main-navbar .navbar-nav,
    .main-navbar .nav-wrapper .nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

@media (max-width: 767.98px) {
    .main-navbar .nav-item,
    .main-navbar .nav-link,
    .nav-links,
    .main-navbar .navbar-nav,
    .main-navbar .nav-wrapper .nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

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

.user-menu {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 0.5rem;
}

.user-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.user-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Categories Dropdown */
.categories-dropdown {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
}

/* Ensure dropdown is visible and properly styled on all devices */
#categoriesMenu.collapse:not(.show) {
    display: none;
}

#categoriesMenu.collapse.show {
    display: block;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.category-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 992px) {
    body {
        padding-top: 180px; /* More space for stacked headers on tablet */
    }
    
    .header-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-logo,
    .header-search,
    .header-cart {
        width: 100%;
    }
    
    .header-search {
        max-width: 100%;
    }
    
    .header-cart {
        justify-content: flex-start;
    }
    
    .user-dropdown-menu {
        right: auto;
        left: 0;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .nav-wrapper {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .main-navbar {
        top: 73px; /* Height of top-header */
    }
    
    /* Hide category navigation links on tablet and mobile - use very specific selectors */
    .main-navbar .nav-wrapper .nav-links,
    .main-navbar .nav-links,
    .nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav,
    .main-navbar .nav-links .navbar-nav,
    .main-navbar .navbar-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav .nav-item,
    .main-navbar .nav-links .navbar-nav .nav-item,
    .main-navbar .navbar-nav .nav-item,
    .main-navbar .nav-item {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav .nav-item .nav-link,
    .main-navbar .nav-links .navbar-nav .nav-item .nav-link,
    .main-navbar .navbar-nav .nav-item .nav-link,
    .main-navbar .nav-link {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .user-menu {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .all-categories-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 180px; /* More space for stacked headers on mobile */
    }
    
    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .main-navbar {
        position: fixed;
        top: 73px; /* Height of top-header */
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .search-container {
        flex-direction: row;
    }
    
    .search-button {
        width: auto;
        margin-top: 0;
    }
    
    /* Hide category navigation links on mobile - use very specific selectors */
    .main-navbar .nav-wrapper .nav-links,
    .main-navbar .nav-links,
    .nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav,
    .main-navbar .nav-links .navbar-nav,
    .main-navbar .navbar-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav .nav-item,
    .main-navbar .nav-links .navbar-nav .nav-item,
    .main-navbar .navbar-nav .nav-item,
    .main-navbar .nav-item {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav .nav-item .nav-link,
    .main-navbar .nav-links .navbar-nav .nav-item .nav-link,
    .main-navbar .navbar-nav .nav-item .nav-link,
    .main-navbar .nav-link {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .all-categories-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .nav-wrapper {
        justify-content: space-between;
    }
    
    /* Categories dropdown styling for mobile */
    .categories-dropdown {
        padding: 1.5rem 0;
    }
    
    .category-link {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .cart-box {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Product Cards - Modern Design */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 365px;
    max-width: 100%;
    /* margin-left: 0.5rem; */
    /* margin-right: 0.5rem; */
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Image block: square container, image fits inside without stretching */
.product-card > .position-relative {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0 !important;
}

.product-card > .position-relative a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .card-img-top {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--light-bg);
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.product-card:hover .card-img-top {
    transform: scale(1.03);
}

/* Desktop: ensure no border radius on product block and image */
@media (min-width: 992px) {
    .product-card,
    .product-card > .position-relative,
    .product-card .card-img-top {
        border-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
}

.product-card .card-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.35rem;
}

/* Ensure consistent card body layout */
.product-card .card-body > * {
    flex-shrink: 0;
}

/* Reserve space for rating (min-height so layout doesn't shift when rating is present/absent) */
.product-card .product-rating {
    min-height: 1.25rem;
    margin-bottom: 0.25rem;
}

.product-card .card-text {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Tighten space between price row and button */
.product-card .card-body .d-flex.justify-content-between,
.product-card .card-body .mb-3 {
    margin-bottom: 0.35rem !important;
}

.product-card .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-top: 0.15rem;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.product-card .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card .btn-primary i,
.product-card .btn-primary .me-2 {
    font-size: 1.15rem;
    margin-right: 0.2rem !important;
    margin-inline-end: 0.2rem !important;
}

.product-card .card-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.product-card .card-title a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Override Bootstrap text-primary to use admin-managed primary color */
.text-primary {
    color: var(--primary-color) !important;
}

/* Ensure product card prices use admin-managed primary color */
.product-card .text-primary,
.product-card .fw-bold.text-primary,
.card-body .text-primary,
.card-body .fw-bold.text-primary {
    color: var(--primary-color) !important;
}

.discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Filter Card */
.filter-card {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.filter-card .card-header {
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.filter-card .card-body {
    padding: 1.25rem;
}

.filter-card .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-card .form-control,
.filter-card .form-select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
    outline: none;
}

.filter-card .btn {
    font-weight: 600;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-card .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Category Checkboxes Styling */
.category-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f9fafb;
}

.category-checkboxes::-webkit-scrollbar {
    width: 6px;
}

.category-checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.category-checkboxes::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.category-checkboxes::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.category-checkboxes .form-check {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.category-checkboxes .form-check:hover {
    background-color: #ffffff;
}

.category-checkboxes .form-check-input {
    margin-top: 0.35rem;
    margin-left: 0.5rem;
    cursor: pointer;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid #6b7280;
}

.category-checkboxes .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.category-checkboxes .form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    margin-left: 0.5rem;
    user-select: none;
}

.category-checkboxes .form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-card .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Pagination Styling - Circular Design */
.pagination-wrapper {
    margin: 2.5rem 0;
    padding: 0;
    width: 100%;
}

/* Override any Bootstrap pagination defaults */
.pagination-wrapper .pagination {
    gap: 0.5rem !important;
}

.pagination-wrapper nav {
    display: block;
}

.pagination-info {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pagination-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.pagination {
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 0;
    list-style: none;
}

.pagination .page-link {
    color: #5f6368;
    border: 1px solid #e0e0e0;
    padding: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 42px;
    height: 42px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    background: #f8f8f8;
    box-shadow: none;
    line-height: 1;
}

.pagination .page-link:hover:not(.disabled) {
    background: #e8e8e8;
    color: #5f6368;
    border-color: #d0d0d0;
    transform: none;
}

/* Override Bootstrap defaults */
.pagination .page-link,
.pagination .page-link * {
    font-size: 0.875rem !important;
    line-height: 1 !important;
}

.pagination .pagination-arrow {
    display: inline-block;
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 400;
    color: inherit;
}

.pagination .page-link i {
    font-size: 0.75rem;
    color: #5f6368;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: none;
    font-weight: 500;
    cursor: default;
}

.pagination .page-item.active .page-link:hover {
    transform: none;
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background: #f8f8f8;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    background: #f8f8f8;
    color: #9ca3af;
    border-color: #e0e0e0;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link i {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 767px) {
    .pagination-wrapper {
        margin: 2rem 0;
    }

    .pagination .page-link {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* Custom Pagination - Circular Design */
.custom-pagination {
    margin: 3rem 0 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.pagination-btn:hover:not(.disabled):not(.pagination-btn-active) {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.pagination-btn-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    cursor: default;
}

.pagination-btn-active:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.pagination-btn.disabled {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-btn.disabled:hover {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #9ca3af;
}

.pagination-btn-nav {
    font-size: 0.875rem;
    font-weight: 400;
}

.pagination-dots {
    color: #5f6368;
    padding: 0 0.25rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 767px) {
    .custom-pagination {
        margin: 2rem 0;
    }

    .pagination-btn {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }
}

/* Price Range Slider */
.price-range-container {
    padding: 0.5rem 0;
}

.price-range-slider {
    position: relative;
    width: 100%;
    height: 6px;
    margin: 1.5rem 0;
}

.price-range-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.price-range-fill {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    left: 0%;
    width: 100%;
    transition: all 0.1s ease;
}

.price-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
}

.price-range-min {
    z-index: 4;
}

.price-range-max {
    z-index: 3;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    -moz-appearance: none;
    appearance: none;
}

.price-range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.price-range-input::-webkit-slider-runnable-track {
    background: transparent;
    height: 6px;
}

.price-range-input::-moz-range-track {
    background: transparent;
    height: 6px;
}

.price-range-input:focus {
    outline: none;
}

.price-range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px var(--primary-color-rgba, rgba(37, 99, 235, 0.2));
}

.price-range-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px var(--primary-color-rgba, rgba(37, 99, 235, 0.2));
}

.price-range-values {
    font-size: 0.9rem;
}

.price-display {
    font-weight: 600;
    color: var(--text-dark);
}

/* Category Cards */
/* Modern Category Section */
.category-section-modern {
    padding: 2rem 0;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-subtitle-modern {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.category-card-modern {
    display: block;
    text-decoration: none;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.category-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-modern:hover .category-image-modern {
    transform: scale(1.15);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.category-card-modern:hover .category-overlay {
    opacity: 0.8;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    color: #ffffff;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.category-card-modern:hover .category-content {
    transform: translateY(-5px);
}

.category-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.category-description-modern {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.category-link-modern {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.category-card-modern:hover .category-link-modern {
    opacity: 1;
    transform: translateY(0);
}

.category-link-modern i {
    transition: transform 0.3s ease;
}

.category-card-modern:hover .category-link-modern i {
    transform: translateX(5px);
}

/* Responsive adjustments for category section */
@media (max-width: 992px) {
    .section-title-modern {
        font-size: 2rem;
    }
    
    .category-image-wrapper {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .category-section-modern {
        padding: 1.5rem 0;
    }
    
    .section-title-modern {
        font-size: 1.75rem;
    }
    
    .section-subtitle-modern {
        font-size: 1rem;
    }
    
    .category-image-wrapper {
        height: 250px;
    }
    
    .category-content {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .category-title-modern {
        font-size: 1.25rem;
    }
    
    .category-description-modern {
        font-size: 0.875rem;
    }
}

/* Category section: one category per row on mobile */
@media (max-width: 575.98px) {
    .category-section-modern .row.g-4 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Legacy category card styles (for backward compatibility) */
.category-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.category-card img {
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

/* Home page – Certificates block (below features) */
/* Certificates block: full width on desktop, minimal side space */
.certificates-block-full {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.certificates-block-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Desktop: full row with comfortable side space */
@media (min-width: 992px) {
    .certificates-block-inner {
        padding-left:100px;
        padding-right: 100px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .certificates-block-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    .certificates-block-inner {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.certificates-section {
    padding: 0;
}

.certificates-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: center;
}

/* Desktop: row fills full width, items grow to fill */
@media (min-width: 992px) {
    .certificates-row {
        justify-content: stretch;
    }
}

.certificate-item {
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}

/* Desktop: items grow to fill full row */
@media (min-width: 992px) {
    .certificate-item {
        min-width: 0;
        max-width: none;
    }
}

/* Tablet: 3 certificates per row */
@media (min-width: 577px) and (max-width: 991px) {
    .certificate-item {
        flex: 0 0 calc((100% - 3rem) / 3);
        min-width: 0;
        max-width: calc((100% - 3rem) / 3);
    }
}

@media (max-width: 576px) {
    .certificate-item {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: none;
    }
}

.certificate-card {
    padding: 1.5rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0;
    border: 2px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.certificate-icon {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.certificate-image {
    max-height: 6.5rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.certificate-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.certificate-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Certificates logos-only: single row, full width, no cards, logos only (above What Our Customers Say) */
.certificates-logos-only .certificates-row-logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem 0;
}
.certificates-logos-only .certificate-item-logo {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.certificates-logos-only .certificate-logo-only {
    max-height: 6.5rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.certificates-logos-only .certificate-icon-only {
    font-size: 3.5rem;
    color: var(--primary-color);
}

/* Desktop: certificate logos larger and aligned left */
@media (min-width: 992px) {
    .certificates-logos-only .certificates-row-logos {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 2rem;
    }
    .certificates-logos-only .certificate-item-logo {
        flex: 0 0 auto;
        justify-content: flex-start;
    }
    .certificates-logos-only .certificate-logo-only {
        max-height: 10rem;
    }
    .certificates-logos-only .certificate-icon-only {
        font-size: 5rem;
    }
}

/* Homepage - Active Coupon Codes: highlighted block, full width, single row, horizontal slide */
.home-coupons-section {
    padding: 2.5rem 0;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(30, 64, 175, 0.06) 100%);
    border: 2px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
    width: 100%;
}

@media (min-width: 992px) {
    .home-coupons-section {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 2rem 0 1rem;
        padding-left: 0;
        padding-right: 0;
    }
}

.home-coupons-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-coupons-badge {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(107, 142, 35, 0.18);
    border-radius: 8px;
    border: 1px solid rgba(107, 142, 35, 0.35);
}
.home-coupons-badge i {
    font-size: 1.1rem;
}

.home-coupons-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Coupon strip: full row, N cards visible (1 / 3 / 5), centered, auto-scroll */
.home-coupons-strip-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    --cards-visible: 1;
}

@media (min-width: 992px) {
    .home-coupons-strip-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-bottom: 0.5rem;
        box-sizing: border-box;
    }
}

.home-coupons-strip-wrapper::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .home-coupons-strip-wrapper {
        --cards-visible: 3;
    }
}

@media (min-width: 992px) {
    .home-coupons-strip-wrapper {
        --cards-visible: 5;
    }
}

.home-coupons-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    margin: 0 auto;
    width: max-content;
    flex-shrink: 0;
}

.home-coupons-strip-clone {
    margin-left: 0;
    flex-shrink: 0;
}

.home-coupons-strip .home-coupon-card {
    flex: 0 0 auto;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    position: relative;
}

.home-coupon-card::before {
    content: 'OFFER';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.45rem 0.75rem;
    line-height: 1;
    z-index: 2;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.home-coupon-card:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.home-coupon-card-inner {
    padding: 1.25rem;
    height: 100%;
}

.home-coupon-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.home-coupon-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

.home-coupon-title {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.home-coupon-code-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.home-coupon-code {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    background: var(--light-bg);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
}

.home-coupon-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.home-coupon-copy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.home-coupon-min,
.home-coupon-valid {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem;
}

.home-coupons-cta {
    text-align: center;
}

.home-coupons-shop-btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

@media (max-width: 767px) {
    .home-coupons-section {
        padding: 1rem 0;
    }
    .home-coupons-header {
        margin-bottom: 0.75rem;
    }
    .home-coupons-title {
        font-size: 1.35rem;
    }
    .home-coupons-strip-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-bottom: 0.75rem;
        box-sizing: border-box;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0.75rem;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .home-coupons-strip {
        padding-left: 0;
        padding-right: 0;
        gap: 0;
        display: flex;
        flex-wrap: nowrap;
    }
    .home-coupons-strip .home-coupon-card {
        flex: 0 0 calc(100vw - 2.25rem);
        min-width: calc(100vw - 2.25rem);
        max-width: calc(100vw - 2.25rem);
        margin-right: 0.75rem;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
    }
    .home-coupons-strip .home-coupon-card:last-child {
        margin-right: 0;
    }
    .home-coupon-card-inner {
        padding: 1rem;
    }
    .home-coupon-offer {
        margin-bottom: 0.5rem;
    }
    .home-coupon-value {
        font-size: 1.2rem;
    }
    .home-coupon-code-row {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0.35rem;
    }
    .home-coupon-copy-btn {
        width: 100%;
        justify-content: center;
    }
    .home-coupon-min,
    .home-coupon-valid {
        font-size: 0.875rem;
        margin: 0 0 0.15rem;
    }
}

/* Features Section */
.features-section {
    padding: 1rem;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.features-section .row.g-0 > [class*="col-"] {
    display: flex;
}
.feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    margin: 0 0.5rem 1rem 0.5rem;
    width: calc(100% - 1rem);
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    position: relative;
    transition: background 0.3s ease;
    background: #fdf9ed;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: default;
}
.feature-item:not(:last-child)::after {
    display: none;
}
.feature-item:hover {
    background: #faf6e8;
}

.feature-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-title {
    color: var(--secondary-color);
}

@media (min-width: 992px) {
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    .feature-icon i {
        font-size: 2.25rem;
    }
    .feature-title {
        font-size: 1.2rem;
    }
}

/* Responsive adjustments for features */
@media (max-width: 991px) {
    .feature-item:not(:last-child)::after {
        display: none;
    }
    
    .feature-item:nth-child(2n)::after {
        display: block;
    }
    
    .feature-item:nth-child(4)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .features-section {
        border-radius: 8px;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    
    .feature-item {
        padding: 1rem 0.75rem;
        gap: 0.625rem;
        justify-content: flex-start;
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
        width: calc(100% - 0.5rem) !important;
    }
    
    .feature-item:not(:last-child)::after {
        display: none;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 0.95rem;
    }
}

/* Buttons - Modern Style */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Cart Badge */
.badge {
    border-radius: 50px;
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* Organic/Biofarming Popup Design */
.organic-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.6s ease;
    padding: 1rem;
}

.organic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 50, 34, 0.85);
    backdrop-filter: blur(10px);
}

.organic-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 0;
    max-width: 550px;
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(76, 175, 80, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.organic-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    height: 100%;
    min-height: 550px;
    max-height: 550px;
}

.organic-left-panel {
    background: linear-gradient(145deg, #2e7d32 0%, #388e3c 30%, #4caf50 60%, #66bb6a 100%);
    padding: 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.organic-left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: organicRotate 20s linear infinite;
}

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

.organic-right-panel {
    background: linear-gradient(180deg, #f1f8f4 0%, #e8f5e9 50%, #f1f8f4 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 2px solid rgba(76, 175, 80, 0.15);
}

.organic-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 195, 74, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(104, 159, 56, 0.08) 0%, transparent 60%);
    opacity: 0.6;
}

.organic-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.organic-leaf {
    position: absolute;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.organic-leaf-1 {
    top: 10%;
    right: 5%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.organic-leaf-2 {
    bottom: 15%;
    right: 10%;
    width: 60px;
    height: 60px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.organic-icon-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    padding: 0.75rem;
    justify-content: center;
    height: 100%;
}

.organic-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.18) 0%, rgba(139, 195, 74, 0.22) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #4caf50;
    animation: iconPulse 3s ease-in-out infinite;
    box-shadow: 
        0 4px 12px rgba(76, 175, 80, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(76, 175, 80, 0.15);
}

.organic-icon-1 { animation-delay: 0s; }
.organic-icon-2 { animation-delay: 1s; }
.organic-icon-3 { animation-delay: 2s; }

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.organic-header-badge {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.organic-badge-text {
    display: inline-block;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 16px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.organic-brand {
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 1;
}

.organic-brand h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    line-height: 1.2;
}

.organic-offer-section {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.organic-unlock-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.organic-unlock-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    border-radius: 2px;
}

.organic-discount-main {
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 3px 15px rgba(0, 0, 0, 0.35),
        0 0 35px rgba(255, 255, 255, 0.25);
    animation: discountGlow 3s ease-in-out infinite;
}

@keyframes discountGlow {
    0%, 100% { 
        text-shadow: 
            0 3px 15px rgba(0, 0, 0, 0.35),
            0 0 35px rgba(255, 255, 255, 0.25);
    }
    50% { 
        text-shadow: 
            0 3px 20px rgba(0, 0, 0, 0.45),
            0 0 45px rgba(255, 255, 255, 0.35);
    }
}

.organic-order-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.organic-message {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.organic-actions {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.organic-btn {
    width: 100%;
    color: #ffffff;
    border: none;
    padding: 0.95rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    box-shadow: 
        0 5px 18px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.organic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.organic-btn:hover::before {
    left: 100%;
}

.organic-btn-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 50%, #43a047 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.organic-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #388e3c 0%, #43a047 50%, #4caf50 100%);
}

.organic-btn-main {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.organic-btn-sub {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.6px;
    position: relative;
    z-index: 1;
    text-transform: none;
}

.organic-btn-sub strong {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.28);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.25rem;
    display: inline-block;
}

.organic-register-link {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

.organic-register-link a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
    text-underline-offset: 2px;
}

.organic-register-link a:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.organic-disclaimer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.6rem;
    line-height: 1.6;
    margin-top: 0;
    letter-spacing: 0.2px;
}

.organic-disclaimer a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.organic-disclaimer a:hover {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.organic-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(76, 175, 80, 0.15);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(76, 175, 80, 0.4);
    color: #4caf50 !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    font-size: 1.1rem;
    opacity: 0.9;
    z-index: 10;
    font-weight: 600;
}

.organic-close i {
    color: #4caf50 !important;
}

.organic-close:hover {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.6);
    color: #388e3c !important;
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.organic-close:hover i {
    color: #388e3c !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.delayed-coupon-content {
    background: linear-gradient(145deg, #2c2c2c 0%, #1e1e1e 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.delayed-coupon-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.8) 0%,
        rgba(147, 51, 234, 0.8) 50%,
        rgba(59, 130, 246, 0.8) 100%);
    animation: shimmer 3s infinite;
}

.delayed-coupon-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.delayed-coupon-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    font-size: 1.1rem;
    opacity: 0.9;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.delayed-coupon-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.delayed-coupon-brand {
    margin-bottom: 2rem;
    padding-top: 3rem;
    position: relative;
}

.delayed-coupon-brand h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.delayed-coupon-offer {
    margin-bottom: 2.5rem;
    padding: 0 2rem;
    position: relative;
}

.delayed-coupon-unlock {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.delayed-coupon-unlock::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.delayed-coupon-discount-large {
    font-size: 5.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        0 0 20px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(147, 51, 234, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e0e7ff 30%,
        #ffffff 60%,
        #f3e8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: pulse 3s ease-in-out infinite, gradientShift 4s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.03);
        filter: brightness(1.1);
    }
}

.delayed-coupon-order-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.delayed-coupon-message {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    padding: 0 2.5rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.delayed-coupon-actions {
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.delayed-coupon-btn {
    width: calc(100% - 4rem);
    margin: 0 auto;
    color: #ffffff;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.delayed-coupon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent);
    transition: left 0.6s;
}

.delayed-coupon-btn:hover::before {
    left: 100%;
}

.delayed-coupon-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.delayed-coupon-btn:active {
    transform: translateY(-2px) scale(1);
}

.delayed-coupon-btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.delayed-coupon-btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 
        0 12px 35px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.delayed-coupon-btn-shop {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.delayed-coupon-btn-shop:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.delayed-coupon-register-link {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.5px;
}

.delayed-coupon-register-link a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
    text-underline-offset: 3px;
}

.delayed-coupon-register-link a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.delayed-coupon-btn-main {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.delayed-coupon-btn-sub {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 1.2px;
    position: relative;
    z-index: 1;
    text-transform: none;
}

.delayed-coupon-btn-sub strong {
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-left: 0.4rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.delayed-coupon-disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    line-height: 1.8;
    padding: 0 2.5rem 2rem;
    margin-top: 0;
    letter-spacing: 0.3px;
}

.delayed-coupon-disclaimer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.delayed-coupon-disclaimer a:hover {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* Coupon Suggestions on Checkout */
.coupon-suggestions {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.coupon-suggestion-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.coupon-suggestion-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.coupon-suggestion-item:last-child {
    margin-bottom: 0;
}

.apply-coupon-btn {
    white-space: nowrap;
}

/* Responsive Organic Popup */
@media (max-width: 768px) {
    .organic-content {
        max-width: 100%;
        aspect-ratio: 1;
        max-height: 90vh;
    }
    
    .organic-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1.2fr 0.3fr;
        min-height: auto;
    }
    
    .organic-right-panel {
        border-left: none;
        border-top: 2px solid rgba(76, 175, 80, 0.15);
    }
    
    .organic-icon-container {
        flex-direction: row;
        gap: 1.5rem;
        padding: 0.75rem;
    }
    
    .organic-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .organic-left-panel {
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 576px) {
    .organic-popup {
        padding: 0.5rem;
    }
    
    .organic-content {
        border-radius: 20px;
        max-width: 100%;
    }
    
    .organic-left-panel {
        padding: 1.75rem 1.5rem;
    }
    
    .organic-brand h3 {
        font-size: 0.9rem;
        letter-spacing: 2.5px;
        margin-bottom: 1rem;
    }
    
    .organic-badge-text {
        font-size: 0.65rem;
        padding: 0.4rem 0.85rem;
        letter-spacing: 2px;
    }
    
    .organic-unlock-text {
        font-size: 0.7rem;
        letter-spacing: 3px;
        margin-bottom: 0.6rem;
    }
    
    .organic-discount-main {
        font-size: 3rem;
        letter-spacing: 2px;
        margin: 0.6rem 0;
    }
    
    .organic-order-text {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .organic-close {
        top: 1rem;
        right: 1rem;
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    
    .organic-message {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .organic-btn {
        padding: 1rem 1.25rem;
        border-radius: 10px;
    }
    
    .organic-btn-main {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .organic-btn-sub {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .organic-register-link {
        font-size: 0.75rem;
        margin-top: 0.6rem;
    }
    
    .organic-disclaimer {
        font-size: 0.6rem;
        line-height: 1.6;
    }
    
    .organic-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .organic-icon-container {
        gap: 1rem;
        padding: 0.5rem;
    }
}

/* Slider/Carousel */
.slider-container {
    width: 100%;
    display: block;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #f5f5f5;
    padding: 0;
    margin: 0;
}

/* Hero slider height */
#heroSlider .slider-container {
    max-height: 580px;
}
#heroSlider .slider-image,
#heroSlider .slider-link img {
    max-height: 580px;
    width: 100%;
    height: 580px;
    object-fit: cover;
    object-position: center;
}

/* Hero slider: responsive height (tablet & mobile) */
@media (max-width: 991px) {
    #heroSlider .slider-container {
        max-height: 520px;
    }
    #heroSlider .slider-image,
    #heroSlider .slider-link img {
        height: 320px;
        max-height: 520px;
        object-fit: cover;
        object-position: center;
    }
}
@media (max-width: 768px) {
    #heroSlider .slider-container {
        max-height: 420px;
    }
    #heroSlider .slider-image,
    #heroSlider .slider-link img {
        height: 420px;
        max-height: 420px;
        object-fit: cover;
        object-position: center;
    }
}
@media (max-width: 576px) {
    #heroSlider .slider-container {
        max-height: 280px;
    }
    #heroSlider .slider-image,
    #heroSlider .slider-link img {
        height: 140px;
        max-height: 280px;
        object-fit: cover;
        object-position: center;
    }
}

.slider-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

.slider-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.slider-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile & tablet: show full image, no crop */
@media (max-width: 991px) {
    .slider-container {
        height: auto;
    }
    .slider-image,
    .slider-link img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}

/* Slider/Carousel - Old rule (kept for compatibility) */
.carousel-item img:not(.slider-image) {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
.btn-view-details-custom,.btn-track-custom{
    width:90% !important;
}
}

/* Forms - Modern Style */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Cards - Modern Style */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
}

/* Checkout Page */
.checkout-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* Checkout Card Header Button */
.card-header #useLastAddressBtn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.card-header #useLastAddressBtn:hover {
    background: #ffffff !important;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #ffffff !important;
}

.card-header #useLastAddressBtn:active {
    transform: translateY(0);
}

.card-header #useLastAddressBtn i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header #useLastAddressBtn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
}

/* Modern Footer Design - background #a8df8e, text black */
.modern-footer {
    background: #ffffff;
    color: #000;
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.footer-main {
    padding: 2.25rem 0 1.5rem;
    position: relative;
}

.footer-widget {
    margin-bottom: 1.25rem;
}

.footer-logo {
    margin-bottom: 1rem;
    background: transparent;
    padding: 0;
    display: inline-block;
}

.footer-logo-img {
    max-height: 120px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-text {
    color: #000;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.footer-description {
    color: #000;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-contact {
    color: #000;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: #000;
    width: 20px;
}

.footer-contact a {
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #000;
    text-decoration: underline;
    opacity: 0.85;
}

.footer-title {
    color: #000;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-links a i {
    font-size: 0.7rem;
    color: #000;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #000;
    padding-left: 0.5rem;
    transform: translateX(5px);
    opacity: 0.85;
}

.footer-links a:hover i {
    opacity: 1;
    color: #000;
}

.footer-bottom {
    background: #ffffff;
    padding: 0.875rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.footer-copyright {
    color: #000;
    font-size: 0.9rem;
}

.footer-copyright strong {
    color: #000;
    font-weight: 600;
}

.footer-powered {
    color: #000;
    font-size: 0.9rem;
}

/* Social Media Icons */
.footer-social-media {
    margin-top: 1.5rem;
}

.footer-social-title {
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Follow us: full-width at top of footer, then other content below */
.footer-follow-top {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.footer-follow-us-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    text-align: right;
}

/* Follow us: + icons in single line */
.footer-follow-us-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.footer-follow-label {
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-icons-inline {
    flex-wrap: nowrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    border: 2px solid transparent;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Individual Social Media Colors (default = same as hover) */
.social-facebook {
    background: #1877f2;
    border-color: #1877f2;
}
.social-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}
.social-instagram:hover {
    opacity: 0.9;
}

.social-whatsapp {
    background: #25d366;
    border-color: #25d366;
}
.social-whatsapp:hover {
    background: #20bd5a;
    border-color: #20bd5a;
}

.social-linkedin {
    background: #0077b5;
    border-color: #0077b5;
}
.social-linkedin:hover {
    background: #006399;
    border-color: #006399;
}

.social-youtube {
    background: #ff0000;
    border-color: #ff0000;
}
.social-youtube:hover {
    background: #e60000;
    border-color: #e60000;
}

.social-x {
    background: #000000;
    border-color: #000000;
}
.social-x:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 0 1.25rem;
    }

    .footer-widget {
        margin-bottom: 1.5rem;
    }
    
    .footer-social-media {
        margin-top: 1rem;
    }
    
    .social-icons {
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
    }
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--light-bg);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
/* Tablet: product cards scale with column width, square image */
@media (max-width: 991px) {
    .product-card {
        width: 100%;
        max-width: 100%;
    }
    .product-card .card-img-top {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-card .card-img-top {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
    }
    
    .carousel-item img {
        height: 140px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Payment Section */
.payment-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.payment-method {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.payment-method img {
    max-height: 40px;
    margin-bottom: 0.5rem;
}

/* User Profile Section */
.user-profile {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Order History */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

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

/* Modern Order Card Styling */
.order-card-modern {
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #ffffff;
    border-left: 4px solid var(--primary-color);
}

.order-card-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border-left-color: #f59e0b;
}

.order-info-section h5 {
    color: #1f2937;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.order-meta {
    margin-top: 0.5rem;
}

.order-meta i {
    color: var(--primary-color);
    width: 16px;
}

.order-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem !important;
}

.order-status-badge {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 20px;
}

.order-card-modern .btn-primary {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.order-card-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Ensure all buttons on order pages display icons and text horizontally */
.order-card-modern .btn,
.order-card-modern .btn-primary,
.order-card-modern .btn-sm,
.order-card-modern a.btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
}

.order-card-modern .btn i,
.order-card-modern .btn-primary i,
.order-card-modern .btn-sm i,
.order-card-modern a.btn i {
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Global button icon alignment fix for order pages */
@media (min-width: 768px) {
    .btn,
    .btn-primary,
    .btn-sm,
    a.btn,
    .btn-invoice-modern {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .btn i,
    .btn-primary i,
    .btn-sm i,
    a.btn i,
    .btn-invoice-modern i {
        display: inline-block !important;
        flex-shrink: 0 !important;
    }
}

.order-card-modern .btn-outline-secondary {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-color: #6b7280;
    color: #6b7280;
}

.order-card-modern .btn-outline-secondary:hover {
    transform: translateY(-2px);
    background: #6b7280;
    border-color: #6b7280;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Order Tracking Status Timeline */
.order-tracking-status {
    padding: 0.5rem 0;
}

/* Custom Track Button - Cyan/Turquoise */
.btn-track-custom {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    background-color: #17a2b8;
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-track-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-track-custom:hover::before {
    left: 100%;
}

.btn-track-custom:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    background-color: #138496;
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-track-custom:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.btn-track-custom i {
    font-size: 14px;
}

/* Custom View Details Button - Green Gradient */
.btn-view-details-custom {
    background: linear-gradient(135deg, #6b8e23 0%, #9acd32 100%);
    background-color: #6b8e23;
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-view-details-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.btn-view-details-custom:hover::before {
    left: 100%;
}

.btn-view-details-custom:hover {
    background: linear-gradient(135deg, #556b2f 0%, #7cb342 100%);
    background-color: #556b2f;
    box-shadow: 0 6px 16px rgba(107, 142, 35, 0.4);
    color: white;
}

.btn-view-details-custom:active {
    box-shadow: 0 2px 8px rgba(107, 142, 35, 0.3);
}

.btn-view-details-custom i {
    font-size: 14px;
}

/* Custom Invoice Button - Gray */
.btn-invoice-custom {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    background-color: #6b7280;
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    white-space: nowrap;
    min-width: fit-content;
}

.btn-invoice-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.btn-invoice-custom:hover::before {
    left: 100%;
}

.btn-invoice-custom:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    background-color: #4b5563;
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
    color: white;
}

.btn-invoice-custom:active {
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.btn-invoice-custom i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .btn-track-custom,
    .btn-view-details-custom,
    .btn-invoice-custom {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Ensure buttons don't get cut off */
.btn-invoice-custom,
.btn-view-details-custom,
.btn-track-custom {
    flex-shrink: 0;
}

.tracking-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0;
    margin: 0;
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.tracking-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
}

/* Green line extends from Order Placed to current active status */
/* If Order Placed is active, line to Shipped is green */
.tracking-step:first-child.active:not(:last-child)::after {
    background: #14b8a6;
}

/* If Shipped is active, line from Shipped to Completed is green */
.tracking-step:nth-child(2).active:not(:last-child)::after {
    background: #14b8a6;
}

.tracking-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.tracking-icon i {
    font-size: 18px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.tracking-step:first-child.active .tracking-icon {
    border-color: #14b8a6;
    background: #14b8a6;
}

.tracking-step:first-child.active .tracking-icon i {
    color: #ffffff;
}

.tracking-step:nth-child(2).active .tracking-icon {
    border-color: #14b8a6;
    background: #14b8a6;
}

.tracking-step:nth-child(2).active .tracking-icon i {
    color: #ffffff;
}

.tracking-step:nth-child(3).active .tracking-icon {
    border-color: #10b981;
    background: #10b981;
}

.tracking-step:nth-child(3).active .tracking-icon i {
    color: #ffffff;
}

.tracking-label {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.tracking-step.active .tracking-label {
    color: #111827;
    font-weight: 600;
}

.tracking-line {
    display: none;
}

/* Wishlist Heart Icon Styles */
.wishlist-btn {
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 15 !important;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
}

.wishlist-btn:active {
    transform: scale(0.95) !important;
}

.wishlist-icon {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    pointer-events: none !important;
    display: inline-block !important;
}

/* Empty heart - initially show filled red heart (before adding to wishlist) */
/* Using multiple selectors to ensure it overrides Font Awesome styles */
.wishlist-btn i.far.fa-heart,
.wishlist-btn .far.fa-heart,
.wishlist-btn .wishlist-icon.far,
.wishlist-btn i.wishlist-icon.far,
button .wishlist-icon.far.fa-heart,
.wishlist-icon.far.fa-heart,
i.wishlist-icon.far.fa-heart {
    color: #dc3545 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #dc3545 !important;
    fill: #dc3545 !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
}

/* Hover effect - fully filled vibrant red heart with glow effect (only for empty hearts) */
.wishlist-btn:hover i.far.fa-heart,
.wishlist-btn:hover .far.fa-heart,
.wishlist-btn:hover .wishlist-icon.far,
.wishlist-btn:hover i.wishlist-icon.far,
button:hover .wishlist-icon.far.fa-heart,
.wishlist-btn:hover .wishlist-icon.far.fa-heart,
.wishlist-btn:hover i.wishlist-icon.far.fa-heart {
    color: #dc3545 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #dc3545 !important;
    fill: #dc3545 !important;
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.6), 0 0 12px rgba(220, 53, 69, 0.4) !important;
    filter: drop-shadow(0 0 4px rgba(220, 53, 69, 0.8)) !important;
    transform: scale(1.2) !important;
    transition: all 0.3s ease !important;
}

/* Filled heart (already in wishlist) - solid red */
.wishlist-btn i.fas.fa-heart,
.wishlist-btn .fas.fa-heart,
.wishlist-btn .wishlist-icon.fas,
.wishlist-btn i.wishlist-icon.fas,
button .wishlist-icon.fas.fa-heart,
.wishlist-icon.fas.fa-heart,
i.wishlist-icon.fas.fa-heart {
    color: #dc3545 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #dc3545 !important;
    fill: #dc3545 !important;
    text-shadow: none !important;
}

/* Hover on filled heart - keep it filled with glow effect */
.wishlist-btn:hover i.fas.fa-heart,
.wishlist-btn:hover .fas.fa-heart,
.wishlist-btn:hover .wishlist-icon.fas,
.wishlist-btn:hover i.wishlist-icon.fas,
button:hover .wishlist-icon.fas.fa-heart,
.wishlist-btn:hover .wishlist-icon.fas.fa-heart,
.wishlist-btn:hover i.wishlist-icon.fas.fa-heart {
    color: #dc3545 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #dc3545 !important;
    fill: #dc3545 !important;
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.6), 0 0 12px rgba(220, 53, 69, 0.4) !important;
    filter: drop-shadow(0 0 4px rgba(220, 53, 69, 0.8)) !important;
    transform: scale(1.2) !important;
    transition: all 0.3s ease !important;
}

/* Ensure product card doesn't block wishlist button */
.product-card {
    position: relative;
}

.product-card .position-relative {
    position: relative;
}

/* Modern Attractive Breadcrumb Design */
.modern-breadcrumb {
    margin-bottom: 2rem;
    padding: 0;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-item-modern {
    display: flex;
    align-items: center;
    position: relative;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.breadcrumb-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border-color: var(--primary-color);
}

.breadcrumb-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.breadcrumb-link:hover i {
    transform: scale(1.1);
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 0 0.25rem;
    opacity: 0.6;
}

.breadcrumb-separator i {
    font-size: 0.7rem;
}

.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.breadcrumb-current::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.breadcrumb-current:hover::before {
    left: 100%;
}

.breadcrumb-current i {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* Product grid: more space between cards */
.row.g-4 > [class*="col-"] {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Responsive breadcrumb */
/* Mobile Product Cards - 2 per row, minimal side space */
@media (max-width: 575.98px) {
    .products-grid .col-6,
    .row.g-4 .col-6,
    .row.g-4 .col-lg-4,
    .row.g-4 .col-md-6,
    .row.g-4 .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    
    .row.g-4 {
        margin-left: -0.35rem;
        margin-right: -0.35rem;
    }
    
    .row.g-4 > [class*="col-"] {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    
    .product-card {
        /* margin-bottom: 1rem; */
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }
    
    .product-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
    
    .product-card .card-img-top {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .product-card .card-body {
        padding: 0.75rem 1rem 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .product-card .product-rating {
        min-height: 1.25rem;
        margin-bottom: 0.2rem;
    }
    
    .product-card .card-title {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
        line-height: 1.3;
        min-height: 2.6em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-card .card-title a {
        color: #111827;
        text-decoration: none;
    }
    
    .product-card .card-text {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        color: #6b7280;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.1em;
    }
    
    .product-card {
        border: 1px solid #f0f0f0;
    }
    
    .product-card .discount-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        font-weight: 600;
        border-radius: 4px;
    }
    
    .product-card .wishlist-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        transition: all 0.2s ease;
    }
    
    .product-card .wishlist-btn:hover {
        background: rgba(255, 255, 255, 1) !important;
        transform: scale(1.1);
    }
    
    .product-card .wishlist-icon {
        font-size: 14px !important;
    }
    
    .product-card .btn-primary {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
        border-radius: 6px;
        font-weight: 500;
        margin-bottom: 0;
    }
    
    .product-card .btn-primary i {
        font-size: 1rem;
    }
    
    .product-card .text-decoration-line-through {
        font-size: 0.7rem;
        color: #9ca3af;
    }
    
    .product-card .fw-bold.text-primary {
        font-size: 0.95rem;
        font-weight: 700;
    }
    
    .product-card .d-flex.justify-content-between {
        flex-wrap: nowrap;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .product-card .d-flex.flex-column {
        gap: 0.2rem;
    }
    
    .product-card .d-flex.flex-column .fw-bold.text-primary {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .breadcrumb-modern {
        gap: 0.25rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .breadcrumb-separator {
        padding: 0 0.15rem;
    }
    
    .breadcrumb-link i,
    .breadcrumb-current i {
        font-size: 0.75rem;
        margin-right: 0.35rem;
    }
}

/* Fancy Animated Popup Notifications */
.notification-container {
    position: fixed;
    top: 150px;
    left: 0;
    right: 0;
    transform: none;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    width: 100%;
    pointer-events: none;
    padding: 0;
    margin: 0;
}

.notification-popup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    transform: translateY(-100%);
    opacity: 0;
    animation: slideDownFromTop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.notification-content-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-popup::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    border-radius: 12px 0 0 12px;
}

.notification-popup.success {
    border-left: 4px solid #10b981;
    color: #065f46;
}

.notification-popup.error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.notification-popup.warning {
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.notification-popup.info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.notification-popup.hiding {
    animation: slideUpToTop 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

@keyframes slideDownFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpToTop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

.notification-popup.success .notification-icon {
    background: #d1fae5;
    color: #10b981;
}

.notification-popup.error .notification-icon {
    background: #fee2e2;
    color: #ef4444;
}

.notification-popup.warning .notification-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.notification-popup.info .notification-icon {
    background: #dbeafe;
    color: #3b82f6;
}

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

.notification-content-wrapper {
    max-width: 100%;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    box-sizing: border-box;
}

.notification-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

.notification-popup.error .notification-message,
.notification-popup.success .notification-message {
    color: #374151;
}

.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progressBar 5s linear forwards;
    border-radius: 0 0 12px 12px;
}

@keyframes progressBar {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* Error list styling */
.notification-error-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style: none;
}

.notification-error-list li {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    position: relative;
}

.notification-error-list li::before {
    content: '•';
    position: absolute;
    left: -14px;
    color: currentColor;
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 130px;
        width: calc(100% - 20px);
        max-width: 100%;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
    
    .notification-popup {
        padding: 12px 14px;
        border-radius: 8px;
        margin: 10px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .notification-content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .notification-content {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .notification-title {
        font-size: 14px;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .notification-message {
        font-size: 13px;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .notification-message p {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        margin: 0;
    }
    
    .notification-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .notification-close {
        flex-shrink: 0;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .notification-container {
        top: 145px;
        max-width: 100%;
        width: calc(100% - 40px);
    }
    
    .notification-popup {
        margin: 10px 0;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN FIXES
   ============================================ */

/* Cart Page - Table Responsive */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    .table img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Product Detail Page - Image Carousel */
@media (max-width: 768px) {
    #productCarousel img {
        height: 300px !important;
    }
}

/* Orders Page - Tracking Timeline */
@media (max-width: 992px) {
    .tracking-timeline {
        flex-direction: row;
        justify-content: center;
        margin: 1rem 0;
    }
    
    .tracking-step {
        flex: 1;
        max-width: 120px;
    }
    
    .tracking-label {
        font-size: 0.75rem;
    }
}

/* Checkout Page - Form Fields */
@media (max-width: 768px) {
    .checkout-form .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Profile Page - Form Layout */
@media (max-width: 768px) {
    .profile-form .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Product Cards - Better spacing on mobile */
@media (max-width: 576px) {
    .product-card {
        /* margin-bottom: 1rem; */
    }
    
    .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 0.75rem;
    }
    
    .product-card .card-img-top {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
    }

    .product-card .card-body {
        padding: 0.875rem 0.875rem 0.5rem;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .product-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Header - Better mobile layout */
@media (max-width: 576px) {
    .header-cart {
        font-size: 0.875rem;
    }
    
    .cart-summary {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .user-name {
        display: none;
    }
}

/* Container on mobile - keep full width */
@media (max-width: 576px) {
    .container.my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Products listing page: minimal left/right space on mobile */
@media (max-width: 767.98px) {
    .products-page.container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Tighter gutters on product row so cards use more width */
    .products-page .row.g-4 > [class*="col-"] {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}

/* Profile page: address textarea same width as input fields on mobile */
@media (max-width: 767.98px) {
    .profile-page #address,
    .profile-page textarea.form-control[name="address"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Product Rating Styles */
.product-rating {
    display: flex;
    align-items: center;
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card .product-rating {
    min-height: 1.25rem;
    height: 1.25rem;
    margin-bottom: 0.25rem;
    display: block;
}

.product-card .product-rating > div {
    height: 100%;
    display: flex;
    align-items: center;
}

.product-rating .fa-star {
    font-size: 0.875rem;
}

.product-rating .text-warning {
    color: #ffc107 !important;
}

.product-rating .text-muted {
    color: #dee2e6 !important;
}

/* Reserve space for rating even when not present */
.product-card .card-body {
    position: relative;
}

.product-card .card-title {
    margin-bottom: 0.2rem;
}

/* Ensure consistent spacing after title - reserve space for rating */
.product-card .card-title + * {
    margin-top: 0;
}

/* Reviews Slider Section - Modern Design Matching Theme */
.reviews-slider-section {
    padding: 4rem 0;
    background: var(--light-bg);
    border-radius: 0;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.reviews-slider-section::before {
    display: none;
}

.reviews-slider-section .text-center h2 {
    color: var(--text-dark);
    text-shadow: none;
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.reviews-slider-section .text-center p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.review-card-simple {
    background: #fdf9ed;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.review-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.review-card-simple:hover::before {
    transform: scaleX(1);
}

.review-card-simple:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.review-rating-simple {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.review-rating-simple .fa-star {
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.review-rating-simple .text-warning {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.review-rating-simple .text-muted {
    color: #d3d3d3 !important;
}

.review-content-simple {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    position: relative;
}

.review-content-simple::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-comment-simple {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2d3748;
    font-style: italic;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.1em;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.reviewer-info-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.reviewer-avatar-simple {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.review-card-simple:hover .reviewer-avatar-simple {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.reviewer-details-simple {
    text-align: left;
}

.reviewer-details-simple strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Carousel Controls - Show on all devices */
.reviews-carousel-control {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.reviews-carousel-prev {
    left: 10px;
}

.reviews-carousel-next {
    right: 10px;
}

.reviews-carousel-control:hover {
    opacity: 1;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.reviews-carousel-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.reviews-carousel-control .carousel-control-prev-icon,
.reviews-carousel-control .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    filter: invert(27%) sepia(95%) saturate(2878%) hue-rotate(212deg) brightness(92%) contrast(96%);
}

.reviews-carousel-control:hover .carousel-control-prev-icon,
.reviews-carousel-control:hover .carousel-control-next-icon {
    filter: invert(27%) sepia(95%) saturate(2878%) hue-rotate(212deg) brightness(92%) contrast(96%);
}

/* Custom Reviews Carousel - One by one scrolling */
.reviews-carousel-wrapper {
    position: relative;
    padding: 1rem 0;
    overflow: hidden;
}

.reviews-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.reviews-carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
    width: 100%;
}

.review-slide-item {
    flex: 0 0 100%;
    padding: 10px 0.75rem;
    box-sizing: border-box;
}

/* Desktop: 3 reviews per view */
@media (min-width: 1200px) {
    .review-slide-item {
        flex: 0 0 33.333333%;
    }
}

/* Tablet: 2 reviews per view */
@media (min-width: 768px) and (max-width: 1199px) {
    .review-slide-item {
        flex: 0 0 50%;
    }
}

/* Mobile: 1 review per view */
@media (max-width: 767px) {
    .review-slide-item {
        flex: 0 0 100%;
    }
}

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

.review-card-simple {
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 1200px) {
    .review-card-simple {
        padding: 1.75rem 1.25rem;
    }
    
    .review-comment-simple {
        font-size: 0.9rem;
        min-height: 4.6em;
    }
    
}

@media (max-width: 992px) {
    .reviews-slider-section {
        padding: 3rem 0;
        margin: 3rem 0;
    }
    
    .reviews-slider-section .text-center h2 {
        font-size: 2rem;
    }
    
    
    .review-card-simple {
        padding: 1.5rem 1.25rem;
    }
    
    .review-comment-simple {
        font-size: 0.9rem;
        min-height: auto;
        -webkit-line-clamp: 4;
    }
    
    .reviewer-avatar-simple {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .reviewer-details-simple strong {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .reviews-slider-section {
        padding: 2.5rem 0;
        margin: 2.5rem 0;
    }
    
    .reviews-slider-section .text-center {
        margin-bottom: 2rem !important;
    }
    
    .reviews-slider-section .text-center h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem !important;
    }
    
    .reviews-slider-section .text-center p {
        font-size: 0.95rem;
    }
    
    #reviewsCarousel {
        overflow: visible;
    }
    
    #reviewsCarousel .carousel-inner {
        padding: 0.5rem 0;
        margin: 0;
    }
    
    #reviewsCarousel .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    #reviewsCarousel .carousel-inner {
        padding: 0.75rem 0;
    }
    
    #reviewsCarousel .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    #reviewsCarousel .row > [class*="col-"] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    
    .reviews-carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .reviews-carousel-prev {
        left: 5px;
    }
    
    .reviews-carousel-next {
        right: 5px;
    }
    
    .reviews-carousel-control .carousel-control-prev-icon,
    .reviews-carousel-control .carousel-control-next-icon {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
    }
    
    .review-card-simple {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
        margin: 0;
        height: auto;
        min-height: auto;
    }
    
    .review-rating-simple {
        margin-bottom: 1rem !important;
        justify-content: flex-start;
    }
    
    .review-rating-simple .fa-star {
        font-size: 0.875rem;
    }
    
    .review-content-simple {
        margin-bottom: 1.25rem !important;
    }
    
    .review-comment-simple {
        font-size: 0.9rem;
        line-height: 1.6;
        min-height: auto;
        -webkit-line-clamp: 4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .review-content-simple::before {
        font-size: 3rem;
        top: -5px;
        left: -3px;
    }
    
    .reviewer-info-simple {
        padding-top: 1rem !important;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .reviewer-avatar-simple {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .reviewer-details-simple {
        flex: 1;
        min-width: 0;
    }
    
    .reviewer-details-simple strong {
        font-size: 0.9rem;
        word-break: break-word;
    }
}

/* Order Detail Page - Mobile Fixes */
@media (max-width: 575.98px) {
    .order-detail-header h2 {
        font-size: 1.5rem;
        word-break: break-word;
    }
    
    .order-items-table {
        font-size: 0.875rem;
    }
    
    .order-items-table img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .order-items-table th,
    .order-items-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Replacement Orders Page - Button Background and Mobile Fixes */
/* Add background color to outline buttons for visibility on all screens */
.mobile-btn-bg.btn-outline-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
}

.mobile-btn-bg.btn-outline-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
    color: #ffffff !important;
}

/* Mobile-specific fixes */
@media (max-width: 575.98px) {
    /* Add bottom margin to replacement order badge on mobile */
    .replacement-order-badge {
        margin-bottom: 1rem !important;
    }
    
    /* Reviews section - Extra small mobile */
    .reviews-slider-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .reviews-slider-section .text-center h2 {
        font-size: 1.5rem;
    }
    
    .reviews-slider-section .text-center p {
        font-size: 0.9rem;
    }
    
    .review-card-simple {
        padding: 1.25rem 1rem;
    }
    
    .review-comment-simple {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
    
    .review-rating-simple .fa-star {
        font-size: 0.8rem;
    }
    
    .reviewer-avatar-simple {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    .reviewer-details-simple strong {
        font-size: 0.85rem;
    }
}
