﻿/* Main Styles */

/* =========================================
   Magento Base Style Resets
   ========================================= */
/* Reset Magento's default wrapper and CMS styles */
.wrapper,
.page,
.main-container,
.main,
.col-main,
.col1-layout,
.col2-left-layout,
.std {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    background: none !important;
}

/* Hide default CMS page title on homepage - multiple selectors for safety */
.cms-index-index h1,
.cms-home h1,
body.cms-index-index .col-main h1,
body.cms-home .col-main h1,
.cms-page-view h1:first-of-type,
main>h1:first-child,
.col-main>h1:first-child {
    display: none !important;
}

/* Reset main element */
main {
    display: block;
    width: 100%;
}

/* Hero slider full width fix */
.hero-slider {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

/* =========================================
   通用样式 (Global Basics)
   ========================================= */
body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-family-base);
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    /* 防止横向滚动 */
}

body.filter-open,
body.nav-open {
    overflow: hidden;
}

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

img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: 1400px;
    /* 大屏更宽 */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.mt-md {
    margin-top: var(--spacing-md);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

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

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

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

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

/* =========================================
   Header & Navigation
   ========================================= */
/* 公告条 */
.announcement-bar {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.announcement-bar p {
    margin: 0;
    padding: 0;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Mobile: absolute-center inside the relative header-inner */
    position: absolute;
    left: 50%;
    transform: translateX(-67%);
    padding-bottom: 20px;
}

@media (min-width: 768px) {

    /* Desktop: back to normal flex flow */
    .logo {
        position: static;
        transform: none;
    }

    .logo img {
        width: 60% !important;
    }
}

/* Responsive Utilities */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }
}

/* 头部图标区 */
.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.icon-link {
    font-size: 0.9rem;
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    display: flex;
    align-items: center;
}

/* Mobile Search Slide Down */
.mobile-search-bar-container {
    background: #fff;
    border-top: 1px solid #eee;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 99;
}

.mobile-search-bar-container.active {
    max-height: 80px;
    border-bottom: 1px solid #eee;
}

.mobile-search-form {
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.mobile-search-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Desktop Nav (Mega Menu Logic) */
.desktop-nav {
    display: none;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Mobile Nav Sidebar (Left) */
.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    /* Hidden left */
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #fdfbf7;
    /* Light beige bg from image */
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-sidebar.active {
    left: 0;
}

.nav-sidebar-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid #e0e0e0;
}

.btn-close-nav {
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: var(--spacing-md);
    padding: 0;
}

.join-signin {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    margin-top: var(--spacing-sm);
}

.mobile-nav-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md) 0;
}

.mobile-nav-list li a {
    display: flex;
    justify-content: space-between;
    padding: 12px var(--spacing-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.mobile-nav-list li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-nav-list .arrow {
    color: #999;
}

/* Mobile Nav Bottom: Quick Links */
.mobile-nav-quick-links {
    padding: 15px var(--spacing-md) 10px;
    border-top: 1px solid #e0e0e0;
}

.quick-links-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.quick-links-grid a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.quick-links-grid a:hover {
    color: #000;
}

.quick-links-grid a svg {
    flex-shrink: 0;
}

/* Mobile Nav Bottom: Social Icons */
.mobile-nav-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 15px var(--spacing-md) 25px;
    border-top: 1px solid #e0e0e0;
}

.mobile-nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    transition: all 0.2s;
}

.mobile-nav-social a:hover {
    background: #333;
    color: #fff;
}

/* Footer Social List with Icons */
.footer-social-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social-list li a svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-social-list li a:hover svg {
    opacity: 1;
}

/* =========================================
   Hero Section & Others (Unchanged mostly)
   ========================================= */
/* =========================================
   Hero Slider (Carousel)
   ========================================= */
