@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/**
 * Frontend CSS
 * Wesplit eCommerce Application
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e11b23;
    --primary-hover: #0f1f35;
    --accent-color: #e11b23;
    --accent-hover: #e11b23;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --nav-height: 70px;
}



html {
    overflow-x: hidden;
    width: 100%;
    height: auto;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: var(--nav-height) 0 0 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 10000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    display: block;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--nav-height);
    flex-wrap: nowrap;
}

.nav-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: var(--accent-color);
}

/* Navbar logo - ensure no filters applied */
.nav-brand .brand-logo,
.brand-link .brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: none !important;
    /* Ensure no grayscale filter */
    opacity: 1 !important;
    /* Ensure full opacity */
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    min-width: 0;
    display: block;
    position: relative;
}

.nav-search.active {
    display: block;
}

.search-form {
    display: flex;
    position: relative;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    background: var(--bg-light);
    color: var(--text-color);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: #ffffff;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-50%) scale(1.05);
}

/* Nav Right Side (Search Toggle, Cart, Login, Menu Toggle) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Desktop: Hide search toggle, show cart and user icons */
@media (min-width: 901px) {
    .search-toggle {
        display: none;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .nav-icon-link {
        width: 42px;
        height: 42px;
    }

    .nav-icon-link svg {
        width: 22px;
        height: 22px;
    }
}

.nav-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-icon-link:hover {
    color: var(--accent-color);
}

.nav-icon-link svg {
    width: 22px;
    height: 22px;
}

.cart-link .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-item {
    position: relative;
    overflow: visible;
}

.nav-item>.nav-link {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    border: 1px solid var(--border-color);
}

.nav-item:hover .dropdown-menu,
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu .dropdown-menu {
    right: 0;
    left: auto;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateY(10px);
}

.user-menu:hover .dropdown-menu,
.user-menu .dropdown-menu.active {
    transform: translateY(0);
}

/* Secondary Menu Bar - Pill Style */
.category-pills-container.sticky-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    /* Fallback */
    top: var(--nav-height);
    z-index: 998;
    /* Just below header (header is 10000) */
    background: #ffffff;
    /* Explicit white */
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;

    width: 100%;
}

@media (max-width: 991px) {
    .category-pills-container.sticky-nav {
        top: 60px;
        /* Mobile nav height */
        top: var(--nav-height);
        padding: 10px 0;
    }
}

.category-pills-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 5px;
    padding-top: 5px;
    /* Space for scrollbar if visible */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    white-space: nowrap;
    align-items: center;
}

.category-pills-scroll::-webkit-scrollbar {
    display: none;
    /* WebKit */
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
    flex-shrink: 0;
}