.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    width: 100%;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.8);
    pointer-events: none;
    /* Fix for swipe issues */
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    padding: var(--spacing-md);
    max-width: 600px;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    display: none;
    /* Mobile first: hidden */
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-content {
    color: #fff;
    padding: var(--spacing-md);
    max-width: 600px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.hero-content p {
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

/* Category Layout Styles */
.category-header {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    text-align: center;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: var(--spacing-sm);
}

.page-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.color-swatches-scroll {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding-bottom: 8px;
    /* Reduced from var(--spacing-sm) to eliminate excess space below filters */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    justify-content: flex-start;
}

.color-swatches-scroll::-webkit-scrollbar {
    height: 4px;
}

.color-swatches-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.color-swatches-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .clear-all-btn-mobile {
        display: none !important;
    }
}

.color-swatches-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.swatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 auto;
    width: 65px;
    padding: 8px 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.swatch-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swatch-label {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    color: #666;
    text-transform: uppercase;
    max-width: 100%;
    /* Added to fix CLS when changing from 1 to 2 lines */
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swatch-container:hover .swatch-label {
    color: #000;
}

/* Active State */
.swatch-container.active {
    border-color: #e74c3c;
    background-color: transparent;
}

.swatch-container.active .swatch-label {
    color: #e74c3c;
}

.swatch-container.active .swatch-circle::after {
    content: '';
    width: 12px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -3px;
}

.swatch-container.active .swatch-circle.text-dark::after {
    border-color: #333;
}

.mobile-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.color-filter-load-more {
    text-align: center;
    width: 100%;
}

.color-filter-load-more button {
    display: inline-block;
    margin: 0 auto;
}

.mobile-sort select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.85rem;
}

/* Sidebar (Off-canvas on Mobile) */
.sidebar-filters {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    padding: var(--spacing-md);
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar-filters.active {
    right: 0;
}

/* Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-only {
    display: block;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #eee;
    margin-bottom: var(--spacing-md);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-close-filter {
    background: none;
    border: none;
    font-size: 0.9rem;
    text-decoration: underline;
    color: #666;
    cursor: pointer;
}

.sidebar-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid #eee;
}

.filter-group {
    margin-bottom: var(--spacing-lg);
}

.filter-group h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.filter-group ul {
    font-size: 0.9rem;
}

.filter-group li {
    margin-bottom: 6px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-xl);
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.page-link.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-link.disabled {
    color: #ccc;
    pointer-events: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.category-item {
    text-align: center;
    display: block;
}

.cat-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    background-color: var(--light-gray);
}

.cat-image img {
    height: 100%;
    transition: transform 0.5s ease;
}

.category-item:hover .cat-image img {
    transform: scale(1.05);
}

.category-item h3 {
    font-size: 0.9rem;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md) var(--spacing-sm);
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-image {
    background-color: var(--light-gray);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    display: block;
    position: relative;
}

.product-info h3 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 400;
}

.product-info .price {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-swatches {
    margin-top: 4px;
    display: flex;
    gap: 4px;
}

/* Renamed from .card-swatches span to allow .swatch-count to coexist */
.card-swatches .swatch-dot,
.card-swatches span:not(.swatch-count) {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
    border: 1px solid #ddd;
    cursor: pointer;
    /* Critical to fix iOS Safari delegated click issue */
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.collection-item {
    position: relative;
    
    overflow: hidden;
    background-color: var(--light-gray);
}

.collection-item img {
    height: 100%;
}

.collection-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.collection-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.link-underlined {
    border-bottom: 1px solid #fff;
    font-size: 0.9rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
    padding: var(--spacing-lg) 0;
    background-color: var(--light-gray);
}

.feature-item .icon-box {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xs);
}

.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding-top: var(--spacing-xl);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.footer-col .footer-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: #fff;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: var(--radius-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    text-align: center;
    color: #999;
    font-size: 0.8rem;
}


/* =========================================
   Tablet Breakpoint (768px+)
   ========================================= */
@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .collection-grid {
        grid-template-columns: 1fr 1fr;
    }

    .collection-item.large {
        grid-column: span 2;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   Desktop Breakpoint (1024px+)
   ========================================= */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }

    .desktop-nav {
        display: flex;
        flex: 1;
        justify-content: center;
    }

    .desktop-nav>ul {
        display: flex;
        gap: var(--spacing-lg);
        height: 100%;
        align-items: center;
    }

    .desktop-nav>ul>li {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .desktop-nav>ul>li>a {
        font-weight: 500;
        text-transform: uppercase;
        font-size: 0.9rem;
        cursor: pointer;
        padding: 20px 0;
        /* Increase hit area */
        position: relative;
    }

    .desktop-nav>ul>li>a:hover {
        color: var(--accent-color);
        text-decoration: none;
        border-bottom: 2px solid var(--accent-color);
    }

    /* MEGA MENU STYLES */
    .has-mega-menu:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        top: 60px;
        /* Aligns with bottom of header */
    }

    .mega-menu {
        position: absolute;
        top: 60px;
        /* Offset to sit right below the header */
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 900;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        padding: 30px 0;
    }

    .mega-menu-inner {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1.5fr;
        /* 4 cols */
        gap: 30px;
    }

    .mega-col h4 {
        font-size: 0.9rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 15px;
        color: #000;
    }

    .mega-col ul li {
        margin-bottom: 8px;
    }

    .mega-col ul li a {
        font-size: 0.85rem;
        color: #555;
    }

    .mega-col ul li a:hover {
        color: #000;
        text-decoration: underline;
    }

    .color-list li {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .color-list .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 1px solid #eee;
    }

    .mega-images-col {
        grid-column: 4;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .mega-img img {
        height: 180px;
        object-fit: cover;
        margin-bottom: 8px;
    }

    .mega-img span {
        display: block;
        text-align: center;
        font-size: 0.8rem;
        text-transform: uppercase;
        font-weight: 600;
    }

    /* DESKTOP SEARCH */
    .desktop-search-form {
        display: flex;
        align-items: center;
        border-bottom: 1px solid #333;
        margin-right: var(--spacing-sm);
    }

    .desktop-search-form input {
        border: none;
        padding: 6px;
        font-size: 0.9rem;
        outline: none;
        background: transparent;
        width: 150px;
        transition: width 0.3s;
    }

    .desktop-search-form input:focus {
        width: 200px;
    }

    .desktop-search-form .search-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }


    /* Hero */
    /* Hero */
    .hero-slider {
        height: 80vh;
    }

    .hero-content h2 {
        font-size: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }

    .collection-item.large {
        grid-column: span 1;
        grid-row: span 2;
        aspect-ratio: auto;
        height: 100%;
    }

    .hidden-mobile {
        display: block !important;
    }

    .sidebar-filters {
        position: sticky;

        right: auto;
        width: auto;
        height: auto;
        max-width: none;
        background: transparent;
        z-index: auto;
        box-shadow: none;
        padding: 0;
        overflow-y: visible;
        transition: none;
    }

    .mobile-only {
        display: none;
    }

    .category-layout {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: var(--spacing-xl);
        align-items: start;
    }

    .mobile-filter-bar {
        display: none;
    }

    .category-grid-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .color-swatches-scroll {
        justify-content: flex-start;
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (min-width: 1440px) {
    .container {
        padding: 0 var(--spacing-xl);
    }

    .category-grid-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================
   Product Page Styles (Product Detail)
   ========================================= */

/* Breadcrumbs */
.breadcrumb-container {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 0;
    margin-bottom: 5px;
    /* Ensure tight spacing */
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #666;
    padding: 0;
    list-style: none;
    /* No dots */
}

/* Separator via CSS */
.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
    color: #ccc;
    font-size: 0.8rem;
}

.breadcrumb-list li a:hover {
    text-decoration: underline;
}

/* Product Detail Section Layout */
.product-detail-section {
    padding-bottom: var(--spacing-xl);
}

/* Gallery (Mobile First - Swipe Slider) */
.product-gallery {
    margin-bottom: var(--spacing-lg);
    position: relative;
    /* Context for badges absolute */
}

.main-image-slider {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
    scrollbar-width: none;
    position: relative;
}

.main-image-slider::-webkit-scrollbar {
    display: none;
}

.main-image-slider img,
.main-image-slider video {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    object-fit: cover;
    display: block;
    aspect-ratio: 3/4;
    /* Reduce height proportionally */
}

/* Mobile Gallery Badges Overlay */
.slider-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.badge-counter {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-color-label {
    display: none;
    /* Hidden by default */
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Gallery Wrapper (Default Block for Mobile) */
.gallery-wrapper {
    display: block;
    width: 100%;
    /* Ensure full width on mobile */
}

/* Thumbnails (Hidden on Mobile) */
.thumbnail-list {
    display: none;
    /* Hide standard thumbs on mobile */
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .gallery-wrapper {
        display: block;
        position: relative;
        padding-left: 116px;
        /* 100px thumb + 16px gap */
        min-height: 400px;
        /* Prevent collapse if slider loads late */
    }

    .thumbnail-col {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 100px;
        gap: 8px;
        padding-bottom: 40px;
        /* Space for down arrow */
        z-index: 10;
        order: 0;
        /* Keep valid syntax */
    }

    .thumbnail-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 0;
        overflow-y: hidden;
        /* Hide scrollbar */
        scroll-behavior: smooth;
        flex: 1;
        /* Fill remaining height in col */
        max-height: 100%;
    }

    /* Arrow Styles */
    .thumb-scroll-up,
    .thumb-scroll-down {
        display: none;
        /* JS toggles flex */
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 5px 0;
        background: #fff;
        /* Ensure visibility */
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .thumb-scroll-down {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        margin: 0;
        z-index: 2;
    }

    .thumb-scroll-up:hover,
    .thumb-scroll-down:hover {
        background: #f5f5f5;
        border-color: #000;
    }

    .thumbnail-list img {
        width: 100%;
        aspect-ratio: 3/4;
        object-fit: cover;
        cursor: pointer;
        opacity: 0.6;
        transition: opacity 0.3s;
        border: 1px solid transparent;
    }

    .thumbnail-list img.active,
    .thumbnail-list img:hover {
        opacity: 1;
        border-color: #000;
    }

    /* Slider Container and Main Image Slider */
    .slider-container {
        width: 100%;
        /* Height defined by content (images) */
    }

    .main-image-slider {
        /* Default block behavior REMOVED - Return to Flex for horizontal layout */
        /* Ensure no scrollbar on desktop, JS handles 100% */
        overflow: hidden;
    }
}



/* Mobile: Ensure these specific elements are hidden */
@media (max-width: 767px) {

    .thumb-scroll-up,
    .thumb-scroll-down,
    .thumbnail-col {
        display: none !important;
    }
}



/* Slider Container (Mobile/Global) */
.slider-container {
    position: relative;
    width: 100%;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: var(--spacing-sm);
}

.rating {
    color: #000;
    font-weight: 500;
}

.product-price {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.old-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: #999;
}

.payment-info {
    font-size: 0.85rem;
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-sm);
}

/* Options (Color/Size) */
.product-options {
    margin-bottom: var(--spacing-lg);
}

.option-group {
    margin-bottom: var(--spacing-md);
}

.option-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-opt {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.color-opt.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.size-guide-link {
    font-size: 0.8rem;
    text-decoration: underline;
}

.size-opt {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    /* Explicitly set color to prevent iOS Safari blue text */
    -webkit-appearance: none;
    /* Reset native styling */
    margin-right: 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Size Details Container - Black & White Theme */
.size-details-container {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: none;
    animation: fadeIn 0.3s ease;
}

.size-details-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.unit-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.toggle-switch {
    width: 36px;
    height: 18px;
    background: #000;
    border-radius: 18px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    /*background: #fff;*/
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active {
    background: #333;
}

.toggle-switch.active::after {
    transform: translateX(18px);
}

.measurements-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
}

.measurements-table th {
    font-weight: 600;
    color: #000;
    padding-bottom: 12px;
    font-size: 0.8rem;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
}

.measurements-table td {
    padding: 12px 4px;
    color: #333;
    font-weight: 400;
    border-bottom: 1px solid #eee;
}

.measurements-table tr:last-child td {
    border-bottom: none;
}

/* Size Options Grid Layout */
.size-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns per row */
    gap: 8px;
}

.size-opt:first-child {
    grid-column: span 2;
    /* Custom Size spans 2 columns */
    width: 100%;
}

.size-opt {
    width: 100%;
    height: 40px;
    padding: 0 5px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    /* Explicitly set color to prevent iOS Safari blue text */
    -webkit-appearance: none;
    /* Reset native styling */
    cursor: pointer;
    /* Fix iOS click delegation */
}

.size-opt.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.size-opt.disabled {
    color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Rush Production Options */
.production-options {
    margin-bottom: var(--spacing-lg);
}

.rush-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.rush-opt {
    border: 1px solid #ddd;
    padding: 6px 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    transition: all 0.2s;
    min-height: 40px;
}

.rush-opt.active {
    background: #000;
    border-color: #000;
}

.rush-opt.active span {
    color: #fff;
}

.rush-opt .days {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0px;
}

.rush-opt .rush-price {
    font-size: 0.75rem;
    color: #666;
}

.rush-opt.active .days,
.rush-opt.active .rush-price {
    color: #fff;
}

/* Additional Requirements */
.additional-requirements {
    margin-top: 20px;
}

.additional-requirements textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.9rem;
    background: #fff;
}

.additional-requirements textarea:focus {
    border-color: #000;
    outline: none;
}



/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.btn-add-bag {
    flex: 1;
    padding: 14px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.btn-favorite {
    width: 50px;
    font-size: 1.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accordion */
.accordion-item {
    border-top: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
}

.accordion-content {
    font-size: 0.9rem;
    color: #555;
    padding-bottom: 15px;
    line-height: 1.5;
    /* Normally hidden with JS, showing for design */
}

/* Reviews Section */
.reviews-section {
    border-top: 1px solid #eee;
    padding-top: var(--spacing-xl);
}

/* Review Header - Two Column Layout (PC) */
.reviews-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.reviews-header-left {
    flex: 0 0 220px;
}

.reviews-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.review-stars-big {
    font-size: 1rem;
    letter-spacing: 1px;
}

.review-stars-big .star.filled,
.review-stars .star.filled {
    color: #f5a623;
}

.review-stars-big .star.half {
    color: #f5a623;
    opacity: 0.6;
}

.review-stars-big .star.empty,
.review-stars .star.empty {
    color: #ddd;
}

.big-rating {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c77900;
    /* Darkened from #f5a623 for contrast */
}

.review-count-text {
    font-size: 0.75rem;
    color: #595959;
    margin: 0;
}

.btn-write-review {
    display: inline-block;
    width: 100%;
    max-width: 180px;
    padding: 12px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Right Column: Photo Gallery */
.reviews-header-right {
    flex: 1;
    min-width: 0;
    /* Prevent flex child from overflowing */
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.review-gallery-container {
    flex: 1;
    min-width: 0;
    /* Prevent flex child from overflowing */
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.gallery-nav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.gallery-nav:hover {
    border-color: #000;
    color: #000;
}

.review-photos-slider {
    flex: 1;
    min-width: 0;
    /* Critical for overflow to work in flex */
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.review-photos-slider::-webkit-scrollbar {
    display: none;
}

.review-photo-slide {
    flex: 0 0 100px;
    height: 130px;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #eee;
    transition: border-color 0.2s;
}

.review-photo-slide:hover {
    border-color: #000;
}

.review-photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lazy Loading Skeleton Animation */
.lazy-image {
    min-width: 80px;
    min-height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    animation: none;
    background: none;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.view-all-photos {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    text-decoration: none;
    line-height: 1.4;
}

.view-all-photos:hover {
    color: #000;
}

/* Mobile Photo Gallery */
.review-photos-mobile {
    display: none;
    margin-bottom: 25px;
}

.photos-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.photos-title-mobile {
    font-size: 0.95rem;
    font-weight: 500;
}

.view-all-link {
    font-size: 0.85rem;
    color: #666;
    text-decoration: underline;
}

.review-photos-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.review-photos-scroll::-webkit-scrollbar {
    display: none;
}

.review-photo-thumb-mobile {
    flex: 0 0 80px;
    height: 100px;
    cursor: pointer;
    overflow: hidden;
    scroll-snap-align: start;
}

.review-photo-thumb-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .reviews-header-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .reviews-header-left {
        flex: none;
        width: 100%;
    }

    .reviews-header-right {
        display: none;
        /* Hide PC gallery on mobile */
    }

    .btn-write-review {
        max-width: 100%;
    }

    .review-photos-mobile {
        display: block;
    }
}

/* Reviews List */
.reviews-list .review-item {
    padding: 20px;
    background: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 8px;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.review-user {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2e7d32;
    /* Darkened from #4caf50 for contrast */
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.verified-text {
    font-size: 0.8rem;
    color: #595959;
}

.review-date {
    font-size: 0.8rem;
    color: #595959;
    margin-left: auto;
}

.reviewer-info .review-stars {
    font-size: 0.9rem;
}

.review-stars {
    color: #000;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Review Title */
.review-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

/* Review Form Styles */
.write-review-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.write-review-form .btn,
.btn-write-review,
.reviews-section .btn-primary {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.write-review-form .btn:hover,
.btn-write-review:hover,
.reviews-section .btn-primary:hover {
    background: #333;
    opacity: 0.9;
}

/* Legacy styles - keeping for compatibility */
.review-photos-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.photos-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Review Photos Gallery (top section) - legacy */
.review-photos-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.review-photo-thumb {
    width: 80px;
    height: 100px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: border-color 0.2s, transform 0.2s;
}

.review-photo-thumb:hover {
    border-color: #000;
    transform: scale(1.02);
}

.review-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Review Images in Individual Reviews */
.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.review-image-thumb {
    width: 70px;
    height: 90px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eee;
    transition: border-color 0.2s;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-image-thumb:hover {
    border-color: #000;
}

.review-image-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* =========================================
   Review Lightbox Modal (PC)
   ========================================= */
.review-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.review-lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    padding: 10px;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-content {
    display: flex;
    max-width: 1000px;
    max-height: 90vh;
    background: #fff;
    overflow: hidden;
}

.lightbox-image-container {
    flex: 0 0 60%;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.lightbox-image-container>img {
    flex: 1;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    padding: 20px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    padding: 10px 20px 15px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #eee;
}

.lightbox-thumbnails img {
    width: 50px;
    height: 65px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
}

.lightbox-thumbnails img:hover {
    opacity: 1;
}

.lightbox-thumbnails img.active {
    border-color: #000;
    opacity: 1;
}

.lightbox-info {
    flex: 0 0 40%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
}

.lightbox-reviewer {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.lightbox-stars {
    color: #000;
    font-size: 1rem;
    margin-bottom: 15px;
}

.lightbox-title {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.lightbox-detail {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.lightbox-date {
    font-size: 0.8rem;
    color: #595959;
    margin-top: 15px;
}

/* =========================================
   Review Lightbox Modal (Mobile)
   ========================================= */
.review-lightbox-mobile {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.review-lightbox-mobile.active {
    display: flex;
}

.mobile-lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.mobile-lightbox-counter {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.mobile-lightbox-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
}

.mobile-lightbox-slider {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-lightbox-slider::-webkit-scrollbar {
    display: none;
}

.mobile-lightbox-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-lightbox-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive: Hide mobile lightbox elements on PC */
@media (min-width: 768px) {
    .review-lightbox-mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .review-lightbox {
        display: none !important;
    }

    .review-photo-thumb {
        width: 60px;
        height: 75px;
    }

    .review-image-thumb {
        width: 50px;
        height: 65px;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}


/* =========================================
   Desktop Product Tabs
   ========================================= */
.desktop-product-tabs {
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.tabs-header {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    text-transform: uppercase;
    color: #595959;
    padding-bottom: 10px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #000;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* Overlap border */
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    /* Black Theme */
}

.tabs-content .tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 40px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #555;
}

.detail-item .label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

/* Shipping Text */
.text-content h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    margin-top: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

.text-content h4:first-child {
    margin-top: 0;
}

.text-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #333;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* Optional circle styles */
    color: #666;
    transition: all 0.2s;
}

.share-icon:hover {
    color: #000;
    background: #f5f5f5;
}

/* =========================================
   Product Page Responsive (Tablet+)
   ========================================= */
@media (min-width: 768px) {
    .product-detail-section {
        display: grid;

        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        align-items: start;
    }

    .product-gallery {
        margin-bottom: 0;
    }

}

/* =========================================
   Fullscreen Image Viewer (Lightbox)
   ========================================= */
.fullscreen-viewer {
    position: fixed;
    inset: 0;
    background-color: #333;
    z-index: 2000;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s;
}

.fullscreen-viewer.active {
    display: flex;
    opacity: 1;
}

.btn-close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 2002;
    padding: 10px;
}

.btn-close-viewer svg {
    width: 32px;
    height: 32px;
}

.viewer-counter {
    position: absolute;
    top: 30px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    z-index: 2001;
    pointer-events: none;
}

.fullscreen-slider {
    flex: 1;
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fullscreen-slider::-webkit-scrollbar {
    display: none;
}

.fullscreen-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

.fullscreen-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =========================================
   Login Page Styles
   ========================================= */
.login-section {
    padding: var(--spacing-xl) 0;
    background-color: #fff;
    min-height: 60vh;
    /* Ensure footer pushes down */
    display: flex;
    align-items: center;
    /* Vertical center if height is large */
}

.auth-container {
    width: 100%;
    /* Default mobile width handled by container class */
}

.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

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

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #000;
    outline: none;
}

.form-actions-top {
    text-align: right;
    margin-bottom: var(--spacing-lg);
}

.forgot-password {
    font-size: 0.85rem;
    color: #666;
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.divider {
    text-align: center;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.divider span {
    background: #fff;
    padding: 0 10px;
    color: #999;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 0;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--spacing-lg);
}

.btn-social {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-social:hover {
    background: #f9f9f9;
}

.btn-facebook {
    color: #3b5998;
    border-color: #3b5998;
}

.btn-google {
    color: #db4437;
    border-color: #ddd;
}

.register-prompt {
    text-align: center;
    font-size: 0.9rem;
}

.register-prompt a {
    text-decoration: underline;
    font-weight: 500;
}

/* =========================================
   Shopping Cart Styles (Mobile First)
   ========================================= */
.cart-page {
    padding: var(--spacing-xl) 0;
    background-color: #fff;
    min-height: 60vh;
}

.cart-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.cart-items-wrapper {
    width: 100%;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.cart-item {
    display: flex;
    flex-direction: column;
    /* Stack on mobile */
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    gap: 15px;
}

.item-product {
    display: flex;
    gap: 15px;
}

.item-img {
    width: 80px;
    height: 100px;
    background: #f9f9f9;
    flex-shrink: 0;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1rem;
    margin-bottom: 5px;
}

.item-name a {
    color: #000;
    text-decoration: none;
}

.item-meta {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.item-price.mobile-hidden {
    display: none;
    /* Hide individual price col on mobile, show in total or details? */
}

.item-qty {
    display: flex;
    align-items: center;
}

.qty-control {
    display: flex;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    height: 36px;
}

.btn-qty {
    width: 30px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.qty-control input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 0.9rem;
    padding: 0;
}

.item-total {
    font-weight: 600;
    font-size: 1rem;
    /* On mobile, maybe show total near quantity or at bottom of card */
}

@media (max-width: 767px) {
    .cart-header {
        display: none;
        /* Hide header on mobile */
    }

    .cart-item {
        flex-direction: row;
        /* Keep image left */
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .item-product {
        width: 100%;
    }

    .item-qty {
        margin-top: 10px;
    }

    .item-total {
        display: none !important;
        margin-top: 10px;
        margin-left: auto;
        /* Push total to right */
    }

    .item-action {
        position: absolute;
        top: 0;
        right: 0;
    }
}

.btn-remove {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.btn-remove:hover {
    color: #d00;
}

/* Summary Box */
.cart-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: var(--radius-sm);
}

.cart-summary h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
}

.promo-code {
    margin: 20px 0;
}

.promo-form {
    display: flex;
    gap: 10px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #000;
}

.btn-checkout {
    padding: 15px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.continue-shopping {
    text-align: center;
    margin-top: 15px;
}

.continue-shopping a {
    text-decoration: underline;
    font-size: 0.9rem;
    color: #666;
}

/* Desktop Auth Layout */
@media (min-width: 768px) {
    .auth-container {
        max-width: 450px;
        margin: 0 auto;
        /* Center form on page */
    }

    .page-title {
        font-size: 2.5rem;
    }

    /* Desktop Cart Layout */
    .cart-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .cart-header {
        display: grid;
        /* Show header on desktop */
    }

    .cart-item {
        flex-direction: row;
        align-items: center;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr 50px;
        gap: 0;
        /* Grid gap handled by template */
    }

    .item-product {
        align-items: center;
        width: auto;
    }

    .item-price.mobile-hidden {
        display: block;
    }

    .item-qty {
        margin-top: 0;
    }

    .item-total {
        margin-top: 0;
        margin-left: 0;
    }

    .item-action {
        position: static;
        text-align: right;
    }
}

/* ========================================= */
/* Mobile Nav Sidebar Refactor (Multi-level) */
/* ========================================= */
.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: #fff;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Important for sliding panels */
}

.mobile-nav-sidebar.active {
    transform: translateX(0);
}

.nav-sidebar-header {
    padding: 10px 15px;
    /* Narrower height */
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    z-index: 2;
    /* Keep header above panels if needed, though panels are below it in DOM */
}

/* Sliding Container */
.menu-slider-container {
    flex: 1;
    display: flex;
    width: 200%;
    /* Two panels wide */
    transition: transform 0.3s ease;
    overflow: hidden;
}

.menu-panel {
    width: 50%;
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
    background-color: #fff;
    /* Light beige/cream background from request - CHANGED to WHITE for theme unification */
}

/* Main Menu List Styling */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid transparent;
    /* Cleaner look */
}

.mobile-nav-list li a,
.mobile-nav-list li.has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--spacing-md);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li.has-submenu:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.mobile-nav-list li .arrow {
    color: #999;
    font-size: 1.1rem;
}

/* Submenu Styles */
.sub-panels-container {
    position: relative;
    background-color: #fff;
    /* Slightly different tone for submenu - CHANGED to WHITE */
}

.sub-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    /* Hidden by default */
    flex-direction: column;
}

.sub-panel.active {
    display: flex;
}

.submenu-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    /* Narrower height */
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.submenu-header .btn-back {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px 0 0;
    font-size: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.submenu-header .title {
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin-right: 24px;
    /* Balance back button */
    text-transform: uppercase;
}

/* Section Title in Submenu */
.mobile-nav-list li.menu-section-title {
    padding: 20px var(--spacing-md) 10px;
    font-weight: 700;
    font-size: 1.1rem;
    background: none;
    pointer-events: none;
    color: #333;
}

/* =========================================
   Size Guide Drawer
   ========================================= */
.size-guide-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 2000;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.size-guide-drawer.active {
    transform: translateY(0);
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.drawer-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.btn-close-drawer {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
    color: #333;
}

.drawer-scroll-content {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.size-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

.size-table th,
.size-table td {
    padding: 10px 12px;
    border: 1px solid #eee;
}

.size-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    position: sticky;
    /* Sticky header if needed? */
    top: 0;
}

.size-table tr:nth-child(even) {
    background-color: #fafafa;
}

.measure-guide-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Ensure overlay works for this too */
.overlay {
    z-index: 1500;
    /* Ensure overlay is below drawer but above content */
}


/* =========================================
   Mobile Margin Adjustments (Max Width 767px)
   ========================================= */
@media (max-width: 767px) {

    /* Remove container padding to allow full-width images */
    .product-detail-section.container,
    .category-header.container,
    .category-layout.container {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }

    /* Add 2px margin/padding to text content as requested (Updated to 6px) */
    .category-header .breadcrumb,
    .category-header .page-title,
    .color-swatches-scroll,
    /* Swatches container */
    .mobile-filter-bar,
    .desktop-toolbar,
    .result-count,
    .breadcrumb-container,
    .product-info-col,
    .product-accordion,
    .reviews-section {
        padding-left: 6px;
        padding-right: 6px;
    }

    /* Grid Item Text Padding */
    .product-card .product-info {
        padding-left: 6px;
        padding-right: 6px;
    }

    /* Ensure Images remain full width */
    .main-image-slider,
    .product-gallery,
    .product-grid-area,
    .category-banner img {
        width: 100%;
        margin: 0;
    }

    /* Fix product grid width to match full width container */
    .product-grid {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}


/* =========================================
   Task: Desktop Margins (Product & Category)
   Scope: Full width with 100px side padding (Overrides Container)
   ========================================= */
@media (min-width: 768px) {

    /* Product & Category Pages: All Containers within Main */
    .page-product main .container,
    .page-category .category-header,
    .page-category .category-layout {
        width: 100% !important;
        max-width: none !important;
        padding-left: 60px !important;
        padding-right: 60px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* =========================================
   Mobile Order Info (Max Width 767px)
   ========================================= */
@media (max-width: 767px) {
    .mobile-order-info .dynamic-date-range {
        font-weight: 700;
        color: #996533;
        margin-left: 5px;
    }

    .mobile-order-info .info-row {
        display: flex;
        align-items: center;
        font-size: 0.85rem;
        color: #000;
        margin-bottom: 8px;
    }

    .mobile-order-info .info-row .label {
        font-weight: 600;
        margin-right: 5px;
        width: 120px;
    }

    .mobile-order-info .info-desc {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        font-size: 0.8rem;
        line-height: 1.5;
        color: #333;
    }
}

/* =========================================
   Mobile Accordion (Max Width 767px)
   ========================================= */
@media (max-width: 767px) {
    .product-accordion {
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        color: #000;
        transition: background-color 0.2s;
    }

    .accordion-header .toggle-icon {
        font-size: 1.2rem;
        font-weight: 300;
    }

    .accordion-content {
        display: none;
        /* Hidden by default */
        padding: 0 20px 20px;
        font-size: 0.85rem;
        color: #333;
        line-height: 1.6;
    }

    .accordion-item.active .accordion-content {
        display: block !important;
    }

    .accordion-content p {
        margin-bottom: 5px;
    }
}

/* =========================================
   Custom Size Drawer
   ========================================= */
.custom-size-drawer,
.picker-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    /* Updated to White */
    z-index: 2000;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.custom-size-drawer.active,
.picker-drawer.active {
    transform: translateY(0);
}

.picker-drawer {
    z-index: 2100;
    background-color: #fff;
    /* Updated to White */
}

/* Header Re-use */
.drawer-header {
    flex-shrink: 0;
    z-index: 10;
    background: #fff;
    /* Updated to White */
    border-bottom: 1px solid #eee;
}

/* Scroll Content */
.drawer-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
}

.drawer-scroll-content.no-padding {
    padding: 0;
    padding-bottom: 80px;
}

/* Unit Toggle */
.unit-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.unit-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    transition: color 0.3s;
}

.unit-label.active {
    color: #000;
    /* Black for active */
}

.toggle-switch-custom {
    width: 44px;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

/* Active State (CM) - Using a class added by JS or relying on structure */
.unit-toggle-container.cm-active .toggle-switch-custom {
    background-color: #000;
    /* Black accent instead of gold */
}

.unit-toggle-container.cm-active .toggle-switch-custom::after {
    transform: translateX(20px);
}

/* Custom Fields List */
.custom-fields-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.custom-field-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

/* Label styling */
.custom-field-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.custom-field-item .field-select {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.custom-field-item .field-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Drawer Fixed Footer */
.drawer-fixed-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 20;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.drawer-fixed-footer .btn {
    width: 100%;
    height: 48px;
    background-color: #000;
    /* Dark button */
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Picker Drawer Styles */
.picker-guide-info {
    padding: 20px;
    background-color: #fff;
    /* Updated to White */
    text-align: center;
}

.guide-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.guide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    mix-blend-mode: multiply;
}

/* Picker Wheel */
.picker-wheel-container {
    position: relative;
    height: 200px;
    background: #fff;
    /* Updated to White */
    overflow: hidden;
    margin-top: 10px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.picker-wheel {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    padding: 80px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.picker-wheel::-webkit-scrollbar {
    display: none;
}

.picker-option {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    font-size: 1rem;
    color: #999;
    transition: all 0.2s;
}

.picker-option.selected {
    color: #000;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Highlight Bar */
.picker-highlight-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 40px;
    margin-top: -20px;
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    pointer-events: none;
    z-index: 5;
}

/* Custom Measurement Display on Product Page */
.custom-measurements-display {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-top: 10px;
}

.custom-measurements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.custom-measurements-grid .measurement-item {
    font-size: 0.9rem;
    color: #333;
}

.custom-measurements-grid .measurement-item strong {
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 5px;
}

/* =========================================
   Spacing Adjustments (User Request)
   ========================================= */

@media (max-width: 767px) {

    /* Category Page Header Spacing */
    .category-header {
        padding-top: 10px;
        padding-bottom: 5px;
    }

    .category-header .page-title {
        margin-bottom: 10px;
        font-size: 1.5rem;
    }

    .mobile-filter-bar {

        /* Slightly reduced */
        padding-top: 5px;
        padding-bottom: 8px;
    }

    /* Product Page Spacing */
    .breadcrumb-container {
        padding-top: 8px;
        padding-bottom: 2px;
        margin-bottom: 5px;
    }

    /* Reduce huge gap between breadcrumb and product images */
    .product-detail-section {
        padding-top: 5px !important;
        /* Overrides .section 32px padding */
    }
}

/* =========================================
   Order Info Box Background (User Request)
   ========================================= */
.product-order-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* =========================================
   About Us Page Styles (.page-about)
   ========================================= */

/* Hero Section */
.about-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 2;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
}

.about-hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.about-hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


/* Brand Intro Section (Left Text, Right Image) */
/* Extra spacing for content sections (User Request) */
.page-about .section.container {
    padding-left: 24px;
    padding-right: 24px;
    max-width: 1200px;
    /* Constrain width slightly for better reading experience */
}

@media (min-width: 768px) {
    .page-about .section.container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

.about-intro-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* =========================================
   Custom Made Page Styles (.page-custom)
   ========================================= */

/* Hero Section (Wide/Full) */
.custom-hero {
    position: relative;
    overflow: hidden;
}

.custom-hero-top {
    position: relative;
    height: 40vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-bg-absolute {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-absolute img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.custom-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.custom-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4 Scenes Grid */
.custom-scenes {
    margin-top: -50px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    padding-bottom: 40px;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.scene-item img {
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Emphasis Bar */
.custom-emphasis-bar {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
}

.custom-emphasis-bar h2 {
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* General Custom Sections */
.custom-section {
    padding: 60px 0;
}

.content-text-block {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.content-text-block p {
    margin-bottom: 20px;
}

/* Benefits Section */
.benefits-section {
    background-color: #f9f9f9;
}

.benefits-container {
    max-width: 800px;
    margin: 30px auto 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.check-icon {
    font-size: 1.2rem;
    color: #222;
    /* Dark check */
    font-weight: bold;
}

.benefit-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Bottom Dark Submit Section */
.custom-submit-section {
    background-color: #111;
    color: #fff;
    padding: 80px 0;
}

.custom-submit-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.info-checklist {
    list-style: none;
    /* Custom bullet */
    padding: 0;
    margin: 20px auto 40px;
    display: inline-block;
    text-align: left;
    max-width: 500px;
}

.info-checklist li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: #ccc;
}

.info-checklist li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fff;
}

.btn-custom-submit {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    padding: 15px 40px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.btn-custom-submit:hover {
    background-color: transparent;
    color: #fff;
}



/* Responsive Styles */
@media (min-width: 768px) {

    /* Submit Section Side-by-Side */
    .submit-content-row {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        /* Align bottom as per visual (button aligns with list end) */
        gap: 40px;
        flex-wrap: wrap;
        margin-top: 40px;
    }

    .info-checklist {
        margin: 0;
        /* Reset margins */
        text-align: left;
    }

    .custom-hero-top {
        height: 60vh;
        min-height: 500px;
    }

    .custom-title {
        font-size: 3.5rem;
    }

    .custom-subtitle {
        font-size: 1.2rem;
    }

    .scene-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .custom-scenes {
        margin-top: -80px;
        /* More overlap */
    }

    .custom-emphasis-bar {
        padding: 40px 0;
    }

    .custom-emphasis-bar h2 {
        font-size: 1.5rem;
    }

    .benefits-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .benefits-list li {
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .custom-hero-top {
        align-items: center;
        /* Center Vertically */
    }

    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.intro-image {
    flex: 1;
    width: 100%;
}

.intro-image img {
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Feature Grid (Cards) */
.about-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 col */
    gap: 20px;
    margin-top: 20px;
}

.about-feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.about-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.about-feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Contact/Bottom Section */
.about-contact {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.about-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .about-hero {
        height: 400px;
    }

    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    /* Tablet: 2 cols features */
    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-hero {
        height: 500px;
    }

    .about-hero-content h1 {
        font-size: 3.5rem;
    }

    /* Desktop: Side by Side Intro */
    .about-intro-grid {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .intro-text {
        text-align: left;
        padding-right: 50px;
    }

    .intro-image {
        max-width: 50%;
    }

    /* Desktop: 3 cols features */
    .about-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .about-feature-card {
        padding: 40px 30px;
    }
}

/* =========================================
   Style Gallery Page Styles (.page-gallery)
   ========================================= */

/* Gallery Hero (Pink) */
.gallery-hero {
    background-color: #fcece9;
    /* Light pink background */
    padding: 60px 0;
    margin-bottom: 30px;
}

.gallery-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.gallery-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 10px 24px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-outline-dark:hover {
    background: #000;
    color: #fff;
}

/* Navigation Tabs (Scrollable) */
.gallery-nav-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.gallery-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 30px;
    padding-bottom: 15px;
    scrollbar-width: none;
    /* Firefox */
}

.gallery-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.gallery-tabs li {
    font-size: 0.95rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
}

.gallery-tabs li.active {
    color: #000;
}

/* Active Indicator */
.gallery-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* Gallery Grid (Masonry-like) */
.gallery-grid-section {
    padding-bottom: 60px;
}

.gallery-masonry {
    column-count: 2;
    column-gap: 15px;
    /* Masonry Layout */
}

.gallery-card {
    break-inside: avoid;
    /* Prevent split across columns */
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
    display: inline-block;
    /* Essential for avoiding breaks in some browsers */
    width: 100%;
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gallery-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-img-wrapper:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-img-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.gallery-author {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-align: left;
}


/* Responsive Gallery */
@media (min-width: 480px) {
    /* Kept 2 columns but maybe adjust gap if needed, or leave as base */
}

@media (min-width: 768px) {
    .gallery-masonry {
        column-count: 3;
    }

    .gallery-tabs {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        column-count: 4;
    }

    .gallery-hero {
        padding: 80px 0;
    }

    .gallery-title {
        font-size: 3rem;
    }
}

/* =========================================
   Gallery Modal Logic (Black & White Theme)
   ========================================= */
.gallery-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.gallery-modal-content {
    background: #fffafa;
    /* Off-white as on reference */
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    /* Fixed height for consistency */
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

/* Mobile Image Slider & Counter (Hidden by default) */
.mobile-image-slider,
.mobile-img-counter {
    display: none;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.5rem;
    color: #000;
    z-index: 10002;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-body-grid {
    display: flex;
    flex: 1;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}

/* Left: Image Column */
.modal-image-col {
    position: relative;
    background: #000;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.0);
    /* Transparent normally */
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 20px;
    transition: background 0.2s;
    user-select: none;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-nav.prev {
    left: 0;
}

.modal-nav.next {
    right: 0;
}


/* Right: Info Column */
.modal-info-col {
    background: #fffafa;
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    color: #000;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Scrollbar for info col */
.modal-info-col::-webkit-scrollbar {
    width: 6px;
}

.modal-info-col::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-info-col::-webkit-scrollbar-thumb {
    background: #888;
}

.modal-user-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-rating {
    color: #000;
    /* Black stars */
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.modal-review-text h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-review-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.modal-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
}

.modal-divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.modal-shop-look h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-product-card {
    border: 1px solid #eee;
    padding: 10px;
    width: fit-content;
    background: #fff;
}

.modal-prod-link {
    display: block;
    text-decoration: none;
    color: #000;
}

.modal-prod-img {
    width: 150px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.modal-prod-details {
    text-align: left;
}

.modal-prod-name {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.modal-prod-price {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}


/* Responsive Modal */
@media (min-width: 768px) {
    .modal-body-grid {
        flex-direction: row;
        overflow: hidden;
    }

    .modal-image-col {
        flex: 1.5;
        /* Image takes more space */
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    .modal-info-col {
        flex: 1;
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        padding: 40px;
        justify-content: flex-start;
    }
}

/* Multi-Image Icon */
.multi-img-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Thumbnails */
.modal-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 20px;
    max-width: 90%;
    overflow-x: auto;
}

.thumbnail-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.thumbnail-img:hover {
    opacity: 1;
}

.thumbnail-img.active {
    border-color: #fff;
    opacity: 1;
    transform: scale(1.1);
}

/* =========================================
   Mobile Specific Modal Enhancements
   ========================================= */
@media (max-width: 767px) {

    /* Slide in from right */
    .gallery-modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        opacity: 1;
        /* Reset opacity logic from base, rely on slide */
    }

    .gallery-modal.active .gallery-modal-content {
        transform: translateX(0);
    }

    /* Hide Desktop Elements */
    .modal-main-img,
    .modal-thumbnails,
    .modal-nav {
        display: none !important;
    }

    /* Show Mobile Slider */
    .mobile-image-slider {
        display: flex;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        align-items: center;
    }

    .mobile-image-slider img {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        scroll-snap-align: center;
    }

    /* Mobile Counter */
    .mobile-img-counter {
        display: block;
        position: absolute;
        bottom: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.8rem;
        z-index: 5;
    }

    /* Disable Hover Overlay on Mobile */
    .gallery-img-wrapper:hover .gallery-overlay {
        opacity: 0 !important;
    }

    /* Disable Image Zoom on Mobile */
    .gallery-img-wrapper:hover img {
        transform: none !important;
    }
}

/* =========================================
   Product Hover Image (Back View)
   ========================================= */
.product-image {
    position: relative;
    /* Context for absolute positioning */
    overflow: hidden;
    /* Ensure images don't overflow border radius */
}

.product-image .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    z-index: 2;
    /* Above main image */
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 1024px) {
    .product-image .hover-img {
        display: block;
        /* Only show on desktop */
    }
}

@media (min-width: 1024px) {
    .product-image:hover .hover-img {
        opacity: 1;
        /* Show on hover for Desktop */
    }
}

/* =========================================
   Category Page Refactor Styles
   ========================================= */
.desktop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.desktop-toolbar .toolbar-left {
    display: flex;
    align-items: baseline;
}

.desktop-toolbar .toolbar-right {
    display: flex;
    align-items: center;
}

.item-count {
    color: #666;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* =========================================
   Category Layout Fix
   ========================================= */
.category-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.breadcrumb {
    width: 100% !important;
    margin-bottom: 20px;
}

.sidebar-filters {
    width: 250px;
    flex-shrink: 0;
}

.product-grid-area {
    flex: 1;
    /* Take remaining space */
    min-width: 0;
    /* Prevent flex overflow */
}

@media (max-width: 1023px) {
    .category-layout {
        display: block;
    }

    .sidebar-filters {
        display: none;
        /* Handled by mobile drawer logic usually, or hidden */
        width: 100%;
    }

    .sidebar-filters.active {
        display: block;
        /* Mobile slide-in logic applies separately */
    }
}

/* =========================================
   Sidebar Refactor Styles (Reference Image)
   ========================================= */
.sidebar-filters h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.clean-list li {
    margin-bottom: 8px;
}

.clean-list li a {
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.clean-list li a:hover {
    text-decoration: underline;
}

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

.checkbox-list li {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #333;
}

.visual-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.visual-item {
    border: 1px solid #eee;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.visual-item:hover {
    border-color: #000;
}

.icon-placeholder-dress {
    display: block;
    width: 20px;
    height: 30px;
    background: #f0f0f0;
    /* Simple placeholder */
    margin: 0 auto;
    line-height: 30px;
    color: #999;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group.collapsed h3 {
    color: #666;
    cursor: pointer;
}

.filter-group-toggle span {
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    margin-bottom: 20px;
    display: block;
}

/* Toolbar Refinement */
/* Price Slider Mock */
.price-slider-mock {
    padding: 10px 0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.price-slider-mock input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

.price-slider-mock input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    margin-top: -5px;
}

.price-slider-mock input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #ddd;
    border-radius: 2px;
}


/* =========================================
   Product Card Enhancements (Swatches & Reviews)
   ========================================= */
.card-swatches {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.card-swatches .swatch-dot.active {
    border-color: #000;
    box-shadow: 0 0 0 1px #000 inset;
    transform: scale(1.1);
}

.swatch-count {
    font-size: 0.8rem;
    color: #666;
    margin-left: 4px;
    white-space: nowrap;
    display: inline-block;
    width: auto !important;
    height: auto !important;
    border: none !important;
}

.card-reviews {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.card-reviews .stars {
    color: #d4af37;
    /* Gold */
    display: flex;
    gap: 1px;
}

.card-reviews .review-count {
    color: #555;
}

.card-reviews .star.filled {
    color: #d4af37;
}

.card-reviews .star.empty {
    color: #ccc;
}

.stars-overlay-container {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    color: #ccc;
    /* Default empty color */
}

.stars-bg {
    color: #ccc;
    white-space: nowrap;
}

.stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #d4af37;
    /* Filled color */
}

/* =========================================
   Category Page Overrides (Moved from inline)
   ========================================= */
/* Filter Group Styling - Match Static Reference */
.filter-group h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    color: #333;
}

.filter-group .clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group .clean-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.filter-group .clean-list a {
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.filter-group .clean-list a:hover {
    color: #c9a07a;
    text-decoration: underline;
}

/* PC Styles: Ensure Sidebar is visible and correct */
@media (min-width: 992px) {

    /* PC Container padding - match static reference */
    .category-layout.container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Layout Container */
    .category-layout {
        display: flex;
        gap: 30px;
        /* Space between sidebar and grid */
        max-width: 1400px;
        margin: 0 auto;
    }

    .mobile-filter-bar {
        display: none !important;
    }

    /* Sidebar Column */
    .sidebar-filters {
        display: block !important;
        position: relative;
        /* Changed from sticky to relative - sidebar now scrolls with page */
        width: 250px;
        /* Match static reference: 250px */
        flex-shrink: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        z-index: 1;
        height: auto;
        /* Natural height */
        align-self: flex-start;
        /* Align to top of flex container */
    }

    /* Product Grid Column */
    .product-grid-area {
        flex-grow: 1;
        min-width: 0;
        /* Prevent flex overflow */
    }

    .btn-close-filter {
        display: none !important;
    }

    /* Hide mobile header in sidebar */
    .sidebar-header.mobile-only {
        display: none !important;
    }
}

/* Mobile Styles: Off-Canvas Sidebar */
@media (max-width: 991px) {
    .category-layout {
        display: block;
    }

    /* Filter Bar */
    .mobile-filter-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;

        padding: 2px 0;
        border-bottom: 1px solid #eee;
    }

    .mobile-sort select {
        /*border: none;*/
        background: transparent;
        /*font-weight: bold;*/
        font-size: 14px;
        padding-right: 20px;
    }

    /* Off-Canvas Drawer */
    .sidebar-filters {
        position: fixed;
        top: 0;
        left: -100%;
        /* Hidden */
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        z-index: 99999;
        overflow-y: auto;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        display: block;
        /* Override generic hidden logic */
    }

    .sidebar-filters.active {
        left: 0;
        /* Visible */
    }

    /* Drawer Header */
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
    }

    .sidebar-header h2 {
        margin: 0;
        font-size: 18px;
        text-transform: uppercase;
    }

    .btn-close-filter {
        background: none;
        border: none;
        font-size: 14px;
        text-decoration: underline;
        color: #666;
    }

    /* Content Styling */
    .filter-group {
        padding: 20px;
        border-bottom: 1px solid #eee;
    }

    .sidebar-footer {
        padding: 20px;
        background: #fff;
        position: sticky;
        bottom: 0;
        border-top: 1px solid #eee;
    }
}

/* =========================================
   Toolbar Pagination Styles (Moved from inline)
   ========================================= */
.bottom-pagination {
    margin-bottom: 50px;
}

.desktop-toolbar .pagination-wrapper {
    display: none;
}

.pagination .toolbar-left {
    display: none;
}

.pagination .toolbar-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* =========================================
   PRODUCT PAGE STYLES
   ========================================= */

/* Product Detail Section */
.product-detail-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

@media (min-width: 1024px) {
    .product-detail-section {
        flex-direction: row;
        gap: 50px;
    }
}

/* Product Gallery */
.product-gallery {
    flex: 1;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .product-gallery {
        max-width: 55%;
    }

    /* Desktop: Hide slider scroll, JS handles image swap */
    .main-image-slider {
        overflow: hidden;
        scroll-snap-type: none;
    }

    /* Desktop: Disable snap on images/video */
    .main-image-slider img,
    .main-image-slider video {
        scroll-snap-align: unset;
    }

    .slider-badges {
        display: none;
    }
}

.gallery-wrapper {
    display: block;
    position: relative;
    padding-left: 116px;
    /* 100px thumb + 16px gap */
    min-height: 400px;
}

/* Thumbnail Column */
.thumbnail-col {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100px;
    gap: 8px;
    padding-bottom: 40px;
    /* Space for down arrow */
    z-index: 10;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 0;
    overflow-y: hidden;
    scroll-behavior: smooth;
    flex: 1;
    max-height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-list::-webkit-scrollbar {
    display: none;
}

.thumbnail-list img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 1px solid transparent;
}

.thumbnail-list img:hover,
.thumbnail-list img.active {
    opacity: 1;
    border-color: #000;
}

/* Arrow Styles */
.thumb-scroll-up,
.thumb-scroll-down {
    display: none;
    /* JS toggles flex */
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thumb-scroll-down {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    z-index: 2;
}

.thumb-scroll-up:hover,
.thumb-scroll-down:hover {
    background: #f5f5f5;
    border-color: #000;
}

/* Slider Container */
.slider-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.main-image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
}

.main-image-slider::-webkit-scrollbar {
    display: none;
}

.main-image-slider img,
.main-image-slider video {
    flex: 0 0 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3/4;
}

/* Mobile Video Slide in Gallery */
.mobile-video-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 3/4;
    scroll-snap-align: start;
    display: block;
    background: #000;
    position: relative;
    overflow: hidden;
}

.mobile-video-slide iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    /* Allow touch to pass through */
    /* Scale to fill container (crop if needed) */
    transform: translate(-50%, -50%) scale(1.3);
    object-fit: cover;
}

/* Base Gallery Image Visibility (Desktop) */
.gallery-image-wrapper {
    display: none;
    /* Hide all by default */
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.gallery-image-wrapper:first-of-type,
.gallery-image-wrapper[style*="display: block"] {
    display: block;
    /* Show first one or when forced by JS */
}

/* Touch overlay for swipe and click on video */
.video-touch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}

/* Fullscreen Video Slide */
.fullscreen-video-slide {
    position: relative;
}

.fullscreen-video-slide iframe {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
    pointer-events: none;
    /* Allow touch to pass through for swipe/close */
}

/* PC: Hide mobile video slide */
@media (min-width: 1024px) {
    .mobile-video-slide {
        display: none !important;
    }
}

/* Slider Badges */
.slider-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.badge-color,
.badge-counter {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Desktop Product Tabs */
.desktop-product-tabs {
    margin-top: 30px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #666;
    transition: all 0.2s;
}

.tab-btn:hover,
.tab-btn.active {
    color: #000;
    border-bottom-color: #000;
}

.tabs-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

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

.details-content {
    line-height: 1.7;
    color: #444;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.detail-item {
    font-size: 14px;
    color: #444;
}

.detail-item .label {
    font-weight: 600;
    color: #000;
}

.text-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0 8px;
}

.text-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Social Share */
.social-share {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-share>span {
    font-size: 13px;
    color: #666;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #555;
    transition: all 0.2s;
}

.share-icon:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* Product Info Column */
.product-info-col {
    flex: 1;
}

@media (min-width: 1024px) {
    .product-info-col {
        max-width: 45%;
    }
}

.product-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 10px;
}

@media (min-width: 1024px) {
    .product-title {
        font-size: 26px;
    }
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}



.product-meta .rating {
    font-size: 14px;
    color: #f5a623;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.product-price .current-price {
    font-size: 26px;
    font-weight: 600;
    color: #000;
}

.product-price .old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.payment-info {
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.payment-info strong {
    color: #000;
}

/* Product Options */
.product-options {
    margin-bottom: 20px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group>label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.label-row label {
    font-size: 14px;
}

.label-row label strong {
    font-weight: 600;
}

.size-guide-link {
    font-size: 13px;
    color: #555;
    text-decoration: underline;
}

.size-guide-link:hover {
    color: #000;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-opt {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.color-opt:hover,
.color-opt.active {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

/* Size Options */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-opt {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    /* Explicitly set color to prevent iOS Safari blue text */
    -webkit-appearance: none;
    /* Reset native styling */
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.size-opt:hover,
.size-opt.active {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Rush Production Options */
.production-options {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.rush-choices {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.rush-opt {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.rush-opt:hover,
.rush-opt.active {
    border-color: #000;
}

.rush-opt.active {
    background: #000;
    color: #fff;
}

.rush-opt .days {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rush-opt .rush-price {
    display: block;
    font-size: 12px;
    color: #888;
}

.rush-opt.active .rush-price {
    color: rgba(255, 255, 255, 0.8);
}

/* Additional Requirements */
.additional-requirements textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.additional-requirements textarea:focus {
    outline: none;
    border-color: #000;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.btn-add-bag {
    flex: 1;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-favorite {
    width: 50px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-favorite svg {
    width: 20px;
    height: 20px;
}

/* Order Info Box */
.product-order-info {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    margin: 20px 0;
}

.order-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.dynamic-date-range {
    color: #996533;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.info-row .icon {
    color: #666;
    flex-shrink: 0;
}

.info-row .label {
    font-size: 13px;
}

.info-row .value {
    font-size: 13px;
    color: #666;
}

.info-desc {
    font-size: 12px;
    color: #595959;
    margin-top: 15px;
    line-height: 1.5;
}

/* Mobile Accordion */
.product-accordion {
    margin-top: 20px;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.toggle-icon {
    font-size: 20px;
    font-weight: 300;
    color: #666;
}

.accordion-content {
    display: none;
    padding-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* Related Products Section */
.related-products-section {
    padding: 40px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Reviews Section */
.reviews-section {
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.rating-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.big-rating {
    font-size: 48px;
    font-weight: 300;
    color: #c77900;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.review-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-user {
    font-weight: 600;
    font-size: 14px;
}



.review-stars {
    color: #f5a623;
    font-size: 14px;
    margin-bottom: 8px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.no-reviews {
    text-align: center;
    color: #888;
    padding: 30px 0;
}

/* =========================================
   FULLSCREEN IMAGE VIEWER (Mobile Lightbox)
   ========================================= */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.fullscreen-viewer.active {
    display: flex;
}

.btn-close-viewer {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-close-viewer svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.viewer-counter {
    position: absolute;
    top: 30px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    z-index: 2001;
    pointer-events: none;
}

.fullscreen-slider {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fullscreen-slider::-webkit-scrollbar {
    display: none;
}

.fullscreen-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.fullscreen-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hide fullscreen viewer on desktop */
@media (min-width: 1024px) {
    .fullscreen-viewer {
        display: none !important;
    }
}

/* Responsive Visibility Classes */
.list-video-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: none;
    /* JS will change to flex */
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    /* prevents clicking */
}

.list-video-icon svg {
    fill: white;
    margin-left: 3px;
    /* visual center for play triangle */
}

.hidden-mobile {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 1023px) {
    .hidden-mobile {
        display: none !important;
    }

    .breadcrumbs {
        margin: 0 5px !important;
    }

    .mobile-only {
        display: block;
    }

    /* Mobile: Reset gallery layout */
    .gallery-wrapper {
        padding-left: 0;
        min-height: auto;
    }

    /* Force all gallery images to show for scrolling */
    .gallery-image-wrapper {
        display: block !important;
        flex: 0 0 100%;
        width: 100%;
    }

    .thumbnail-col,
    .thumb-scroll-up,
    .thumb-scroll-down {
        display: none !important;
    }
}

/* =========================================
   Product Options - Color/Size/Custom Size
   ========================================= */

/* Color Selector */
.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 2px solid #e0e0e0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.color-swatch:hover {
    border-color: #999;
}

.color-swatch.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-swatch .color-name {
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.1;
    padding: 2px;
    word-break: break-word;
}

/* Size Selector */
.size-selector select,
.delivery-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("https://www.ladypromdress.com/skin/frontend/maga27/default/css/data:image/svg+xml,%3Csv")xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.size-selector select:focus,
.delivery-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Delivery Time Option */
.delivery-option {
    margin-top: var(--spacing-md);
}

/* Custom Size Form */
.custom-size-form {
    background: #faf9f7;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.custom-size-note {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.measurement-unit-choice {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #eee;
}

.unit-options {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.unit-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.measurement-fields {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.measurement-row {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    gap: var(--spacing-sm);
    align-items: center;
}

.measurement-row label {
    font-size: 0.9rem;
    color: #333;
}

.measurement-row label em {
    color: #e74c3c;
    font-style: normal;
    margin-right: 2px;
}

.measurement-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.measurement-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.unit-label {
    font-size: 0.85rem;
    color: #666;
}

/* Size Details Container */
.size-details-container {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: #f9f9f9;
    border-radius: var(--radius-sm);
}

.measurements-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.measurements-table th,
.measurements-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.measurements-table th {
    font-weight: 600;
    color: #333;
}

/* Mobile responsive for measurement rows */
@media (max-width: 480px) {
    .measurement-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .measurement-row label {
        font-weight: 500;
    }

    .measurement-input {
        width: 100%;
    }

    /*    .unit-label {
        display: none;
    }*/
}

/* Unit Toggle Switch */
.unit-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 2px solid #e0e0e0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.color-swatch:hover {
    border-color: #999;
}

.color-swatch.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-swatch .color-name {
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.1;
    padding: 2px;
    word-break: break-word;
}

/* Size Selector */
.size-selector select,
.delivery-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("https://www.ladypromdress.com/skin/frontend/maga27/default/css/data:image/svg+xml,%3Csv")xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.size-selector select:focus,
.delivery-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Delivery Time Option */
.delivery-option {
    margin-top: var(--spacing-md);
}

/* Custom Size Form */
.custom-size-form {
    background: #faf9f7;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.custom-size-note {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.measurement-unit-choice {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #eee;
}

.unit-options {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.unit-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.measurement-fields {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.measurement-row {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    gap: var(--spacing-sm);
    align-items: center;
}

.measurement-row label {
    font-size: 0.9rem;
    color: #333;
}

.measurement-row label em {
    color: #e74c3c;
    font-style: normal;
    margin-right: 2px;
}

.measurement-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.measurement-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.unit-label {
    font-size: 0.85rem;
    color: #666;
}

/* Size Details Container */
.size-details-container {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: #f9f9f9;
    border-radius: var(--radius-sm);
}

.measurements-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.measurements-table th,
.measurements-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.measurements-table th {
    font-weight: 600;
    color: #333;
}

/* Mobile responsive for measurement rows */
@media (max-width: 480px) {
    .measurement-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .measurement-row label {
        font-weight: 500;
    }

    .measurement-input {
        width: 100%;
    }

    /*    .unit-label {
        display: none;
    }*/
}

/* Unit Toggle Switch */
.unit-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #333;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active {
    background-color: var(--primary-color, #333);
}

.toggle-switch.active::before {
    transform: translateX(20px);
}

/* =========================================
   Shopping Cart Page Styles
   ========================================= */

/* Cart Page Layout */
.cart-page {
    padding: var(--spacing-lg) 0;
    min-height: 60vh;
}

.cart-page .page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.cart-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Cart Items Wrapper */
.cart-items-wrapper {
    flex: 1;
}

/* Cart Header - Hidden on mobile */
.cart-header {
    display: none;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
}

/* Individual Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

/* Item Product (Image + Details) */
.item-product {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.item-img {
    flex-shrink: 0;
    width: 80px;
}

.item-img img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.item-name a {
    color: var(--text-color);
}

.item-name a:hover {
    color: var(--primary-color);
}

.item-meta {
    font-size: 0.8rem;
    color: #666;
}

.item-meta p {
    margin: 2px 0;
}

.item-messages {
    margin-top: var(--spacing-xs);
}

.item-messages .message-error {
    color: #e74c3c;
    font-size: 0.8rem;
}

/* Item Price - Hidden on mobile */
.item-price {
    font-weight: 500;
    font-size: 0.95rem;
}

.item-price.mobile-hidden {
    display: none;
}

/* Quantity Control */
.item-qty {
    display: flex;
    align-items: center;
}

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

.qty-control .btn-qty {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-control .btn-qty:hover {
    background: #e0e0e0;
}

.qty-control input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff;
    -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Item Total */
.item-total {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

/* Item Action (Remove button) */
.item-action {
    text-align: center;
}

.btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-remove:hover {
    background: #f5f5f5;
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Update Cart Button Row */
.cart-page .text-right {
    text-align: right;
    margin-top: var(--spacing-md);
}

.cart-page .mt-2 {
    margin-top: var(--spacing-md);
}

.cart-page .btn.small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Cart Summary */
.cart-summary {
    background: #faf9f7;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.cart-summary h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-sm);
    border-top: 2px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Totals Block from Magento */
.cart-summary .totals,
.cart-summary #shopping-cart-totals-table {
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.cart-summary .totals tr,
.cart-summary #shopping-cart-totals-table tr {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.cart-summary .totals td,
.cart-summary #shopping-cart-totals-table td,
.cart-summary .totals th,
.cart-summary #shopping-cart-totals-table th {
    padding: 0;
    font-weight: normal;
    text-align: left;
}

.cart-summary .totals tr:last-child td,
.cart-summary #shopping-cart-totals-table tr:last-child td {
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-summary .totals tr:last-child,
.cart-summary #shopping-cart-totals-table tr:last-child {
    border-top: 2px solid var(--border-color);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

/* Promo Code Form */
.promo-code {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.promo-form {
    display: flex;
    gap: var(--spacing-sm);
}

.promo-form .form-control {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.promo-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.promo-form .btn {
    white-space: nowrap;
}

/* Checkout Button */
.btn-checkout {
    margin-top: var(--spacing-md);
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Checkout Types (Magento methods) */
.checkout-types {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-types li {
    margin-bottom: var(--spacing-sm);
}

/* Continue Shopping Link */
.continue-shopping {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.continue-shopping a {
    font-size: 0.9rem;
    color: #666;
    text-decoration: underline;
}

.continue-shopping a:hover {
    color: var(--primary-color);
}

/* Empty Cart Message */
.cart-page>.container>p {
    text-align: center;
    font-size: 1.1rem;
    padding: var(--spacing-xl) 0;
    color: #666;
}

/* =========================================
   Cart Page - PC Responsive (768px+)
   ========================================= */
@media (min-width: 768px) {
    .cart-page .page-title {
        font-size: 1.75rem;
        text-align: left;
    }

    .cart-layout {
        flex-direction: row;
        gap: var(--spacing-xl);
        align-items: flex-start;
    }

    .cart-items-wrapper {
        flex: 1;
        min-width: 0;
    }

    /* Show cart header on PC */
    .cart-header {
        display: grid;
    }

    /* PC cart item grid */
    .cart-item {
        grid-template-columns: 2fr 1fr 1fr 1fr 50px;
        gap: var(--spacing-md);
    }

    .item-img {
        width: 120px;
    }

    /* Show price on PC */
    .item-price.mobile-hidden {
        display: block;
    }

    .item-total {
        text-align: center;
    }

    /* Cart Summary Sidebar */
    .cart-summary {
        flex-shrink: 0;
        width: 340px;
        position: sticky;
        top: 80px;
    }
}

/* =========================================
   Cart Page - Tablet Only (768px to 1023px)
   ========================================= */
@media (min-width: 768px) and (max-width: 1023px) {
    .cart-layout {
        gap: var(--spacing-md);
    }

    .cart-summary {
        width: 260px;
    }

    .cart-item {
        grid-template-columns: 2.5fr 1fr 1fr 1fr 36px;
        gap: var(--spacing-sm);
    }

    .cart-header {
        grid-template-columns: 2.5fr 1fr 1fr 1fr 36px;
        gap: var(--spacing-sm);
        font-size: 0.75rem;
    }

    .item-img {
        width: 80px;
    }

    .item-name {
        font-size: 0.8rem;
    }

    .item-meta {
        font-size: 0.7rem;
    }

    .item-price,
    .item-total {
        font-size: 0.85rem;
    }

    .qty-control .btn-qty {
        width: 28px;
        height: 28px;
    }

    .qty-control input {
        width: 32px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* =========================================
   Cart Page - Large PC (1024px+)
   ========================================= */
@media (min-width: 1024px) {
    .cart-summary {
        width: 380px;
    }

    .item-img {
        width: 150px;
    }
}

/* =========================================
   Login / Register Page Styles
   ========================================= */
.login-page {
    padding: var(--spacing-xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-section {
    width: 100%;
}

.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.auth-container .page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

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

.auth-form .form-group {
    margin-bottom: var(--spacing-md);
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form .form-control:focus {
    border-color: #000;
    outline: none;
}

.form-actions-top {
    text-align: right;
    margin-bottom: var(--spacing-lg);
}

.forgot-password {
    font-size: 0.85rem;
    color: #666;
    text-decoration: underline;
}

.forgot-password:hover {
    color: #000;
}

.auth-form .btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
}

.divider {
    text-align: center;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.divider span {
    background: #fff;
    padding: 0 10px;
    color: #999;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 0;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--spacing-lg);
}

.btn-social {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-social:hover {
    background: #f9f9f9;
}

.btn-facebook {
    color: #3b5998;
    border-color: #3b5998;
}

.btn-google {
    color: #db4437;
    border-color: #ddd;
}

.register-prompt {
    text-align: center;
    font-size: 0.9rem;
}

.register-prompt a {
    text-decoration: underline;
    font-weight: 500;
}

.register-prompt a:hover {
    color: #000;
}

/* Login Page - PC (768px+) */
@media (min-width: 768px) {
    .auth-container {
        padding: var(--spacing-xl);
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
}

/* =========================================
   Related Products (AJAX + Slider)
   ========================================= */
.related-products-section {
    position: relative;
    padding: 40px 0 60px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.related-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-slider-container {
    overflow: hidden;
    width: 100%;
}

.related-slider {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease-out;
    width: 100%;
}

.related-product-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.related-product-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 279/380;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 10px;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-product-info h3 {
    font-size: 0.9rem;
    margin: 5px 0;
    font-weight: 400;
}

.related-product-info h3 a {
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-product-info .price {
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
}

/* Navigation Buttons (PC) */
.related-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
}

.related-nav-btn:hover:not(:disabled) {
    background: #000;
    color: #fff;
    border-color: #000;
}

.related-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #ccc;
}

/* Skeleton Loading */
.related-skeleton-loading {
    display: flex;
    width: 100%;
    gap: 15px;
    /* Default PC gap */
}

.skeleton-card {
    flex: 0 0 auto;
    /* PC: 7 items, 6 gaps of 15px = 90px total gap */
    width: calc((100% - 90px) / 7);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 279/380;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.skeleton-text,
.skeleton-price {
    height: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-text {
    width: 80%;
}

.skeleton-price {
    width: 40%;
}

.skeleton-image::after,
.skeleton-text::after,
.skeleton-price::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .related-nav-btn {
        display: none !important;
    }

    .related-slider-wrapper {
        display: block;
    }

    .related-slider {
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .related-slider::-webkit-scrollbar {
        display: none;
    }

    .related-product-card {
        scroll-snap-align: start;
    }

    .related-skeleton-loading {
        gap: 10px;
        /* Mobile gap */
    }

    .related-skeleton-loading .skeleton-card {
        /* Mobile: 2 items, 1 gap of 10px = 10px total gap */
        width: calc((100% - 10px) / 2);
    }

    .related-skeleton-loading .skeleton-card:nth-child(n+3) {
        display: none;
        /* Hide 3rd+ skeleton on mobile */
    }
}

/* Fullscreen Loader */
.fs-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: fs-spin 1s linear infinite;
    z-index: 5;
    display: none;
    /* Hidden by default, shown by JS logic */
}

@keyframes fs-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.fullscreen-slide {
    position: relative;
    /* Ensure loader is positioned relative to slide */
}

/* When active (loading), show loader */
.fullscreen-slide.loading .fs-loader {
    display: block;
}

/* =========================================
   Design Your Dress Form Styles
   ========================================= */
.design-dress-form-section {
    background: #f9f9f9;
    padding: 60px 0;
}

.design-dress-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.design-intro {
    text-align: center;
    margin-bottom: 40px;
}

.design-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.design-subtitle {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.design-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c9a07a 0%, #b8905f 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.step-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

#designDressForm {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 0.95rem;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #c9a07a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-row-three {
    grid-template-columns: 1fr;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-container {
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.upload-btn-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-btn-wrapper:hover {
    border-color: #c9a07a;
    background: #f9f9f9;
}

.upload-plus {
    font-size: 3rem;
    color: #c9a07a;
    font-weight: 300;
    line-height: 1;
}

.upload-btn-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.remove-image:hover {
    background: #c0392b;
}

/* Color Palette */
.design-dress-form-section .color-palette {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.design-dress-form-section .color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.design-dress-form-section .color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.design-dress-form-section .color-swatch.selected {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(201, 160, 122, 0.3);
    transform: scale(1.15);
}

/* Captcha */
.captcha-group {
    margin-bottom: 30px;
}

.captcha-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-container img {
    width: 100px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.captcha-container input {
    flex: 1;
    max-width: 200px;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 35px;
}

.btn-submit-design {
    background: linear-gradient(135deg, #c9a07a 0%, #b8905f 100%);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(201, 160, 122, 0.3);
}

.btn-submit-design:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 160, 122, 0.4);
}

.btn-submit-design:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Response */
.form-response {
    margin-top: 25px;
    padding: 15px 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Bottom Text */
.design-bottom-text {
    margin-top: 40px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.design-bottom-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .design-title {
        font-size: 2.5rem;
    }

    .design-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-row-three {
        grid-template-columns: repeat(3, 1fr);
    }

    .color-palette {
        grid-template-columns: repeat(14, 1fr);
        gap: 12px;
    }

    #designDressForm {
        padding: 50px 40px;
    }
}

@media (max-width: 767px) {

    .design-dress-form-section {
        padding: 40px 0;
    }

    .design-title {
        font-size: 1.5rem;
    }

    .design-subtitle {
        font-size: 0.85rem;
    }

    #designDressForm {
        padding: 30px 20px;
    }

    .color-palette {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }

    .btn-submit-design {
        width: 100%;
        padding: 14px 30px;
    }
}

/* =====================================================
   Homepage – New Arrivals Dynamic Grid
   ===================================================== */

/* Loading spinner shared by arrivals + gallery sections */
.home-arrivals-loading,
.home-gallery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.home-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: homeSpinAnim 1s linear infinite;
}

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

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

/* Product grid – mobile first: 2 columns */
.home-arrivals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md) var(--spacing-sm);
}

.home-product-card {
    display: flex;
    flex-direction: column;
}

.home-product-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background-color: var(--light-gray, #f5f5f5);
    margin-bottom: var(--spacing-sm);
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.home-product-info {
    flex: 1;
}

.home-product-name {
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-name a {
    color: inherit;
}

.home-product-price {
    font-size: 0.9rem;
    font-weight: 600;
}

.home-product-price .price-was {
    text-decoration: line-through;
    color: #999;
    margin-right: 6px;
    font-weight: 400;
}

.home-product-price .price-now {
    color: var(--primary-color, #e91e63);
}

/* PC: 4 columns */
@media (min-width: 768px) {
    .home-arrivals-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }
}

/* =====================================================
   Homepage – #MyStoreMoments Gallery Grid
   ===================================================== */

.home-gallery-section {
    background: #fafafa;
}

/* Gallery grid – mobile first: 2 columns */
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.home-gallery-card {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

/* PC: 4 columns */
@media (min-width: 768px) {
    .home-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }
}

/* =====================================================
   Product Details – Attribute Table
   ===================================================== */
.product-attr-details {
    margin-top: 20px;
}

.product-attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.product-attr-table th,
.product-attr-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.product-attr-table th {
    width: 35%;
    color: #666;
    font-weight: 500;
    background: #fafafa;
}

.product-attr-table td {
    color: #333;
    font-weight: 400;
}

.product-attr-table tr:last-child th,
.product-attr-table tr:last-child td {
    border-bottom: none;
}

/* ===== Cart Page Styles (extracted from cart.phtml) ===== */
#cart-ajax-loader.active {
    display: flex !important;
}

.price-surcharge {
    color: #dc3545;
    font-weight: 600;
    margin-left: 5px;
}

.delivery-time-info {
    color: #d35400;
    font-weight: 500;
}

.custom-size-measurements .price-surcharge {
    font-size: 0.9em;
}

.cart_countdown {
    margin-bottom: 10px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.cart_countdown .codetime em {
    font-size: 16px;
    color: #fff;
    background-color: #000;
    padding: 3px 6px;
    font-style: normal;
    border-radius: 3px;
}

.btn-cancel {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.promo-form input[readonly] {
    background-color: #f8f9fa;
}

/* Mobile Sticky Add To Bag / Wishlist */
@media (max-width: 767px) {
    .product-view .action-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        box-sizing: border-box;
        display: flex;
        gap: 12px;
    }

    .product-view .product-info-col {
        padding-bottom: 70px;
    }
}

/* =========================================
   Scroll to Top Widget
   ========================================= */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 130px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: rgba(200, 200, 200, 0.7);
    color: #fff;
    text-align: center;
    border-radius: 50%;
    z-index: 999;
    transition: background-color 0.3s, opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.scroll-to-top:hover {
    background-color: rgba(150, 150, 150, 0.9);
    color: #fff;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 120px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   Header Badges and Coupon Popup
   ========================================= */
.header-actions .icon-link {
    position: relative;
}

.header-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background-color: #ff0000;
    color: #ffffff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    display: none;
    z-index: 10;
    pointer-events: none;
}

.uibackground_coupon {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    display: block;
}

.uibackground_coupon .uiareatable_coupon {
    height: 100%;
    display: table;
    width: 100%;
}

.uibackground_coupon .uiareatable_coupon .uiareatd_coupon {
    height: 100%;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.uidivclose_coupon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    padding: 0;
    box-sizing: content-box;
    cursor: pointer;
}

.uidivclose_coupon img {
    width: 100%;
}

.coupon01 {
    background-color: #fff;
    margin: auto;
    border-radius: 6px;
    height: auto;
    position: relative;
    width: 80%;
    display: block;
}

.coupon01 ul {
    padding: 20px;
}

.coupon01 li {
    text-align: center;
    list-style: none;
    font-size: 20px;
    line-height: 150%;
}

.coupon01 .couponbutton {
    background-color: #ff5555;
    border-radius: 5px;
    display: block;
    cursor: pointer;
    color: #fff;
    padding: 4px;
    font-family: normal;
    margin-top: 8px;
    margin-bottom: 10px;
}

.coupon01 .couponbutton2 {
    cursor: pointer;
    padding: 4px;
    font-family: normal;
    font-size: 16px;
}

.coupon02 {
    background-color: #fff;
    margin: auto;
    border-radius: 6px;
    height: auto;
    position: relative;
    width: 80%;
    display: none;
}

.coupon02 ul {
    padding: 20px;
}

.coupon02 li {
    text-align: center;
    list-style: none;
    font-size: 20px;
    line-height: 200%;
}

.coupon02 li blockquote {
    display: inline-block;
    padding: 1px 20px;
    border: 1px dashed #ff5555;
    border-radius: 5px;
    color: #ff5555;
    font-weight: bold;
    margin: 0 10px;
    line-height: 36px;
    font-size: 24px;
}

@media screen and (min-width:767px) {
    .uidivclose_coupon {
        width: 38px;
        top: -19px;
        right: -19px;
    }

    .coupon01 {
        width: 600px;
    }

    .coupon02 {
        width: 600px;
    }
}

@media screen and (min-width:415px) {
    .coupon01 .couponbutton {
        border-radius: 5px;
        display: block;
        padding: 4px;
        width: 200px;
        margin: 0 auto;
        margin-top: 18px;
        margin-bottom: 20px;
    }

    .coupon01 li {
        line-height: 200%;
    }
}
:root {
    /* Colors */
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #f771a5;
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;

    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-heading: var(--font-family-base);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --transition-base: 0.3s ease;
}
/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

ul[role='list'], ol[role='list'] {
    list-style: none;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img, picture {
    max-width: 100%;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Customer Account Pages Styling
   ========================================================================== */

/* --- Layout Container --- */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
}

/* --- Sidebar Navigation --- */
.col-left.sidebar {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
}

.block-account-nav {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
}

.block-account-nav .block-title {
    background: #1a1a1a;
    padding: 15px 20px;
    margin: 0;
    border: none;
}

.block-account-nav .block-title strong {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.block-account-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.block-account-nav ul li {
    margin: 0;
    list-style: none;
}

.block-account-nav ul li a {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.block-account-nav ul li a:hover {
    background: #f0f0f0;
    color: #1a1a1a;
    border-left-color: #1a1a1a;
}

.block-account-nav ul li.current a,
.block-account-nav ul li.current strong {
    display: block;
    padding: 10px 20px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
    border-left: 3px solid #1a1a1a;
}

/* Log Out Link */
.block-account-nav ul li:last-child {
    border-top: 1px solid #eee;
    margin-top: 5px;
    padding-top: 5px;
}

.block-account-nav ul li a[href*="logout"] {
    color: #c00;
}

.block-account-nav ul li a[href*="logout"]:hover {
    background: #c00;
    color: #fff;
    border-left-color: #c00;
}

/* --- Main Content Area --- */
.col-main {
    flex: 1;
    min-width: 0;
}

/* Page Title */
.my-account .page-title {
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.my-account .page-title h1 {
    font-size: 22px;
    margin: 0;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Welcome Message */
.welcome-msg {
    margin-bottom: 20px;
    font-size: 15px;
    color: #555;
}

/* --- Dashboard Boxes --- */
.box-account {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
}

.box-account .box-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.box-account .box-head h2 {
    font-size: 16px;
    margin: 0;
    color: #333;
    font-weight: 600;
}

.box-account .box-head a {
    color: #1a1a1a;
    font-size: 13px;
    text-decoration: underline;
}

address {
    font-style: normal;
    line-height: 1.6;
    color: #666;
}

/* Dashboard info boxes side by side */
.col2-set {
    display: flex;
    gap: 20px;
}

.col2-set .col-1,
.col2-set .col-2 {
    flex: 1;
}

/* --- Tables (Orders, Reviews, Addresses) --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.data-table thead th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
    vertical-align: middle;
}

.data-table tbody tr:hover td {
    background: #fafafa;
}

.data-table a {
    color: #1a1a1a;
    text-decoration: underline;
    margin-right: 10px;
}

.data-table a:hover {
    color: #555;
}

/* --- Forms (Edit Account, Address) --- */
.form-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-list li {
    margin-bottom: 18px;
    list-style: none;
}

.form-list label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.form-list label em {
    color: #c00;
    font-style: normal;
}

.form-list input.input-text,
.form-list select,
.form-list textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-list input.input-text:focus,
.form-list select:focus {
    border-color: #1a1a1a;
    outline: none;
}

/* Fieldset */
fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px;
}

legend {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

/* Buttons */
.buttons-set {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buttons-set .back-link a {
    color: #666;
    text-decoration: none;
}

.buttons-set .back-link a:hover {
    color: #1a1a1a;
}

.button,
button.button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 24px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.button:hover,
button.button:hover {
    background: #333;
}

/* Wishlist */
.my-wishlist .data-table .product-name {
    font-weight: 600;
}

/* Image container - fit to image size and center */
.my-wishlist .data-table .product-image {
    display: block;
    text-align: center;
    line-height: 0;
}

.my-wishlist .data-table .product-image img {
    width: 95%;
    height: auto;
    object-fit: cover;
    display: inline-block;
}

/* Remove button styling - no circle icon */
.my-wishlist .btn-remove,
.my-wishlist .btn-remove2 {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 12px;
    color: #c00;
    border: 1px solid #ddd;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
}

/* Remove the red circle icon */
.my-wishlist .btn-remove::before,
.my-wishlist .btn-remove2::before,
.my-wishlist .btn-remove::after,
.my-wishlist .btn-remove2::after {
    display: none !important;
    content: none !important;
}

.my-wishlist .btn-remove:hover,
.my-wishlist .btn-remove2:hover {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

/* Pager / Toolbar */
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* --- Mobile Toggle Button (hidden on PC) --- */
.account-menu-toggle {
    display: none;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
@media (max-width: 767px) {
    .account-container {
        flex-direction: column;
        gap: 0;
        padding: 15px 12px;
        overflow-x: hidden;
    }

    /* Mobile Toggle Button - visible */
    .account-menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #1a1a1a;
        color: #fff;
        border: none;
        padding: 12px 20px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        width: 100%;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .account-menu-toggle .toggle-icon {
        font-size: 18px;
    }

    .account-menu-toggle.active {
        background: #333;
    }

    /* Sidebar - hidden by default, dropdown on click */
    .col-left.sidebar {
        width: 100%;
        min-width: 100%;
        display: none;
        margin-bottom: 15px;
    }

    .col-left.sidebar.active {
        display: block;
    }

    .block-account-nav {
        border-radius: 0;
    }

    .block-account-nav .block-title {
        display: none;
        /* Hidden since toggle button serves as title */
    }

    /* Main content full width */
    .col-main {
        width: 100%;
        overflow-x: hidden;
    }

    .my-account .page-title h1 {
        font-size: 18px;
    }

    /* Stack info boxes */
    .col2-set {
        flex-direction: column;
        gap: 15px;
    }

    .col2-set .col-1,
    .col2-set .col-2 {
        width: 100%;
        float: none;
    }

    /* ======== Mobile Tables - Card Layout ======== */
    .data-table {
        border: none;
    }

    .data-table thead {
        display: none;
        /* Hide table headers */
    }

    .data-table tbody tr {
        display: block;
        border: 1px solid #eee;
        margin-bottom: 12px;
        padding: 12px;
        background: #fff;
    }

    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 6px 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 13px;
        word-break: break-word;
    }

    .data-table tbody td:last-child {
        border-bottom: none;
    }

    .data-table tbody td:before {
        content: attr(data-th);
        font-weight: 600;
        color: #333;
        margin-right: 10px;
        min-width: 90px;
        flex-shrink: 0;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .data-table td .nobr {
        white-space: normal;
    }

    .data-table a {
        margin-right: 5px;
    }

    /* ======== Wishlist Mobile - Card Layout ======== */
    .my-wishlist .data-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }

    .my-wishlist .data-table tbody td {
        display: block;
        width: 100%;
        padding: 0;
        border-bottom: none;
    }

    .my-wishlist .data-table tbody td:before {
        display: none;
        /* No labels needed for wishlist cards */
    }

    /* Wishlist product image */
    .my-wishlist .data-table tbody td.customer-wishlist-item-image {
        width: 80px;
        flex-shrink: 0;
    }

    .my-wishlist .data-table tbody td.customer-wishlist-item-image img {
        width: 80px;
        height: auto;
    }

    /* Wishlist product info */
    .my-wishlist .data-table tbody td.customer-wishlist-item-info {
        flex: 1;
        min-width: 0;
    }

    .my-wishlist .data-table tbody td.customer-wishlist-item-info .product-name {
        font-size: 14px;
        line-height: 1.4;
    }

    .my-wishlist .data-table tbody td.customer-wishlist-item-info .description {
        display: none;
        /* Hide duplicate description on mobile */
    }

    /* Wishlist comment box */
    .my-wishlist .data-table textarea {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        font-size: 13px;
        padding: 8px;
        height: 50px;
    }

    /* Wishlist cart column */
    .my-wishlist .data-table .customer-wishlist-item-cart {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        width: 100%;
    }

    .my-wishlist .data-table .customer-wishlist-item-cart .price {
        font-weight: 600;
        font-size: 15px;
    }

    .my-wishlist .data-table .customer-wishlist-item-cart input.qty {
        width: 50px !important;
        text-align: center;
    }

    .my-wishlist .data-table .customer-wishlist-item-cart button {
        flex: 1;
        min-width: 120px;
        padding: 10px;
        font-size: 12px;
    }

    /* Wishlist remove/edit links */
    .my-wishlist .data-table .customer-wishlist-item-remove {
        text-align: right;
    }

    /* Wishlist buttons set */
    .my-wishlist .buttons-set {
        flex-direction: column;
        gap: 8px;
    }

    .my-wishlist .buttons-set button,
    .my-wishlist .buttons-set .button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* ======== Forms on mobile ======== */
    .form-list input.input-text,
    .form-list select {
        max-width: 100%;
    }

    .buttons-set {
        flex-direction: column;
        gap: 10px;
    }

    .buttons-set .button,
    .buttons-set button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* ======== Dashboard boxes on mobile ======== */
    .box-account {
        padding: 15px;
        overflow-x: hidden;
    }

    .box-account .box-head {
        flex-wrap: wrap;
        gap: 5px;
    }

    .box-account .box-head h2 {
        font-size: 15px;
    }
}

/* ==========================================================================
   Tablet & Desktop (>767px)
   ========================================================================== */
@media (min-width: 768px) {
    .account-menu-toggle {
        display: none !important;
    }

    .col-left.sidebar {
        display: block !important;
    }
}
/* =========================================
   CMS Pages Styles
   - About Us
   - Custom Made
   - Style Gallery
   ========================================= */

/* Common Utilities */
.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid #333;
    color: #333;
    padding: 10px 24px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline-dark:hover {
    background: #333;
    color: #fff;
}

/* =========================================
   About Us Page
   ========================================= */
.page-about {
    padding-bottom: var(--spacing-xl);
}

/* About Hero */
.about-hero {
    position: relative;
    height: 50vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero .hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-hero .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.about-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.about-hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-sm);
}

.about-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Intro */
.about-intro {
    padding: var(--spacing-xl) 0;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.intro-text h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: var(--spacing-md);
}

.intro-image img {
    border-radius: var(--radius-md, 8px);
    max-height: 400px;
    object-fit: cover;
}

/* About Features */
.about-features {
    padding: var(--spacing-xl) 0;
    background: #f9f9f9;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.about-feature-card {
    background: #fff;
    padding: var(--spacing-lg);
    text-align: center;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.about-feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.about-feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* About Contact */
.about-contact {
    padding: var(--spacing-xl) 0;
}

.about-contact h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.about-contact .link-underlined {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

/* =========================================
   Custom Made Page
   ========================================= */
.page-custom {
    padding-bottom: var(--spacing-xl);
}

/* Custom Hero */
.custom-hero {
    position: relative;
}

.custom-hero-top {
    position: relative;
    padding: 80px var(--spacing-md) 120px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-hero-top .hero-bg-absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.custom-hero-top .hero-bg-absolute img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-hero-top .overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.custom-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    position: relative;
    z-index: 10;
    margin-bottom: var(--spacing-sm);
}

.custom-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 10;
}

/* Custom Scenes Grid */
.custom-scenes {
    margin-top: -80px;
    position: relative;
    z-index: 20;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.scene-item {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scene-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.scene-item:hover img {
    transform: scale(1.05);
}

/* Custom Emphasis Bar */
.custom-emphasis-bar {
    background: #222;
    color: #fff;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.custom-emphasis-bar h2 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Custom Section */
.custom-section {
    padding: var(--spacing-xl) 0;
}

.content-text-block {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

.content-text-block p {
    margin-bottom: var(--spacing-md);
}

/* Benefits Section */
.benefits-section {
    background: #f9f9f9;
}

.benefits-container {
    max-width: 700px;
    margin: 0 auto;
}

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

.benefits-list li {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid #eee;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.check-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.benefit-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.benefit-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Custom Submit Section */
.custom-submit-section {
    background: #222;
    color: #fff;
    padding: var(--spacing-xl) 0;
}

.custom-submit-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.custom-submit-section>.container>p {
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.submit-content-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.info-checklist {
    text-align: left;
    list-style: disc;
    padding-left: 20px;
    opacity: 0.9;
    line-height: 1.8;
}

.btn-custom-submit {
    padding: 15px 40px;
    font-size: 1rem;
}

/* =========================================
   Style Gallery Page
   ========================================= */
.page-gallery {
    padding-bottom: var(--spacing-xl);
}

/* Gallery Hero */
.gallery-hero {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-sm);
    color: #333;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: var(--spacing-lg);
}

.gallery-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Gallery Tabs */
.gallery-nav-section {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 60px;
    z-index: 50;
}

.gallery-tabs {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-tabs::-webkit-scrollbar {
    display: none;
}

.gallery-tabs li {
    flex-shrink: 0;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.gallery-tabs li:hover,
.gallery-tabs li.active {
    color: #333;
    border-bottom-color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid-section {
    padding: var(--spacing-xl) 0;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.gallery-card {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery-img-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-md, 8px);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-author {
    padding: var(--spacing-sm) 0;
}

.gallery-author p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.multi-img-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 4px;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.gallery-modal-content {
    position: relative;
    background: #fff;
    max-width: 1000px;
    max-height: 90vh;
    margin: 5vh auto;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.modal-body-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.modal-image-col {
    position: relative;
    flex: 1;
    min-height: 300px;
    background: #f5f5f5;
}

.modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: 15px;
}

.modal-nav.next {
    right: 15px;
}

.modal-info-col {
    padding: var(--spacing-lg);
}

.modal-user-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.modal-rating {
    color: #f5a623;
    margin-bottom: var(--spacing-sm);
}

.modal-review-text h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-review-text p {
    color: #666;
    line-height: 1.6;
}

.modal-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: var(--spacing-sm);
}

.modal-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: var(--spacing-md) 0;
}

.modal-shop-look h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.modal-product-card {
    display: flex;
    gap: var(--spacing-sm);
}

.modal-prod-link {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.modal-prod-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.modal-prod-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-prod-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-prod-price {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-image-slider {
    display: none;
}

.mobile-img-counter {
    display: none;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    padding: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-thumb {
    width: 60px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.modal-thumb.active {
    border-color: var(--primary-color, #e91e63);
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumb:hover {
    opacity: 0.8;
}

/* =========================================
   Responsive - PC/Desktop
   ========================================= */
@media (min-width: 768px) {

    /* About Us */
    .about-hero-content h1 {
        font-size: 3rem;
    }

    .about-intro-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .about-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Custom Made */
    .custom-title {
        font-size: 3.5rem;
    }

    .scene-grid {
        gap: var(--spacing-md);
    }

    .custom-emphasis-bar h2 {
        font-size: 1.5rem;
    }

    .submit-content-row {
        flex-direction: row;
        justify-content: center;
    }

    /* Style Gallery */
    .gallery-masonry {
        grid-template-columns: repeat(4, 1fr);
    }

    .modal-body-grid {
        flex-direction: row;
    }

    .modal-image-col {
        flex: 1.2;
        min-height: auto;
    }

    .modal-info-col {
        flex: 1;
        max-width: 350px;
    }
}

@media (min-width: 1024px) {

    /* About Us */
    .about-features-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .about-feature-card {
        padding: var(--spacing-md);
    }

    /* Custom Made */
    .custom-hero-top {
        padding: 120px var(--spacing-md) 160px;
    }

    .custom-scenes {
        margin-top: -100px;
    }
}

/* =========================================
   Mobile Gallery Modal Fixes
   ========================================= */
@media (max-width: 767px) {

    /* Modal slides in from right on mobile */
    .gallery-modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .gallery-modal.active .gallery-modal-content {
        transform: translateX(0);
    }

    .modal-body-grid {
        flex-direction: column;
        height: 100%;
    }

    /* Hide desktop elements on mobile */
    .modal-main-img,
    .modal-thumbnails,
    .modal-nav {
        display: none !important;
    }

    .modal-image-col {
        width: 100%;
        flex: none;
        height: 45vh;
        max-height: 45vh;
        min-height: 0;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    /* Mobile swipeable image slider */
    .mobile-image-slider {
        display: flex !important;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        align-items: center;
    }

    .mobile-image-slider img {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        scroll-snap-align: center;
    }

    /* Mobile image counter */
    .mobile-img-counter {
        display: block !important;
        position: absolute;
        bottom: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.8rem;
        z-index: 5;
    }

    .modal-info-col {
        flex: 1;
        padding: var(--spacing-md);
        overflow-y: auto;
        justify-content: flex-start;
    }

    /* Hide scroll bar for mobile slider */
    .mobile-image-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-image-slider {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Enhanced close button for mobile */
    .modal-close {
        background: #fff;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: #000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        top: 10px;
        right: 10px;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .modal-close:active {
        transform: scale(0.95);
    }
}

/* =========================================
   Product List Page Layout & Wishlist Fix
   ========================================= */

/* Product Card - Position relative for wishlist button */
.product-card {
    position: relative;
}

/* List Wishlist Button */
.list-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.list-wishlist-btn:hover {
    background: #f5f5f5;
}

.list-wishlist-btn.is-favorited {
    background: #000;
    border-color: #000;
    color: #fff;
}

.list-wishlist-btn.is-favorited svg {
    fill: #fff;
    stroke: #fff;
}
/* Autocomplete Dropdown Styles */
.form-search {
    position: relative;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-search-bar-container .mobile-search-form .form-search input.input-text {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    height: auto;
    margin: 0;
    box-shadow: none;
    background: #fff;
}

.mobile-search-bar-container .mobile-search-form .form-search button.button {
    background: #222 !important;
    /* Update button color to match dark grey in screenshot */
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    height: auto !important;
    box-shadow: none !important;
    line-height: normal !important;
}

.form-search {
    position: relative;
    width: 100%;
    flex: 1;
    /* allow spreading within container */
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    /* Handled by JS */
    max-height: 300px;
    overflow-y: auto;
}

.search-autocomplete ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-autocomplete li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-autocomplete li:last-child {
    border-bottom: none;
}

.search-autocomplete li:hover,
.search-autocomplete li.selected {
    background-color: #f9f9f9;
}

.search-autocomplete li .amount {
    display: none !important;
}

/* Mobile Adjustments if search is full width */
@media (max-width: 767px) {
    .search-autocomplete {
        width: 100%;
        /* Ensure it spans the input width */
        max-height: 50vh;
        /* Don't take up whole screen */
    }
}

/* Override existing mobile form styles to allow vertical stacking of search + tags */
.mobile-search-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
}

.mobile-search-bar-container.active {
    max-height: 800px !important;
    /* Allow room for popular tags to slide down */
}

/* Popular Searches Tags Styles */
.popular-searches-container {
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.popular-searches-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4A3B32;
    /* Deep brown from screenshot */
    margin-bottom: 15px;
    text-transform: capitalize;
}

.popular-searches-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    color: #4A3B32;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.popular-tag:hover {
    background-color: #e8e8e8;
}

.flame-icon {
    margin-right: 5px;
    font-size: 1rem;
}