.cat-pill:hover {
    border-color: #000;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cat-pill.active {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

/* Secondary Menu Bar */
.nav-secondary.sticky-nav {
    position: sticky;
    top: var(--nav-height);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-secondary {
    position: relative;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    height: 50px;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: visible !important;
}

.nav-secondary .container {
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: visible !important;
    position: relative;
}

.secondary-menu {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    min-width: min-content;
}

.secondary-menu::-webkit-scrollbar {
    display: none;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    padding: 0 0.875rem;
    height: 100%;
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.secondary-link:hover {
    color: var(--accent-color);
    background: rgba(249, 115, 22, 0.05);
}

.secondary-link:active,
.secondary-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: rgba(249, 115, 22, 0.08);
}

/* Parent category specific underline colors */
.nav-item-hierarchical[data-parent-category="men"] .secondary-link:hover,
.nav-item-hierarchical[data-parent-category="men"] .secondary-link.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.nav-item-hierarchical[data-parent-category="women"] .secondary-link:hover,
.nav-item-hierarchical[data-parent-category="women"] .secondary-link.active {
    color: #ec4899;
    border-bottom-color: #ec4899;
    background: rgba(236, 72, 153, 0.05);
}

.nav-item-hierarchical[data-parent-category="kids"] .secondary-link:hover,
.nav-item-hierarchical[data-parent-category="kids"] .secondary-link.active {
    color: #e11b23;
    border-bottom-color: #e11b23;
    background: rgba(249, 115, 22, 0.05);
}

.nav-item-hierarchical[data-parent-category="home"] .secondary-link:hover,
.nav-item-hierarchical[data-parent-category="home"] .secondary-link.active {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.nav-item-hierarchical[data-parent-category="beauty"] .secondary-link:hover,
.nav-item-hierarchical[data-parent-category="beauty"] .secondary-link.active {
    color: #14b8a6;
    border-bottom-color: #14b8a6;
    background: rgba(20, 184, 166, 0.05);
}

.nav-item-hierarchical[data-parent-category="genz"] .secondary-link:hover,
.nav-item-hierarchical[data-parent-category="genz"] .secondary-link.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.nav-item-hierarchical[data-parent-category="studio"] .secondary-link:hover,
.nav-item-hierarchical[data-parent-category="studio"] .secondary-link.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

/* Hierarchical Navigation Styles */
.nav-item-hierarchical {
    position: static !important;
    height: 100%;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure mega menu container allows overflow */
.nav-secondary,
.nav-secondary .container,
.secondary-menu {
    overflow: visible !important;
}

.secondary-link.has-children {
    cursor: pointer;
}

.secondary-link {
    cursor: pointer;
}

.secondary-link .dropdown-arrow {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-item-hierarchical:hover .secondary-link .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    padding: 2rem;
    padding-top: 2.5rem;
    border: 1px solid var(--border-color);
    pointer-events: none;
    display: block !important;
    overflow: visible;
    margin-top: -5px;
    margin-left: 0;
    cursor: default;
}

/* Ensure all mega menus align to the same left position - no gaps on left side */
.nav-item-hierarchical .nav-mega-menu {
    left: 0;
    margin-left: 0;
}

/* Create invisible hover bridge at top of menu */
.nav-mega-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    pointer-events: auto;
}

/* Show menu on hover - ensure both nav item and menu hover work */
.nav-item-hierarchical:hover>.nav-mega-menu,
.nav-item-hierarchical.active>.nav-mega-menu {
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    cursor: default;
}

/* Keep menu visible when hovering over it */
.nav-item-hierarchical:hover .nav-mega-menu:hover,
.nav-item-hierarchical.active .nav-mega-menu:hover {
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    cursor: default;
}

.mega-menu-container {
    display: flex;
    gap: 2.5rem;
    flex-wrap: nowrap;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
}

.mega-menu-column {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mega-menu-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-menu-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    margin: 0;
    margin-left: 0;
    padding: 0;
    padding-left: 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease;
    cursor: pointer !important;
}

.mega-menu-heading:hover {
    color: var(--accent-hover);
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-menu-list li {
    margin: 0;
    padding: 0;
}

.mega-menu-item-link {
    display: block;
    padding: 0.375rem 0;
    padding-left: 0;
    margin: 0;
    margin-left: 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    line-height: 1.4;
    cursor: pointer;
}

.mega-menu-item-link:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
    margin-left: 0;
}

.mega-menu-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-menu-item {
    position: relative;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.mega-menu-link:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.mega-menu-link.has-sub {
    cursor: pointer;
}

.mega-menu-link .sub-arrow {
    margin-left: 0.5rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.mega-menu-item:hover .mega-menu-link .sub-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.mega-menu-sub {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-color);
    margin-left: 10px;
}

.mega-menu-item:hover .mega-menu-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mega-menu-sub-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mega-menu-sub-link {
    display: block;
    padding: 0.625rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mega-menu-sub-link:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    padding-left: 1rem;
}

/* Parent category specific colors */
.nav-mega-menu[data-parent="men"] .mega-menu-heading {
    color: #dc2626;
    /* Red */
}

.nav-mega-menu[data-parent="women"] .mega-menu-heading {
    color: #ec4899;
    /* Pink */
}

.nav-mega-menu[data-parent="kids"] .mega-menu-heading {
    color: #e11b23;
    /* Orange */
}

.nav-mega-menu[data-parent="home"] .mega-menu-heading {
    color: #f59e0b;
    /* Yellowish-orange */
}

.nav-mega-menu[data-parent="beauty"] .mega-menu-heading {
    color: #14b8a6;
    /* Teal */
}

.nav-mega-menu[data-parent="genz"] .mega-menu-heading {
    color: #8b5cf6;
    /* Purple */
}

.nav-mega-menu[data-parent="studio"] .mega-menu-heading {
    color: #6366f1;
    /* Indigo */
}

/* Tablet adjustments for hierarchical navigation */
@media (min-width: 901px) and (max-width: 1200px) {
    .nav-mega-menu {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        margin-top: -5px;
        margin-left: 0;
    }

    /* Ensure mega menu is visible on tablet */
    .nav-item-hierarchical:hover>.nav-mega-menu,
    .nav-item-hierarchical.active>.nav-mega-menu,
    .nav-item-hierarchical:hover .nav-mega-menu:hover,
    .nav-item-hierarchical.active .nav-mega-menu:hover {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Adjust positioning for items near right edge - No longer needed for full width */
    .nav-item-hierarchical:last-child .nav-mega-menu {
        left: 0;
        right: 0;
    }
}

/* Desktop - ensure mega menu works properly */
@media (min-width: 1201px) {
    .nav-mega-menu {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin-top: -5px;
        margin-left: 0;
        left: 0;
        right: 0;
    }

    .mega-menu-container {
        padding: 0 !important;
        padding-top: 0 !important;
    }

    /* Ensure mega menu is visible on desktop */
    .nav-item-hierarchical:hover>.nav-mega-menu,
    .nav-item-hierarchical.active>.nav-mega-menu,
    .nav-item-hierarchical:hover .nav-mega-menu:hover,
    .nav-item-hierarchical.active .nav-mega-menu:hover {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Adjust positioning for items near right edge */
    /* Adjust positioning for items near right edge - No longer needed for full width */
    .nav-item-hierarchical:last-child .nav-mega-menu,
    .nav-item-hierarchical:nth-last-child(2) .nav-mega-menu {
        left: 0;
        right: 0;
        margin-left: 0;
    }

    .nav-item-hierarchical:last-child .mega-menu-container,
    .nav-item-hierarchical:nth-last-child(2) .mega-menu-container {
        padding: 0 !important;
        padding-top: 0 !important;
    }

    .nav-brand .brand-logo,
    .brand-link .brand-logo {
        height: 30px;
    }
}

/* Mobile adjustments for hierarchical navigation */
@media (max-width: 900px) {
    .nav-mega-menu {
        min-width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        margin-top: 0.5rem;
    }

    .nav-item-hierarchical:hover .nav-mega-menu,
    .nav-mega-menu:hover {
        display: none !important;
    }

    .mega-menu-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mega-menu-column {
        min-width: 100%;
    }

    .mega-menu-sub {
        position: static;
        transform: none;
        margin-left: 0;
        margin-top: 0.5rem;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        padding-top: 0.5rem;
    }

    .mega-menu-item:hover .mega-menu-sub {
        transform: none;
    }

    .nav-brand .brand-logo,
    .brand-link .brand-logo {
        height: 25px;
    }
}

/* Off-Canvas Menu */
.off-canvas-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.off-canvas-menu.active {
    opacity: 1;
    pointer-events: all;
}

.off-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.off-canvas-menu.active .off-canvas-overlay {
    opacity: 1;
}

.off-canvas-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 520px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-color);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.off-canvas-menu.active .off-canvas-content {
    transform: translateX(0);
}

.off-canvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
    color: white;
}

.off-canvas-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.off-canvas-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.off-canvas-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.off-canvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.off-canvas-nav {
    display: flex;
    flex-direction: column;
}

.off-canvas-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
}

.off-canvas-link:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 1.75rem;
}

.off-canvas-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.off-canvas-link span {
    flex: 1;
}

.off-canvas-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 1.5rem;
}

.off-canvas-section {
    margin-top: 1rem;
}

.off-canvas-section-title {
    padding: 0.75rem 1.5rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.auth-buttons-mobile {
    display: flex;
    gap: 10px;
}

.auth-buttons-mobile .btn {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Mobile Category Dropdown Styles */
.off-canvas-category-item {
    position: relative;
}

.off-canvas-link.has-children {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.off-canvas-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.off-canvas-submenu[style*="display: block"] {
    max-height: 2000px;
    padding: 0.5rem 0;
}

.off-canvas-subcategory-item {
    position: relative;
}

.off-canvas-sub-link {
    padding-left: 1.5rem !important;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.9;
}

.off-canvas-sub-link:hover {
    background: rgba(249, 115, 22, 0.05);
    color: var(--accent-color);
    opacity: 1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.cart-link {
    position: relative;
}

.cart-link .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-text {
    display: inline;
}

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-nav {
    background: var(--accent-color);
    color: white !important;
    padding: 0.625rem 1.25rem;
}

.btn-nav:hover {
    background: var(--accent-hover);
    color: white !important;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-only {
    display: none;
}

/* Desktop Styles */
@media (min-width: 901px) {
    .nav-toggle {
        display: flex !important;
    }

    .desktop-menu {
        display: flex !important;
    }

    .search-toggle {
        display: none !important;
    }

    .nav-search {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .nav-icon-link {
        width: 42px;
        height: 42px;
    }

    .nav-icon-link svg {
        width: 22px;
        height: 22px;
    }

    .navbar .container {
        gap: 1.5rem;
    }

    /* Fix Product Grid for Desktop - 4 Columns */
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
    }
}

.search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.search-toggle:hover {
    color: var(--accent-color);
    background: var(--bg-light);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #475569;
}

.btn-primary {
    background: var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--error-color);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Product card styles moved to main definition at line 6172 - using same components sitewide */

.product-info {
    padding: 1rem;
}

.product-info .product-title {
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-color) !important;
}

.product-compare-price {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-add-cart {
    width: 100%;
    margin-top: 1rem;
}

/* Homepage Sections */
.home-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.home-page section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-page section {
    padding: .7rem 0;
}

.home-page section.hero-slider {
    padding: 0;
}



/* Featured Products - Orange Background 
.home-page section.featured-products {
    background: rgba(249, 115, 22, 0.08) !important;
}

New Arrivals - Orange Background 
.home-page section.new-arrivals {
    background: rgba(249, 115, 22, 0.08) !important;
}

*/

/* Best Sellers - White Background */
.home-page section.best-sellers {
    background: #ffffff !important;
}

/* On Sale - Orange Background 
.home-page section.on-sale {
    background: rgba(249, 115, 22, 0.08) !important;
}
    
Super Sell - Orange Background 

.home-page section.super-sell {
    background: rgba(249, 115, 22, 0.08) !important;
}

 Testimonials - Orange Background 

.home-page section.testimonials {
    background: rgba(249, 115, 22, 0.08) !important;
}

Blog Section - Orange Background 

.home-page section.blog-section {
    background: rgba(249, 115, 22, 0.08) !important;
}

Orange color for Blog Section */

.home-page section.blog-section .section-title {
    color: var(--accent-color) !important;
}


.home-page section.blog-section .section-link {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.home-page section.blog-section .section-link:hover {
    color: #ffffff !important;
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}


/* Orange color for Featured Products section */
.home-page section.featured-products .section-title {
    color: var(--accent-color) !important;
}

.home-page section.featured-products .section-link {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.home-page section.featured-products .section-link:hover {
    color: #ffffff !important;
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Orange color for New Arrivals section */
.home-page section.new-arrivals .section-title {
    color: var(--accent-color) !important;
}

.home-page section.new-arrivals .section-link {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.home-page section.new-arrivals .section-link:hover {
    color: #ffffff !important;
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Orange color for Best Sellers section */
.home-page section.best-sellers .section-title {
    color: var(--accent-color) !important;
}

.home-page section.best-sellers .section-link {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.home-page section.best-sellers .section-link:hover {
    color: #ffffff !important;
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Orange color for Shop by Category section */
.home-page section.shop-by-category .section-title {
    color: var(--accent-color) !important;
}

.home-page section.shop-by-category .section-link {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.home-page section.shop-by-category .section-link:hover {
    color: #ffffff !important;
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Orange color for On Sale section */
.home-page section.on-sale .section-title {
    color: var(--accent-color) !important;
}

/* Why Choose Us - Match What Our Customers Say section title size exactly */
.home-page section.why-choose-us .section-title {
    color: var(--accent-color) !important;
    font-size: 1.5rem !important;
    /* Reduced per user request */
    /* Font size matches default .section-title (same as testimonials) */
}

.home-page section.on-sale .section-link {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.home-page section.on-sale .section-link:hover {
    color: #ffffff !important;
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Different light gradient backgrounds for each section */
/* Hero slider (section 1) keeps its dark background */
.hero-slider {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
}

/* All sections have clean white background */
.home-page section {
    background: #ffffff !important;
}

/* Offer banner - subtle orange tint */
.offer-banner {
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%) !important;
}

/* Newsletter - subtle orange tint */
.newsletter {
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%) !important;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.3rem .6rem;
    background: transparent;
    border: 1px solid #000000;
    border-radius: 4px;
}

.section-link:hover {
    gap: 0.75rem;
    color: #ffffff;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Super Sell Section - Orange Theme */
.super-sell {
    background: rgba(249, 115, 22, 0.08) !important;
    padding: 4rem 0;
}

.super-sell .section-title {
    color: var(--accent-color) !important;
}

.super-sell .section-link {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.super-sell .section-link:hover {
    color: #ffffff !important;
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.super-sell .product-badge.badge-sale {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}

.super-sell .product-price {
    color: var(--accent-color) !important;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    width: 100%;
    max-width: 100vw;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.hero-content .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.hero-content::before {
    display: none;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--accent-color);
    color: white;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 100%;
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
    pointer-events: none;
    left: 0;
    right: 0;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--accent-color);
    border-color: white;
    width: 32px;
    border-radius: 6px;
}

/* Trust Badges */
.trust-badges {
    padding: 2rem 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    width: 60px;
    height: 60px;
    background: #e11b23;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e11b23;
    margin-bottom: 0.25rem;
}

.badge-content p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.7;
}

/* Featured Categories */
.featured-categories {
    padding: 3rem 0;
}

.featured-categories .section-title {
    color: #ff6b35;
}

.featured-categories .section-subtitle {
    color: #666;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    justify-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
        justify-content: center;
    }
}

.categories-text-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0;
}

.category-text-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

.category-text-link::after {
    content: '•';
    color: #ff6b35;
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-text-link:hover {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
    transform: translateX(5px);
}

.category-text-link:hover::after {
    opacity: 1;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-color);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    min-height: 180px;
    width: 100%;
    max-width: 200px;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    color: #ff6b35;
}

.category-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #ff6b35;
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35, #ff8c42, #ffa366);
    color: white;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 107, 53, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-info {
    padding: 1.5rem;
    background: var(--bg-color);
}

.category-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card:hover .category-info h3 {
    color: #ff6b35;
}

.category-arrow {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.category-card:hover .category-arrow {
    color: #ff8c42;
}

.category-card:hover .category-arrow {
    gap: 0.5rem;
}

/* Shop by Category Section */
.shop-by-category {
    padding: .2rem 0;
    background: rgba(249, 115, 22, 0.08) !important;
}

.shop-by-category .section-header {
    margin-bottom: 3rem;
}

.shop-by-category .section-title {
    color: #000000;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.shop-by-category .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.home-page section.shop-by-category .section-title::after {
    background: var(--accent-color);
}

.shop-by-category .section-link {
    color: #000000;
    border-color: #000000;
}

.shop-by-category .section-link:hover {
    color: #ffffff;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.category-grid-image {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .category-grid-image {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: dense;
    }

    /* Make the 2nd item (Right column) span 2 rows to fill the gap */
    .category-grid-image .category-image-card:nth-child(2) {
        grid-row: span 2;
        height: auto;
        min-height: calc(800px + 1.5rem);
        /* 2x height (400px) + 1x gap (1.5rem) */
    }
}

@media (max-width: 767px) {
    .category-grid-image {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.category-image-card {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-image-card:hover .category-image-wrapper img {
    transform: scale(1.1);
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
}

.category-image-placeholder svg {
    opacity: 0.5;
}

.category-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: #ffffff;
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.category-image-card:hover .category-overlay-text {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding-bottom: 2rem;
}

@media (max-width: 767px) {
    .category-image-card {
        height: 300px;
    }

    .category-overlay-text {
        font-size: 1rem;
        padding: 1.5rem 1rem 1rem;
        letter-spacing: 1px;
    }

    .shop-by-category {
        padding: 3rem 0;
    }

    .shop-by-category .section-header {
        margin-bottom: 2rem;
    }
}

/* Enhanced Product Cards */
/* Product grid and card styles moved to main definition - using same components sitewide */

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-featured {
    background: var(--accent-color);
    color: white;
}

.badge-new {
    background: var(--success-color);
    color: white;
}

.badge-sale {
    background: var(--error-color);
    color: white;
}

.badge-bestseller {
    background: var(--warning-color);
    color: white;
}

.product-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
    background: transparent;
    padding: 0;
    border: none;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
    color: var(--text-color);
    padding: 0;
}

.btn-icon:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    transform: scale(1.05);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.product-info {
    padding: 0.625rem 0.75rem;
    background: #ffffff;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 0.375rem;
    transition: color 0.2s ease;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title:hover {
    color: var(--accent-color);
}

.product-category {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0rem;
    opacity: 0.7;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars svg {
    width: 14px;
    height: 14px;
}

/* Empty stars - no fill, only gray stroke */
.product-rating .stars svg[fill="none"] {
    fill: none;
    stroke: #d1d5db;
    color: transparent;
}

/* Filled stars - orange fill */
.product-rating .stars svg[fill="currentColor"] {
    fill: #ff9500;
    stroke: #ff9500;
    color: #ff9500;
}

.rating-count {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: nowrap;
    margin-top: 0;
}

.product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
}

.product-compare-price {
    font-size: 0.8rem;
    color: #999999;
    text-decoration: line-through;
}

/* Offer Banner */
.offer-banner {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fef3e7 0%, #fde8d1 100%);
    position: relative;
    overflow: hidden;
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 50%;
}

.offer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.offer-text {
    color: var(--text-color);
}

.offer-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--accent-color);
    color: white;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-text h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.offer-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.8;
}

.offer-image {
    position: relative;
    height: 400px;
}

.offer-shape {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Products Slider */
.products-slider {
    position: relative;
    overflow: hidden;
}

.products-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding: 1rem 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-nav:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: -25px;
}

.slider-next {
    right: -25px;
}

/* Why Choose Us / Features - Enhanced with Orange Theme and Horizontal Scrolling */
.why-choose-us {
    padding: 4rem 0;
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    display: none;
}

.why-choose-us .section-header {
    position: relative;
    z-index: 1;
}

.why-choose-us .section-title {
    color: var(--accent-color) !important;
    /* Font size matches default .section-title (same as testimonials) */
}

.why-choose-us .section-subtitle {
    color: #666;
    font-size: 0.95rem;
}



.feature-card:hover h3 {
    color: #ff8c42;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .why-choose-us .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    /* Why Choose Us title matches testimonials title size on mobile (1.75rem from .section-title) */
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: rgba(249, 115, 22, 0.08) !important;
}

.testimonials .section-title {
    color: var(--accent-color) !important;
}

.testimonials-scroll-wrapper {
    position: relative;
    margin-top: 2rem;
    overflow: hidden;
}

.testimonials-scroll-btn {
    display: none;
    /* Hide scroll buttons - using CSS animation instead */
}

.testimonials-scroll-container {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.testimonials-grid {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scrollTestimonials 25s linear infinite;
}

.testimonial-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: var(--warning-color);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-color);
    margin: 0;
    opacity: 0.7;
}

.testimonials-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

.testimonials-scroll-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.testimonials-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.testimonials-scroll-prev {
    left: -24px;
}

.testimonials-scroll-next {
    right: -24px;
}

.testimonials-scroll-btn svg {
    width: 24px;
    height: 24px;
}

/* Testimonials Responsive */
@media (max-width: 768px) {
    .testimonials-scroll-prev {
        left: 10px;
    }

    .testimonials-scroll-next {
        right: 10px;
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
    }
}

/* Brands */
.brands {
    padding: 4rem 0;
    background: #ffffff !important;
}

.brands .section-title {
    color: var(--accent-color) !important;
}

.brands-slider {
    overflow: hidden;
    position: relative;
}

.brands-track {
    display: flex;
    gap: 3rem;
    animation: scrollBrands 30s linear infinite;
}

.brand-item {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    padding: 1rem;
}

.brand-item:hover {
    transform: scale(1.05);
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Brands section logos - only apply to logos inside brand-item */
.brand-item .brand-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-logo-placeholder {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Testimonials Responsive */
@media (max-width: 768px) {
    .testimonials {
        padding: 2rem 0;
    }

    .testimonials-grid {
        gap: 1rem;
        animation: scrollTestimonials 20s linear infinite;
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        gap: 0.75rem;
        animation: scrollTestimonials 18s linear infinite;
    }

    .testimonial-card {
        min-width: 260px;
        max-width: 260px;
        padding: 1.25rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* Brands Section Responsive */
@media (max-width: 768px) {
    .brands {
        padding: 2rem 0;
    }

    .brands-slider {
        overflow: visible;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .brands-track {
        gap: 1.5rem;
        animation: scrollBrands 25s linear infinite;
    }

    .brand-item {
        width: 150px;
        height: 90px;
        min-width: 150px;
        padding: 0.75rem;
    }

    .brand-item .brand-logo {
        max-height: 60px;
    }

    .brand-logo-placeholder {
        font-size: 0.875rem;
    }

    /* Ensure brands are visible on mobile */
    .brands-track {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
    }

    /* Duplicate brands for seamless scroll */
    .brands-track::after {
        content: '';
        display: none;
    }
}

@media (max-width: 480px) {
    .brands {
        padding: 1.5rem 0;
    }

    .brands-track {
        gap: 1rem;
        animation: scrollBrands 20s linear infinite;
    }

    .brand-item {
        width: 120px;
        height: 80px;
        min-width: 120px;
        padding: 0.5rem;
    }

    .brand-item .brand-logo {
        max-height: 50px;
    }

    .brand-logo-placeholder {
        font-size: 0.75rem;
    }
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: rgba(249, 115, 22, 0.08) !important;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.blog-card {
    background: var(--bg-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: auto;
    min-height: 420px;
    display: grid;
    grid-template-rows: 200px auto;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: .4rem .4rem .4rem .4rem;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
    justify-content: flex-start;
}

.blog-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.blog-author {
    font-weight: 500;
    white-space: nowrap;
}

.blog-date {
    color: var(--text-light);
    white-space: nowrap;
}

.blog-views {
    color: var(--text-light);
    white-space: nowrap;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--accent-color) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.blog-title a {
    color: var(--accent-color) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--accent-hover) !important;
}

.blog-content p {
    margin: 0;
    padding: 0;
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-shrink: 0;
}

.blog-read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: transform 0.2s ease;
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0 !important;
    padding: 0 !important;
    align-self: flex-start;
    line-height: 1.2;
}

.blog-read-more:hover {
    transform: translateX(4px);
}

.blog-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

/* Blog Page - Ensure 4 columns on desktop */
.blog-page .blog-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Blog Title - Orange Color (More Specific) */
.blog-page .blog-title,
.blog-page .blog-title a,
.blog-grid .blog-title,
.blog-grid .blog-title a,
.blog-card .blog-title,
.blog-card .blog-title a {
    color: var(--accent-color) !important;
}

/* Blog Section Responsive */
@media (max-width: 1400px) {

    .blog-grid,
    .blog-page .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {

    .blog-grid,
    .blog-page .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
        display: grid !important;
    }
}

@media (max-width: 768px) {

    .blog-grid,
    .blog-page .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 576px) {

    .blog-grid,
    .blog-page .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}

.blog-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

.blog-content {
    height: auto;
    min-height: 250px;
}

.blog-excerpt {
    height: auto;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

/* Blog Detail Page */
.blog-detail-page {
    padding: 2rem 0 4rem;
}



/* Grid definition moved to end of file for stability */
.blog-detail-wrapper {
    display: grid !important;
    grid-template-columns: 80px 1fr 450px !important;


    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.blog-detail-content {
    background: var(--bg-color);
    border-radius: 16px;
    padding: .5rem;
    box-shadow: var(--shadow-md);
}

.blog-detail-header {
    margin-bottom: 2rem;
}

.blog-detail-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-detail-title {
    font-family: 'Lora', serif !important;
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    color: #1a1a1a !important;
    letter-spacing: -0.02em !important;
}


.blog-detail-excerpt {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-detail-image {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-detail-body {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    margin-bottom: 2rem !important;
}

.blog-detail-body h2,
.blog-detail-body h3 {
    font-family: 'Lora', serif !important;
    color: #1a202c !important;
    margin: 2.5rem 0 1.25rem !important;
    font-weight: 600 !important;
}

.blog-detail-body h2 {
    font-size: 2rem !important;
}

.blog-detail-body h3 {
    font-size: 1.5rem !important;
}

.blog-detail-body p {
    margin-bottom: 1.5rem !important;
}


/* Blog Detail Table Styles */
.blog-detail-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    border: 2px solid #333;
    border-spacing: 0;
    background: var(--bg-color);
}

.blog-detail-body table td,
.blog-detail-body table th {
    border: 1px solid #333;
    padding: 12px;
    text-align: left;
    min-width: 50px;
}

.blog-detail-body table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.blog-detail-body table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.blog-detail-body table tr:hover {
    background: rgba(0, 0, 0, 0.05);
}

.blog-detail-body p {
    margin-bottom: 1.5rem;
}

.blog-detail-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-sidebar-section {
    background: var(--bg-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.blog-sidebar-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-sidebar-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-sidebar-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.blog-sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-sidebar-content {
    flex: 1;
}

.blog-sidebar-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-sidebar-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-sidebar-content h4 a:hover {
    color: var(--accent-color);
}

.blog-sidebar-date {
    font-size: 0.8125rem;
    color: var(--text-light);
}


/* Removed sharing bar styles from here - moved to end of file */

@media (max-width: 1200px) {
    .blog-share-sidebar {
        position: static !important;
        flex-direction: row !important;
        margin-bottom: 2rem !important;
        width: 100% !important;
        justify-content: center !important;
        top: auto !important;
        display: flex !important;
    }

    .blog-detail-wrapper {
        display: block !important;
    }
}

.blog-views {
    color: var(--text-light);
    white-space: nowrap;
}

@media (max-width: 968px) {
    .blog-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-detail-title {
        font-size: 2rem;
    }

    .blog-detail-content {
        padding: .5rem;
    }
}

/* Newsletter */
.newsletter {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%) !important;
    color: var(--text-color);
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color) !important;
}

.newsletter-text p {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    opacity: 0.8;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-input-wrapper input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper input::placeholder {
    color: var(--text-light);
}

.newsletter-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.newsletter-input-wrapper .btn {
    border-radius: 50px;
    padding: 1rem 2.5rem;
    white-space: nowrap;
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: var(--text-color);
    margin: 0;
    opacity: 0.7;
}

/* CTA Section */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%) !important;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color) !important;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    opacity: 0.8;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-actions .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.3);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 0 0;
    margin-top: 3rem;
    border-top: 3px solid var(--accent-color);
}

/* Remove extra margin before footer on auth pages */
body:has(.auth-page-split) .footer {
    margin-top: 0;
}

/* Ensure no extra spacing on auth pages */
body:has(.auth-page-split) {
    margin: 0;
    padding: 0;
}

body:has(.auth-page-split) main {
    margin: 0;
    padding: 0;
    margin-top: var(--nav-height);
}

/* Ensure navbar is always visible on auth pages */
body:has(.auth-page-split) .navbar {
    z-index: 10000;
    position: fixed;
    top: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.footer-links a:hover {
    color: white;
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}


.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
}

.payment-icon {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.payment-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Cart */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-product {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-item-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-summary {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.25rem;
    border-bottom: none;
    margin-top: 1rem;
}

/* Checkout */
.checkout-layout {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.checkout-section {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.checkout-section h2 {
    margin-bottom: 1.5rem;
}

.order-summary {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

/* Responsive */
/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-search {
        max-width: 500px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .nav-search {
        max-width: 400px;
    }

    .user-name {
        display: none;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .secondary-link {
        padding: 0.4rem 0.9rem;
        font-size: 0.88rem;
    }
}

/* Tablets - Show hamburger menu */
@media (max-width: 900px) {
    .navbar .container {
        gap: 0.5rem;
    }

    .nav-search {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-width: 100%;
        padding: 1rem;
        background: var(--bg-color);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1002;
    }

    .nav-search.active {
        display: block;
    }

    .search-toggle {
        display: flex;
        width: 38px;
        height: 38px;
    }

    .nav-right {
        gap: 0.4rem;
        flex-shrink: 0;
    }

    .nav-icon-link {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .nav-icon-link svg {
        width: 20px;
        height: 20px;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .desktop-menu {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }
}


@media (max-width: 768px) {
    .navbar .container {
        padding: 0 0.75rem;
        height: 65px;
        gap: 0.5rem;
    }

    .nav-brand {
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-brand a {
        font-size: 1.5rem;
    }

    .nav-right {
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .search-toggle {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
    }

    .search-toggle svg {
        width: 18px;
        height: 18px;
    }

    .nav-icon-link {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .nav-icon-link svg {
        width: 18px;
        height: 18px;
    }

    .cart-link .cart-count {
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -3px;
        right: -3px;
        padding: 0.15rem 0.35rem;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .search-form {
        max-width: 100%;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.65rem 0.9rem;
        padding-right: 2.5rem;
        background: #ffffff !important;
        color: #1f2937 !important;
        border-color: var(--border-color) !important;
    }

    .search-input::placeholder {
        color: #9ca3af !important;
    }

    .search-input:focus {
        background: #ffffff !important;
        color: #1f2937 !important;
        border-color: var(--accent-color) !important;
    }

    .search-btn {
        width: 32px;
        height: 32px;
        right: 4px;
    }

    .off-canvas-content {
        width: 300px;
    }

    .off-canvas-header {
        padding: 1.25rem;
    }

    .off-canvas-header h3 {
        font-size: 1.1rem;
    }

    .off-canvas-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .nav-secondary {
        top: 65px;
        display: none;
        height: 50px;
    }

    .nav-secondary.active {
        display: block;
    }

    .nav-secondary .container {
        padding: 0 1rem;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .secondary-menu {
        padding: 0;
        height: 100%;
    }

    .secondary-link {
        padding: 0 0.75rem;
        height: 100%;
        font-size: 0.8rem;
        display: inline-flex;
        align-items: center;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    body.menu-open {
        overflow: hidden;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-payment {
        flex-direction: column;
        gap: 0.75rem;
    }
}


/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .navbar .container {
        padding: 0 0.5rem;
        height: 60px;
        gap: 0.3rem;
    }

    .nav-brand {
        flex-shrink: 1;
    }

    .nav-brand a {
        font-size: 1.25rem;
    }

    .nav-right {
        gap: 0.3rem;
    }

    .search-toggle {
        width: 34px;
        height: 34px;
        padding: 0.35rem;
    }

    .search-toggle svg {
        width: 17px;
        height: 17px;
    }

    .nav-icon-link {
        width: 34px;
        height: 34px;
    }

    .nav-icon-link svg {
        width: 17px;
        height: 17px;
    }

    .cart-link .cart-count,
    .wishlist-link .wishlist-count {
        min-width: 15px;
        height: 15px;
        font-size: 0.55rem;
        top: -2px;
        right: -2px;
        padding: 0.1rem 0.3rem;
    }

    .nav-toggle {
        padding: 0.4rem;
    }

    .nav-toggle span {
        width: 24px;
        height: 2.5px;
    }

    .nav-search {
        padding: 0.875rem;
    }

    .search-input {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
        padding-right: 2.25rem;
        background: #ffffff !important;
        color: #1f2937 !important;
        border-color: var(--border-color) !important;
    }

    .search-input::placeholder {
        color: #9ca3af !important;
    }

    .search-input:focus {
        background: #ffffff !important;
        color: #1f2937 !important;
        border-color: var(--accent-color) !important;
    }

    .search-btn {
        width: 30px;
        height: 30px;
    }

    .nav-secondary {
        top: 60px;
        height: 50px;
    }

    .nav-secondary .container {
        padding: 0 0.75rem;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .secondary-link {
        padding: 0 0.65rem;
        height: 100%;
        font-size: 0.75rem;
        display: inline-flex;
        align-items: center;
    }

    .off-canvas-content {
        width: 280px;
    }

    .off-canvas-header {
        padding: 1rem;
    }

    .off-canvas-header h3 {
        font-size: 1rem;
    }

    .off-canvas-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 1.5rem 0 0;
        margin-top: 2rem;
    }

    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .footer-logo {
        height: 38px;
        margin-bottom: 0.5rem;
    }

    .footer-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }

    .footer-social {
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 0.75rem;
    }

    .social-link {
        width: 34px;
        height: 34px;
    }

    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }

    .footer-links {
        font-size: 0.85rem;
    }

    .footer-links li {
        margin-bottom: 0.4rem;
    }

    .footer-bottom {
        padding: 0.75rem 0;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .payment-label {
        font-size: 0.75rem;
    }

    .payment-icon {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .scroll-to-top {
        width: 42px;
        height: 42px;
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    .navbar .container {
        padding: 0 0.75rem;
        height: 58px;
    }

    .nav-brand a {
        font-size: 1.15rem;
    }

    .nav-menu {
        top: 58px;
        padding: 1rem 0.75rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .nav-secondary {
        top: 58px;
        height: 50px;
    }

    .nav-secondary .container {
        padding: 0 0.75rem;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .secondary-link {
        padding: 0 0.55rem;
        height: 100%;
        font-size: 0.7rem;
        display: inline-flex;
        align-items: center;
    }

    .footer {
        padding: 1.25rem 0 0;
        margin-top: 1.5rem;
    }

    .footer-content {
        gap: 1.25rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .footer-logo {
        height: 32px;
        margin-bottom: 0.4rem;
    }

    .footer-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .footer-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        padding-bottom: 0.3rem;
    }

    .footer-links {
        font-size: 0.8rem;
    }

    .footer-links li {
        margin-bottom: 0.3rem;
    }

    .footer-bottom {
        padding: 0.5rem 0;
    }

    .copyright {
        font-size: 0.75rem;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }

    /* Homepage Responsive */
    .home-page section {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .hero-slider {
        height: 60vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
        justify-items: center;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0.75rem;
    }

    .features-grid {
        gap: 1rem;
    }

    .testimonials-grid {
        gap: 1rem;
    }

    .offer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .offer-text h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-text h2 {
        font-size: 2rem;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-input-wrapper input {
        width: 100%;
    }

    .newsletter-input-wrapper .btn {
        width: 100%;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .slider-prev {
        left: 0.5rem;
    }

    .slider-next {
        right: 0.5rem;
    }

    .hero-controls {
        display: none;
    }
}

@media (max-width: 768px) {


    /* Reduce top margin for specific product sections on mobile */
    .home-page section.featured-products,
    .home-page section.new-arrivals,
    .home-page section.best-sellers,
    .home-page section.on-sale {
        padding-top: 0.25rem;
    }

    .section-header {
        margin-bottom: 1.25rem;
    }

    .hero-slider {
        height: 200px;
    }

    .hero-slide {
        background-size: 100% 100% !important;
    }

    .hero-controls {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .badge-item {
        padding: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        justify-items: center;
        justify-content: center;
    }

    .products-grid {
        gap: 0.5rem;
    }

    .features-grid {
        gap: 0.75rem;
    }

    .testimonials-grid {
        gap: 0.75rem;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-input-wrapper input {
        width: 100%;
    }

    .newsletter-input-wrapper .btn {
        width: 100%;
    }

    .category-image {
        height: 180px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-image-wrapper {
        height: 220px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.8125rem;
    }

    .products-page .product-price,
    .products-grid .product-price {
        font-size: 0.9375rem !important;
    }

    .products-page .product-compare-price,
    .products-grid .product-compare-price {
        font-size: 0.875rem !important;
    }

    .offer-text h2 {
        font-size: 1.75rem;
    }

    .offer-text p {
        font-size: 1rem;
    }

    .offer-image {
        height: 250px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1rem 0.75rem;
    }

    .testimonial-card {
        padding: 1rem 0.75rem;
    }

    .badge-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .newsletter-text h2 {
        font-size: 1.75rem;
    }

    .newsletter-text p {
        font-size: 1rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 180px;
    }

    .hero-slide {
        background-size: 100% 100% !important;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Reduce top margin for specific product sections on small mobile */
    .home-page section.featured-products,
    .home-page section.new-arrivals,
    .home-page section.best-sellers,
    .home-page section.on-sale {
        padding-top: 0.25rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        justify-items: center;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 0.75rem;
    }

    .products-page .product-price,
    .products-grid .product-price {
        font-size: 0.6875rem !important;
    }

    .products-page .product-compare-price,
    .products-grid .product-compare-price {
        font-size: 0.5625rem !important;
    }

    .product-rating .stars svg {
        width: 12px;
        height: 12px;
    }

    .rating-count {
        font-size: 0.75rem;
    }

    .product-actions {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Auth Pages - Split Screen Layout */
.auth-page-split {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: stretch;
    background: var(--bg-color);
    margin: 0;
    padding: 0;
}

.auth-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
}

/* Visual Side (Left) */
.auth-visual-side {
    background-image: url('../img/wesplit-banner.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-visual-content {
    width: 100%;
    max-width: 500px;
    z-index: 2;
    position: relative;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
    box-sizing: border-box;
}

.auth-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.auth-visual-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.auth-visual-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.auth-illustration {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.auth-svg-illustration {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.illustration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.8;
    }
}


/* Form Side (Right) */
.auth-form-side {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: var(--bg-color);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Decorative bokeh circles on form side */
.auth-form-side::before,
.auth-form-side::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.auth-form-side::before {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.3), rgba(249, 115, 22, 0.2));
    top: -100px;
    right: -100px;
    animation: floatBokeh 20s ease-in-out infinite;
}

.auth-form-side::after {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(234, 88, 12, 0.15));
    bottom: -80px;
    left: -80px;
    animation: floatBokeh 25s ease-in-out infinite reverse;
}

@keyframes floatBokeh {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .auth-page-split {
        height: auto !important;
        min-height: 200vh;
        overflow: visible !important;
    }

    .auth-split-container {
        height: auto !important;
        min-height: 200vh;
        display: flex;
        flex-direction: column;
        overflow: visible !important;
    }

    .auth-visual-side {
        display: none;
    }

    .auth-form-side {
        align-items: flex-start;
        padding: 2rem 1.5rem;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        height: auto !important;
        min-height: 200vh;
        position: relative;
    }

    .auth-form-side::before,
    .auth-form-side::after {
        display: none;
    }

    .auth-form-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding-top: 1rem;
        padding-bottom: 5rem;
        position: relative;
    }
}

.auth-form-header {
    margin-bottom: 1.25rem;
}

.auth-form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.auth-form-header p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

/* Auth Pages - Legacy (for backward compatibility) */
.auth-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.75rem;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(29, 53, 87, 0.15);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.375rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.auth-form {
    margin-top: 0.75rem;
}

.auth-form .form-group {
    margin-bottom: 0.75rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.auth-form label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.auth-form .optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--text-light);
    pointer-events: none;
    z-index: 1;
    width: 18px;
    height: 18px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.auth-form input::placeholder {
    color: var(--text-light);
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-light);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.forgot-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: white;
    color: #4285f4;
    border: 2px solid #dadce0;
    border-radius: 8px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: .25rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: var(--bg-color);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 0.875rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* OTP Input Styles */
.otp-input-wrapper {
    position: relative;
}

.otp-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5rem;
    font-family: monospace;
    transition: all 0.3s ease;
    background: var(--bg-color);
    color: var(--text-color);
}

.otp-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    letter-spacing: 0.75rem;
}

.otp-input::placeholder {
    letter-spacing: 0.5rem;
    color: var(--text-light);
}

.otp-resend {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.otp-resend p {
    margin: 0 0 0.75rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Responsive Auth Pages - Split Screen */
@media (max-width: 1024px) {
    .auth-split-container {
        grid-template-columns: 1fr;
    }

    .auth-visual-side {
        display: none;
    }

    .auth-form-side {
        padding: 2rem;
        width: 100%;
    }

    .auth-form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .auth-page-split {
        min-height: calc(100vh - var(--nav-height));
    }

    .auth-visual-side {
        display: none;
    }

    .auth-form-side {
        width: 100%;
        align-items: flex-start;
        padding-top: 0.5rem !important;
    }

    .auth-form-container {
        max-width: 100%;
        padding-top: 0 !important;
        margin-top: 0;
    }

    .auth-form-header {
        margin-bottom: 1rem;
    }

    .auth-form-header h2 {
        font-size: 1.5rem;
    }

    .auth-page {
        padding: 1.25rem 1rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-header {
        margin-bottom: 1.25rem;
    }

    .auth-header h1 {
        font-size: 1.375rem;
    }

    .auth-header p {
        font-size: 0.85rem;
    }

    .auth-logo {
        width: 44px;
        height: 44px;
        margin-bottom: 0.875rem;
    }

    .auth-form {
        margin-top: 0.875rem;
    }

    .auth-form .form-group {
        margin-bottom: 0.875rem;
    }

    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0.875rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-page-split {
        min-height: calc(100vh - var(--nav-height));
    }

    .auth-visual-side {
        display: none;
    }

    .auth-form-side {
        padding: 0.5rem 1rem !important;
        width: 100%;
        align-items: flex-start;
    }

    .auth-form-container {
        padding-top: 0 !important;
        margin-top: 0;
    }

    .auth-form-header {
        margin-bottom: 1rem;
    }

    .auth-form-header h2 {
        font-size: 1.375rem;
    }

    .auth-form-header p {
        font-size: 0.875rem;
    }

    .auth-page {
        padding: 1rem 0.75rem;
    }

    .auth-card {
        padding: 1.25rem 1rem;
        border-radius: 10px;
    }

    .auth-header {
        margin-bottom: 1rem;
    }

    .auth-header h1 {
        font-size: 1.25rem;
    }

    .auth-header p {
        font-size: 0.8rem;
    }

    .auth-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }

    .auth-form {
        margin-top: 0.75rem;
    }

    .auth-form .form-group {
        margin-bottom: 0.75rem;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"],
    .auth-form input[type="tel"] {
        padding: 0.625rem 0.75rem 0.625rem 2.5rem;
        font-size: 0.875rem;
    }

    .input-icon {
        left: 0.75rem;
        width: 16px;
        height: 16px;
    }

    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }



    .auth-footer {
        margin-top: 1rem;
        font-size: 0.85rem;
    }

    .otp-input {
        font-size: 1.25rem;
        padding: 0.875rem;
        letter-spacing: 0.375rem;
    }

    .otp-input:focus {
        letter-spacing: 0.5rem;
    }

    .otp-resend {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
}

/* ============================================
   Profile Page Styles
   ============================================ */
.page-header {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.profile-page {
    padding: 2.5rem 0 3rem;
    min-height: calc(100vh - var(--nav-height) - 200px);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-mobile-header {
    display: none;
}

.profile-summary {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.profile-summary-main,
.profile-summary-metrics {
    display: flex;
    align-items: center;
}

.profile-summary-main {
    justify-content: flex-start;
}

.profile-summary-metrics {
    justify-content: flex-end;
    gap: 1rem;
}

.profile-summary-avatar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.avatar-circle-lg {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e11b23, #e11b23);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
    border: 3px solid rgba(248, 250, 252, 0.12);
}

.profile-summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.profile-summary-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    max-width: 100%;
}

.profile-summary-email {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    max-width: 100%;
}

.profile-summary-phone {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.9);
    margin-top: 0.25rem;
}

.profile-summary-meta {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.9);
}

.profile-summary-meta strong {
    color: #e11b23;
}

.profile-summary-metric {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.profile-summary-metric .metric-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.15rem;
}

.profile-summary-metric .metric-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-color);
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.profile-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border: none;
}

.profile-avatar {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.profile-avatar-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 300px;
    flex-shrink: 0;
    margin: 0 auto;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.avatar-edit-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    background: #2874f0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.avatar-edit-badge svg {
    width: 12px;
    height: 12px;
}

.profile-avatar-text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.profile-avatar-text h3 {
    font-size: 0.95rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    max-width: 100%;
}

.profile-avatar-text .profile-email,
.profile-avatar-text .profile-meta {
    margin: 0.1rem 0 0;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    max-width: 100%;
}

.profile-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.profile-email {
    color: var(--text-light);
    font-size: 0.875rem;
}

.profile-card-compact {
    padding: 1rem;
}

.profile-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.profile-meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.profile-meta-list .meta-label {
    color: var(--text-light);
}

.profile-meta-list .meta-value {
    font-weight: 500;
    color: var(--text-color);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.profile-meta {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Classic-style overview strip inside profile card */
.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin: -1rem -1.5rem 1.5rem;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(29, 53, 87, 0.06), rgba(249, 115, 22, 0.05));
    border: none;
}

.profile-overview-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.overview-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
}

.overview-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.overview-hint {
    font-size: 0.78rem;
    color: var(--text-light);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    font-size: 0.78rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    border: none;
}

.profile-nav-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin: 0 0 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.nav-item.active {
    background: var(--bg-light);
    color: var(--text-color);
}

.nav-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-item-logout {
    margin-top: 0.5rem;
    border-top: none;
    padding-top: 0.75rem;
    color: var(--text-color);
}

.nav-item-logout:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.profile-content {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: none;
    border-left: none !important;
}

.profile-content .content-card {
    border: none;
    border-left: none !important;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: none;
    position: relative;
}

.profile-content .card-header {
    border-bottom: none;
}

.card-header>div {
    flex: 1;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.edit-profile-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.edit-profile-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.edit-profile-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.edit-profile-btn svg {
    width: 20px;
    height: 20px;
}

.profile-form input:disabled,
.profile-form textarea:disabled {
    background: var(--bg-light);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.7;
}

.profile-form input:not(:disabled),
.profile-form textarea:not(:disabled) {
    background: var(--bg-color);
    color: var(--text-color);
    opacity: 1;
}

/* Password Input Wrapper with Toggle Button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 3rem;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--accent-color);
}

.password-toggle:focus {
    outline: none;
    color: var(--accent-color);
}

.password-toggle .eye-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.password-toggle .eye-closed {
    display: none;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.required {
    color: var(--error-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group input:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* ============================================
   Orders Page Styles
   ============================================ */
.orders-page {
    padding: 1.5rem 0;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-color);

}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
}

.empty-state h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.order-card {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.order-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.order-card-link:hover .order-card {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.order-card-link .order-actions {
    position: relative;
    z-index: 10;
}

.order-card-link .order-actions .btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.order-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

/* Compact orders list on profile page */
.compact-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.order-card-compact {
    padding: 0.75rem 0.9rem;
}

.profile-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border: none;
}

.profile-section-card {
    border-radius: 10px;
    border: none;
    background: var(--bg-light);
    padding: 1rem;
}

.profile-section-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.profile-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.profile-menu-item:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.menu-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-menu-item span:not(.menu-badge) {
    flex: 1;
}

.menu-arrow {
    color: var(--text-light);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.profile-menu-item:hover .menu-arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}

.profile-menu-item.nav-item-logout {
    color: #d32f2f;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.625rem;
}

.profile-menu-item.nav-item-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #b71c1c;
}

.menu-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-color);
    margin-left: auto;
    margin-right: 0.5rem;
}

.menu-badge.badge-new {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Quick Action Cards */
.profile-quick-actions {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.quick-action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-align: center;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-card span {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.quick-action-card:hover span {
    color: var(--accent-color);
}

/* Payment Section Styles */
.payment-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: none !important;
}

.payment-section {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-left: none !important;
}

.payment-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-box {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    border-left: none !important;
    text-align: center;
}

.info-box p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.text-muted {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Reviews List Styles */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.review-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.review-product a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
}

.review-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.review-product-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.review-rating {
    display: flex;
    gap: 0.25rem;
}

.review-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.review-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.review-date {
    color: var(--text-light);
}

.review-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-status.approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.review-status.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

/* Review Filter Section */
.review-filter-section {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.review-filter-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.rating-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.filter-checkbox:hover {
    background-color: rgba(249, 115, 22, 0.05);
}

.filter-checkbox input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-checkbox span {
    font-size: 0.95rem;
    color: var(--text-color);
    user-select: none;
}

/* Refer Section Styles */
.refer-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.refer-banner {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    text-align: center;
}

.refer-banner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.refer-banner p {
    color: var(--text-color);
    margin: 0;
}

.refer-code-box {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.refer-code-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.refer-code-display {
    display: flex;
    gap: 0.75rem;
}

.refer-code-display input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--bg-color);
    color: var(--text-color);
}

.refer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.refer-stat-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.refer-share {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.refer-share h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Coupons Section Styles */
.coupons-section {
    margin-top: 1.5rem;
}

.coupons-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.coupons-empty h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.coupons-empty p {
    color: var(--text-light);
    margin: 0;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.coupon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
}

.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.coupon-card.coupon-expired {
    opacity: 0.6;
    border-color: var(--border-color);
    background: var(--bg-light);
}

.coupon-card.coupon-expired::before {
    background: var(--border-color);
}

.coupon-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.coupon-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.discount-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}

.discount-condition {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    text-align: center;
}

.coupon-details {
    flex: 1;
}

.coupon-details h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.coupon-validity,
.coupon-usage {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

.coupon-right {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .coupons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .coupon-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .coupon-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .coupon-discount {
        align-items: flex-start;
    }

    .coupon-right {
        width: 100%;
    }

    .coupon-right .btn {
        width: 100%;
    }
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-whatsapp {
    background: #25D366;
    color: white;
}

.share-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

/* Settings Section Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.settings-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    display: block;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--accent-color);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9375rem;
}

/* Help Section Styles */
.help-section {
    margin-top: 1.5rem;
}

.help-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.help-category {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.help-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.help-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-links li {
    margin-bottom: 0.75rem;
}

.help-links li:last-child {
    margin-bottom: 0;
}

.help-links a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.help-links a:hover {
    color: var(--accent-color);
}

.help-links a::before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

.contact-support {
    margin-top: 1rem;
}

.contact-support p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.support-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.support-info {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.support-info p {
    margin: 0.5rem 0;
    font-size: 0.9375rem;
}

.support-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

/* Legal Section Styles */
.legal-section {
    margin-top: 1.5rem;
}

.legal-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-category {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.legal-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.legal-category p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-category ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.legal-category ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.legal-contact {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
}

.legal-contact p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.legal-contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-contact a:hover {
    text-decoration: underline;
}

/* Responsive styles for quick actions */
@media (max-width: 768px) {
    .quick-action-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .quick-action-card {
        padding: 1.25rem 0.75rem;
    }

    .quick-action-icon {
        width: 48px;
        height: 48px;
    }

    .quick-action-card span {
        font-size: 0.875rem;
    }

    .refer-stats {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

.profile-help-card {
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.05), rgba(249, 115, 22, 0.05));
}

.profile-help-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* --------------------------------------------
   Flipkart‑style profile layout
   -------------------------------------------- */
/* hide extra visual blocks, keep clean layout */
.profile-summary,
.profile-card.profile-card-compact,
.profile-stats,
.profile-help-card,
.profile-overview-grid,
.profile-sections-grid {
    display: none;
}

.profile-page {
    background: #f1f3f6;
}

/* Remove all left borders from profile page */
.profile-page,
.profile-page *,
.profile-content,
.profile-content *,
.profile-sidebar,
.profile-sidebar *,
.content-card,
.content-card *,
.payment-section,
.payment-section *,
.payment-sections,
.payment-sections *,
.info-box,
.info-box * {
    border-left: none !important;
}

.profile-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-sidebar {
    background: #ffffff;
    border-radius: 4px;
    border: none;
    padding: 1.25rem 1rem;
}

.profile-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 1rem;
    border-bottom: none;
    margin-bottom: 0.75rem;
}

.profile-avatar {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.profile-avatar .avatar-circle {
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
}

.profile-avatar-text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.profile-avatar h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212121;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    max-width: 100%;
}

.profile-email,
.profile-meta {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #757575;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    max-width: 100%;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.profile-nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

/* Compact tab-style account menu on small screens */
@media (max-width: 640px) {
    .profile-nav-title {
        display: none;
    }

    .profile-nav {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0.35rem 0.5rem;
        border-bottom: 1px solid #f3f4f6;
        overflow-x: hidden;
        flex-wrap: wrap;
        scrollbar-width: none;
    }

    .profile-nav::-webkit-scrollbar {
        display: none;
    }

    .profile-nav .nav-item {
        border-bottom: none;
        padding: 0.3rem 0.7rem;
        border-radius: 999px;
        background: transparent;
        white-space: nowrap;
    }

    .profile-nav .nav-item.active {
        background: var(--bg-light);
        color: var(--text-color);
    }

    .profile-nav .nav-item-icon {
        width: 36px;
        height: 36px;
    }

    .profile-nav .nav-item-logout {
        margin-top: 0;
        border-top: none;
        border-bottom: none;
        padding: 0.3rem 0.7rem;
        margin-left: 0;
        border-radius: 999px;
        background: transparent;
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    color: #212121;
    font-size: 0.9rem;
}

.nav-item svg {
    color: #9e9e9e;
}

.nav-item:hover {
    background: transparent;
    color: var(--accent-color);
}

.nav-item.active {
    background: #ffffff;
    color: var(--accent-color);
    font-weight: 600;
}

.nav-item.active svg {
    color: var(--accent-color);
}

.nav-item-logout {
    margin-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    border-bottom: none;
    padding: 0.55rem 0.25rem;
    color: #d32f2f;
}

.nav-item-logout:hover {
    background: transparent;
    color: #b71c1c;
}

.profile-content .content-card {
    background: #ffffff;
    border-radius: 4px;
    border: none;
    box-shadow: none;
    padding: 1.5rem 1.5rem 1.75rem;
}

.profile-content .card-header {
    border-bottom: none;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.profile-content .card-header h2 {
    font-size: 1.25rem;
    color: #212121;
}

.profile-content .card-header p {
    font-size: 0.85rem;
    color: #757575;
}

.profile-form .form-section h3 {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* --------------------------------------------
   Mobile responsive tweaks for profile page
   -------------------------------------------- */
@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {

    /* Prevent scrolling on profile page in mobile mode */
    .profile-page {
        scroll-behavior: auto !important;
    }

    .profile-page * {
        scroll-behavior: auto !important;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Ensure content is visible when navigating */
    .profile-content .content-card {
        animation: fadeIn 0.3s ease-in;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .profile-page .container,
    .profile-page .profile-layout,
    .profile-page .profile-content,
    .profile-page .content-card,
    .profile-page .profile-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .profile-sidebar {
        margin-bottom: 0.5rem;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        padding: 0.5rem 0.25rem !important;
    }

    .profile-card {
        padding: 0.25rem 0 0.5rem !important;
    }

    .profile-nav {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: auto !important;
    }

    .profile-sidebar * {
        overflow-x: hidden !important;
    }

    /* Prevent scrolling on profile avatar/image section */
    .profile-card.profile-user-card,
    .profile-card.profile-user-card *,
    .profile-avatar-wrapper,
    .profile-avatar-wrapper *,
    .profile-avatar,
    .profile-avatar * {
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: auto !important;
    }

    .profile-menu-item.nav-item-logout {
        margin-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
        padding-top: 0.875rem;
    }

    .profile-avatar-wrapper {
        max-width: 200px !important;
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto 0.25rem !important;
        border-right: none !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: none !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }

    .profile-avatar-wrapper::before,
    .profile-avatar-wrapper::after {
        display: none !important;
        content: none !important;
    }

    .profile-avatar {
        justify-content: center;
        flex-direction: column;
        text-align: left;
        width: 100%;
        max-width: 100%;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border-right: none !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border: none !important;
        gap: 0 !important;
    }

    .profile-avatar>* {
        border-right: none !important;
        border-left: none !important;
    }

    .profile-avatar-wrapper::before,
    .profile-avatar-wrapper::after,
    .profile-avatar::before,
    .profile-avatar::after {
        display: none !important;
        content: none !important;
    }

    .profile-avatar-img {
        border-right: none !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border: none !important;
    }

    .profile-avatar .avatar-circle {
        border-right: none !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border: none !important;
    }

    .profile-avatar-text {
        border-right: none !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border: none !important;
    }

    .profile-avatar-text::before,
    .profile-avatar-text::after {
        display: none !important;
        content: none !important;
    }

    .profile-avatar-wrapper img,
    .profile-avatar img,
    .profile-avatar-wrapper .avatar-circle,
    .profile-avatar .avatar-circle {
        border-right: none !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border: none !important;
    }

    .profile-card.profile-user-card {
        padding: 0.25rem 0 0.25rem !important;
        margin-bottom: 0.25rem !important;
        border: none !important;
        border-right: none !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: none !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }

    .profile-card.profile-user-card::before,
    .profile-card.profile-user-card::after {
        display: none !important;
        content: none !important;
    }

    .profile-avatar-wrapper,
    .profile-avatar,
    .profile-avatar-img,
    .profile-avatar .avatar-circle,
    .profile-avatar-text,
    .profile-card.profile-user-card,
    .profile-avatar-wrapper *,
    .profile-avatar * {
        box-shadow: none !important;
        outline: none !important;
        border-right: none !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }

    /* Remove any visual separator lines */
    .profile-avatar-wrapper+*,
    .profile-avatar+*,
    .profile-avatar-img+* {
        border-left: none !important;
    }

    .profile-avatar-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        text-align: left !important;
    }

    /* Hide scrollbars on profile avatar section */
    .profile-avatar-wrapper::-webkit-scrollbar,
    .profile-avatar::-webkit-scrollbar,
    .profile-card.profile-user-card::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .profile-avatar-wrapper,
    .profile-avatar,
    .profile-card.profile-user-card {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .profile-avatar-text h3 {
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-wrap: break-word;
        max-width: 100%;
        text-align: left !important;
    }

    .profile-avatar-text .profile-email,
    .profile-avatar-text .profile-meta {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-wrap: break-word;
        max-width: 100%;
        text-align: left !important;
    }

    .profile-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .profile-summary-avatar {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .profile-summary-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .profile-summary-name {
        font-size: 1.25rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-wrap: break-word;
        max-width: 100%;
    }

    .profile-summary-email {
        font-size: 0.875rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-wrap: break-word;
        max-width: 100%;
    }

    .profile-summary-metrics {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .profile-content .content-card {
        padding: 1.25rem 1rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
        text-align: left !important;
    }

    /* Profile Mobile Header */
    .profile-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: #ffffff;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 0;
        z-index: 100;
        margin-bottom: 0.5rem;
    }

    .profile-mobile-header .back-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.9rem;
    }

    .profile-mobile-header h2 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
        color: #212121;
    }

    .profile-mobile-header .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .profile-mobile-header .header-actions svg {
        color: var(--text-color);
    }

    .profile-content .card-header>div {
        text-align: left !important;
    }

    .profile-content .card-header p {
        text-align: left !important;
    }

    .profile-content .card-header>div {
        flex: 1 1 auto !important;
        min-width: auto !important;
        max-width: none !important;
    }

    .profile-content .card-header h2 {
        white-space: nowrap !important;
        word-break: keep-all !important;
        word-wrap: normal !important;
        display: inline-block !important;
        overflow: visible !important;
        text-overflow: clip !important;
        width: auto !important;
        max-width: none !important;
        flex-shrink: 0 !important;
        margin-right: 0.5rem !important;
        text-align: left !important;
    }

    .card-header h2 {
        white-space: nowrap !important;
        word-break: keep-all !important;
        word-wrap: normal !important;
        display: inline-block !important;
        overflow: visible !important;
        text-overflow: clip !important;
        width: auto !important;
        max-width: none !important;
        flex-shrink: 0 !important;
        text-align: left !important;
    }

    .profile-page,
    .profile-content,
    .profile-form {
        overflow-x: hidden;
    }

    /* Remove black/dark lines on mobile */
    .payment-section .info-box,
    .profile-page .info-box,
    .profile-content .info-box,
    .content-card .info-box,
    .payment-sections .info-box {
        border-left: none !important;
        border: 1px dashed var(--border-color) !important;
        text-align: left !important;
    }

    .payment-section {
        border-left: none !important;
        text-align: left !important;
    }

    .payment-sections {
        border-left: none !important;
    }

    /* Remove all left borders from profile page elements */
    .profile-page *,
    .profile-content *,
    .content-card *,
    .payment-section *,
    .payment-sections *,
    .info-box * {
        border-left: none !important;
    }

    .payment-section h3 {
        text-align: left !important;
    }

    /* Left align all profile page text on mobile */
    .profile-content,
    .profile-content *,
    .content-card,
    .content-card *,
    .profile-form,
    .profile-form *,
    .payment-sections,
    .payment-sections * {
        text-align: left !important;
    }

    /* Keep buttons centered if they have specific centering classes */
    .profile-content .btn,
    .content-card .btn {
        text-align: center !important;
    }

    .profile-content .text-center,
    .content-card .text-center {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .profile-page .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .profile-layout,
    .profile-sidebar,
    .profile-content,
    .profile-content .content-card,
    .compact-orders-list,
    .order-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .profile-avatar-wrapper {
        max-width: 200px !important;
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto 0.25rem !important;
    }

    .profile-sidebar {
        padding: 0.5rem 0.25rem !important;
    }

    .profile-card {
        padding: 0.25rem 0 0.5rem !important;
    }

    .profile-card.profile-user-card {
        padding: 0.25rem 0 0.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .profile-avatar {
        padding: 0 !important;
        margin: 0 !important;
    }

    .profile-page {
        padding: 1.5rem 0 2rem;
    }
}

.order-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.order-summary-line span {
    color: var(--text-light);
}

.order-summary-line strong {
    color: var(--accent-color);
}

.order-summary-actions {
    display: flex;
    justify-content: flex-end;
}

/* Ensure 'View details' outline button is visible on light cards */
.order-card .btn-outline,
.profile-page .btn-outline.btn-sm {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.order-card .btn-outline:hover,
.profile-page .btn-outline.btn-sm:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-number .label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.order-number strong {
    font-size: 1rem;
    color: var(--primary-color);
    word-break: break-all;
}

.order-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.8rem;
}

.order-date svg {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.status-delivered,
.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.order-card-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-actions .btn-danger {
    background: #dc3545;
    color: #ffffff;
    border: 1px solid #dc3545;
}

.order-actions .btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: #ffffff;
}

.order-items-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.order-item-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.order-item-preview .item-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1;
}

.order-item-preview .item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.order-item-preview .item-qty {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
}

.order-item-preview img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.item-placeholder {
    width: 42px;
    height: 42px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.order-item-more {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 0.5rem;
}

.order-summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: right;
}

/* Make order summary inside My Orders cards compact and flat */
.orders-page .order-summary {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: static;
}

/* Remove vertical gaps between Items / Total rows on My Orders page */
.orders-page .order-summary .summary-item {
    margin: 0;
    padding: 0;
}

.orders-page .order-summary .summary-item+.summary-item {
    margin-top: 0.1rem;
}

/* Order review CTA in My Orders list */
.order-review-cta {
    margin-top: 0.15rem;
    display: inline-block;
}

.star-rating-link {
    color: #e11b23;
    font-size: 1rem;
    text-decoration: none;
}

.star-rating-link:hover {
    color: #ea580c;
}

/* Review snippet inside order cards */
.item-review-snippet {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.item-review-snippet .stars {
    color: #fbbf24;
    margin-right: 0.25rem;
}

.item-review-snippet p {
    margin: 0.15rem 0 0;
}

.review-media,
.review-media-inline {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.review-media img,
.review-media-inline img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.review-media video,
.review-media-inline video {
    width: 120px;
    max-height: 80px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.summary-item .label {
    color: var(--text-light);
    font-size: 0.8rem;
}

.summary-item .value {
    font-weight: 600;
    color: var(--text-color);
}

.total-amount {
    font-size: 1rem;
    color: var(--primary-color);
}

.order-card-footer {
    display: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ============================================
   Cart Page Styles
   ============================================ */
.cart-page {
    padding: 0rem 0;
    min-height: calc(100vh - var(--nav-height) - 200px);
    background: linear-gradient(to bottom, rgba(249, 115, 22, 0.02), transparent);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    margin-top: -1rem;
}

/* Empty Cart State */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.empty-cart-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 2rem;
    color: var(--text-light);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.empty-cart-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-color);
    opacity: 0.3;
}

.empty-cart h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.empty-cart p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 400px;
}

.empty-cart .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
}

.empty-cart .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.cart-items-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 0;
}

.cart-header {
    background: var(--bg-color);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.cart-header h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cart-item-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.2);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.cart-item-card:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding-right: 1rem;
    text-align: left;
}

.item-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-name a:hover {
    color: var(--accent-color);
}

.item-variation {
    font-size: 0.8125rem;
    color: var(--text-light);
    background: rgba(249, 115, 22, 0.08);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    display: inline-block;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
}

/* Cart Item Price Wrapper - Inline Display */
.cart-item-card .item-price-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    width: fit-content !important;
}

.cart-item-card .item-price-wrapper .item-price,
.cart-item-card .item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    white-space: nowrap !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.cart-item-card .item-price-wrapper .item-compare-price,
.cart-item-card .item-compare-price {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.item-quantity-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    text-align: left;
}

.item-quantity-controls label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    flex-shrink: 0;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 140px;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0.125rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.quantity-input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-color);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 1;
}

.qty-btn:hover:not(:disabled) {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    pointer-events: none;
}

.cart-quantity {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-color);
    min-width: 45px;
    line-height: 1.2;
}

.stock-warning {
    color: var(--warning-color);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    line-height: 1.2;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.stock-warning::before {
    content: '⚠';
    font-size: 1rem;
}

.cart-item-subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    min-width: 160px;
    justify-content: space-between;
    text-align: right;
}

.subtotal-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.btn-remove-cart {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--error-color);
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.btn-remove-cart svg {
    pointer-events: none;
    width: 20px;
    height: 20px;
}


.btn-remove-cart:active {
    transform: scale(0.95);
}

.cart-actions {

    margin-top: -1.5rem;
}

.cart-actions .btn {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cart-actions .btn:hover {
    transform: translateX(-4px);
}

.cart-summary-section {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    height: fit-content;
}

.cart-summary-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}


.cart-summary-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.summary-row .label {
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 500;
}

.summary-row .value {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
}

.summary-row.total {
    padding-top: 0.75rem;
    margin-top: 0.375rem;
    border-top: 2px solid var(--border-color);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border-radius: 0;
}

.summary-row.total .label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-row.total .value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.375rem 0;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-actions .btn {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
    justify-content: center;
}

.summary-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.summary-actions .btn:active {
    transform: translateY(0);
}

.checkout-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.375rem;
    line-height: 1.5;
    padding: 0.625rem;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 6px;
}

.checkout-note a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.checkout-note a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* ============================================
   Search Page Styles - Now uses products-page styles
   ============================================ */

.search-toolbar .mobile-filter-btn {
    display: none;
}

@media (max-width: 768px) {
    .search-toolbar .mobile-filter-btn {
        display: flex;
    }
}

/* Search page uses products page styles - no separate styles needed */

/* Top Search Bar - Amazon Style */
.search-top-bar {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    margin-top: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    clear: both;
}

.search-page .search-top-bar {
    margin-top: 2rem;
}

.search-top-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.search-top-wrapper {
    display: flex;
    align-items: stretch;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-top-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.search-top-category {
    padding: 0.75rem 1rem;
    padding-right: 2.25rem;
    border: none;
    border-right: 1px solid var(--border-color);
    background: #f3f4f6;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    min-width: 100px;
    max-width: 130px;
    flex-shrink: 0;
    border-radius: 6px 0 0 6px;
    box-sizing: border-box;
}

.search-top-category:hover {
    background-color: rgba(249, 115, 22, 0.05);
}

.search-top-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.search-top-input {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-color);
    outline: none;
    font-weight: 400;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-top-input::placeholder {
    color: var(--text-light);
}

.search-top-clear {
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    flex-shrink: 0;
    padding: 0;
}

.search-top-clear:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.search-top-btn {
    padding: 0.75rem 1.25rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0 6px 6px 0;
    min-width: 50px;
}

.search-top-btn:hover {
    background: var(--accent-hover);
}

.search-top-btn:active {
    background: var(--accent-hover);
    transform: scale(0.98);
}

/* ============================================
   Checkout Page Styles
   ============================================ */
.checkout-page {
    padding: 2rem 0;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

.checkout-layout {
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step.active:not(:last-child)::after {
    background: var(--accent-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.step.active .step-number {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--accent-color);
    font-weight: 600;
}

.checkout-section {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: .5rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.checkout-section .form-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method {
    display: block;
    cursor: pointer;
}

.payment-method input[type="radio"] {
    display: none;
}

.method-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.payment-method input[type="radio"]:checked+.method-content {
    border-color: var(--accent-color);
    background: rgba(249, 115, 22, 0.05);
}

.method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.method-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex: 1;
    width: 100%;
}

.method-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.method-info strong {
    color: var(--text-color);
    font-size: 1rem;
}

.method-info .method-desc {
    color: var(--text-light);
    font-size: 0.85rem;
}

.offer-badge {
    background-color: #28a745;
    /* or var(--accent-color) if appropriate, but typically offers are green or orange */
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    align-self: flex-start;
    /* Position at top */
}

/* Original spans (if any were used before specific classes) can be kept or removed if unused */
.method-info span:not(.offer-badge) {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.checkout-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    height: fit-content;
}

.order-summary-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.order-summary-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.order-item-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-image-small {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.item-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.item-placeholder-small {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.item-details strong {
    font-size: 0.875rem;
    color: var(--text-color);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-details span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.order-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.order-status-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.order-meta-tags .meta-tag strong {
    color: var(--primary-color);
}

.order-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-primary-actions .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

.total-row.total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 0.5rem;
    border-top: 2px solid var(--border-color);
}

.total-divider {
    display: none;
    /* avoid double line above Total row */
}

.coupon-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.coupon-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.coupon-input-group input {
    flex: 1;
    padding: 0.625rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
}

.coupon-message {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

/* Address Management Styles */
.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.address-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.address-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

.address-radio {
    display: block;
    cursor: pointer;
    margin: 0;
}

.address-radio input[type="radio"] {
    display: none;
}

.address-radio input[type="radio"]:checked+.address-content {
    background: rgba(249, 115, 22, 0.05);
}

.address-content {
    padding: 1rem;
    transition: background 0.2s ease;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.address-header strong {
    font-size: 1rem;
    color: var(--text-color);
}

.default-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.address-details {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.address-details p {
    margin: 0.25rem 0;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.address-actions-section {
    margin-bottom: 1.5rem;
}

.no-addresses {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Delivery Address Form */
.delivery-address-form {
    background: white;
    border-radius: 12px;

}

.delivery-address-form .form-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
}

.delivery-address-form .form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.delivery-address-form .form-group {
    margin-bottom: 0.9rem;
}

.delivery-address-form .form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.delivery-address-form .form-group input[type="text"],
.delivery-address-form .form-group input[type="tel"],
.delivery-address-form .form-group textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: white;
    color: var(--text-color);
    box-sizing: border-box;
}

.delivery-address-form .form-group input:focus,
.delivery-address-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.delivery-address-form .form-group input::placeholder,
.delivery-address-form .form-group textarea::placeholder {
    color: #999;
}

.delivery-address-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

/* Select Dropdown Styling */
.select-wrapper {
    position: relative;
}

.delivery-address-form select {
    width: 100%;
    padding: 0.6rem 2.25rem 0.6rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: white;
    color: var(--text-color);
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-address-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-light);
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    display: block;
    width: 100%;
}

.delivery-address-form .input-with-icon input {
    width: 100%;
    padding-right: 2.5rem !important;
    box-sizing: border-box;
}

.delivery-address-form .input-with-icon .input-icon {
    position: absolute !important;
    right: 0.75rem !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none;
    color: #666 !important;
    fill: none !important;
    stroke: currentColor !important;
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
}

.help-icon {
    cursor: help;
    pointer-events: auto;
}

.help-icon:hover {
    color: var(--accent-color);
}

/* Checkbox Styling */
.delivery-address-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

.delivery-address-form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.form-actions-inline {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Checkout Navigation */
.checkout-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Order Review Section */
.order-review-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.review-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.address-preview,
.payment-preview {
    color: var(--text-color);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.address-preview-content {
    padding: 0.5rem 0;
}

.address-preview-header {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
}

.address-preview-header strong {
    font-weight: 600;
    color: var(--primary-color);
}

.address-preview-details {
    color: var(--text-color);
    line-height: 1.8;
}

.address-preview-details p {
    margin: 0.25rem 0;
    color: var(--text-color);
}

.order-items-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 6px;
}

.preview-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.preview-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-item-details strong {
    font-size: 0.9375rem;
    color: var(--text-color);
}

.preview-item-details span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.preview-item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9375rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Order Details Page - Mobile-First Card Design
   ============================================ */
.order-details-page {
    padding: 0;
    background: #f5f5f5;
    min-height: calc(100vh - var(--nav-height));
    width: 100%;
    overflow-x: hidden;
}

.order-details-page .container {
    max-width: 100%;
    padding: 0;
    width: 100%;
    margin: 0;
}

.order-details-page .page-header {
    background: #ffffff;
    padding: 1rem 1rem 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.order-details-page .header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem;
    flex-wrap: nowrap !important;
    position: relative;
    width: 100%;
}

.order-details-page .header-content>div:first-child {
    flex: 1;
    min-width: 0;
}

.order-details-page .page-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.order-details-page .order-number {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-details-page .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: static !important;
    flex-shrink: 0;
    margin-left: auto !important;
    top: auto !important;
    right: auto !important;
}

.order-details-page .header-actions .help-link {
    color: var(--accent-color);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.order-details-page .header-actions .help-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.order-details-page .order-details-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.order-details-page .order-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Product Summary Card */
.order-details-page .order-summary-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.order-details-page .summary-product {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.order-details-page .summary-product-link {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: opacity 0.2s ease;
}

.order-details-page .summary-product-link:hover {
    opacity: 0.8;
}

.order-details-page .summary-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.order-details-page .summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-details-page .summary-image .item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
    background: #f3f4f6;
}

.order-details-page .summary-info {
    flex: 1;
    min-width: 0;
}

.order-details-page .summary-info h2 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-details-page .summary-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.25rem 0;
}

.order-details-page .summary-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0.5rem 0 0 0;
}

/* Order Status Card */
.order-details-page .order-status-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    position: relative;
}

.order-details-page .order-status-card.status-delivered,
.order-details-page .order-status-card.status-completed {
    border-left: 4px solid #10b981;
}

.order-details-page .status-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0;
    width: 100%;
}

.order-details-page .status-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    text-align: left;
}

.order-details-page .status-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 1.3;
}

.order-details-page .status-info .status-badge {
    display: inline-block;
    width: auto;
    margin: 0;
    align-self: flex-start;
}

.order-details-page .status-badges-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    text-align: left;
}

.order-details-page .status-badges-inline .status-label-small {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    padding: 0;
    font-weight: 500;
    white-space: nowrap;
}

.order-details-page .status-badges-inline .status-separator {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0;
}

.order-details-page .status-badges-inline .label {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    padding: 0;
    font-weight: 500;
    white-space: nowrap;
}

.order-details-page .status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.3;
    white-space: nowrap;
}

.order-details-page .status-badge.status-delivered,
.order-details-page .status-badge.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.order-details-page .status-badge.status-shipped {
    background: #dbeafe;
    color: #1e40af;
}

.order-details-page .status-badge.status-processing {
    background: #fef3c7;
    color: #92400e;
}

.order-details-page .status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.order-details-page .status-badge.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-details-page .status-badge.status-refunded {
    background: #fee2e2;
    color: #991b1b;
}

.order-details-page .payment-status-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    text-align: right;
}

.order-details-page .payment-status-info .label {
    font-size: 0.8125rem;
    color: #6b7280;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    font-weight: 500;
    white-space: nowrap;
}

.order-details-page .payment-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    text-transform: capitalize;
    display: inline-block;
    line-height: 1.3;
}

.order-details-page .payment-status.status-paid,
.order-details-page .payment-status.status-completed {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.order-details-page .payment-status.status-pending {
    background: #fef3c7 !important;
    color: #c2410c !important;
}

.order-details-page .payment-status.status-processing {
    background: #fff7ed !important;
    color: #e11b23 !important;
    border: 1px solid #ffedd5;
}

.order-details-page .payment-status.status-failed,
.order-details-page .payment-status.status-cancelled,
.order-details-page .payment-status.status-refunded {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.order-details-page .order-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #4b5563;
    margin: 0.75rem 0 0.75rem 0;
    padding: 0;
    border-bottom: none;
    line-height: 1.4;
}

.order-details-page .order-date span {
    color: #4b5563;
    display: inline;
}

.order-details-page .order-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6b7280;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.order-details-page .order-status-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    align-items: flex-start;
}

.order-details-page .order-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.4;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
}

.order-details-page .meta-tag {
    display: inline-block;
    color: #4b5563;
    white-space: nowrap;
    text-align: left;
}

.order-details-page .meta-tag strong {
    color: #1f2937;
    font-weight: 600;
    margin-left: 0.25rem;
}

.order-details-page .order-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0;
}

.order-details-page .order-primary-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: normal;
    line-height: 1.3;
}

.order-details-page .order-primary-actions .btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

.order-details-page .order-primary-actions .btn:active {
    transform: translateY(0);
}

.order-details-page .order-primary-actions .btn-danger {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.order-details-page .order-primary-actions .btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: #ffffff;
}

/* Order Tracking Card */
.order-details-page .order-tracking-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.order-details-page .order-tracking-card .tracking-status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.order-details-page .order-tracking-card .tracking-status-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #10b981;
    margin: 0 0 0.25rem 0;
}

.order-details-page .order-tracking-card .tracking-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.order-details-page .order-tracking-card .tracking-progress {
    margin-top: 0;
}

.order-details-page .order-tracking-card .tracking-steps {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    position: relative;
}

.order-details-page .order-tracking-card .tracking-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.order-details-page .order-tracking-card .tracking-step::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.order-details-page .order-tracking-card .tracking-step:last-child::before {
    display: none;
}

.order-details-page .order-tracking-card .tracking-step.done::before {
    background: #10b981;
}

.order-details-page .order-tracking-card .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.order-details-page .order-tracking-card .step-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 3;
}

.order-details-page .order-tracking-card .tracking-step.done .step-icon {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.order-details-page .order-tracking-card .step-content {
    margin-top: 0.5rem;
    width: 100%;
}

.order-details-page .order-tracking-card .step-label {
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.order-details-page .order-tracking-card .tracking-step.done .step-label {
    color: #1f2937;
    font-weight: 600;
}

.order-details-page .order-tracking-card .step-date {
    font-size: 0.6875rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.order-details-page .order-tracking-card .tracking-step.done .step-date {
    color: #10b981;
}

/* Order Items Card */
.order-details-page .order-items-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

/* Order Addresses Section - In Main Section */
.order-details-page .order-addresses-section,
.order-success-page .order-addresses-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.order-details-page .order-addresses-section .info-card,
.order-success-page .order-addresses-section .info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.order-details-page .order-addresses-section .info-card h3,
.order-success-page .order-addresses-section .info-card h3,
.order-success-page .info-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.order-success-page .info-card {
    text-align: left;
}

.order-details-page .order-addresses-section .address-block,
.order-success-page .order-addresses-section .address-block,
.order-success-page .address-block,
.order-success-page .payment-info {
    text-align: left;
}

.order-details-page .order-addresses-section .address-block p,
.order-success-page .order-addresses-section .address-block p,
.order-success-page .address-block p,
.order-success-page .payment-info p {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}


.order-details-page .order-addresses-section .address-block strong {
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}

.order-details-page .order-items-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.order-details-page .order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: none;
    overflow-y: visible;
}

.order-details-page .order-item-detail {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0 1rem;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    align-items: flex-start;
    position: relative;
    overflow: visible;
    text-align: left;
}

.order-details-page .order-item-link {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: opacity 0.2s ease;
    position: relative;
}

.order-details-page .order-item-link:hover {
    opacity: 0.8;
}

.order-details-page .order-item-link .item-info h4 {
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.order-details-page .order-item-link:hover .item-info h4 {
    color: var(--accent-hover, #ea580c);
    text-decoration: underline;
}

.order-details-page .order-item-detail:last-child {
    border-bottom: none;
}

.order-details-page .item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.order-details-page .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-details-page .item-image .item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: #9ca3af;
    background: #f3f4f6;
}

.order-details-page .item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 0;
    position: relative;
    justify-content: flex-start;
    min-width: 200px;
    overflow: visible;
    text-align: left;
}

.order-details-page .item-info .item-meta {
    flex: 1;
}

.order-details-page .item-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    text-align: left;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    padding-right: 0;
    overflow-wrap: break-word;
}

.order-details-page .item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    text-align: left;
}

.order-details-page .item-meta span {
    display: block;
    line-height: 1.4;
    text-align: left;
}

.order-details-page .item-meta .order-date-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.order-details-page .item-price {
    display: block;
}

.order-details-page .price-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-block;
    width: auto;
}

.order-details-page .price-unit {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.2;
}

.order-details-page .item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.order-details-page .item-info .item-bottom {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0;
    border: none;
    width: 100%;
    max-width: 100%;
    z-index: 1;
}

.order-details-page .item-info .item-bottom .item-price {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    text-align: left;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    order: 2;
    width: auto;
}

.order-details-page .item-info .item-bottom .item-actions {
    display: flex !important;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    order: 1;
    width: auto;
}

.order-details-page .order-item-detail>.item-price {
    display: none;
}

.order-details-page .order-item-detail>.item-actions {
    display: none;
}

.order-details-page .order-item-detail .bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-basis: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    gap: 1rem;
    order: 5;
}

.order-details-page .btn-view,
.order-details-page .btn-review {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.order-details-page .btn-view:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.order-details-page .btn-review {
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.order-details-page .btn-review:hover {
    background: var(--accent-color);
    color: #ffffff;
}

/* Sidebar Cards */
.order-details-page .order-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-details-page .info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.order-details-page .info-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.order-details-page .address-block p {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.order-details-page .address-block strong {
    font-weight: 600;
    color: #1f2937;
}

.order-details-page .payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-details-page .info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.order-details-page .info-row .label {
    font-size: 0.875rem;
    color: #6b7280;
    flex-shrink: 0;
}

.order-details-page .info-row .value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    text-align: right;
}

.order-details-page .link-inline {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.order-details-page .link-inline:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Order Totals Card */
.order-details-page .order-totals-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.order-details-page .order-totals-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.order-details-page .totals-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.order-details-page .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #374151;
}

.order-details-page .total-row.discount {
    color: #10b981;
}

.order-details-page .total-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.order-details-page .total-row.total {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    padding-top: 0;
    border-top: 2px solid #e5e7eb;
    margin-top: 0.5rem;
}

.order-details-page .invoice-download {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.order-details-page .invoice-download .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* Review Section */
.order-details-page .order-review-inline {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.order-details-page .order-review-inline h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.order-details-page .order-review-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
}

.order-details-page .order-review-inline .review-item-card {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.order-details-page .existing-review-note {
    color: #10b981;
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0.5rem 0 0 0;
}

/* Responsive */
@media (min-width: 768px) {
    .order-details-page {
        padding: 1.5rem 0 0;
        margin-top: 2rem;
    }

    .order-details-page .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .order-details-page .order-details-layout {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .order-details-page .order-main {
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .order-details-page .order-sidebar {
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Addresses Section - Grid Layout on Tablet/Desktop */
    .order-details-page .order-addresses-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .order-details-page .order-addresses-section .info-card {
        text-align: left;
    }

    .order-details-page .order-addresses-section .address-block {
        text-align: left;
    }

    .order-details-page .order-addresses-section .address-block p {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .order-details-page {
        margin-top: 2.5rem;
    }

    .order-details-page .order-details-layout {
        grid-template-columns: 1fr 400px;
    }
}

/* Responsive Tracking Section */
@media (max-width: 640px) {
    .order-details-page {
        padding: 0;
        margin-top: 0;
    }

    .order-details-page .page-header {
        padding: 1rem 1rem 1.25rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .order-details-page .order-details-layout {
        padding: 0 1rem;
        margin-top: 0;
    }

    .order-details-page .page-header h1 {
        font-size: 1.125rem;
        margin: 0 0 0.375rem 0;
        display: block;
        visibility: visible;
    }

    .order-details-page .order-number {
        font-size: 0.8125rem;
        display: block;
        visibility: visible;
    }

    .order-details-page .header-content {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding-top: 0;
    }

    .order-details-page .header-actions {
        position: static;
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        margin-left: auto;
    }

    .order-details-page .header-actions .btn {
        flex: 1;
        min-width: 0;
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    .order-details-page .order-items-card h3 {
        font-size: 0.9375rem;
        margin: 0 0 0.75rem 0;
        padding-bottom: 0.625rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: left !important;
    }

    .order-details-page .item-info h4 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.875rem;
        font-weight: 600;
        color: #1f2937;
        line-height: 1.3;
        margin: 0 0 0.375rem 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left !important;
    }

    .order-details-page .item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .order-details-page .item-info {
        flex: 1;
        min-width: 0;
        padding-right: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        text-align: left !important;
        overflow: visible;
    }

    .order-details-page .item-info * {
        text-align: left !important;
    }

    .order-details-page .item-info .item-bottom {
        text-align: left !important;
    }

    .order-details-page .item-info .item-bottom .item-price {
        text-align: left !important;
    }

    .order-details-page .item-price {
        align-items: flex-start;
        text-align: left !important;
        min-width: 70px;
        flex-shrink: 0;
    }

    .order-details-page .price-amount {
        font-size: 0.9375rem;
        font-weight: 700;
        text-align: left !important;
    }

    .order-details-page .price-unit {
        font-size: 0.75rem;
        text-align: left !important;
    }

    .order-details-page .item-meta {
        font-size: 0.75rem;
        gap: 0.125rem;
        text-align: left !important;
    }

    .order-details-page .item-meta span {
        text-align: left !important;
    }

    .order-details-page .item-meta .order-date-text {
        text-align: left !important;
    }

    .order-details-page .order-item-detail {
        flex-direction: row;
        align-items: flex-start;
        padding: 0.75rem 0.75rem 1rem;
        gap: 0.75rem;
        overflow: visible;
        text-align: left !important;
    }

    /* Ensure all order item text is left-aligned on mobile */
    .order-details-page .order-item-detail *,
    .order-details-page .order-item-link *,
    .order-details-page .item-info *,
    .order-details-page .item-meta * {
        text-align: left !important;
    }

    /* Keep buttons centered */
    .order-details-page .item-actions .btn,
    .order-details-page .btn-review,
    .order-details-page .btn-view {
        text-align: center !important;
    }

    .order-details-page .item-info .item-bottom {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-top: 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .order-details-page .item-info .item-bottom .item-actions {
        order: 1;
        justify-content: flex-start;
        width: auto;
        flex-shrink: 0;
    }

    .order-details-page .item-info .item-bottom .item-price {
        order: 2;
        align-items: center;
        text-align: left;
        display: flex !important;
        flex-direction: row;
        width: auto;
        flex-shrink: 0;
    }

    .order-details-page .item-info {
        flex: 1;
        min-width: 0;
    }

    .order-details-page .item-info h4 {
        font-size: 0.875rem;
        font-weight: 600;
        color: #1f2937;
        margin: 0 0 0.375rem 0;
        line-height: 1.3;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left;
    }

    .order-details-page .item-info {
        flex: 1;
        min-width: 0;
        padding-right: 0.5rem;
        overflow: visible;
    }

    .order-details-page .item-price {
        min-width: 70px;
        flex-shrink: 0;
    }

    .order-details-page .item-meta {
        font-size: 0.75rem;
        gap: 0.125rem;
    }

    .order-details-page .item-price {
        align-items: flex-start;
        text-align: left !important;
        margin-top: 0;
    }

    .order-details-page .price-amount {
        font-size: 0.9375rem;
        text-align: left !important;
    }

    .order-details-page .price-unit {
        font-size: 0.75rem;
        text-align: left !important;
    }

    .order-details-page .order-tracking-card .tracking-steps {
        gap: 0.25rem;
    }

    .order-details-page .order-tracking-card .step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .order-details-page .order-tracking-card .step-icon svg {
        width: 14px;
        height: 14px;
    }

    .order-details-page .order-tracking-card .step-label {
        font-size: 0.6875rem;
    }

    .order-details-page .order-tracking-card .step-date {
        font-size: 0.625rem;
    }

    .order-details-page .order-tracking-card .tracking-step::before {
        top: 16px;
    }
}

/* ============================================
   Order Review Page Styles
   ============================================ */
.order-review-page {
    padding: 2.25rem 0 2.75rem;
    min-height: calc(100vh - var(--nav-height) - 200px);
    background: #f3f4f6;
}

.order-review-page .page-header {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.order-review-page .page-header h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.order-review-page .page-subtitle {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.order-review-page .page-subtitle strong {
    color: var(--primary-color);
    font-weight: 600;
}

.review-item-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-item-header {
    margin-bottom: 1.25rem;
}

.review-item-product {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.review-item-product>div {
    flex: 1;
}

.review-item-product h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.review-item-product .meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

.review-item-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.review-item-card .item-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}



.product-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.rating-row .label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    align-items: center;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    font-size: 1.75rem;
    color: transparent;
    -webkit-text-stroke: 1.5px #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease, -webkit-text-stroke 0.2s ease;
    line-height: 1;
    user-select: none;
}

/* Empty stars - no fill, only gray outline */
.star-rating-input label:not(.active) {
    color: transparent;
    -webkit-text-stroke: 1.5px #d1d5db;
}

/* Filled stars - orange color */
.star-rating-input label.active,
.star-rating-input input[type="radio"]:checked~label,
.star-rating-input input[type="radio"]:checked+label {
    color: #ff9500;
    -webkit-text-stroke: 1.5px #ff9500;
}

.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: #ff9500;
    -webkit-text-stroke: 1.5px #ff9500;
    transform: scale(1.1);
}

.review-form {
    margin-top: 1rem;
}

.review-form .btn {
    margin-top: 0.75rem;
}

.review-submitted {
    padding: 0.75rem 0;
}

.review-submitted p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}


/* Responsive styles for order review */
@media (max-width: 768px) {
    .order-review-page {
        padding: 1.5rem 0 2rem;
    }

    .review-item-card {
        padding: 1.25rem;
    }

    .review-item-product {
        flex-direction: column;
        gap: 0.75rem;
    }

    .review-item-product img,
    .review-item-card .item-placeholder {
        width: 60px;
        height: 60px;
    }

    .rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .star-rating-input {
        width: 100%;
    }

}

@media (max-width: 640px) {
    .order-review-page .page-header h1 {
        font-size: 1.5rem;
    }

    .review-item-product h2 {
        font-size: 1rem;
    }

}

/* ============================================
   Order Success Page Styles
   ============================================ */
.order-tracking-page {
    padding: 2rem 0 2.5rem;
    background: #f3f4f6;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

.tracking-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tracking-status-card,
.tracking-info-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1.5rem;
    border: 1px solid #e5e7eb;
}

.tracking-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tracking-status-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tracking-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.tracking-progress {
    margin-top: 0.5rem;
}

.tracking-steps {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.tracking-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.tracking-step::before {
    content: "";
    position: absolute;
    top: 16px;
    left: -50%;
    right: 50%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.tracking-step:first-child::before {
    display: none;
}

.tracking-step.done::before {
    background: #22c55e;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.tracking-step.done .step-icon {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
}

.step-label {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.tracking-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.tracking-address p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
}

.tracking-meta {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.meta-row .label {
    color: var(--text-light);
}

.meta-row .value {
    font-weight: 600;
    color: var(--text-color);
}

@media (max-width: 640px) {
    .tracking-steps {
        flex-direction: row;
        gap: 0.25rem;
    }

    .step-label {
        font-size: 0.7rem;
    }
}

.order-success-page {
    padding: 4.5rem 0 3rem;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

.success-container {
    max-width: 900px;
    margin: 0 auto;
}

.success-icon-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message {
    text-align: center;
    margin-bottom: 2rem;
}

.success-message h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.success-message>p {
    color: var(--text-light);
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

.order-number-display {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.order-number-display .label {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.order-number-display strong {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 700;
}

.success-summary-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.summary-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    background: var(--bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 8px;
    color: white;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
}

.order-items-summary {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.order-items-summary h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.item-image-small {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.item-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.item-placeholder-tiny {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.item-details-summary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.item-details-summary strong {
    font-size: 0.875rem;
    color: var(--text-color);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-details-summary span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.item-total {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.order-totals-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Customer Information Section */
.customer-information-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.customer-information-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.customer-info-grid .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.customer-info-grid .info-item strong {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customer-info-grid .info-item span {
    font-size: 0.9375rem;
    color: var(--text-color);
    font-weight: 500;
}

.customer-info-grid .info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.customer-info-grid .info-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.customer-info-grid .info-item .payment-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.customer-info-grid .info-item .payment-status.status-paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.customer-info-grid .info-item .payment-status.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.customer-info-grid .info-item .payment-status.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

@media (max-width: 768px) {
    .customer-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Order Success - compact address & payment details */
.order-extra-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.order-extra-details .details-column {
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 0.875rem;
}

.order-extra-details .details-column h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.order-extra-details .details-column p {
    margin: 0.125rem 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.order-extra-details .details-column p:first-of-type {
    margin-top: 0;
}

.order-extra-details .details-column p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .order-extra-details {
        grid-template-columns: 1fr;
    }
}


.success-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Make primary action on order success page more highlighted */
.order-success-page .success-actions .btn-primary {
    background: #e11b23;
    border-color: #e11b23;
    color: #ffffff;
}

.order-success-page .success-actions .btn-primary:hover {
    background: #ea580c;
    border-color: #ea580c;
}

.order-success-page .success-actions .btn-outline {
    border-color: #e5e7eb;
    color: #e11b23;
    background: #ffffff;
}

.order-success-page .success-actions .btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.success-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.note-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.success-note p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {

    .profile-layout,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar,
    .cart-summary-section,
    .checkout-sidebar {
        position: static;
    }

    .checkout-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .profile-nav {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        overflow-x: hidden;
        flex-wrap: wrap;
        padding: 0.25rem 0.5rem;
    }

    .profile-nav .nav-item {
        border-bottom: none;
        padding: 0.3rem 0.7rem;
        border-radius: 999px;
        background: transparent;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .profile-nav .nav-item.active {
        background: var(--bg-light);
        color: var(--text-color);
    }

    .profile-nav .nav-item-icon {
        width: 36px;
        height: 36px;
    }

    .profile-nav .nav-item-logout {
        margin-top: 0;
        border-top: none;
        border-bottom: none;
        padding: 0.3rem 0.7rem;
        margin-left: 0;
        border-radius: 999px;
        background: transparent;
    }

    .content-card {
        padding: 1.25rem;
    }

    .profile-overview-grid {
        grid-template-columns: 1fr;
        margin: -0.75rem -1.25rem 1.25rem;
        padding: 0.9rem 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-card-body {
        gap: 0.5rem;
    }

    .search-page {
        padding: 1.5rem 0;
    }

    .search-page-header h1 {
        font-size: 2rem;
    }

    .search-integrated-wrapper {
        border-radius: 10px;
    }

    .search-category-select {
        min-width: 120px;
        padding: 0.875rem 1rem;
        padding-right: 2rem;
        font-size: 0.875rem;
    }

    .search-integrated-input {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        padding-right: 2.5rem;
    }

    .search-integrated-wrapper .clear-search-btn {
        right: 3.5rem;
        width: 28px;
        height: 28px;
    }

    .search-integrated-btn {
        padding: 0.875rem 1.25rem;
    }

    .search-integrated-btn svg {
        width: 18px;
        height: 18px;
    }

    .search-input-wrapper:has(.clear-search-btn) .search-page-input {
        padding-right: 3rem;
    }

    .search-icon {
        left: 1.25rem;
        width: 22px;
        height: 22px;
    }

    .clear-search-btn {
        width: 28px;
        height: 28px;
        right: calc(90px + 0.5rem);
        top: 50%;
        transform: translateY(-50%);
    }

    .clear-search-btn svg {
        width: 14px;
        height: 14px;
    }

    .search-page-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
        min-width: 90px;
    }

    .search-page .container {
        position: relative;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .search-bar-container {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Desktop/Tablet styles for search page - moved from max-width: 768px */
@media (min-width: 768px) {
    .search-layout {
        grid-template-columns: 1fr;
        gap: 0;
        align-items: flex-start;
        position: relative;
    }

    .search-page .products-sidebar,
    .search-layout .products-sidebar {
        display: block;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 280px;
        max-height: calc(100vh - var(--nav-height));
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 100;
        background: var(--bg-color);
        border-right: 1px solid var(--border-color);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
        padding: 0;
        padding-top: 2rem;
        padding-bottom: 2rem;
        box-sizing: border-box;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .search-page .products-sidebar::-webkit-scrollbar,
    .search-layout .products-sidebar::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .search-page .products-sidebar::-webkit-scrollbar-track,
    .search-layout .products-sidebar::-webkit-scrollbar-track {
        display: none;
    }

    .search-page .products-sidebar::-webkit-scrollbar-thumb,
    .search-layout .products-sidebar::-webkit-scrollbar-thumb {
        display: none;
    }

    .search-layout .products-sidebar .sidebar-header {
        position: sticky;
        top: 0;
        background: var(--bg-color);
        z-index: 10;
        margin: 0;
        margin-top: 0;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .search-layout .products-sidebar .sidebar-close {
        display: none;
    }

    .search-layout .products-sidebar.footer-near {
        overflow-y: auto;
        padding-bottom: 2rem;
    }

    .search-page .products-content,
    .search-content {
        margin-left: 280px;
        min-width: 0;
        box-sizing: border-box;
        width: calc(100% - 280px);
        max-width: calc(100% - 280px);
        padding-left: 1.5rem;
    }

    .search-page .search-top-bar {
        margin-left: 0;
        margin-top: 2rem;
        padding-left: 300px;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
        z-index: 10;
        clear: both;
    }

    .search-page .search-top-form {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    /* Search page uses products page grid styles - no separate styles needed */
    .search-page .products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-page .product-card {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .search-layout .mobile-filter-btn,
    .search-page .mobile-filter-btn {
        display: none;
    }

    .search-layout .sidebar-overlay,
    .search-page .sidebar-overlay {
        display: none !important;
    }
}

/* Mobile styles for search page - match products page */
@media (max-width: 767px) {
    .search-page {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .search-page .products-layout,
    .search-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-page .products-content,
    .search-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        box-sizing: border-box;
    }

    .search-page .products-sidebar,
    .search-layout .products-sidebar {
        display: block;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: calc(100vh - var(--nav-height));
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--border-color);
        max-height: none;
        padding-top: 2rem;
    }

    .search-page .products-sidebar::-webkit-scrollbar,
    .search-layout .products-sidebar::-webkit-scrollbar {
        display: none;
    }

    .search-page .products-sidebar.active,
    .search-layout .products-sidebar.active {
        transform: translateX(0);
    }

    .search-page .products-sidebar .sidebar-header,
    .search-layout .products-sidebar .sidebar-header {
        position: sticky;
        top: 0;
        background: var(--bg-color);
        z-index: 1;
        margin-top: 0;
        padding: 1rem 1.5rem 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }

    .search-page .products-sidebar .sidebar-close,
    .search-layout .products-sidebar .sidebar-close {
        display: flex;
    }

    .search-page .mobile-filter-btn,
    .search-layout .mobile-filter-btn {
        display: flex !important;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-bottom: 0.75rem;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .search-page .mobile-filter-btn:hover,
    .search-layout .mobile-filter-btn:hover {
        background: var(--primary-hover);
    }

    .search-page .products-toolbar,
    .search-layout .products-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .search-page .toolbar-controls,
    .search-layout .toolbar-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }

    .search-page .sidebar-overlay,
    .search-layout .sidebar-overlay {
        display: block;
        pointer-events: none;
        top: var(--nav-height);
    }

    .search-page .sidebar-overlay.active,
    .search-layout .sidebar-overlay.active {
        pointer-events: auto;
    }

    .search-page .product-card .product-actions,
    .search-layout .product-card .product-actions,
    .search-page .products-grid .product-card .product-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .search-page .products-grid,
    .search-layout .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .search-page .search-top-bar {
        padding-left: 0 !important;
    }

    .search-page .search-top-bar {
        margin-bottom: 1.5rem;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 10;
        overflow-x: hidden;
        clear: both;
        display: block;
    }

    .search-page .search-top-form {
        max-width: 350px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .search-top-wrapper {
        border-radius: 6px;
    }

    .search-top-category {
        min-width: 90px;
        max-width: 120px;
        padding: 0.7rem 0.875rem;
        padding-right: 2rem;
        font-size: 0.85rem;
    }

    .search-top-input {
        padding: 0.7rem 0.875rem;
        padding-right: 2.5rem;
        font-size: 0.875rem;
    }

    .search-top-clear {
        right: 3rem;
        width: 24px;
        height: 24px;
    }

    .search-top-btn {
        padding: 0.7rem 1.1rem;
        min-width: 50px;
    }

    .cart-page {
        padding: 1.5rem 0;
    }

    .cart-layout {
        gap: 1.5rem;
    }

    .cart-item-card {
        grid-template-columns: 110px 1fr auto;
        gap: 0.875rem;
        padding: 0.9375rem;
    }

    .cart-item-image {
        width: 110px;
        height: 110px;
    }

    .cart-item-details {
        gap: 0.5rem;
    }

    .item-name {
        font-size: 0.96875rem;
        line-height: 1.3;
    }

    .item-variation {
        font-size: 0.78125rem;
        padding: 0.25rem 0.5625rem;
    }

    .cart-item-card .item-price-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        width: fit-content !important;
    }

    .cart-item-card .item-price-wrapper .item-price,
    .cart-item-card .item-price {
        font-size: 1rem !important;
        display: inline-block !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }

    .cart-item-card .item-price-wrapper .item-compare-price,
    .cart-item-card .item-compare-price {
        font-size: 0.8125rem !important;
        display: inline-block !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }

    .item-quantity-controls {
        flex-direction: row;
        align-items: center;
        gap: 0.625rem;
        margin-top: 0.25rem;
    }

    .item-quantity-controls label {
        font-size: 0.71875rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .quantity-input-group {
        max-width: 130px;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
    }

    .cart-quantity {
        font-size: 0.90625rem;
        padding: 0.4375rem;
    }

    .stock-warning {
        font-size: 0.71875rem;
    }

    .cart-item-subtotal {
        gap: 0.625rem;
        min-width: 140px;
    }

    .subtotal-amount {
        font-size: 1.1875rem;
    }

    .cart-item-subtotal {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.625rem;
        min-width: 100px;
        justify-content: flex-start;
        padding-top: 0;
        border-top: none;
    }

    .checkout-steps {
        padding: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .summary-info-grid {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }

}

/* ============================================
   Products Page Styles
   ============================================ */
.products-page {
    padding-bottom: 1rem;
    min-height: calc(100vh - var(--nav-height) - 200px);
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Sell Banners Section */
.sell-banners-section {
    width: 100%;
    margin-bottom: 2rem;
}

.sell-banners-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.sell-banners-container::-webkit-scrollbar {
    height: 6px;
}

.sell-banners-container::-webkit-scrollbar-track {
    background: transparent;
}

.sell-banners-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.sell-banners-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

.sell-banner-item {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 100%;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.sell-banner-item:hover {
    transform: translateY(-2px);
}

.sell-banner-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s ease;
}

.sell-banner-item:hover img {
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .sell-banner-item {
        min-width: 250px;
    }

    .sell-banners-section {
        margin-bottom: 1.5rem;
    }
}

/* Top Sell Banner Section (1200x300px) */
.top-sell-banner-section {
    width: 100%;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-top: 0;
    box-sizing: border-box;
}

.top-sell-banner {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: 300px;
    text-decoration: none;
    overflow: hidden;
}

.top-sell-banner:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.top-sell-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop and Tablet: Banner on left side, maintaining filter space */
/* Desktop and Tablet: Banner on left side, maintaining filter space */
@media (min-width: 992px) {
    .top-sell-banner-section {
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding-left: 1.5rem;
        margin-left: 0;
    }

    .top-sell-banner {
        width: 1200px;
        max-width: 1200px;
        height: 300px;
        flex-shrink: 0;
    }

    /* When sidebar is visible, adjust banner position to align with products-content */
    .products-page .top-sell-banner-section {
        margin-left: 280px;
        padding-left: 1.5rem;
    }

    /* Maintain filter section space - banner doesn't interfere */
    .products-page .products-layout {
        margin-top: 0;
        padding-top: 0;
    }
}

/* Tablet: Adjust banner size if needed */
@media (min-width: 768px) and (max-width: 1024px) {
    .top-sell-banner {
        max-width: 100%;
        width: 100%;
    }
}

/* Mobile: Full width banner */
@media (max-width: 767px) {
    .top-sell-banner {
        max-width: 100%;
        width: 100%;
        height: auto;

    }

    .top-sell-banner img {
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
}

/* Explicit archive page price styles - smaller sizes */
.products-page .product-price,
.products-grid .product-price {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--primary-color);
}

.products-page .product-compare-price,
.products-grid .product-compare-price {
    font-size: 0.75rem !important;
    color: #999999;
    text-decoration: line-through;
}

.products-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0;
    padding-top: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: start;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    clear: both;
}

.search-page .products-layout {
    margin-top: 0;
    padding-top: 0;
    clear: both;
}

/* Fix search box positioning to prevent overflow and sidebar overlap */
.search-page .search-top-bar {
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    z-index: 10;
    clear: both;
    box-sizing: border-box;
}

.search-page .search-top-form {
    max-width: 600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

.search-page .search-top-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* Fix search box positioning to prevent overflow and sidebar overlap */
/* Fix search box positioning to prevent overflow and sidebar overlap */
@media (min-width: 992px) {
    .search-page .search-top-bar {
        padding-left: 300px !important;
    }
}

.search-page .search-top-bar {
    margin-left: 0 !important;
    margin-top: 2rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    z-index: 10;
    clear: both;
    box-sizing: border-box;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.search-page .search-top-form {
    max-width: 600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

.search-page .search-top-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.products-sidebar {
    display: none;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    /* Hide scrollbar completely */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.products-sidebar::-webkit-scrollbar-track {
    display: none;
    background: transparent;
}

.products-sidebar::-webkit-scrollbar-thumb {
    display: none;
    background: transparent;
}

.products-sidebar::-webkit-scrollbar-thumb:hover {
    display: none;
    background: transparent;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: var(--bg-light);
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem 1rem;
    margin-top: 0;
    box-sizing: border-box;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-header {
    margin-bottom: 0.375rem;
}

.filter-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-content::-webkit-scrollbar {
    display: none;
}

.filter-input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: var(--bg-light);
}

.filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-option span {
    font-size: 0.875rem;
    color: var(--text-color);
}

.price-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.price-input-group label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-checkbox:hover {
    background: var(--bg-light);
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-checkbox span {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Category Filter List - Hierarchical Expandable */
.category-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.category-filter-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-filter-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    border-left: 3px solid transparent;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

.category-filter-item:hover {
    background: rgba(249, 115, 22, 0.05);
}

.category-filter-item.active {
    background: rgba(249, 115, 22, 0.08);
    border-left-color: var(--accent-color);
}

.category-filter-item.active .category-filter-label {
    color: var(--accent-color);
    font-weight: 600;
}

.category-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-filter-label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-color);
    transition: color 0.15s ease;
    user-select: none;
}

.category-expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: auto;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    color: var(--text-light);
    flex-shrink: 0;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
}

.category-expand-icon:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
}

.category-expand-icon.expanded {
    transform: rotate(180deg);
}

.category-filter-item.active .category-expand-icon {
    color: var(--accent-color);
}

.category-sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
    padding: 0;
    margin-left: 0;
}

.category-sub-list.expanded {
    max-height: 2000px;
    padding: 0.25rem 0;
}

.category-sub-list .category-filter-item {
    padding-left: 1.5rem;
    font-size: 0.8125rem;
}

.category-sub-list.level-2 .category-filter-item {
    padding-left: 2.25rem;
    font-size: 0.75rem;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.filter-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.filter-actions .btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.products-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 0;
    margin: 0;
}

.products-toolbar,
.search-page .products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.mobile-filter-btn,
.search-page .mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-btn:hover {
    background: var(--primary-hover);
}

.mobile-filter-btn svg {
    flex-shrink: 0;
}

.toolbar-controls,
.search-page .toolbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.view-options {
    display: flex;
    gap: 0.125rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.125rem;
    background: var(--bg-light);
}

.view-btn {
    background: transparent;
    border: none;
    padding: 0.375rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: var(--bg-color);
    color: var(--text-color);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-select {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8125rem;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.filters-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.remove-filter {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    margin-left: 0.125rem;
    transition: transform 0.2s ease;
}

.remove-filter:hover {
    transform: scale(1.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    justify-content: start;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 1rem;
}

.products-grid.list-view .product-image-wrapper {
    width: 160px;
    height: 160px;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.products-grid.list-view .product-actions {
    align-self: center;
}

.product-card {
    position: relative;
    background: var(--bg-color);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: none;
    transform: translateY(0);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-light);
    font-size: 0.875rem;
    border: 1px dashed var(--border-color);
}

.product-placeholder::before {
    content: '';
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.5;
    flex-shrink: 0;
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 16px;
    font-size: 0.6875rem;
    font-weight: 600;
    z-index: 1;
}

.badge-featured {
    background: var(--accent-color);
    color: white;
    font-size: 0.65rem !important;
    padding: 0.15rem 0.4rem !important;
}

.badge-sale {
    background: var(--error-color);
    color: white;
    font-size: 0.65rem !important;
    padding: 0.15rem 0.4rem !important;
}

.products-page .product-badge,
.related-products-section .product-badge {
    font-size: 0.6rem !important;
    padding: 0.12rem 0.35rem !important;
    top: 0.4rem !important;
    left: 0.4rem !important;
}

.product-info {
    padding: 0.4rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    background: #ffffff;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #000000;
    margin: 0 0 0.2rem 0;
    padding: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

/* Home page product cards - more compact */
.home-page .product-info {
    padding: 0.35rem 0.45rem !important;
    gap: 0.1rem !important;
}

.home-page .product-title {
    font-size: 0.8rem !important;
    margin: 0 0 0.15rem 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}

.home-page .product-price-wrapper {
    gap: 0.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home-page .products-grid .product-price {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #FF6600 !important;
}

.home-page .products-grid .product-compare-price {
    font-size: 0.7rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* List view prices - also smaller for archive page */
.products-page .product-price,
.products-grid.list-view .product-price {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: #000000;
}

.products-page .product-compare-price,
.products-grid.list-view .product-compare-price {
    font-size: 0.8rem !important;
    color: #999999;
    text-decoration: line-through;
}

/* Compact product info for products page */
.products-page .product-info,
.related-products-section .product-info {
    padding: 0.25rem 0.35rem !important;
    gap: 0.08rem !important;
}

.products-page .product-title,
.related-products-section .product-title {
    font-size: 0.8rem !important;
    margin: 0 0 0.1rem 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}

.products-page .product-category,
.related-products-section .product-category {
    font-size: 0.65rem !important;
    margin-bottom: 0.03rem !important;
    padding: 0 !important;
}

.products-page .product-rating,
.related-products-section .product-rating {
    margin: 0.03rem 0 !important;
    padding: 0 !important;
}

.products-page .product-rating .stars,
.related-products-section .product-rating .stars {
    gap: 0.08rem !important;
}

.products-page .product-rating .stars svg,
.related-products-section .product-rating .stars svg {
    width: 11px !important;
    height: 11px !important;
}

.products-page .product-rating .rating-count,
.related-products-section .product-rating .rating-count {
    font-size: 0.65rem !important;
    margin-left: 0.15rem !important;
}

.products-page .product-price-wrapper,
.related-products-section .product-price-wrapper {
    gap: 0.15rem !important;
    margin-top: 0.08rem !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.products-page .product-price,
.related-products-section .product-price {
    font-size: 0.85rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

.products-page .product-compare-price,
.related-products-section .product-compare-price {
    font-size: 0.75rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

.products-page .stock-badge {
    font-size: 0.6rem !important;
    padding: 0.08rem 0.3rem !important;
    margin-top: 0.05rem !important;
    margin-top: 0.1rem !important;
}

.stock-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.stock-badge.low-stock {
    background: #fef3c7;
    color: #92400e;
}

.products-page .product-actions,
.products-grid .product-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
    background: transparent;
    padding: 0;
    border: none;
}

.products-page .product-card:hover .product-actions,
.products-grid .product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.products-page .btn-icon,
.products-grid .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(249, 115, 22, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-page .btn-icon:hover:not(:disabled),
.products-grid .btn-icon:hover:not(:disabled) {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.btn-icon:hover:not(:disabled) {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wishlist-btn.active {
    color: white;
    background: var(--accent-color);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.wishlist-btn.active:hover:not(:disabled) {
    background: var(--accent-hover);
    color: white;
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.4);
}

.wishlist-btn.active svg {
    fill: currentColor;
}

.wishlist-btn.active:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.wishlist-btn-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wishlist-btn-detail.active {
    color: var(--error-color);
    border-color: var(--error-color);
}

.wishlist-btn-detail.active svg {
    fill: currentColor;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination-btn:hover {
    color: var(--accent-color);
    background: transparent;
    opacity: 0.8;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-page {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination-page:hover {
    color: var(--accent-color);
    background: transparent;
    opacity: 0.8;
}

.pagination-page.active {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-weight: 700;
}


/* Filter Sidebar Styles */
.products-sidebar .filter-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.products-sidebar .filter-section:last-child {
    border-bottom: none;
}

.products-sidebar .filter-header {
    margin-bottom: 1rem;
}

.products-sidebar .filter-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color);
    margin: 0;
}

/* Category Lists */
.category-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-filter-item label,
.category-filter-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: color 0.2s;
}

.category-filter-label:hover {
    color: var(--accent-color);
}

.category-filter-label input[type="checkbox"],
.category-filter-label input[type="radio"] {
    accent-color: var(--accent-color);
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

/* Size Pills */
.size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-pill-item {
    cursor: pointer;
}

.size-pill-item input {
    display: none;
}

.size-pill-item .pill-label {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-color);
    background: white;
    transition: all 0.2s;
}

.size-pill-item input:checked+.pill-label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.size-pill-item:hover .pill-label {
    border-color: var(--primary-color);
}

.size-pill-item .pill-label small {
    opacity: 0.7;
    margin-left: 2px;
}

/* Search Box in Filter */
.search-box-filter {
    margin-bottom: 1rem;
}

.filter-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.filter-search-input:focus {
    border-color: var(--accent-color);
}

/* Price Range */
.price-radio-list .category-filter-item {
    margin-bottom: 0.5rem;
}

.price-radio-list .count,
.theme-list .count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Actions */
.filter-actions {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--text-color);
    background: var(--bg-light);
}

.pagination-ellipsis {
    color: var(--text-light);
    padding: 0 0.375rem;
}

/* Products Page Responsive - Desktop (Grid Layout Only) */
@media (min-width: 992px) {
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .products-layout {
        display: block !important;
        position: relative;
        width: 100%;
    }

    .products-page .container {
        margin-left: auto !important;
        width: 100% !important;
        max-width: 1400px !important;
        padding: 0 1.5rem;
    }

    .products-content {
        /* User requested 300px margin for desktop/tablet */
        margin-left: 300px !important;
        width: calc(100% - 300px) !important;
        padding-left: 0;
    }
}

/* Tablet Support (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .products-content {
        margin-left: 300px !important;
        width: calc(100% - 300px) !important;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns on wide screens */
    }
}

/* Global Off-Canvas Sidebar Styles (Applied to All Screens) */
/* Was previously max-width: 991px */
/* @media (max-width: 991px) { REMOVED wrapper to make global */


.products-page,
.search-page {
    padding-bottom: 1rem;
}

.products-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.products-content,
.search-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0;
}

.products-sidebar,
.search-page .products-sidebar {
    display: block;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: calc(100vh - var(--nav-height));
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border-color);
    max-height: none;
    padding-top: 2rem;
}

.products-sidebar::-webkit-scrollbar,
.search-page .products-sidebar::-webkit-scrollbar {
    display: none;
}

.products-sidebar.active,
.search-page .products-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 1;
    margin-top: 0;
    padding: 1rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-close {
    display: flex;
}

/* Mobile Filter Button Base Styles */
.mobile-filter-btn {
    display: none;
    /* Hidden by default on desktop */
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right: auto;
    /* Push unwanted space */
}

.mobile-filter-btn:hover {
    background: var(--accent-hover);
}

.mobile-filter-btn svg {
    width: 18px;
    height: 18px;
}

.mobile-filter-btn,
.search-page .mobile-filter-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sidebar-overlay {
    display: block;
    pointer-events: none;
    top: var(--nav-height);
}

.sidebar-overlay.active {
    pointer-events: auto;
}

.products-page .product-card .product-actions,
.products-grid .product-card .product-actions,
.search-page .product-card .product-actions {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.products-grid,
.search-page .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.products-toolbar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.search-page .products-toolbar {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.search-page .mobile-filter-btn {
    display: flex !important;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.search-page .mobile-filter-btn:hover {
    background: var(--primary-hover);
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.search-page .toolbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
}


@media (max-width: 480px) {

    .products-page,
    .search-page {
        padding-bottom: 0.75rem;
    }

    .products-layout {
        padding-top: 0;
    }

    .products-toolbar {
        padding: 0.625rem 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .search-page .products-toolbar {
        padding: 0;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .mobile-filter-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .search-page .mobile-filter-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        gap: 0.5rem;
        width: 100%;
    }

    .mobile-filter-btn span {
        display: none;
    }

    .search-page .mobile-filter-btn span {
        display: inline;
    }

    .toolbar-controls {
        gap: 0.25rem;
        flex: 1;
        justify-content: flex-end;
    }

    .search-page .toolbar-controls {
        gap: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }

    .active-filters {
        padding: 0.625rem;
        margin-bottom: 0.75rem;
        gap: 0.375rem;
    }

    .active-filters .filters-label {
        font-size: 0.8125rem;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .active-filters .filter-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Ensure product actions are always visible on small mobile */
    .products-page .product-card .product-actions,
    .products-grid .product-card .product-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
        z-index: 10 !important;
    }

    .products-page .product-card .btn-icon,
    .products-grid .product-card .btn-icon {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        background: rgba(249, 115, 22, 0.2) !important;
        color: var(--accent-color) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .products-page .product-card .btn-icon:hover:not(:disabled),
    .products-grid .product-card .btn-icon:hover:not(:disabled) {
        background: var(--accent-color) !important;
        color: white !important;
        transform: scale(1.1) !important;
        box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3) !important;
    }

    .view-options {
        gap: 0.125rem;
    }

    .view-btn {
        padding: 0.25rem;
    }

    .view-btn svg {
        width: 14px;
        height: 14px;
    }

    .sort-select {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        min-width: 80px;
    }

    .products-sidebar {
        width: 100%;
        max-width: 100vw;
    }

    .search-page .products-sidebar,
    .search-layout .products-sidebar {
        width: 100%;
        max-width: 100vw;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .search-page .products-grid,
    .search-layout .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .search-page {
        padding-top: 1rem;
        padding-bottom: 0.75rem;
    }

    .search-page .products-layout,
    .search-layout {
        padding-top: 0;
    }

    .search-page .products-toolbar,
    .search-layout .products-toolbar {
        padding: 0.625rem 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .search-page .mobile-filter-btn,
    .search-layout .mobile-filter-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .search-page .mobile-filter-btn span,
    .search-layout .mobile-filter-btn span {
        display: none;
    }

    .search-page .mobile-filter-btn,
    .search-layout .mobile-filter-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .search-page .toolbar-controls,
    .search-layout .toolbar-controls {
        gap: 0.25rem;
        flex: 1;
        justify-content: flex-end;
    }

    .search-page .active-filters,
    .search-layout .active-filters {
        padding: 0.625rem;
        margin-bottom: 0.75rem;
        gap: 0.375rem;
    }

    .search-page .active-filters .filters-label,
    .search-layout .active-filters .filters-label {
        font-size: 0.8125rem;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .search-page .active-filters .filter-tag,
    .search-layout .active-filters .filter-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Ensure product actions are always visible on small mobile */
    .search-page .product-card .product-actions,
    .search-layout .product-card .product-actions,
    .search-page .products-grid .product-card .product-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
        z-index: 10 !important;
    }

    .search-page .product-card .btn-icon,
    .search-layout .product-card .btn-icon,
    .search-page .products-grid .product-card .btn-icon {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        background: rgba(249, 115, 22, 0.2) !important;
        color: var(--accent-color) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .search-page .product-card .btn-icon:hover:not(:disabled),
    .search-layout .product-card .btn-icon:hover:not(:disabled),
    .search-page .products-grid .product-card .btn-icon:hover:not(:disabled) {
        background: var(--accent-color) !important;
        color: white !important;
        transform: scale(1.1) !important;
        box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3) !important;
    }

    .search-page .products-sidebar,
    .search-layout .products-sidebar {
        padding: 0.625rem;
        margin-bottom: 0.75rem;
        gap: 0.375rem;
    }

    .search-page .active-filters .filters-label,
    .search-layout .active-filters .filters-label {
        font-size: 0.8125rem;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .search-page .active-filters .filter-tag,
    .search-layout .active-filters .filter-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Ensure product actions are always visible on small mobile for search page */
    .search-page .product-card .product-actions,
    .search-layout .product-card .product-actions,
    .search-page .products-grid .product-card .product-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
        z-index: 10 !important;
    }

    .search-page .product-card .btn-icon,
    .search-layout .product-card .btn-icon,
    .search-page .products-grid .product-card .btn-icon {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        background: rgba(249, 115, 22, 0.2) !important;
        color: var(--accent-color) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .search-page .product-card .btn-icon:hover:not(:disabled),
    .search-layout .product-card .btn-icon:hover:not(:disabled),
    .search-page .products-grid .product-card .btn-icon:hover:not(:disabled) {
        background: var(--accent-color) !important;
        color: white !important;
        transform: scale(1.1) !important;
        box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3) !important;
    }

    .products-grid.list-view {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-image-wrapper {
        width: 100%;
        height: 180px;
    }

    .product-info {
        padding: 0.625rem;
    }

    .pagination {
        padding: 0.75rem;
    }

    .pagination-pages {
        display: none;
    }
}

/* ============================================
   Wishlist Page Styles
   ============================================ */
.wishlist-page {
    padding: 0.02rem 0;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.wishlist-item-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-item-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-light);
}

.item-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-item-card:hover .item-image-wrapper img {
    transform: scale(1.05);
}

.remove-wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--error-color);
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.remove-wishlist-btn:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

.item-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.item-category {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.item-price {
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.item-compare-price {
    font-size: 0.9375rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Wishlist Page Responsive */
@media (max-width: 768px) {
    .wishlist-page {
        padding: 1rem 0;
    }

    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .item-actions {
        flex-direction: column;
    }

    .item-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .item-info {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {

    .profile-page,
    .orders-page,
    .cart-page,
    .checkout-page,
    .order-success-page,
    .wishlist-page,
    .search-page {
        padding: 0.75rem 0;
        margin-top: -2rem;
    }

    .search-page-header h1 {
        font-size: 1.75rem;
    }

    .search-integrated-wrapper {
        flex-direction: column;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .search-category-select {
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        min-width: 0;
        box-sizing: border-box;
    }

    .search-input-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .search-integrated-input {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        padding-right: 2.5rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .search-bar-container {
        padding: 0;
        overflow-x: hidden;
    }

    .search-integrated-wrapper .clear-search-btn {
        right: 3.5rem;
        width: 28px;
        height: 28px;
    }

    .search-integrated-btn {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .results-info h2 {
        font-size: 1.125rem;
    }

    .search-sort-options {
        width: 100%;
        justify-content: space-between;
    }

    .search-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        position: relative;
    }

    .search-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
    }

    .search-page .search-top-bar {
        margin-left: 0;
        margin-top: 1.5rem;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .search-page .search-top-form {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .search-page .products-sidebar,
    .search-layout .products-sidebar {
        display: block;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: calc(100vh - var(--nav-height));
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--border-color);
        max-height: none;
        padding-top: 2rem;
    }

    .search-page .products-sidebar::-webkit-scrollbar,
    .search-layout .products-sidebar::-webkit-scrollbar {
        display: none;
    }

    .search-page .products-sidebar.active,
    .search-layout .products-sidebar.active {
        transform: translateX(0);
    }

    .search-page .products-sidebar .sidebar-header,
    .search-layout .products-sidebar .sidebar-header {
        position: sticky;
        top: 0;
        background: var(--bg-color);
        z-index: 1;
        margin-top: 0;
        padding: 1rem 1.5rem 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }

    .search-page .products-sidebar .sidebar-close,
    .search-layout .products-sidebar .sidebar-close {
        display: flex;
    }

    .search-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .search-page .mobile-filter-btn,
    .search-layout .mobile-filter-btn {
        display: flex !important;
        width: 100%;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .search-page .sidebar-overlay,
    .search-layout .sidebar-overlay {
        display: block;
        pointer-events: none;
        top: var(--nav-height);
    }

    .search-page .sidebar-overlay.active,
    .search-layout .sidebar-overlay.active {
        pointer-events: auto;
    }

    /* Search page uses products page grid styles */
    .search-page .products-grid,
    .search-layout .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-page .product-card,
    .search-layout .product-card {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .search-page .products-toolbar,
    .search-layout .products-toolbar {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .search-page .product-card .product-actions,
    .search-layout .product-card .product-actions,
    .search-page .products-grid .product-card .product-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .search-empty-state,
    .search-initial-state {
        padding: 2rem 1.5rem;
    }

    .empty-icon,
    .initial-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .search-empty-state h2,
    .search-initial-state h2 {
        font-size: 1.5rem;
    }

    .popular-tags {
        gap: 0.5rem;
    }

    .popular-tag {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .page-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .page-subtitle {
        font-size: 0.8125rem;
    }

    .profile-card,
    .profile-stats {
        padding: 0.75rem;
    }

    .avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .profile-card h3 {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .content-card,
    .order-card,
    .cart-summary-card,
    .checkout-section,
    .order-status-card,
    .order-items-card,
    .info-card {
        padding: 0.75rem;
    }

    .card-header h2 {
        font-size: 1.125rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .empty-cart {
        padding: 3rem 1.5rem;
        min-height: 50vh;
    }

    .empty-cart-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .empty-cart h2 {
        font-size: 1.5rem;
    }

    .empty-cart p {
        font-size: 0.9375rem;
    }

    .cart-header {
        padding: 1rem 1.25rem;
    }

    .cart-header h2 {
        font-size: 1.125rem;
    }

    .cart-item-card {
        grid-template-columns: 100px 1fr auto;
        gap: 0.75rem;
        padding: 0.875rem;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
    }

    .cart-item-details {
        gap: 0.5rem;
        padding-right: 0.5rem;
    }

    .item-name {
        font-size: 0.9375rem;
        line-height: 1.3;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .item-name a {
        -webkit-line-clamp: 1;
        line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .item-variation {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .cart-item-card .item-price-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.375rem !important;
        flex-wrap: nowrap !important;
        width: fit-content !important;
    }

    .cart-item-card .item-price-wrapper .item-price,
    .cart-item-card .item-price {
        font-size: 0.9375rem !important;
        display: inline-block !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }

    .cart-item-card .item-price-wrapper .item-compare-price,
    .cart-item-card .item-compare-price {
        font-size: 0.75rem !important;
        display: inline-block !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }

    .item-quantity-controls {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }

    .item-quantity-controls label {
        font-size: 0.6875rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .quantity-input-group {
        max-width: 120px;
        padding: 0.125rem;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
    }

    .qty-btn svg {
        width: 14px;
        height: 14px;
    }

    .cart-quantity {
        font-size: 0.875rem;
        padding: 0.375rem;
        min-width: 40px;
    }

    .stock-warning {
        font-size: 0.6875rem;
    }

    .cart-item-subtotal {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        min-width: 120px;
        justify-content: flex-start;
        padding-top: 0;
        border-top: none;
        margin-top: 0;
    }

    .subtotal-amount {
        font-size: 1.125rem;
    }

    .btn-remove-cart {
        padding: 0.5rem;
        width: 32px;
        height: 32px;
    }

    .btn-remove-cart svg {
        width: 16px;
        height: 16px;
    }

    .cart-summary-card {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .cart-summary-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.625rem;
    }

    .summary-details {
        gap: 0.5rem;
        margin-bottom: 0.875rem;
    }

    .summary-row {
        padding: 0.375rem 0;
    }

    .summary-row .label {
        font-size: 0.875rem;
    }

    .summary-row .value {
        font-size: 0.9375rem;
    }

    .summary-row.total {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0.625rem;
        margin-top: 0.25rem;
    }

    .summary-row.total .label {
        font-size: 0.9375rem;
    }

    .summary-row.total .value {
        font-size: 1.125rem;
    }

    .summary-actions {
        gap: 0.625rem;
    }

    .summary-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .checkout-note {
        font-size: 0.75rem;
        padding: 0.5rem;
        margin-top: 0.25rem;
    }

    .order-card-header {
        gap: 0.5rem;
    }

    .order-info {
        gap: 0.5rem;
    }

    .checkout-steps {
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.6875rem;
    }


    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-message h1 {
        font-size: 1.5rem;
    }

    .success-summary-card {
        padding: 1rem;
    }

    .summary-header h2 {
        font-size: 1.25rem;
    }

    .info-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .info-icon {
        width: 32px;
        height: 32px;
    }

    .search-top-bar {
        margin-bottom: 1.25rem;
    }

    .search-top-form {
        max-width: 100%;
    }

    .search-top-wrapper {
        flex-direction: row;
        border-radius: 6px;
    }

    .search-top-category {
        min-width: 80px;
        max-width: 110px;
        padding: 0.6rem 0.7rem;
        padding-right: 1.75rem;
        font-size: 0.8rem;
    }

    .search-top-input {
        padding: 0.6rem 0.7rem;
        padding-right: 2rem;
        font-size: 0.85rem;
    }

    .search-top-clear {
        right: 2.5rem;
        width: 22px;
        height: 22px;
    }

    .search-top-btn {
        padding: 0.6rem 0.9rem;
        min-width: 45px;
    }

    .search-top-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   Static Pages Styles
   ============================================ */
.static-page {
    padding: 2rem 0;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

.static-page .page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}

.static-page .page-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.static-page .page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

/* Blog Page Header - Orange Color (More Specific) */
.static-page.blog-page .page-header h1,
.blog-page .page-header h1,
.static-page.blog-page .page-header h1 {
    color: var(--accent-color) !important;
    font-weight: 700 !important;
}

.static-page .page-subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.6;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.intro-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.content-section p {
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
    opacity: 0.8;
}

/* About Page Styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--bg-color);
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.info-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--accent-color);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.info-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.feature-item h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-item p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Contact Page Styles */
.contact-page .content-wrapper {
    max-width: 1200px;
}

/* Help Centre Page Styles */
.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.help-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.help-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.help-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.help-category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.help-category-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
}

.help-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.help-link-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.help-link-item h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.help-link-item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-info-item .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-info-item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

.contact-info-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .help-categories {
        grid-template-columns: 1fr;
    }

    .help-links {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Return Option Section */
.return-option-section {
    margin: 1.5rem auto 2rem;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
}

.return-card {
    background: rgba(249, 115, 22, 0.1) !important;
    border: 2px solid var(--accent-color) !important;
    border-radius: 12px;
    padding: 1.25rem 1.5rem !important;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15) !important;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
}

.return-card h2 {
    display: none;
}

.return-card:hover {
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.25);
    transform: translateY(-2px);
}

.return-card-content {
    display: flex !important;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    width: 100%;
}

.return-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white;
    visibility: visible !important;
}

.return-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    fill: none;
    stroke: currentColor;
}

.return-text {
    flex: 1;
    min-width: 200px;
}

.return-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.375rem 0;
    line-height: 1.3;
    display: block !important;
    visibility: visible !important;
}

.return-text p {
    font-size: 0.875rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    display: block !important;
    visibility: visible !important;
}

.return-action {
    flex-shrink: 0;
}

.return-action {
    display: block !important;
    visibility: visible !important;
}

.return-action .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    display: inline-block !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .return-option-section {
        margin: 1rem 0 1.5rem;
    }

    .return-card {
        padding: 1.25rem !important;
    }

    .return-card-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .return-icon {
        width: 48px;
        height: 48px;
    }

    .return-icon svg {
        width: 24px;
        height: 24px;
    }

    .return-text {
        text-align: center;
        min-width: 100%;
    }

    .return-text h3 {
        font-size: 1.125rem;
    }

    .return-text p {
        font-size: 0.875rem;
    }

    .return-action {
        width: 100%;
    }

    .return-action .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form-section {
    min-width: 0;
}

.content-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-form-section .content-card {
    padding: 1.5rem;
}

.content-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.content-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}

.contact-form-section .content-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    color: var(--accent-color);
}

.contact-info-section .content-card h2 {
    color: var(--accent-color);
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-section .contact-form {
    gap: 0.875rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form-section .contact-form .form-group {
    gap: 0.375rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-form-section .contact-form label {
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-color);
    color: var(--text-color);
    width: 100%;
}

.contact-form-section .contact-form input,
.contact-form-section .contact-form select,
.contact-form-section .contact-form textarea {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: var(--primary-color);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
    transform: translateY(-1px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-section .contact-form textarea {
    min-height: 90px;
}

.contact-form .btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.contact-form-section .contact-form .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    margin-top: 0.25rem;
    border-radius: 8px;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.contact-form .btn-primary:active {
    transform: translateY(0);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    border: 2px solid rgba(249, 115, 22, 0.2);
    transition: all 0.3s ease;
}

.contact-icon svg {
    color: var(--accent-color);
    fill: none;
    stroke: currentColor;
}

.contact-info-item:hover .contact-icon {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.contact-info-item:hover .contact-icon svg {
    color: #ffffff;
    stroke: currentColor;
}

.contact-info-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--accent-color);
    letter-spacing: 0.02em;
}

.contact-info-item p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #000000;
    margin: 0.375rem 0;
}

.contact-info-item a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.contact-info-item a:hover {
    color: #333333;
    text-decoration: underline;
    transform: translateX(2px);
}

/* Ensure all contact info text (email, phone, address) is black */
.contact-info-section .contact-info-item p,
.contact-info-section .contact-info-item a {
    color: #000000 !important;
}

.contact-info-section .contact-info-item a:hover {
    color: #333333 !important;
}

/* Ensure contact section headings are orange */
.contact-page .contact-form-section h2,
.contact-page .contact-info-section h2 {
    color: var(--accent-color) !important;
}

/* Ensure contact info item headings are orange */
.contact-page .contact-info-item h4 {
    color: var(--accent-color) !important;
}

/* Ensure all contact info text is visible and black */
.contact-page .contact-info-item p,
.contact-page .contact-info-item a {
    color: #000000 !important;
}

/* WhatsApp link styling */
.whatsapp-link {
    color: #25D366 !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.whatsapp-link:hover {
    color: #128C7E !important;
    text-decoration: underline;
    transform: translateX(2px);
}

.whatsapp-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.business-hours {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--bg-light);
    margin-bottom: 0.5rem;
}

.hours-item:last-child {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.hours-item:hover {
    background: rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateX(4px);
}

.hours-item .day {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.hours-item .time {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9375rem;
}

.hours-note {
    margin-top: 1.5rem;
    padding: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    background: rgba(249, 115, 22, 0.03);
    border-radius: 8px;
    text-align: center;
}

/* Shipping Page Styles */
.shipping-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.shipping-option-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.shipping-option-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.option-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.option-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-color);
}

.shipping-option-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shipping-option-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.shipping-option-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.info-box strong {
    color: var(--primary-color);
}

/* Returns Page Styles */
.returns-page {
    padding: 2rem 0;
}

.returns-page .content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.return-request-section {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.return-request-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
}

.section-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.return-request-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.return-request-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.return-request-form label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9375rem;
}

.return-request-form select,
.return-request-form input,
.return-request-form textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-color);
    color: var(--text-color);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.return-request-form select {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.return-request-form select option {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.return-request-form select:focus,
.return-request-form input:focus,
.return-request-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.help-text {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* File Upload Styles */
.return-request-form input[type="file"] {
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.return-request-form input[type="file"]:hover {
    border-color: var(--accent-color);
    background: rgba(249, 115, 22, 0.05);
}

.return-request-form input[type="file"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.return-request-form label .help-text {
    display: inline-block;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.file-preview {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.file-preview img,
.file-preview video {
    display: block;
    margin: 0 auto;
}

.return-media {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.return-media strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9375rem;
}

.product-preview {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-preview img {
    border: 1px solid var(--border-color);
}

.return-requests-section {
    margin-top: 2rem;
}

.return-requests-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.return-requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.return-request-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.return-request-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.request-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.request-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.request-meta strong {
    color: var(--text-color);
    font-weight: 600;
}

.request-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.request-details {
    font-size: 0.9375rem;
    color: var(--text-color);
    line-height: 1.6;
}

.request-details p {
    margin: 0.5rem 0;
}

.request-details strong {
    color: var(--primary-color);
    font-weight: 600;
}

.admin-notes {
    background: rgba(249, 115, 22, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    margin-top: 0.75rem !important;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.return-policy-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.policy-highlight {
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.05), rgba(249, 115, 22, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.policy-highlight h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-content h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.step-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* FAQ Page Styles */
.faq-page .content-wrapper {
    max-width: 900px;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.faq-category-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.faq-answer ul {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.faq-answer li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.faq-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.faq-footer p {
    font-size: 1.0625rem;
    color: var(--text-color);
}

/* Responsive Styles for Static Pages */
@media (max-width: 768px) {
    .static-page {
        padding: 1.5rem 0;
    }

    .static-page .page-header h1 {
        font-size: 1.75rem;
    }

    .content-section {
        margin-bottom: 2rem;
    }

    .content-section h2 {
        font-size: 1.25rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Return Request Form Mobile Fixes */
    .return-request-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .return-request-section h2 {
        font-size: 1.5rem;
    }

    .return-request-form select,
    .return-request-form input,
    .return-request-form textarea {
        font-size: 0.875rem;
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .return-request-form select {
        font-size: 0.875rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-overflow: ellipsis;
    }

    .return-request-form select option {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .return-request-form .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .return-request-form label {
        font-size: 0.875rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-description {
        font-size: 0.875rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .content-card {
        padding: 1.75rem;
    }

    .content-card h2 {
        font-size: 1.5rem;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

    .shipping-options {
        grid-template-columns: 1fr;
    }

    .steps-list {
        gap: 1.25rem;
    }

    .step-item {
        gap: 1rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .faq-categories {
        gap: 0.5rem;
    }

    .faq-category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .static-page {
        padding: 1rem 0;
    }

    .static-page .page-header {
        margin-bottom: 1.5rem;
    }

    .static-page .page-header h1 {
        font-size: 1.5rem;
    }

    .content-section {
        margin-bottom: 1.5rem;
    }

    .content-card {
        padding: 1rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .shipping-option-card {
        padding: 1.25rem;
    }

    .policy-highlight {
        padding: 1.25rem;
    }

    .step-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9375rem;
    }

    .faq-category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .faq-question {
        padding: 0.875rem 1rem;
    }

    .faq-question h3 {
        font-size: 0.9375rem;
    }
}

/* ============================================
   Product Detail Page
   ============================================ */

.product-page {
    padding-top: calc(var(--nav-height) + var(--secondary-nav-height) + 2rem);
    padding-bottom: 2rem;
    min-height: calc(100vh - var(--nav-height) - var(--secondary-nav-height));
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.product-page>.container {
    margin-top: 0;
    padding-top: 0;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    align-items: start;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Sticky positioning removed in favor of new rules at bottom of file */

.product-gallery {
    display: none !important;
}

.product-gallery::-webkit-scrollbar {
    width: 6px;
}

.product-gallery::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.product-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.product-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-light);
}

.gallery-thumb:hover {
    border-color: var(--accent-color);
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.gallery-thumb.active {
    border-color: var(--accent-color);
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;

}

/* Product Slider */
.product-slider-container {
    position: relative;
    flex: 1;
    order: 3;
    max-height: 550px;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    margin-right: 0;
}

@media (min-width: 991px) {
    .product-slider-container {
        max-height: none !important;
        aspect-ratio: auto !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }
}

.product-slider-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    scroll-behavior: smooth;
    padding-bottom: 2px;
}

@media (min-width: 991px) {
    .product-slider-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
    }
}

.product-slider-wrapper::-webkit-scrollbar {
    height: 4px;
}

.product-slider-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.product-slider-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.product-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 991px) {
    .product-slide {
        height: auto !important;
        overflow: hidden;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
    }

    .product-slide img {
        object-fit: cover !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 2/3;
    }
}

.product-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Slider Indicator */
.slider-indicator-container {
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    /* More subtle background */
    margin: 0;
    display: none;
    position: absolute;
    bottom: 1px;
    /* Slightly higher for better visibility */
    left: 1.5rem;
    right: 1.5rem;
    border-radius: 10px;
    z-index: 25;
    overflow: hidden;
}

.slider-indicator-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-color);
    width: 20%;
    /* Proactive default width */
    border-radius: 10px;
    transition: left 0.2s ease-out, width 0.2s ease-out;
}

@media (max-width: 990px) {
    .slider-indicator-container {
        display: block;
    }
}



.native-share-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    color: var(--text-color);
}

.native-share-btn:hover {
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-icon-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-icon-btn:hover {
    background: white;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.wishlist-icon-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.wishlist-icon-btn svg {
    width: 24px;
    height: 24px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-light);
    padding: 2rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 1px dashed var(--border-color);
}

.product-image-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--text-light);
    width: 80px;
    height: 80px;
}

.product-image-placeholder p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Sticky positioning removed in favor of new rules at bottom of file */

/* Breadcrumb */
.breadcrumb {
    width: 100%;
    margin-bottom: 0.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list li.active {
    color: var(--text-color);
    font-weight: 500;
}

.product-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    margin: 0;
}

.rating-stars.empty {
    color: var(--border-color);
}

.product-short-description {
    margin: 0.375rem 0;
    padding: 0;
}

.product-short-description p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.9375rem;
    margin: 0;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 1.125rem;
    letter-spacing: 2px;
}

.rating-stars.empty {
    color: var(--border-color);
}

.rating-stars.filled {
    color: var(--warning-color);
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.25rem 0;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price.sale-price {
    color: var(--error-color);
    font-weight: 700;
    font-size: 2.25rem;
}

.product-compare-price {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    order: -1;
    font-weight: 500;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-discount {
    background: var(--error-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.stock-status {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9375rem;
}

.stock-status.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.product-description {
    padding: 0.5rem 0;
    border: none;
    margin: 0.5rem 0;
}

.product-description p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.full-description {
    margin-top: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: .85rem;
}

/* Product Actions Row - All in one row */
/* Quantity Selector - Compact */
.product-actions-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 0.375rem 0;
    padding: 0;
    width: 100%;
}

.product-actions-row .quantity-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    margin: 0;
    padding: 0;
    width: 100%;
}

.product-actions-row .quantity-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.8125rem;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.product-actions-row .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    background: var(--bg-color);
}

.product-actions-row .quantity-btn {
    width: 36px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    padding: 0;
}

.product-actions-row .quantity-btn:hover {
    background: var(--accent-color);
    color: white;
}

.product-actions-row .quantity-btn:active {
    background: var(--accent-hover);
    transform: scale(0.95);
}

.product-actions-row .quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-actions-row .quantity-controls input {
    width: 60px;
    padding: 0.5rem 0.375rem;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    height: 40px;
    line-height: 1.5;
    background: var(--bg-color);
    color: var(--text-color);
    -moz-appearance: textfield;
    appearance: textfield;
}

.product-actions-row .quantity-controls input::-webkit-outer-spin-button,
.product-actions-row .quantity-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-actions-row .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.625rem;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override general action-buttons class for product page */
.product-actions-row .action-buttons,
.product-page .product-actions-row .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Product Actions Buttons - Compact */
.product-actions-row .action-buttons .btn {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    line-height: 1;
    vertical-align: top;
    gap: 0.375rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    top: 0;
    transform: none;
}

/* Override any margin-top on add-cart button */
.product-actions-row .action-buttons .btn-add-cart,
.product-actions-row .action-buttons .btn-buy-now {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    top: 0 !important;
    transform: none !important;
}

.product-actions-row .action-buttons .btn-primary {
    background: var(--accent-color);
    color: white;
}

.product-actions-row .action-buttons .btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.product-actions-row .action-buttons .btn-accent {
    background: var(--accent-color);
    color: white;
}

.product-actions-row .btn svg {
    flex-shrink: 0;
}

.product-actions-row .btn .btn-text {
    white-space: nowrap;
}

.product-actions-row .action-buttons .btn-accent:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.product-actions-row .btn:active:not(:disabled) {
    transform: translateY(0);
}

.product-actions-row .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Override for product page */
.product-page .product-details .product-actions-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 1 !important;
    width: 100%;
}

.product-page .product-details .product-actions-row .quantity-selector-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-page .product-details .product-actions-row .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0.625rem;
    width: 100%;
}

.product-page .product-details .product-actions-row .action-buttons .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1;
}

/* Responsive - Smaller on mobile devices */
@media (max-width: 768px) {
    .product-actions-row {
        gap: 0.5rem;
        margin: 0.5rem 0;
        align-items: stretch !important;
    }

    .product-actions-row .quantity-selector-wrapper {
        width: 100%;
        gap: 0.25rem;
        align-items: flex-start !important;
    }

    .product-actions-row .quantity-label {
        font-size: 0.8125rem;
        margin: 0 !important;
        margin-bottom: 0.2rem !important;
        padding: 0 !important;
        line-height: 1.2;
    }

    .product-actions-row .quantity-controls {
        width: 100%;
        max-width: 180px;
        align-self: flex-start;
    }



    .product-actions-row .action-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        gap: 0.5rem;
    }

    .product-actions-row .action-buttons .btn {
        flex: 1;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        gap: 0.375rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        height: 44px;
        vertical-align: top;
    }

    .product-actions-row .action-buttons .btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .product-actions-row {
        gap: 0.5rem;
        margin: 0.5rem 0;
        align-items: stretch !important;
    }

    .product-actions-row .quantity-selector-wrapper {
        width: 100%;
        gap: 0.2rem;
        align-items: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .product-actions-row .quantity-label {
        font-size: 0.8125rem;
        margin: 0 !important;
        margin-bottom: 0.2rem !important;
        padding: 0 !important;
        line-height: 1.2;
    }

    .product-actions-row .quantity-controls {
        width: 100%;
        max-width: 80px;
        align-self: flex-start;
        margin: 0 !important;
    }

    .product-actions-row .quantity-btn {
        width: 32px;
        height: 36px;
    }

    .product-actions-row .quantity-controls input {
        width: 50px;
        padding: 0.375rem 0.25rem;
        font-size: 0.875rem;
        margin: 0;
        height: 36px;
    }

    .product-actions-row .action-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        gap: 0.5rem;
    }

    .product-actions-row .action-buttons .btn {
        flex: 1;
        width: 100%;
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        gap: 0.375rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        height: 44px;
        vertical-align: top;
    }

    .product-actions-row .action-buttons .btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
}

/* Legacy support for old class names */
.product-page .product-details .product-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem;
    margin: 0.75rem 0;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 1 !important;
    width: 100%;
}

.product-page .product-details .product-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    background: var(--accent-color) !important;
    color: white !important;
}

.product-page .product-details .product-actions .btn:hover:not(:disabled) {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.product-page .product-details .product-actions .btn:active:not(:disabled) {
    transform: translateY(0);
}

.product-page .product-details .product-actions .btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

.product-page .product-details .product-actions .btn-primary,
.product-page .product-details .product-actions .btn-accent {
    background: var(--accent-color) !important;
    color: white !important;
}

.product-page .product-details .product-actions .btn-primary:hover:not(:disabled),
.product-page .product-details .product-actions .btn-accent:hover:not(:disabled) {
    background: var(--accent-hover) !important;
}

.product-page .product-details .product-actions .btn-add-cart,
.product-page .product-details .product-actions .btn-buy-now {
    width: auto !important;
    margin-top: 0 !important;
    flex: 1;
}

.btn-accent {
    background: var(--accent-color);
    color: white;
    border: none;
}

.btn-accent:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.btn-accent:active:not(:disabled) {
    transform: translateY(0);
}

.wishlist-btn-detail {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.wishlist-btn-detail:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.wishlist-btn-detail.active {
    background: var(--primary-color);
    color: white;
}

.product-meta {
    padding: 0.375rem 0;
    border: none;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.375rem;
}

.product-meta p {
    margin-bottom: 0.375rem;
}

.product-meta strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}

.product-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-meta a:hover {
    text-decoration: underline;
}

/* Product Reviews Section (plain, no card box) */
.product-reviews {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 2rem;
}

.product-reviews h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.rating-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    gap: 2rem;
}

.rating-summary-left {
    flex: 0 0 38%;
    padding-right: 2rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
}

.rating-summary-left .rating-stars {
    font-size: 1.8rem;
}

.rating-summary-left .rating-summary-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

.rating-summary-right {
    flex: 1;
    padding-left: 2rem;
}

/* Compact style for rating summary in products sidebar (Play Store style) */
.rating-summary-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rating-summary-sidebar .rating-summary-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Responsive tweaks for rating summary on small screens: keep left/right layout */
@media (max-width: 768px) {
    .rating-summary {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
    }

    .rating-summary-left {
        flex: 0 0 42%;
        padding-right: 0.5rem;
    }

    .rating-summary-right {
        padding-left: 0.25rem;
    }

    .rating-summary-left .rating-summary-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .rating-summary-left .rating-stars {
        font-size: 1.2rem;
    }

    /* Tight 3-column grid: star | bar | number */
    .rating-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        column-gap: 4px;
        align-items: center;
    }

    .rating-bar {
        width: 100%;
        height: 5px;
        margin: 0;
        flex: none;
    }

    .rating-item span:first-child {
        min-width: auto;
        font-size: 0.75rem;
    }

    .rating-item span:last-child {
        min-width: auto;
        font-size: 0.75rem;
        text-align: right;
    }
}

.rating-summary-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.rating-score-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.rating-score-stars {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.rating-count-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-item span:first-child {
    min-width: 30px;
    font-weight: 600;
    color: var(--text-color);
}

.rating-bar {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar div {
    height: 100%;
    background: var(--warning-color);
    transition: width 0.3s ease;
}

.rating-item span:last-child {
    min-width: 32px;
    text-align: right;
    color: var(--text-light);
    font-size: 0.875rem;
}

.review-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.review-form h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.review-form .form-group {
    margin-bottom: 1rem;
}

.review-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.review-form select,
.review-form input,
.review-form textarea {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* On the product page, keep only the parent card (.product-reviews)
   and make individual reviews plain items (no inner card box) */
.product-reviews .reviews-list .review-item {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    padding: 0.75rem 0;
    margin: 0;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.review-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.review-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.review-tag {
    font-size: 0.75rem;
    color: var(--success-color);
}

.review-rating {
    color: var(--warning-color);
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-left: auto;
}

.review-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.review-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.review-media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.review-media img,
.review-media video {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.review-media img:hover,
.review-media video:hover {
    transform: scale(1.05);
}


.review-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

.review-title-row .review-rating {
    margin: 0;
}

.review-title-row h4 {
    margin: 0;
    font-weight: 600;
    text-align: left;
}

.mobile-sticky-actions {
    display: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-info h1 {
        font-size: 1.375rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .product-price.sale-price {
        font-size: 1.75rem;
    }

    .product-page .product-details .product-actions {
        flex-direction: row !important;
    }

    .product-page .product-details .product-actions .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding-top: calc(var(--nav-height) + var(--secondary-nav-height) + 1.2rem);
        padding-bottom: 1rem;
    }

    .product-page>.container {
        padding: 0;
    }

    .product-details {
        margin-top: 1.5rem;
        padding: 0;
        gap: 1rem;
    }

    .product-info h1 {
        font-size: 1.25rem;
    }

    .product-price {
        font-size: 1.375rem;
    }

    .product-price.sale-price {
        font-size: 1.5rem;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .product-reviews {
        padding: 1.5rem;
    }

    .breadcrumb {
        margin-bottom: 0.375rem;
    }

    .breadcrumb-list {
        font-size: 0.8125rem;
    }

    .product-images {
        gap: 0.5rem;
    }

    .product-slider-container {
        order: 2;
        width: 100%;
    }

    .product-gallery {
        display: none !important;
    }

    .product-options {
        order: -1;
        margin-bottom: 0.5rem;
    }

    .action-buttons {
        display: none !important;
    }

    /* Mobile Sticky Actions */
    .mobile-sticky-actions {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 2000;
    }

    .mobile-sticky-actions .btn {
        flex: 1;
        height: 50px;
        font-weight: 600;
        font-size: 1rem;
        border-radius: 8px;
        margin: 0;
    }

    .product-page {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {

    .product-page {
        padding-top: calc(var(--nav-height) + var(--secondary-nav-height) + 1.2rem);
    }

    .product-details {
        margin-top: 1rem;
        gap: 1rem;
    }

    .action-buttons {
        display: none !important;
    }

    .product-info h1 {
        font-size: 1.125rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .product-price.sale-price {
        font-size: 1.375rem;
    }

    .product-compare-price {
        font-size: 1rem;
    }

    .gallery-thumb {
        width: 50px;
        height: 50px;
    }

    .wishlist-icon-btn {
        width: 40px;
        height: 40px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .wishlist-icon-btn svg {
        width: 20px;
        height: 20px;
    }

    .breadcrumb {
        margin-bottom: 0.25rem;
    }

    .breadcrumb-list {
        font-size: 0.75rem;
        gap: 0.375rem;
    }
}

/* Product Options (Color & Size) */
.product-options {
    margin: 0.375rem 0;
    padding: 0.125rem 0;
}

.option-group {
    margin-bottom: 0.5rem;
}

.option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-color);
    font-size: 0.8125rem;
}

.color-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-option-item {
    position: relative;
    width: 55px;
    height: 55px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-color);
}

.color-option-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.color-option-item.active {
    border-color: var(--accent-color);
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.color-option-item img {
    width: 100%;
    height: 100%;
}

.color-option-item .color-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.size-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.size-option-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
    min-width: 45px;
    text-align: center;
    font-family: inherit;
}

.size-option-btn:hover {
    border-color: var(--accent-color);
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
}

.size-option-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
}

/* Product Attributes */
.product-attributes {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border: none;
}

.product-attributes h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.attribute-group {
    margin-bottom: 0.75rem;
}

.attribute-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.attribute-label .required {
    color: var(--error-color);
    margin-left: 0.25rem;
}

.attribute-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.attribute-value-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.attribute-value-btn:hover {
    border-color: var(--primary-color);
    background: rgba(29, 53, 87, 0.05);
}

.attribute-value-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.attribute-input {
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    width: 100%;
    max-width: 300px;
}

/* Product Variations */
.product-variations {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border: none;
}

.product-variations h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.variations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    transition: all 0.2s ease;
}

.variation-item:hover {
    border-color: var(--primary-color);
    background: rgba(29, 53, 87, 0.02);
}

.variation-item.active {
    border-color: var(--primary-color);
    background: rgba(29, 53, 87, 0.05);
}

.variation-info {
    flex: 1;
}

.variation-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.variation-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.variation-attr-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(29, 53, 87, 0.1);
    border: 1px solid rgba(29, 53, 87, 0.2);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-color);
}

.variation-attr-badge strong {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.25rem;
}

.variation-sku {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.variation-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.variation-price .price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.variation-price .compare-price {
    font-size: 0.9375rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.variation-stock {
    font-size: 0.875rem;
    font-weight: 500;
}

.variation-stock.in-stock {
    color: var(--success-color);
}

.variation-stock.out-of-stock {
    color: var(--error-color);
}

/* Product Meta - duplicate removed, using the one above */

.meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: 600;
    color: var(--text-color);
}

.meta-value {
    color: var(--text-light);
}

.meta-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 0.8125rem;
    color: var(--text-color);
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Product Share */
.product-share {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border: none;
}

.product-share h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #166fe5;
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-twitter:hover {
    background: #1a91da;
}

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-whatsapp:hover {
    background: #20ba5a;
}

/* Product Accordion */
.product-accordion {
    border-top: 1px solid var(--border-color);
}

.product-accordion .accordion-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}



.accordion-header {
    width: 100%;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s ease;
    text-align: left;
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-header .accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.accordion-header.active {
    color: var(--primary-color);
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    display: none;
    padding-bottom: 1.5rem;
    overflow: hidden;
}

.accordion-content.active {
    display: block;
}

.accordion-panel {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-color);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.description-section {
    margin-bottom: 2rem;
}

.description-section:last-child {
    margin-bottom: 0;
}

.description-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.description-section p {
    line-height: 1.8;
    color: var(--text-light);
}

.no-content {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* Specifications */
.specifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .specifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.spec-item.full-width {
    grid-column: 1 / -1;
}

.spec-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.spec-value {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.spec-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.spec-value a:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* Shipping & Returns */
.purchase-note,
.shipping-info,
.returns-info {
    margin-bottom: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.purchase-note:last-child,
.shipping-info:last-child,
.returns-info:last-child {
    margin-bottom: 0;
}

.purchase-note h3,
.shipping-info h3,
.returns-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.purchase-note p,
.shipping-info p,
.returns-info p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.purchase-note p:last-child,
.shipping-info p:last-child,
.returns-info p:last-child {
    margin-bottom: 0;
}

/* Related Products */
.related-products-section {
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.related-products-section .releted-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}



.related-products-section .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Responsive Updates */
@media (max-width: 968px) {
    .specifications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .related-products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .product-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .tab-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {

    .product-attributes,
    .product-variations {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }

    .attribute-values {
        gap: 0.5rem;
    }

    .attribute-value-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .variation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .tab-content {
        padding: 1rem;
    }

    .related-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Modern Product Offers Section */
.product-offers-modern {
    margin: 0.5rem 0;
    padding: 0;
    font-family: var(--font-primary);
}

.offers-modern-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.offers-modern-header .offers-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.offers-modern-header .offers-count {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.offers-cards-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.offers-cards-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.offers-cards-row {
    display: flex;
    gap: 1rem;
    width: max-content;
}

.offer-card {
    background: #ffffff;
    border: 1px solid #e11b23;
    border-radius: 4px;
    padding: .5rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    min-width: 320px;
    max-width: 380px;
}

.offer-card-logo {
    flex-shrink: 0;
    width: 50px;
}

.brand-placeholder {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
}

.brand-placeholder span {
    font-weight: 700;
    color: #64748b;
    font-size: 1.1rem;
}

.offer-card-content {
    flex: 1;
}

.offer-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.offer-card-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
    margin: 0 0 0.5rem 0;
}

.offer-payment-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    margin-top: 0.25rem;
}

/* Removed old logo/link styles */

/* Old Product Offers Section - Removed */
/* .product-offers-section { ... } */

.product-offers-section .offer-badge .offer-payment {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #ea580c;
    background: #ffffff;
    padding: 0.375rem 0.625rem;
    border-radius: 4px;
    margin: 0.5rem 0 0 0;
    border: none;
    gap: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-offers-section .offer-badge .offer-payment::before {
    content: "✓";
    font-size: 0.875rem;
    color: #16a34a;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 50%;
}

/* Cart Offers Section */
.cart-offers-section,
.checkout-offers-section {
    margin: 1.5rem 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.cart-offers-section h4,
.checkout-offers-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ea580c;
    margin: 0 0 1.25rem 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-offers-section h4::before,
.checkout-offers-section h4::before {
    content: "⚡";
    font-size: 1.375rem;
    filter: drop-shadow(0 2px 4px rgba(234, 88, 12, 0.3));
}

.cart-offers-section .offers-list,
.checkout-offers-section .offers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-item {
    padding: 1.5rem;
    background: #16a34a;
    border-radius: 12px;
    border: 2px solid #ea580c;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.offer-item.offer-orange {
    background: #ea580c;
    border-color: #e11b23;
}

.offer-item.offer-green {
    background: #16a34a;
    border-color: #22c55e;
}

.offer-item.offer-blue {
    background: #2563eb;
    border-color: #3b82f6;
}

.offer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.offer-type-label {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.offer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.offer-item strong {
    display: block;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    flex: 1;
    margin: 0.5rem 0 0 0;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.offer-item .offer-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-weight: 500;
}

.offer-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.offer-item .offer-value {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.offer-item .offer-payment {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ea580c;
    background: #ffffff;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    margin: 0.5rem 0 0 0;
    border: none;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    align-self: flex-start;
}

.offer-item .offer-payment::before {
    content: "✓";
    font-size: 0.875rem;
    color: #ea580c;
    font-weight: 700;
    background: rgba(234, 88, 12, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-badge {
    display: inline-block;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.offer-details {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid #f3f4f6;
}

.offer-min-purchase {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.offer-min-purchase.eligible {
    background: #fff5f0;
    color: #ea580c;
}

.offer-min-purchase.not-eligible {
    background: #fef2f2;
    color: #991b1b;
}

.offer-savings {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ea580c;
    background: #fff5f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
}

.offer-item .offer-payment {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    background: #f9fafb;
    padding: 0.375rem 0.625rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* Products Page Offers Section */
.products-offers-section {
    margin: 1.5rem 0 2rem 0;
    padding: 0;
}

.offers-card {
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.offers-payment-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.offers-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.offers-card-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
}

.offers-card-icons svg {
    flex-shrink: 0;
}

.offers-payment-card .offers-card-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
}

.offers-payment-card .offers-card-header h4::before {
    display: none;
}

.offers-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.offer-inner-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
}

.offer-inner-box:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.offer-inner-left {
    flex: 1;
}

.offer-payment-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2563eb;
    display: block;
}

.offer-inner-right {
    flex-shrink: 0;
}

.offer-discount-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #16a34a;
    display: block;
}

.offers-card-footer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.offers-card-footer svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #2563eb;
}

.offer-category,
.offer-product {
    display: inline-block;
    font-size: 0.75rem;
    color: #6366f1;
    background: #eef2ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
}

/* Order Offers Section */
.order-offers-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.order-offers-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.order-offers-section .offers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-offers-section .offer-item {
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

.order-offers-section .offer-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.order-offers-section .offer-item .offer-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

/* Why Choose Us Section Redesign - Modern Minimal */
.why-choose-us {
    padding: 5rem 0;
    background-color: #ffffff;
}

.why-choose-us .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .why-choose-us .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



.feature-card {
    background: #f8f9fa;
    /* Light gray base */
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
    /* Switch to left align */
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    background: #ffffff;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #e2e8f0;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 1.5rem 0;
    /* Margin bottom only */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 14px;
    color: #e11b23;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: #e11b23;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #e11b23;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}



.why-choose-us .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.why-choose-us .section-header .section-title {
    font-size: 1.35rem;
    color: #e11b23;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.why-choose-us .section-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Password Toggle Style */
.input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    color: #e11b23;
    /* Orange accent */
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Auth Page Fix */

/* Auth Page Global Layout Overrides */
.auth-page-split {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.auth-split-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex: 1;
    min-height: calc(100vh - var(--nav-height, 70px) - 2px);
    /* Prevent scrollbar */
}

/* Auth Visual Side Base Image */
.auth-visual-side {
    background-image: url('../img/user_login_banner.png');
    background-size: cover;
    background-position: top center;
    width: 100%;
    /* Default to full width */
}

/* Mobile & Tablet Auth Page Fix */
@media (max-width: 1024px) {
    .auth-split-container {
        flex-direction: column;
        height: auto !important;
    }

    .auth-visual-side {
        display: block !important;
        width: 100% !important;
        height: 170px !important;
        /* Reduced height */
        min-height: 170px;
        flex: none;
        order: -1;
        background-position: top center;
    }

    .auth-form-side {
        width: 100% !important;
        padding-left: 2rem;
        padding-right: 2rem;
        /* Reduced padding */
        justify-content: flex-start;
    }
}

/* Desktop Strict Split Layout */
@media (min-width: 1025px) {
    .auth-split-container {
        flex-direction: row;
    }

    .auth-visual-side {
        height: auto;
        min-height: 100vh;
        width: 50%;
        flex: 0 0 50%;
        order: 0;
        background-position: center;
    }

    .auth-form-side {
        width: 50%;
        flex: 0 0 50%;
        padding: 2rem;
        justify-content: center;
    }
}

/* Mobile Optimizations for Why Choose Us */
@media (max-width: 767px) {
    .why-choose-us {
        padding: 1.5rem 0;
    }

    .why-choose-us .section-header,
    .brands .section-header,
    .blog-section .section-header {
        text-align: left;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .why-choose-us .features-grid {
        gap: 0.75rem;
        /* Tighter gap */
    }

    .feature-card {
        padding: 0.75rem;
        /* Minimal padding */
        border-radius: 10px;
    }

    .feature-icon {
        width: 32px;
        /* Smaller icon */
        height: 32px;
        margin: 0 0 0.5rem 0;
        border-radius: 8px;
    }

    .feature-icon svg {
        width: 16px;
        height: 16px;
    }

    .feature-card h3 {
        font-size: 0.85rem;
        /* Smaller title to prevent wrap */
        margin-bottom: 0.25rem;
    }

    .feature-card p {
        font-size: 0.75rem;
        /* Smaller text */
        line-height: 1.3;
    }
}

/* Shop By Category Optimizations */
.shop-by-category .section-header {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.shop-by-category .section-title {
    font-size: 1.5rem;
    /* Reduced size */
    text-align: left;
    margin: 0;
    line-height: 1.2;
}

.shop-by-category .section-link {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .shop-by-category .section-header {
        margin-bottom: 1.5rem;
    }

    .shop-by-category .section-title {
        font-size: 1.1rem;
        /* Smaller for mobile to fit in one row */
    }

    .shop-by-category .section-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Product Share Inline */
.product-share {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.product-share.inline-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.product-share.inline-share .share-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.product-share.inline-share .share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-share.inline-share .share-btn {
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-light);
    /* Default gray */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-share.inline-share .share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Brand Colors */
.product-share.inline-share .share-whatsapp {
    color: #25d366;
}

.product-share.inline-share .share-facebook {
    color: #4267B2;
}

.product-share.inline-share .share-twitter {
    color: #000000;
}

.product-share.inline-share .share-instagram {
    color: #E1306C;
}

.product-share.inline-share .share-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Force Inline Share on Mobile */
@media (max-width: 767px) {

    .product-share.inline-share,
    .product-share.inline-share .share-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .product-share.inline-share .share-label {
        margin-right: 0.5rem;
    }
}

/* Product Page Spacing Fixes */
.product-details {
    gap: 1rem !important;
    margin-top: 1rem !important;
    padding-top: 0 !important;
}

.product-info {
    gap: 0.25rem !important;
}

.product-options {
    margin: 0.5rem 0 !important;
}

.option-group {
    margin-bottom: 0.5rem !important;
}

.option-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.9rem !important;
}

.product-actions-row {
    margin: 0.5rem 0 !important;
    gap: 0.5rem !important;
}

.product-actions-row .quantity-selector-wrapper {
    gap: 0.25rem !important;
}

.product-actions-row .quantity-label {
    margin-bottom: 0.25rem !important;
}

.product-description,
.product-short-description {
    margin: 0.25rem 0 !important;
    padding: 0 !important;
}

.product-short-description p {
    margin-bottom: 0.25rem !important;
}

/* Remove Share Section Padding/Margin */
.product-share,
.product-share.inline-share {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: none !important;
    /* Removing border to make it feel closer */
}

.product-share.inline-share .share-buttons {
    margin-left: 0 !important;
}

.product-share h4 {
    display: none !important;
    /* Hide the old header if it pops up */
}

/* Aggressive Spacing Removal for Share Section */
.product-share,
.product-share.inline-share {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border: none !important;
}

.product-share.inline-share {
    margin-top: -0.5rem !important;
    /* Pull it up slightly if needed */
}

.product-meta {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: none !important;
    /* Hide meta if empty or not needed to save space */
}

.product-actions-row {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.product-info {
    gap: 0 !important;
    /* Remove gap in flex container */
}

/* Ensure share buttons themselves have no top margin */
.product-share .share-buttons {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ultra Compact Product Details */
.product-info h1 {
    font-size: 1.25rem !important;
    /* Significantly smaller */
    line-height: 1.3 !important;
    margin-bottom: 0.25rem !important;
}

.product-price {
    font-size: 1.2rem !important;
    /* Smaller price */
}



.product-compare-price {
    font-size: 1rem !important;
}

.product-short-description p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.option-label {
    font-size: 0.85rem !important;
    margin-bottom: 0.2rem !important;
    font-weight: 600 !important;
}

/* Compact Color/Size Options */
.color-option-item {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
}

.color-option-item img {
    border-radius: 4px !important;
}

.size-option-btn {
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 0.5rem !important;
    font-size: 0.85rem !important;
}

/* Inline Quantity Label */
.product-actions-row .quantity-selector-wrapper {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0 !important;
}

.product-actions-row .quantity-label {
    margin-bottom: 0 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

.product-actions-row .quantity-controls {
    height: 32px !important;
    /* Smaller height */
}

.product-actions-row .quantity-btn {
    width: 30px !important;
    height: 30px !important;
}

.product-actions-row .quantity-controls input {
    height: 30px !important;
    width: 40px !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
}

/* Tighter gaps everywhere */
.product-details {
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
}

.product-options {
    gap: 0.5rem !important;
    margin: 0.25rem 0 !important;
}

.product-actions-row {
    gap: 0.5rem !important;
    margin: 0.5rem 0 !important;
}

.product-actions-row .action-buttons {
    gap: 0.5rem !important;
}

.product-actions-row .action-buttons .btn {
    height: 38px !important;
    /* Shorter buttons */
    min-height: 38px !important;
    font-size: 0.9rem !important;
    padding: 0 0.75rem !important;
}

/* Force Single Row for All Product Actions */
.product-actions-row {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
}

.product-actions-row .quantity-selector-wrapper {
    width: auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.product-actions-row .action-buttons {
    width: auto !important;
    flex: 1 !important;
    margin: 0 !important;
}

/* Hide Quantity Label text to save space if needed, or keep it very small inline */
.product-actions-row .quantity-label {
    display: none !important;
    /* User image implies just the number input/controls might be enough or label logic relies on placeholder */
}

/* If the user wants the label 'Quantity:', let's keep it but inline */
/* Actually, user request showed 'Quantity: 1' stacked, then 'Add to Cart' 'Buy Now' stacked. 
   He wants 'Quantity [1] [Add to Cart] [Buy Now]' all in one row. 
   So I will keep label hidden or very subtle to fit everything. 
   Let's try to hide the label for maximum compactness as 'inline one row' suggests horizontal constrained space.
   Wait, if I hide the label, how do they know it's quantity? The +/- buttons make it obvious.
*/

.product-actions-row .quantity-label {
    display: none !important;
}

/* Ensure buttons don't wrap */
.product-actions-row .action-buttons {
    flex-wrap: nowrap !important;
}

.product-actions-row .action-buttons .btn {
    white-space: nowrap !important;
    padding: 0 0.5rem !important;
    /* Reduce padding to fit */
    font-size: 0.8rem !important;
}

/* Mobile specific tweaks to ensure it fits */
@media (max-width: 400px) {
    .product-actions-row .action-buttons .btn .btn-text {
        display: none !important;
        /* Hide text on very small screens, show only icons? Or just reduce font more */
    }

    .product-actions-row .action-buttons .btn {
        padding: 0 0.25rem !important;
    }

    /* Actually let's just rely on shrink */
}


/* High Specificity Override for Product Actions Alignment */
.product-page .product-details .product-actions-row {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
}

.product-page .product-details .product-actions-row .quantity-selector-wrapper {
    width: auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    flex-direction: row !important;
}

.product-page .product-details .product-actions-row .action-buttons {
    width: auto !important;
    flex: 1 !important;
    margin: 0 !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    /* Hidden on Mobile/Tablet via media queries below */
}

@media (max-width: 768px) {
    .product-page .product-details .product-actions-row .action-buttons {
        display: none !important;
    }
}

.product-page .product-details .product-actions-row .action-buttons .btn {
    flex: 1 !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* Ensure quantity input is small */
.product-page .product-details .product-actions-row .quantity-controls input {
    width: 30px !important;
    padding: 0 !important;
}

/* Restore Quantity Label */
.product-page .product-details .product-actions-row .quantity-label {
    display: inline-block !important;
    margin-right: 0.5rem !important;
    white-space: nowrap !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

/* Adjust Share Section Spacing */
.product-share.inline-share {
    margin-top: 4px !important;
    /* Slight breathing room per user request */
}

/* Increase Color Option Size */
.color-option-item {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
    /* Slightly larger radius for larger box */
}

/* Ensure the image inside fits well */
.color-option-item img {
    border-radius: 6px !important;
}

/* Further Increase Color Option Size */
.color-option-item {
    width: 56px !important;
    height: 56px !important;
    border-radius: 10px !important;
}

/* Mobile: Force Quantity on one line, Buttons on next */
@media (max-width: 480px) {
    .product-page .product-details .product-actions-row {
        flex-wrap: wrap !important;
    }

    .product-page .product-details .product-actions-row .quantity-selector-wrapper {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }

    .product-page .product-details .product-actions-row .action-buttons {
        display: none !important;
    }
}

/* Restore Text on Mobile Buttons */
@media (max-width: 480px) {
    .product-actions-row .action-buttons .btn .btn-text {
        display: inline-block !important;
        font-size: 0.85rem !important;
    }
}

/* Add Top Margin to Product Page */

.product-details {
    margin-top: 0 !important;
    /* Reset this since container has margin now, or keep small */
}

/* Remove Gaps in Specifications Grid */
.specifications-grid {
    gap: 0 !important;
    margin-top: 0.5rem !important;
}

.spec-item {
    padding: 0.25rem 0 !important;
    border-bottom: 1px solid var(--border-color);
    /* Keep border but remove space */
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    width: 120px !important;
    /* Fixed width for alignment */
    font-size: 0.85rem !important;
}

.spec-value {
    font-size: 0.85rem !important;
}

/* Align Specifications: Key Left, Value Right */
.spec-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.spec-label {
    text-align: left !important;
    flex-shrink: 0 !important;
}

.spec-value {
    text-align: right !important;
    flex: 1 !important;
    padding-left: 1rem !important;
    /* Ensure separation */
}

/* Nuclear Fix for Specifications Alignment */
.tab-content .specifications-grid .spec-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    text-align: left !important;
}

.tab-content .specifications-grid .spec-item .spec-label {
    text-align: left !important;
    width: auto !important;
    flex-shrink: 0 !important;
    margin-right: auto !important;
    /* Push value to right */
    display: inline-block !important;
}

.tab-content .specifications-grid .spec-item .spec-value {
    text-align: right !important;
    width: auto !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin-left: 1rem !important;
}

/* Flipkart/Amazon Style Specifications Layout */
.tab-content .specifications-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.tab-content .specifications-grid .spec-item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    /* Keys and Values close together */
    align-items: flex-start !important;
    padding: 0.6rem 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    /* Subtle separator */
    width: 100% !important;
}

.tab-content .specifications-grid .spec-item:last-child {
    border-bottom: none !important;
}

.tab-content .specifications-grid .spec-item .spec-label {
    width: 150px !important;
    /* Fixed width column for Keys */
    min-width: 150px !important;
    max-width: 150px !important;
    color: #878787 !important;
    /* Muted gray text for label */
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    text-align: left !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
}

.tab-content .specifications-grid .spec-item .spec-value {
    color: #212121 !important;
    /* Darker text for value */
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-align: left !important;
    flex: 1 !important;
    margin-left: 0 !important;
    word-break: break-word !important;
}

/* Compact Description and Shipping Sections */
.tab-content .tab-panel {
    padding: 0.5rem 0 !important;
    /* Minimal padding */
}

.description-section {
    margin-bottom: 1rem !important;
}

.description-section h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
}

.description-section p,
.tab-panel p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.75rem !important;
    color: var(--text-color) !important;
}

/* Specific fix for lists (often used in shipping) */
.description-section ul,
.tab-panel ul {
    margin: 0 0 0.75rem 1.25rem !important;
    padding: 0 !important;
}

.description-section li,
.tab-panel li {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.25rem !important;
}

/* Robust Reset for Shipping & Description Gaps */
.tab-panel .shipping-info,
.tab-panel .returns-info,
.tab-panel .purchase-note {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
    /* Minimal separation between sections */
    border-radius: 0 !important;
}

/* Ensure content inside is compact */
.shipping-info h3,
.returns-info h3,
.purchase-note h3 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

.shipping-info p,
.returns-info p,
.purchase-note p {
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
}

/* Remove any potential generic card styles in tab panel */
.tab-panel>div {
    background: transparent !important;
    box-shadow: none !important;
}

/* Left Side Hamburger Menu Styles */
.nav-brand {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    /* Space between hamburger and logo */
}

/* Ensure the toggle button inside nav-brand looks right */
.nav-brand .nav-toggle {
    display: none;
    /* Default hidden on desktop, media query will show it */
    position: relative;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
}

/* On Mobile/Tablet, show the toggle */
@media (max-width: 991px) {
    .nav-brand .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
    }

    /* Hide the old toggle position if it still exists in CSS (it does) */
    .nav-right .nav-toggle {
        display: none !important;
    }
}

/* Style the hamburger lines */
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hover effect */
.nav-toggle:hover span {
    background-color: var(--primary-color);
}


/* Force Hamburger Menu Visible on All Screens */
.nav-brand .nav-toggle {
    display: flex !important;
    /* Override previous display: none */
    flex-direction: column !important;
    justify-content: space-around !important;
    /* Ensure spacing from logo */
}


/* Move Off-Canvas Menu to Left Side */
.off-canvas-content {
    right: auto !important;
    left: 0 !important;
    transform: translateX(-100%) !important;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2) !important;
    /* flip shadow */
}

.off-canvas-menu.active .off-canvas-content {
    transform: translateX(0) !important;
}


/* --- Visual Off-Canvas Menu Styles (Souled Store Style) --- */

.off-canvas-nav.visual-menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
    overflow-y: auto;
}

/* Auth Section */
.visual-menu-auth {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.btn-auth {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-auth:hover {
    background: var(--primary-color);
    color: #fff;
}

/* User Profile Section */
.visual-menu-profile {
    padding: 1rem;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-avatar span {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    color: var(--text-color);
}

.profile-link {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
}

.profile-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.profile-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.7rem;
    gap: 0.25rem;
}

.profile-action-item svg {
    width: 20px;
    height: 20px;
    color: #666;
}

/* Tabs Section */
.visual-menu-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.visual-menu-tabs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome */
}

.visual-tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.visual-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tab Content */
.visual-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 2rem 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.visual-menu-content::-webkit-scrollbar {
    display: none;
}

.visual-tab-pane {
    display: none;
    padding: 1rem 0;
    animation: fadeIn 0.3s ease;
}

.visual-tab-pane.active {
    display: block;
}

.visual-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Category Grid */
.visual-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.visual-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.visual-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.visual-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.visual-category-item:hover .visual-item-image img {
    transform: scale(1.05);
}

.visual-item-name {
    font-size: 0.8rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

/* Shop All Link */
.visual-shop-all {
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.visual-shop-all a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}

/* Extra Links */
.visual-extra-links {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #eee;
}

.extra-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
}

.extra-link:last-child {
    border-bottom: none;
}

.badge-new {
    background: #ff3e6c;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Mobile Tweaks for Grid */
@media (max-width: 360px) {
    .visual-category-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tiny screens */
    }
}


/* Visual Menu Accordion Styles */
.visual-accordion-group {
    margin-bottom: 2rem;
}

.visual-accordion-item {
    border-bottom: 1px solid #f0f0f0;
}

.visual-accordion-item:last-child {
    border-bottom: none;
}

.visual-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
}

.visual-accordion-header span {
    flex: 1;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    color: #999;
}

.visual-accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.visual-accordion-header.active {
    color: var(--primary-color);
}

.visual-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.visual-accordion-single-link {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}

/* Shop All Item in Subcat Grid */
.shop-all-item .visual-item-image.text-only {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.visual-category-grid .visual-category-item {
    /* Ensure items align top */
    align-self: start;
}


/* Styles for Accordion Header Images */
.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.accordion-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    /* Slightly rounded */
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #eee;
}


/* Enhanced Single Link Styles */
.visual-accordion-single-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}

.visual-accordion-single-link:hover {
    color: var(--primary-color);
}

/* Index Page Image Cards - 2:3 Portrait Ratio */
.home-page .product-image-wrapper {
    aspect-ratio: 2 / 3;
    padding-top: 0 !important;
    height: auto;
    overflow: hidden;
    /* Ensure image doesn't overflow */
}

.home-page .product-image-wrapper img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* Products Page Image Cards - 2:3 Portrait Ratio */
.products-page .products-grid .product-card .product-image-wrapper {
    aspect-ratio: 2 / 3 !important;
    padding-top: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}

/* Related Products on Single Product Page - Match Products Grid */
.product-page .products-grid .product-card .product-image-wrapper {
    aspect-ratio: 2 / 3 !important;
    padding-top: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}

.product-page .products-grid .product-card .product-image-wrapper img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
}


/* -------------------------------------------
   Sidebar Filter Styling (User Reference)
   ------------------------------------------- */

/* Sidebar Container */
.products-page .products-sidebar {
    background: #fff;
    padding: 0;
    margin-top: -18px;
    border-right: 1px solid #eee;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Sidebar Header (Mobile Control) */
.sidebar-header-mobile {
    padding: 10px 15px;
    /* Compact padding */
    border-bottom: 1px solid #eee;
    margin-bottom: 10px !important;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header-mobile h3 {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    color: #e11b23;
    letter-spacing: 0.5px;
}

/* Main Sidebar Header (Desktop) */
.products-page .sidebar-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 20;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.products-page .products-sidebar::-webkit-scrollbar {
    width: 6px;
}

.products-page .products-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.products-page .products-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Filter Sections - Ultra Compact */
.products-page .filter-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    /* Aggressive reduction */
    margin-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
}

.products-page .filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Uppercase Headers */
.products-page .filter-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding-bottom: 4px;
    /* Minimal */
    padding-top: 5px;
    /* small top spacing for sticky */
    margin-bottom: 4px;
}

.products-page .filter-header h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

/* Category Items */
.products-page .category-filter-item {
    display: flex;
    align-items: center;
    padding: 2px 0;
    /* Ultra tight */
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
    justify-content: space-between;
}

.products-page .category-filter-item:hover {
    color: var(--primary-color);
}

.products-page .category-filter-item input[type="radio"],
.products-page .category-filter-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
    position: relative;
    top: 1px;
}

/* Category Labels */
.products-page .category-filter-label {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #444;
}

.products-page .category-filter-item .count {
    color: #999;
    font-size: 0.75rem;
}

/* Size Pill Styling */
.products-page .size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* Compact */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-page .size-pills::-webkit-scrollbar {
    display: none;
}

.products-page .size-pill-item {
    cursor: pointer;
    margin: 0;
}

.products-page .size-pill-item input {
    display: none;
}

.products-page .size-pill-item .pill-label {
    display: inline-block;
    padding: 4px 8px;
    /* Compact */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
    background: #fff;
    transition: all 0.2s ease;
    text-align: center;
}

.products-page .size-pill-item .pill-label small {
    color: #999;
    font-size: 0.7em;
    margin-left: 2px;
}

.products-page .size-pill-item input:checked+.pill-label {
    border-color: var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color) inset;
    font-weight: 600;
}




/* Orange Header, White Body, Orange Links for Hamburger Menu */

/* Main Container - White Background */
.off-canvas-content {
    background-color: #ffffff !important;
    color: #333333 !important;
}

/* Price Slider Styles */
.price-slider-wrapper {
    padding: 10px 5px;
}

.price-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.price-values .separator {
    color: #999;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 20px;
}

.slider-track {
    width: 100%;
    height: 4px;
    background-color: #eee;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

.slider-range-bar {
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    pointer-events: none;
    z-index: 2;
    height: 4px;
    margin: 0;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Header - Orange Background, White Text */
.off-canvas-header {
    background-color: #e11b23 !important;
    border-bottom: 1px solid #ea580c !important;
    padding: 15px 20px !important;
}

.off-canvas-header h3 {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 1.25rem;
}

.off-canvas-close {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Links inside menu - Orange Text */
.off-canvas-content a,
.off-canvas-content .nav-link,
.off-canvas-content .extra-link,
.off-canvas-content .visual-link-item,
.off-canvas-content .accordion-header-content span,
.off-canvas-content .visual-accordion-header {
    color: #e11b23 !important;
}

.off-canvas-content .nav-link:hover,
.off-canvas-content .extra-link:hover,
.visual-category-item:hover .visual-item-name {
    background-color: rgba(249, 115, 22, 0.1) !important;
    /* Light orange hover */
    color: #ea580c !important;
    /* Darker orange text on hover */
}

/* Accordion Lines and Arrows */
.visual-accordion-header {
    border-bottom: 1px solid #f0f0f0 !important;
}

.visual-accordion-header .accordion-arrow {
    stroke: #e11b23 !important;
}

/* Badge New - Orange Background for contrast against white? Or keep inline */
.badge-new {
    background: #e11b23 !important;
    color: #fff !important;
}

/* Profile Text in Menu (if reinstated later, but currently removed) */

/* Visual Menu Styles (Tabs, Accordions, Grid) - Compact Version */
.visual-menu-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 0 !important;
    /* Removed gap */
}

.visual-tab-btn {
    flex: 1;
    padding: 10px 0 !important;
    /* Reduced padding */
    text-align: center;
    background: none;
    border: none;
    font-weight: 700;
    color: #999 !important;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.visual-tab-btn.active {
    color: #222 !important;
    border-bottom-color: #222;
}

.visual-tab-pane {
    display: none;
    padding: 10px 0 !important;
    /* Reduced padding */
}

.visual-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.visual-accordion-group {
    margin-bottom: 10px !important;
    /* Reduced from 2rem */
}

.visual-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 0 !important;
    /* Reduced from 12px */
    background: none;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    color: #e11b23 !important;
    /* Orange headers */
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.visual-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.visual-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    /* Reduced gap */
    margin-bottom: 10px !important;
    margin-top: 10px !important;
}

.visual-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #e11b23 !important;
    gap: 8px;
}

.visual-item-image {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square */
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 4px !important;
}

.visual-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.visual-category-item:hover .visual-item-image img {
    transform: scale(1.05);
}

.visual-item-name {
    font-size: 0.75rem !important;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

.visual-shop-all {
    margin-top: 5px !important;
    padding-top: 10px !important;
    border-top: 1px solid #f0f0f0;
}

.visual-shop-all a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e11b23 !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.visual-extra-links {
    margin-top: 10px !important;
    /* Reduced from 30px */
    border-top: 1px solid #f0f0f0;
    padding-top: 5px !important;
}

.extra-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 !important;
    /* Reduced from 15px */
    text-decoration: none;
    color: #e11b23 !important;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.visual-menu-auth {
    margin-bottom: 10px !important;
}

.off-canvas-nav .btn-auth,
.btn-auth {
    display: block !important;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #e11b23 !important;
    color: #ffffff !important;
    /* Ensure white text */
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
    z-index: 999;
    position: relative;
    box-sizing: border-box;
    border: none !important;
}

.no-cats {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Force Show Hamburger Menu - Ensure Visibility */
html body .nav-brand .nav-toggle,
.nav-toggle,
header .nav-toggle {
    display: flex !important;
}

/* NUCLEAR FIX: Force Desktop Grid Layout */
@media (min-width: 901px) {
    html body .products-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Ensure cards take full width of their grid cell */
    html body .product-card {
        width: 100% !important;
        max-width: none !important;
    }
}

/* NUCLEAR FIX: Force Left Margin for Products Content (Tablet & Desktop) and Mobile Action Bar */
@media (max-width: 991px) {
    .mobile-action-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #fff !important;
        padding: 10px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 9999 !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .mobile-nav-item {
        flex: 1 !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #555 !important;
        text-decoration: none !important;
        padding: 5px !important;
        transition: color 0.2s;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item:active {
        color: #007bff !important;
        /* Primary Blue on interact */
    }

    .mobile-nav-item i {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }

    .mobile-nav-item span {
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }

    .products-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        z-index: 10000 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease-in-out !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        background: #fff !important;
        padding-top: 20px !important;
        overflow-y: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .products-sidebar::-webkit-scrollbar {
        display: none !important;
    }

    .products-sidebar.active {
        transform: translateX(0) !important;
    }

    .sidebar-header-mobile {
        display: flex !important;
    }

    html body .products-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 0 !important;
    }
}

@media (min-width: 992px) {
    .mobile-action-bar {
        display: none !important;
    }

    .products-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 90px !important;

        height: 100vh !important;
        transform: none !important;
        border-right: 1px solid #eee;
        z-index: 999;
        display: block !important;
    }

    .sidebar-header-mobile {
        display: none !important;
    }

    html body .products-content {
        margin-left: 300px !important;
        width: calc(100% - 300px) !important;
        padding-left: 0 !important;
    }
}

/* === Modern List Style Cart (Unique Classes) === */

.cart-modern-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border-top: 2px solid #eee !important;
}

/* Header - Hidden as we have a single column flow now */
.cart-modern-header {
    display: none !important;
}

/* Card - Single Column / Flex Row */
.cart-modern-card {
    display: flex !important;
    align-items: flex-start !important;
    padding: 1.5rem 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: transparent !important;
    gap: 1.5rem !important;
    position: relative !important;
    /* For absolute positioning of remove icon */
}

/* Desktop Remove Icon */
@media (min-width: 992px) {
    .mobile-remove-icon {
        position: absolute !important;
        top: 10px !important;
        /* Move to top corner */
        right: 10px !important;
        /* Move to right corner */
        background: var(--accent-color) !important;
        /* Orange background */
        border: none !important;
        padding: 0 !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        /* Circle shape */
        color: #ffffff !important;
        /* White icon default */
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: transform 0.2s, background 0.2s;
        z-index: 5;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-remove-icon:hover {
        background: var(--accent-hover) !important;
        transform: scale(1.1);
        color: #ffffff !important;
    }

    .mobile-remove-icon svg {
        width: 14px;
        height: 14px;
        color: #ffffff !important;
    }
}

/* Item Column */
.col-item-content {
    display: flex;
    gap: 1.5rem;
}

.item-visuals {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cart-modern-selection {
    padding-top: 5px;
    padding-left: 15px;
    /* Added for Desktop/Tablet indentation */
}

.cart-modern-image {
    width: 110px;
    height: 110px;
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.cart-modern-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cart-image-gallery-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 3px;
    pointer-events: none;
}

.cart-image-gallery-indicator svg {
    width: 12px;
    height: 12px;
}

/* Details */
.cart-modern-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 450px;
}

.cart-modern-details .item-name a {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    line-height: 1.3;
}

.item-meta .meta-row {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

/* Quantity */
/* Quantity */
.qty-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    margin-top: 8px !important;
}

.meta-label {
    font-weight: 400;
    /* Reduced from 500 */
    color: #333;
}

.quantity-input-inline {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn-mini {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn-mini:hover {
    background: #f0f0f0;
}

.cart-quantity-mini {
    width: 36px;
    height: 28px;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-weight: 500;
    /* Reduced from 600 */
    font-size: 0.9rem;
    color: #333;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-quantity-mini::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Actions */
.item-actions-text {
    margin-top: 0.5rem;
}

.btn-text-action {
    display: none !important;
    /* Hide text action globally - use icon instead */
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.btn-text-action:hover {
    color: #d32f2f;
}

/* Price & Total */
.col-price-content,
.col-total-content {
    text-align: right;
    font-size: 1rem;
    color: #111;
    padding-top: 2px;
}

.cart-modern-card .product-price {
    font-size: 1rem !important;
    /* Reduced from 1.25rem */
    font-weight: 500 !important;
    /* Consistent with other text */
}

.col-total-content .subtotal-amount {
    font-weight: 500;
    /* Reduced from 700 to 500 */
}

/* Mobile - increased breakpoint for better tablet support */
/* Mobile - increased breakpoint for better tablet support */
@media (max-width: 991px) {
    .cart-modern-header {
        display: none !important;
    }

    .page-subtitle {
        display: none !important;
    }

    /* Redesigned Mobile Card - Premium Grid Layout OPTIMIZED */
    .col-item-content,
    .item-visuals,
    .cart-modern-details,
    /* Container Grid */
    .cart-modern-card {
        display: grid !important;
        /* Columns: Checkbox (24px) | Image (80px) | Content (1fr) */
        /* Use minmax(0, 1fr) to prevent content blowout */
        grid-template-columns: 24px 80px minmax(0, 1fr) !important;
        /* Rows: Title, Badges, Qty, Total */
        grid-template-rows: auto auto auto auto !important;
        gap: 0 12px !important;
        /* Row gap 0, Col gap 12px */
        padding: 12px !important;
        background: #fff !important;
        border: 1px solid #f0f0f0;
        border-bottom: 4px solid #f9f9f9 !important;
        position: relative !important;
        align-items: start !important;
    }

    /* Flatten Structure for Grid Control */
    .col-item-content,
    .item-visuals,
    .cart-modern-details,
    .item-meta {
        display: contents !important;
    }

    /* 1. Checkbox: Row 1-4 */
    .cart-modern-selection {
        grid-column: 1 !important;
        grid-row: 1 / span 4 !important;
        padding-top: 2px !important;
        z-index: 5;
        width: 24px;
        padding-left: 0 !important;
        /* Reset padding for mobile grid */
    }

    .cart-modern-selection input {
        margin: 0 !important;
        width: 18px !important;
        height: 18px !important;
    }

    /* 2. Image: Row 1-4 */
    .cart-modern-image {
        grid-column: 2 !important;
        grid-row: 1 / span 4 !important;
        width: 80px !important;
        height: 80px !important;
        margin-right: 0 !important;
    }

    .cart-modern-image img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 4px !important;
    }

    /* 3. Header Row: Row 1, Col 3 */
    .cart-item-header-row {
        grid-column: 3 !important;
        grid-row: 1 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        min-width: 0 !important;
    }

    .item-name {
        /* Grid properties moved to header row */
        font-size: 0.9rem !important;
        font-weight: 400 !important;
        /* Reduced from 600 to 400 */
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
        padding-right: 25px !important;
        /* Space for absolute icon */
        display: block !important;
        padding-left: 0 !important;
        margin-top: 0 !important;
        min-width: 0 !important;
    }

    .item-name a {
        text-decoration: none;
        color: var(--text-color);
        white-space: nowrap !important;
        font-weight: 400 !important;
        /* Ensure link is not bold */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    /* 4. Remove Icon: Absolute in top right corner of card */
    .mobile-remove-icon {
        position: absolute !important;
        top: -1px !important;
        right: -1px !important;
        background: var(--accent-color) !important;
        /* Orange background */
        border: none !important;
        padding: 0 !important;
        width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        /* Circle shape */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10;
        cursor: pointer !important;
        margin: 0 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-remove-icon svg {
        width: 11px !important;
        /* Reduced from 14px */
        height: 11px !important;
        color: #ffffff !important;
        /* White icon */
    }

    /* 4. Badges: Row 2 (Col 3) */
    .variation-badges {
        grid-column: 3 !important;
        grid-row: 2 !important;
        margin-bottom: 0 !important;
        align-self: start !important;
    }

    /* 5. Qty/Price: Row 3 (Col 3) */
    /* 5. Qty/Price: Row 3 (Col 3) */
    .qty-meta {
        grid-column: 3 !important;
        grid-row: 3 !important;
        margin-top: 4px !important;
        padding-top: 0 !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* Make price inline and smaller */
    .qty-meta .col-price-content {
        width: auto !important;
        margin-left: auto !important;
        /* Push price to the right or keep inline? User said "inline one row", usually implies flow. Let's keep it close but slightly separated. */
        padding-top: 0 !important;
        text-align: right !important;
    }

    /* Override product-price size in cart mobile view */
    .qty-meta .product-price {
        font-size: 0.95rem !important;
        /* Reduced from default */
        font-weight: 500 !important;
        /* Reduced weight */
        margin: 0 !important;
        color: #333 !important;
        /* Remove orange color - match qty label */
    }

    .qty-meta .meta-label {
        font-size: 0.85rem !important;
        margin-right: 4px !important;
        color: #333 !important;
        /* Match price color exactly */
    }

    /* Quantity Controls - No Border Style */
    .quantity-input-inline {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .quantity-input-inline button {
        border: none !important;
        background: transparent !important;
        padding: 0 4px !important;
        width: auto !important;
        height: auto !important;
    }

    .quantity-input-inline input {
        border: none !important;
        background: transparent !important;
        width: 24px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        height: auto !important;
    }

    /* 6. Total: Row 4 (Col 3 - Right Side) */
    .col-total-content {
        grid-column: 3 !important;
        grid-row: 4 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        /* Left align (of the right col) to match Qty/Price alignment */
        gap: 10px !important;
        border-top: none !important;
        /* Remove border if on side */
        background: transparent !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 2px !important;
        padding-top: 2px !important;
    }

    .col-total-content .subtotal-amount {
        font-size: 0.95rem !important;
        /* Reduced from 1rem default */
    }
}

/* Hide old remove buttons */
.qty-meta .btn-remove-cart,
.btn-text-action {
    display: none !important;
}



.col-total-content .mobile-label {
    display: inline-block !important;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.col-total-content::before {
    content: none !important;
    display: none !important;
}

.col-total-content .subtotal-amount {
    /* Premium Red/Orange */
    font-weight: 500 !important;
    color: #ff6600 !important;
}

/* Desktop Subtotal Styling */
@media (min-width: 992px) {
    .col-total-content.cart-item-subtotal {
        margin-top: 10px !important;
        padding-top: 5px !important;
        border-top: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .col-total-content .mobile-label {
        display: inline-block !important;
        font-weight: 600;
        color: #555;
        font-size: 0.9rem;
    }

    .col-total-content .subtotal-amount {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #d32f2f !important;
    }
}

/* Hide the old inline price wrapper if we are showing subtotal */
/* Hide the old inline price wrapper if we are showing subtotal */
.item-price-wrapper {
    font-size: 1.1rem;
    color: #6b7280;
    margin-top: 0 !important;
    /* Zero margin */
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
}

.mobile-label {
    display: none;
    padding-top: 0 !important;
    /* Zero padding */
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
    .cart-item-card {
        grid-template-columns: 30px 80px 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem;
        padding: 1rem;
        align-items: start;
    }

    .mobile-label {
        display: inline-block;
        font-weight: 600;
        color: var(--text-color);
        font-size: 0.95rem;
    }

    /* Checkbox & Image stay on left */
    .cart-item-selection {
        grid-row: 1 / span 3;
        align-self: flex-start;
        padding-top: 10px;
    }

    .cart-item-image {
        grid-row: 1 / span 2;
        width: 80px;
        height: 80px;
    }

    /* Details take full width */
    .cart-item-details {
        grid-column: 3;
        grid-row: 1;
    }

    .item-price-wrapper {
        display: block;
        /* Show unit price on mobile */
    }

    /* Quantity & Price move to a new row */
    .item-quantity-controls {
        grid-column: 3;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-top: 0.5rem;
    }

    .cart-item-card .quantity-input-group {
        order: 1;
    }

    .cart-item-subtotal {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 0.75rem;
        border-top: 1px dashed #e5e7eb;
        margin-top: 1rem;
        width: 100%;
    }
}

.btn-remove-cart {
    margin: 0;
    background: transparent;
    border: none;
    color: #9ca3af;
    width: auto;
}

.btn-remove-cart:hover {
    background: transparent;
    color: #ef4444;
}


/* Fix mobile overflow explicitly */
@media (max-width: 991px) {
    .cart-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .cart-items-section {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .cart-summary-section {
        width: 100% !important;
        margin-top: -2rem !important;
        position: static !important;
    }
}

/* Cart Summary Card Styling - Match Checkout */
.cart-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cart-summary-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #111;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #555;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #111;
    border-top: 1px dashed #e5e7eb;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 1rem 0;
}

/* Remove Product Variant Hover Bubble */
.color-option-item {
    position: relative;
    overflow: hidden;
    /* Hide any overflowing bubble */
}

.color-option-item .color-name {
    display: none !important;
    /* Force hide the tooltip text/bubble */
}

.color-option-item:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #ffa41c !important;
}

.color-option-item.active {
    border-color: #ffa41c !important;
    box-shadow: 0 0 0 1px #ffa41c !important;
}

/* Star Rating Styling */
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star-icon {
    width: 16px;
    height: 16px;
}

.star-icon.filled {
    fill: #ffa41c;
    color: #ffa41c;
    stroke: #ffa41c;
}

.star-icon.empty {
    fill: none;
    stroke: #ffa41c;
    /* Orange outline */
    stroke-width: 1.5px;
}

/* Global Star Styling for Product Cards (products.php and related products) */
.products-page .product-rating .stars svg,
.product-page .product-rating .stars svg,
.product-card .stars svg {
    color: #ffa41c !important;
    stroke: #ffa41c !important;
}

.products-page .product-rating .stars svg[fill="none"],
.product-page .product-rating .stars svg[fill="none"] {
    stroke-width: 1.5px !important;
}

@media (max-width: 991px) {
    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Global Product Page Top Sell Banner Styles (All Devices) */
.top-sell-banner-section {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: 0 !important;
    display: block !important;
    overflow: hidden !important;
}

.top-sell-banner {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border: none !important;
}

.top-sell-banner img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Consistent radius */
    box-shadow: none !important;
}

/* Global Product Image Card Styles (All Devices) - Consolidated into primary block at line 17568 */

/* Fix Product Page Top Sell Banner on Mobile - Specific Tweaks */
@media (max-width: 991px) {

    /* Ensure no gap below banner */
    .mobile-action-bar+.products-layout,
    .top-sell-banner-section+.mobile-action-bar,
    .top-sell-banner-section+.products-layout {
        margin-top: 15px !important;
        /* Add standard spacing below banner */
        padding-top: 0 !important;
    }


}

/* Stock Status Styles */


.stock-message {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.stock-message svg {
    width: 18px;
    height: 18px;
}

.stock-message.in-stock {
    color: #10b981;
    background: #ecfdf5;
}

.stock-message.out-of-stock {
    color: #ef4444;
    background: #fef2f2;
}

.btn:disabled,
.btn-add-cart:disabled,
.btn-buy-now:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #9ca3af;
    /* Gray out disabled buttons */
    border-color: #9ca3af;
    pointer-events: none;
}

/* Fix checkout review section border */
.review-item {
    border-left: none !important;
    padding-left: 0 !important;
}

/* Order Details Page Styles */
.order-details-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.order-main {
    flex: 1;
    min-width: 300px;
}

.order-sidebar {
    width: 350px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .order-sidebar {
        width: 100%;
    }
}

.order-items-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.order-items-card h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.25rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Item Wrapper - Flex Container */
.item-layout-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

.order-item-detail {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.order-item-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Image Section */
.item-image-container {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #f9fafb;
}

.item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Section (Info + Actions) */
.item-content-container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

/* Main Info (Title + Meta) */
.item-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    /* Crucial for text-overflow to work */
}

.item-main-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta Data Row */
.item-meta-row {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.meta-qty {
    font-weight: 500;
    color: var(--text-color);
}

.meta-separator {
    color: #ddd;
}

/* End Info (Price + Actions) - Aligned Right */
.item-end-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    text-align: right;
    min-width: 120px;
}

.item-price-block {
    font-weight: 700;
    font-size: .8rem;
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .item-layout-wrapper {
        gap: 1rem;
    }

    .item-content-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .item-end-info {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* Product Attribute Buttons (Dynamic) */
.size-options-list,
.color-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.attribute-option-btn,
.size-option-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 4px;
    /* Chip style */
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
    min-width: 40px;
}

.attribute-option-btn:hover,
.size-option-btn:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.attribute-option-btn.active,
.size-option-btn.active {
    border-color: var(--accent-color, #e11b23);
    background-color: var(--accent-color, #e11b23);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure Color Options also have basic layout if missing */
.color-option-item {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    padding: 2px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.color-option-item.active {
    border-color: var(--accent-color, #e11b23);
    box-shadow: 0 0 0 1px var(--accent-color, #e11b23);
}




/* Filter Section Orange Accents */
.size-pill-item input:checked+.pill-label {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.slider-range-bar {
    background-color: var(--accent-color) !important;
}

.range-input::-webkit-slider-thumb {
    background: var(--accent-color) !important;
}

.range-input::-moz-range-thumb {
    background: var(--accent-color) !important;
}

.filter-header h4 {
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

/* Mobile Filter Close Button Orange */
.sidebar-header-mobile .btn {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

/* Native Share Button on Product Page */
.product-main-image {
    position: relative;
    /* Ensure absolute positioning works relative to this */
}

/* Base style for icon buttons overlaying image */
.product-main-image .wishlist-icon-btn,
.product-main-image .native-share-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #4b5563;
}

/* Wishlist Button Positioning */
.product-main-image .wishlist-icon-btn {
    top: 15px;
    right: 15px;
}

.product-main-image .wishlist-icon-btn:hover {
    transform: scale(1.05);
    color: #ef4444;
}

.product-main-image .wishlist-icon-btn.active {
    color: #ef4444;
}

/* Share Button Positioning */
.product-main-image .native-share-btn {
    top: 65px;
    /* Positioned below the wishlist button */
    right: 15px;
}

.product-main-image .native-share-btn:hover {
    transform: scale(1.05);
    color: var(--accent-color, #e11b23);
    background-color: #fff7ed;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    /* Revert to vertical layout on mobile */
    .product-images {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .product-gallery {
        display: none !important;
    }

    .gallery-thumb {
        width: 70px;
        height: 70px;
    }

    .gallery-thumb:hover {
        transform: translateY(-2px);
    }

    .product-slider-container {
        width: 100%;
        max-height: 400px;
        aspect-ratio: 3/4;
        margin: 0;
        border-radius: 0;
        border: none;
    }



    .native-share-btn {
        top: 0.75rem;
        left: 0.75rem;
    }

    .product-info {
        padding: 0 0.5rem;
        margin: 0;

    }

    .product-info .product-title-page {
        font-size: .95rem !important;
    }

    .product-info .product-title {
        font-size: 1rem !important;
    }

    .product-main-image .wishlist-icon-btn,
    .product-main-image .native-share-btn {
        width: 36px;
        height: 36px;
        right: 10px;
    }

    .product-main-image .wishlist-icon-btn {
        top: 10px;
    }

    .product-main-image .native-share-btn {
        top: 55px;
        /* Adjust spacing */
    }
}

/* Mobile Action Bar Styles (Products Page) */
.mobile-action-bar {
    display: none;
}

@media (max-width: 991px) {
    .mobile-action-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;

        border: 1px solid var(--border-color);
        border-radius: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        gap: 10px;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #fff;
        color: #333 !important;
        /* Default Dark Text */
        border: 1px solid #e5e7eb;
        /* Subtle Border */
        padding: 10px 15px;
        border-radius: 0;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-nav-item:hover {
        background: #fff;
        color: var(--accent-color) !important;
        /* Orange Text on Hover */
        border-color: var(--accent-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .mobile-nav-item i,
    .mobile-nav-item svg {
        font-size: 1.1em;
    }
}

/* Mobile Off-Canvas Auth Section */
.off-canvas-auth {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    margin-top: auto;
    /* Push to bottom if flex container allows */
}

.off-canvas-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.off-canvas-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.off-canvas-body::-webkit-scrollbar {
    display: none;
}

.user-greeting {
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.auth-buttons-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.off-canvas-auth .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 15px;
}

/* Fix mobile auth buttons */
.off-canvas-auth .btn-primary {
    color: #ffffff !important;
    background-color: var(--accent-color) !important;
    border: 1px solid var(--accent-color) !important;
}

.off-canvas-auth .btn-outline {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    background: transparent !important;
}

.off-canvas-auth .btn-outline:hover {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}

.off-canvas-auth .btn-primary:hover {
    background: var(--accent-hover) !important;
    opacity: 0.9;
}

/* Removed redundant/overriding style stripping - Card styles are now consolidated at line 17568 */

/* Product Specifications Grid */
.specifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Responsive columns */
    gap: 1.5rem;
    /* Spacing between items */
    padding: 1rem 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-light, #f9f9f9);
    /* Use variable or fallback */
    border-radius: 8px;
    /* Slightly rounded corners */
    border: 1px solid var(--border-color, #eee);
    /* Subtle border */
}

.spec-item.full-width {
    grid-column: 1 / -1;
    /* Span full width */
}

.spec-label {
    font-weight: 600;
    color: var(--text-color, #333);
    margin-right: 1rem;
    min-width: 100px;
    /* Ensure labels align somewhat */
}

.spec-value {
    color: var(--text-light, #666);
    flex: 1;
    /* Take remaining space */
    text-align: right;
    /* Align values to the right */
    word-break: break-word;
    /* Prevent long words from breaking layout */
}

/* Ensure links in specs are styled */
.spec-value a {
    color: var(--accent-color, #e11b23);
    text-decoration: none;
}

.spec-value a:hover {
    text-decoration: underline;
}

/* Tag badges style if not already defined */
.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-light, #fff7ed);
    color: var(--accent-color, #e11b23);
    border-radius: 9999px;
    /* Pill shape */
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .specifications-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .spec-value {
        text-align: left;
    }
}

/* Product Image Aspect Ratio Fix */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    /* 2:3 Aspect Ratio */
    overflow: hidden;
    border-radius: 0;
    background-color: #f3f4f6;
}

@media (max-width: 768px) {
    .product-image-wrapper {
        padding-top: 120%;
        /* Reduced height on mobile */
    }
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile Price Adjustments */
@media (max-width: 480px) {
    .product-price-wrapper {
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 4px;
    }

    .product-price {
        font-size: 0.85rem !important;
    }

    .product-compare-price {
        font-size: 0.75rem !important;
    }
}

/* Image Zoom Effect (Lens Zoom) */
.product-slide {
    position: relative;
    cursor: crosshair;
}

.img-zoom-lens {
    position: absolute;
    border: 1px solid #d4d4d4;
    /* Size will be set by JS based on magnification */
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: crosshair;
    display: none;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through if needed, though mousemove is on parent */
}

/* On desktop, the result box appears to the right */
.img-zoom-result {
    position: absolute;
    border: 1px solid #e5e7eb;
    width: 500px;
    height: 500px;
    background-repeat: no-repeat;
    display: none;
    z-index: 10000;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    pointer-events: none;
    /* Positioning will be handled by JS to stay relative to the image or fixed */
}

@media (max-width: 991px) {

    /* Disable zoom on mobile or make it different if needed */
    .img-zoom-lens,
    .img-zoom-result {
        display: none !important;
    }
}

/* HIGH SPECIFICITY SIDEBAR SCROLLBAR HIDING */
aside#productsSidebar,
.products-sidebar,
#productsSidebar,
#filterForm,
.products-sidebar form {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

aside#productsSidebar::-webkit-scrollbar,
.products-sidebar::-webkit-scrollbar,
#productsSidebar::-webkit-scrollbar,
#filterForm::-webkit-scrollbar,
.products-sidebar form::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Global Sidebar Scrollbar Hiding - Ensure it's hidden under all conditions */
.products-sidebar,
#productsSidebar,
.products-sidebar form,
#filterForm {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.products-sidebar::-webkit-scrollbar,
#productsSidebar::-webkit-scrollbar,
.products-sidebar form::-webkit-scrollbar,
#filterForm::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.product-price-wrapper {
    display: flex;
}

/* ============================================
   Product Details Page - Sticky Scroll Behavior (Flipkart Style)
   ============================================ */

/* Desktop and Tablet: Sticky Scroll (≥768px) - ONLY on Product Page */
@media (min-width: 768px) {
    .product-page .product-details {
        display: flex;
        gap: 1rem;
        align-items: stretch;
    }

    /* Both sections sticky with equal height - ONLY direct children */
    .product-page .product-details>.product-images,
    .product-page .product-details>.product-info {
        position: sticky;
        min-height: 600px;
    }

    /* Equal width for both sections */
    .product-page .product-details>.product-images {
        flex: 1;
        width: 50%;
    }

    .product-page .product-details>.product-info {
        flex: 1;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
    }

    .product-info .product-title-page {
        font-size: 1.5rem !important;
    }
}

/* Tablet specific adjustments (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .product-page .product-details {
        gap: 1.5rem;
    }

    .product-page .product-details>.product-images,
    .product-page .product-details>.product-info {
        min-height: 500px;
    }
}

/* Desktop specific adjustments (≥992px) */
@media (min-width: 992px) {
    .product-page .product-details {
        gap: 1.5rem;
    }
}

/* Mobile: Normal Stacking Layout (<768px) */
@media (max-width: 767px) {
    .product-page .product-details {
        display: block;
    }

    .product-page .product-details>.product-images,
    .product-page .product-details>.product-info {
        position: static;
        width: 100%;
        max-width: 100%;
        padding: 0;
        min-height: auto;
    }

    .product-page .product-details>.product-images {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   Product Features Section
   ============================================ */

.product-features {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
}

.feature-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Tablet and Mobile */
@media (max-width: 991px) {
    .product-features {
        gap: 1rem;
    }

    .feature-item {
        gap: 0.75rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-content h4 {
        font-size: 0.9rem;
    }

    .feature-content p {
        font-size: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .product-features {
        flex-direction: row;
        gap: 0;
        padding: 0.25rem 0;
        justify-content: space-between;
        margin: 0.5rem 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px;
        flex: 1;
        padding: 0.25rem;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
    }

    .feature-icon svg {
        width: 16px;
        height: 16px;
    }

    .feature-content h4 {
        font-size: 0.65rem;
        line-height: 1;
        margin: 0;
    }

    .feature-content p {
        display: none;
    }
}

/* =========================================
   Product Page Redesign - The Souled Store Style
   ========================================= */

.product-page {
    font-family: 'Montserrat', sans-serif !important;
    background-color: #ffffff;
    padding-top: 30px;
    padding-bottom: 50px;
}

.product-page h1,
.product-page h2,
.product-page h3,
.product-page h4,
.product-page h5,
.product-page h6,
.product-page p,
.product-page span,
.product-page a,
.product-page button,
.product-page input,
.product-page label {
    font-family: 'Montserrat', sans-serif !important;
}

/* Breadcrumb */
.product-page .breadcrumb {
    margin-bottom: 20px;
}

.product-page .breadcrumb-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    color: #58595b;
}

.product-page .breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}

.product-page .breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #ccc;
}

.product-page .breadcrumb-list a {
    color: #58595b;
    text-decoration: none;
    transition: color 0.2s;
}

.product-page .breadcrumb-list a:hover {
    color: #111;
}

.product-page .breadcrumb-list .active {
    color: #111;
    font-weight: 600;
}

/* Layout - Desktop Grid */
@media (min-width: 992px) {
    .product-page .product-details {

        grid-template-columns: 1.6fr 1fr;
        /* Image area larger */
        gap: 50px;
        align-items: start;
        position: relative;
    }

    /* Sticker Sidebar */
    .product-page .product-info {
        position: sticky;
        top: calc(var(--nav-height) + 20px);

        height: fit-content;
        background: #fff;
        z-index: 10;
        padding-top: 10px;
        padding-right: 10px;
    }

    /* Image Grid - 2 Column */
    .product-page .product-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
    }

    /* Override Slider Styles */
    .product-page .product-slider-container,
    .product-page .product-slider-wrapper,
    .product-page .slick-list,
    .product-page .slick-track {
        display: contents !important;
    }

    .product-page .product-slide {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        float: none !important;
        display: block !important;
        /* Ensure aspect ratio or fit is good */
        background: #f9f9f9;
    }

    .product-page .product-slide img {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 4px;
        /* Slight radius */
        object-fit: cover;
    }

    /* Hide Slick controls */
    .product-page .slick-arrow,
    .product-page .slick-dots {
        display: none !important;
    }

    /* Hide Gallery Thumbnails on Desktop */
    .product-gallery {
        display: none !important;
    }

    .product-page .wishlist-icon-btn,
    .product-page .native-share-btn {
        display: none;
    }
}

/* Typography & Product Info */
.product-page .product-info h3 {
    font-size: 1.5rem;
    /* Slightly smaller than 28 for balance */
    font-weight: 700;
    color: #111;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.product-page .product-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.product-rating {
    margin-bottom: 12px;
}

/* Price Section */
.product-page .product-price-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

}

.product-page .product-price {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.product-page .product-compare-price {
    font-size: 16px;
    color: #a7a9ac;
    text-decoration: line-through;
    font-weight: 400;
}

.product-page .product-discount {
    color: #e11b23;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(225, 27, 35, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Attribute Selection */
.product-page .option-group {
    margin-bottom: 25px;
}

.product-page .option-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-page .option-label span {
    color: #e11b23;
    /* Required asterisk or note color */
    margin-left: 4px;
    font-weight: 700;
}

/* Size/Generic Buttons */
.product-page .size-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-page .attribute-option-btn {
    min-width: 55px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 50px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 500;
    color: #282c3f;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 15px;
}

.product-page .attribute-option-btn:hover {
    border-color: #111;
}

.product-page .attribute-option-btn.selected,
.product-page .attribute-option-btn.active {
    background: #fff;
    border-color: #111;
    color: #111;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #111;
}

.product-page .attribute-option-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

/* Color Options */
.product-page .color-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-page .color-option-item {
    cursor: pointer;
    border: 1px solid transparent;
    padding: 3px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 44px;
    /* Explicit size */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-page .color-option-item.active {
    border-color: #111;
}

.product-page .color-option-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid #efefef;
}

.product-page .color-name {
    display: none;
}

/* Quantity & Actions */
.product-page .quantity-selector-wrapper {
    margin-bottom: 25px;
}

.product-page .quantity-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

.product-page .quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    height: 40px;
    background: #fff;
}

.product-page .quantity-btn {
    width: 35px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #111;
    cursor: pointer;
    transition: background 0.2s;
}

.product-page .quantity-btn:hover {
    background: #e11b23;
    color: #fff;
}

.product-page .quantity-controls input {
    width: 40px;
    height: 100%;
    border: none;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #111;
    background: transparent;
}

.product-page .product-actions-row {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.product-page .action-buttons {
    flex: 1;
    display: flex;
    gap: 15px;
    min-width: 300px;
}

.product-page .btn {
    height: 52px;
    /* Taller, impactful buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    outline: none;
    box-shadow: none;
}

.product-page .btn-add-cart {
    background-color: #e11b23;
    border: 1px solid #e11b23;
    color: #ffffff;
}

.product-page .btn-add-cart:hover {
    background-color: #ce1921;
    border-color: #ce1921;
}

.product-page .btn-buy-now {
    background-color: #ffffff;
    border: 1px solid #e11b23;
    /* Accent color border */
    color: #e11b23;
}

.product-page .btn-buy-now:hover {
    background-color: #fff5f5;
}

.product-page .btn-wishlist {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #282c3f;
    min-width: 140px;
    /* Ensure enough width for text */
}

.product-page .btn-wishlist:hover {
    border-color: #282c3f;
    background-color: #f9f9f9;
}

.product-page .btn-wishlist.active {
    border-color: #e11b23;
    color: #e11b23;
}

.product-page .btn-wishlist svg {
    transition: all 0.2s ease;
}

.product-page .btn-wishlist.active svg {
    fill: currentColor;
    color: #e11b23;
}

/* Accordion Style */




.product-page .accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-page .accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.product-page .accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.product-page .accordion-content {
    display: none;
    padding-bottom: 25px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.product-page .accordion-content.active {
    display: block;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .product-page {
        padding-top: 10px;
        padding-bottom: 90px;
        /* Space for sticky bar */
    }

    .product-page .breadcrumb {
        margin-bottom: 10px;
    }

    .product-page .product-details {
        display: block;
    }

    .product-page .product-images {
        margin-bottom: 20px;
    }

    /* Ensure slider works on mobile */
    /* Ensure slider works on mobile */
    .product-page .product-slider-container {
        overflow: hidden;
    }

    .product-page .product-slider-wrapper {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        /* Firefox */
        gap: 0;
    }

    .product-page .product-slider-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .product-page .product-slide {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: center;
    }

    .product-page .product-info {
        padding: 0 5px;
        /* Tiny buffer */
    }

    .product-page .product-info h3 {
        font-size: 20px;
        margin-top: 5px;
    }

    .product-page .product-price {
        font-size: 22px;
    }

    .product-page .product-actions-row {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        margin-top: 0;
    }

    .product-page .quantity-selector-wrapper {
        display: none;
    }

    .product-page .action-buttons {
        gap: 10px;
        min-width: auto;
    }

    .product-page .btn {
        height: 48px;
        font-size: 14px;
    }
}

/* =========================================
   Product Page Redesign - TSS Style V2 (Strict Overrides)
   ========================================= */


/* Force specific colors only on product page */
.product-page {
    --primary-color: #282c3f;
    /* Dark Grey/Black for text */
    --accent-color: #e11b23;
    /* TSS Red */
    --text-color: #282c3f;
    --success-color: #117a7a;
}

.product-page .wishlist-icon-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: #282c3f;
    transition: all 0.3s ease;
}

.product-page .wishlist-icon-btn.active {
    color: #e11b23;
}

.product-page .wishlist-icon-btn:hover {
    transform: scale(1.1);
    color: #e11b23;
}

.product-page .native-share-btn {
    position: absolute !important;
    top: 60px !important;
    /* Below the wishlist button to avoid overlap */
    right: 10px !important;
    left: auto !important;
    /* Reset any left positioning */
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: #282c3f;
    transition: all 0.3s ease;
}

.product-page .native-share-btn:hover {
    transform: scale(1.1);
    color: #e11b23;
}

/* Force Gallery Visibility - HIDDEN per user request */
.product-gallery#product-gallery-container {
    display: none !important;
}

/* Desktop Product Image Grid Layout */
@media (min-width: 992px) {
    .product-page .product-slider-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        overflow: visible !important;
        height: auto !important;
    }

    .product-page .product-slide {
        width: 100% !important;
        height: auto !important;
        flex: none !important;
    }

    .product-page .product-slide img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Hide slider controls on desktop if they exist */
    .product-page .slider-arrow {
        display: none !important;
    }
}


.product-gallery .gallery-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.2s;
}

.product-gallery .gallery-thumb:hover,
.product-gallery .gallery-thumb.active {
    border-color: #e11b23;
}

.product-gallery .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Force Font globally on product page */
.product-page,
.product-page h1,
.product-page h2,
.product-page h3,
.product-page button,
.product-page input,
.product-page select,
.product-page .btn {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* ---------------------------------------------------------
   LAYOUT
--------------------------------------------------------- */
@media (min-width: 992px) {
    .product-page .product-details {

        grid-template-columns: 60% 35% !important;
        /* Specific golden ratio-ish */
        gap: 5% !important;
        align-items: start;
    }

    .product-page .product-images {

        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .product-page .product-info {
        position: sticky !important;
        top: -100px !important;
        height: auto !important;
        overflow-y: auto;
        /* Hide scrollbar */
        scrollbar-width: none;
    }
}

/* ---------------------------------------------------------
   TYPOGRAPHY & INFO
--------------------------------------------------------- */
.product-page .product-info h3 {
    font-size: .85rem !important;
    color: #282c3f !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    text-transform: capitalize;
}

.product-page .product-meta,
.product-page .product-category {
    font-size: 16px;
    color: #94969f;
    margin-bottom: 12px;
}

/* ---------------------------------------------------------
   PRICE SECTION (Strict Red/Black)
--------------------------------------------------------- */
.product-page .product-price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

/* Active Price = Black */
.product-page .product-price,
.product-page .product-price.sale-price {
    font-weight: 700 !important;
    /* Black */
}

/* Old Price = Gray Strikethrough */
.product-page .product-compare-price {
    color: #94969f !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}

/* Discount = Red Text (No Badge) */
.product-page .product-discount {

    color: #e11b23 !important;
    /* Red */
    font-weight: 700 !important;
    background: none !important;
    padding: 0 !important;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.product-page .product-discount::before {
    content: '(';
    margin-right: 4px;
    color: #e11b23;
}

.product-page .product-discount::after {
    content: ')';
    margin-left: 4px;
    color: #e11b23;
}

/* ---------------------------------------------------------
   BUTTONS (Strong Red)
--------------------------------------------------------- */
.product-page .action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.product-page .btn {
    border-radius: 4px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    height: 50px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

/* Add To Cart - Default State */
.product-page .btn-add-cart {
    background-color: #e11b23 !important;
    border: 1px solid #e11b23 !important;
    color: #ffffff !important;
    flex: 2 !important;
    /* Wider than buy now/wishlist */
}

.product-page .btn-add-cart:hover {
    background-color: #c4141b !important;
    border-color: #c4141b !important;
}

.product-page .btn-add-cart:disabled {
    background-color: #f5f5f5 !important;
    color: #aaa !important;
    border-color: #ddd !important;
}

/* Buy Now / Wishlist - Secondary */
.product-page .btn-buy-now {
    background-color: #ffffff !important;
    border: 1px solid #dcdcdc !important;
    color: #282c3f !important;
    flex: 1 !important;
}

.product-page .btn-buy-now:hover {
    border-color: #282c3f !important;
}


/* ---------------------------------------------------------
   VARIANTS & SELECTORS
--------------------------------------------------------- */
.product-page .option-label {
    font-size: 14px;
    font-weight: 700;
    color: #282c3f;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Size Pills */
.product-page .attribute-option-btn {
    border: 1px solid #babbbe !important;
    color: #282c3f !important;
    background: #fff !important;
    border-radius: 50px !important;
    min-width: 50px;
    height: 40px;
    font-weight: 500;
    font-size: 14px;
}

.product-page .attribute-option-btn:hover {
    border-color: #282c3f !important;
}

.product-page .attribute-option-btn.active,
.product-page .attribute-option-btn.selected {
    border-color: #e11b23 !important;
    color: #e11b23 !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px #e11b23 !important;
}

/* Color Circles */
.product-page .color-option-item {
    width: 50px !important;
    height: 50px !important;
    padding: 2px !important;
    border: 1px solid transparent !important;
}

.product-page .color-option-item.active {
    border-color: #282c3f !important;
}

/* ---------------------------------------------------------
   SPECIFICATIONS & SHIPPING (Key: Value List)
--------------------------------------------------------- */
.product-page .specifications-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.product-page .spec-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start !important;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    border: none;
    border-bottom: 1px dashed #eaeaec;
    background: transparent;
    text-align: left;
    width: 100%;
}

.product-page .spec-item:last-child {
    border-bottom: none;
}

.product-page .spec-label {
    font-size: 13px;
    font-weight: 700;
    color: #282c3f;
    text-transform: capitalize;
    margin: 0;
    min-width: 120px;
    width: 50% !important;
    flex-shrink: 0;
}

.product-page .spec-label::after {
    content: ":";
}

.product-page .spec-value {
    font-size: 13px;
    font-weight: 400;
    color: #555;
    text-align: left !important;
    line-height: 1.5;
}

.product-page .shipping-info h3,
.product-page .returns-info h3,
.product-page .purchase-note h3 {
    font-size: 12px !important;
    /* Strict max 14px */
    font-weight: 700;
    text-transform: uppercase;
    color: #282c3f;
    margin-bottom: 8px;
    margin-top: 15px;
    text-align: left;
}

.product-page .shipping-info p,
.product-page .returns-info p,
.product-page .purchase-note p {
    font-size: .85rem !important;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
    text-align: left;
}

/* Delivery Details Section */
.delivery-details {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.delivery-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.delivery-header svg {
    color: var(--accent-color);
}

.delivery-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pincode-input-group {
    display: flex;
    max-width: 320px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.pincode-input-group:focus-within {
    border-color: var(--accent-color);
}

.pincode-input-group input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: transparent;
    outline: none !important;
}

.pincode-input-group button {
    background: transparent;
    border: none;
    padding: 0 1.25rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 1px solid var(--border-color);
}

.pincode-input-group button:hover {
    background: var(--bg-light);
}

.pincode-status {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    min-height: .55rem;
}

.pincode-status.success {
    color: #10b981;
}

.pincode-status.error {
    color: #ef4444;
}

.delivery-info-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.delivery-info-item svg {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .delivery-details {
        padding: 1.25rem 0;
    }

    .pincode-input-group {
        max-width: 100%;
    }
}

/* Shipping Selection Styles */
.shipping-methods {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.shipping-method-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-method-item:hover {
    border-color: var(--accent-color);
    background: rgba(249, 115, 22, 0.02);
}

.shipping-method-item.selected {
    border-color: var(--accent-color);
    background: rgba(249, 115, 22, 0.05);
}

.shipping-method-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 1.25rem;
    accent-color: var(--accent-color);
}

.method-details {
    flex: 1;
}

.method-name-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.method-name-cost strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.method-cost {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.method-delivery {
    font-size: 0.9rem;
    color: var(--text-light);
}

.loading-methods {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

.shipping-preview p,
.payment-preview p,
.address-preview p {
    margin: 0;
    line-height: 1.5;
}

.shipping-preview strong {
    color: var(--accent-color);
}

/* Checkout Page Offer Badges */
.method-info {
    display: flex;
    align-items: flex-start;
    /* Align badge to top */
    width: 100%;
    justify-content: space-between;
    /* Ensure space between name and badge/desc */
    gap: 10px;
    /* Prevent badge from touching text */
}

/* Ensure description breaks to new line if needed, or stays with name */
.method-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Take available width */
    min-width: 0;
    /* Enable text wrapping/truncation inside flex item */
}

.method-desc {
    font-size: 0.85em;
    color: #666;
    margin-top: 2px;
}

.payment-method .offer-badge {
    background-color: transparent;
    color: #28a745;
    border: 1px solid #c3e6cb;
    /* Subtle border */
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 0;
    /* Flex gap handles spacing */
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Prevent wrapping */
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Checkout Sidebar Offer Tags */
.offers-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.offer-tag {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    color: #444;
    display: flex;
    flex-direction: column;
    width: 48%;
    flex: 1 0 45%;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.offer-tag.payment-offer {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

.offer-tag.generic-offer {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.offer-tag-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.offer-icon {
    font-size: 12px;
}

.offer-title {
    font-weight: 700;
    color: #222;
    font-size: 11px;
}

.offer-tag.payment-offer .offer-title {
    color: #d87c00;
}

.offer-tag-detail {
    font-size: 10px;
    color: #777;
    margin-top: auto;
}

/* Card Styling for Checkout Sections */
.checkout-section,
.order-summary-card,
.checkout-offers-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.checkout-section .section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.checkout-section .section-header h2 {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
}

/* Checkout Page Layout - Grid Fix for Desktop */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.checkout-main {
    min-width: 0;
    /* Prevents grid item from overflowing */
}

.checkout-sidebar {
    width: 100%;
}

/* Responsive adjustment for mobile/tablet */
/* Responsive adjustment for mobile/tablet */
@media (max-width: 991px) {
    .checkout-layout {
        display: flex;
        flex-direction: column;
    }

    .checkout-sidebar {
        width: 100%;
        margin-top: 30px;
        position: relative !important;
        top: auto !important;
    }

    /* Fix mobile padding issue */
    .checkout-page .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
    }

    .checkout-main {
        min-width: 100%;
    }


    .checkout-main,
    .checkout-sidebar {
        padding-right: 0;
        /* Remove any potential right padding */
    }

    /* Reduce spacing inside cards on mobile */
    .checkout-section,
    .order-summary-card,
    .checkout-offers-section {
        padding: 15px;
        margin-bottom: 15px;
    }
}

/* Modern Classic Product Offers Section */
#productOffersModern {
    position: relative;

    overflow: hidden;
    display: block !important;
}

/* Header Styling */
#productOffersModern h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#productOffersModern h3::before {
    content: "⚡";
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.2));
}

/* Offers List Layout */
#productOffersModern .offers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Offer Badges - Modern Card Style */
#productOffersModern .offer-badge {
    background: #ffffff !important;
    border: 1px solid var(--accent-color) !important;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

#productOffersModern .offer-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

/* Offer Title */
#productOffersModern .offer-badge strong {
    color: #ea580c !important;
    /* Force distinct orange color */
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 1 !important;
    visibility: visible !important;
}

#productOffersModern .offer-badge strong::before {
    content: "🏷️";
    font-size: 1.1rem;
}

/* Offer Description */
#productOffersModern .offer-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-left: 1.6rem;
    line-height: 1.5;
}

/* Offer Payment Method */
#productOffersModern .offer-payment {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1.6rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(249, 115, 22, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    width: fit-content;
}

#productOffersModern .offer-payment::before {
    content: "✓";
}

body .product-offers-section .offer-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

/* Offer Title */
body .product-offers-section .offer-badge strong {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body .product-offers-section .offer-badge strong::before {
    content: "🏷️";
    font-size: 1.1rem;
}

/* Offer Description */
body .product-offers-section .offer-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-left: 1.6rem;
    /* Align with text */
    line-height: 1.5;
}

/* Offer Payment Method */
body .product-offers-section .offer-payment {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1.6rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(249, 115, 22, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    width: fit-content;
}

/* Removed old offer payment badge style */

/* Mobile Product Card Price Wrapper */
@media (max-width: 576px) {
    .product-price-wrapper {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-price {
        font-size: 1.1rem !important;
    }

    .product-compare-price {
        font-size: 1.1rem !important;
    }
}


/* FINAL DEFINITIVE FIX FOR SOCIAL SHARING */
.static-page.blog-detail-page .container .blog-detail-wrapper {
    display: grid !important;
    grid-template-columns: 80px 1fr 450px !important;
    gap: 2rem !important;
    width: 100% !important;
}

.blog-details-nav-sticky {
    position: sticky !important;
    top: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    height: fit-content !important;
    z-index: 9999 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.social-nav-link {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #e11b23 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.social-nav-link svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
}

.social-nav-link.copy-link svg {
    fill: none !important;
    stroke: currentColor !important;
}

.social-nav-link:hover {
    transform: scale(1.15) !important;
}

@media (max-width: 1300px) {
    .static-page.blog-detail-page .container .blog-detail-wrapper {
        grid-template-columns: 60px 1fr 400px !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 1100px) {
    .static-page.blog-detail-page .container .blog-detail-wrapper {
        display: block !important;
    }

    .blog-details-nav-sticky {
        position: static !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin-bottom: 2rem !important;
        width: 100% !important;
        gap: 2rem !important;
        border-bottom: 1px solid #eee !important;
        padding-bottom: 1rem !important;
    }
}

/* RESPONSIVE TYPOGRAPHY FOR BLOG DETAIL */
@media (max-width: 991px) {
    .static-page.blog-detail-page .blog-detail-title { 
        font-size: 1.75rem !important; 
        margin-bottom: 1rem !important; 
        line-height: 1.3 !important; 
    }
    .static-page.blog-detail-page .blog-detail-excerpt { 
        font-size: 1.05rem !important; 
        margin-bottom: 1rem !important;
    }
    .static-page.blog-detail-page .blog-detail-body { 
        font-size: 1rem !important; 
        line-height: 1.7 !important; 
    }
    .static-page.blog-detail-page .blog-detail-body h2 { font-size: 1.5rem !important; margin: 1.5rem 0 1rem !important; }
    .static-page.blog-detail-page .blog-detail-body h3 { font-size: 1.25rem !important; margin: 1.25rem 0 0.75rem !important; }
}
