@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-gold: #c5a059;
    --primary-gold-hover: #b08d4a;
    --dark-gold: #9c7a3c;
    --dark-brown: #3e3328;
    --light-bg: #fdfcfb;
    --border-color: #eae5de;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.section-padding { 
    padding-top: 5rem; 
    padding-bottom: 5rem; 
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--white);
    border: 1px solid var(--primary-gold);
}

.btn-primary:hover {
    background-color: var(--primary-gold-hover);
    border-color: var(--primary-gold-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.btn-outline:hover {
    background-color: var(--primary-gold);
    color: var(--white);
}

.btn-line {
    background-color: #06C755;
    color: var(--white);
    border: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
}
.btn-line:hover {
    background-color: #05b34c;
    box-shadow: 0 6px 15px rgba(6, 199, 85, 0.4);
    transform: translateY(-2px);
}

/* Header */
.top-bar {
    background-color: var(--dark-brown);
    color: var(--primary-gold);
    padding: 0.5rem 0;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 1px;
}

header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

header.scrolled {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-gold);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-actions i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.header-actions i:hover {
    color: var(--primary-gold);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 600px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Category Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.category-card {
    background-color: var(--white);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-img-wrapper {
    height: 300px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.05);
}

.category-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.category-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-gold);
    letter-spacing: 1px;
    font-weight: 700;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    transition: box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    background-color: var(--primary-gold);
    color: var(--white);
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    letter-spacing: 1px;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.product-action {
    margin-top: auto;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

/* Pages Layouts */
.page-header {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-gold);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #ccc;
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb a:hover {
    color: var(--primary-gold);
}

/* Shop Layout */
.shop-layout {
    display: flex;
    gap: 3rem;
}

.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-widget {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-list li {
    margin-bottom: 0.8rem;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--primary-gold);
}

.shop-content {
    flex-grow: 1;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 4px;
    box-shadow: -20px 20px 0 var(--border-color);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-card {
    background-color: var(--white);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-gold);
}

.contact-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-detail i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.contact-detail h4 {
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.contact-detail p {
    color: var(--text-muted);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-gold);
}

/* Review Page */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: var(--white);
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: var(--font-heading);
    color: rgba(197, 160, 89, 0.2);
    line-height: 1;
}

.stars {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--dark-brown);
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-layout {
        flex-direction: column;
    }
    .shop-sidebar {
        width: 100%;
    }
}

@media (max-width: 1024px) {
/* Header & Navigation */
    .header-inner {
        height: 60px;
    }
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -10px 0 15px rgba(0,0,0,0.05);
        border-top: none;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    .nav-menu.active {
        right: 0;
    }
    .mobile-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }
}

@media (max-width: 768px) {

    
    /* Top Bar */
    .top-bar {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 60vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Sections & Grids */
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .section-title {
        font-size: 2rem;
    }
    
    /* Lookbook (Home Categories) */
    .lookbook-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
        gap: 1.5rem;
    }
    .lookbook-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    .product-title {
        font-size: 1rem;
    }
    .product-price {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .product-info {
        padding: 1rem;
    }
    
    /* Shop Page */
    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .shop-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .filter-widget {
        margin-bottom: 0; /* Remove default margin */
    }
    .filter-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Product Detail Page */
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-title-large {
        font-size: 1.8rem;
    }
    .product-price-large {
        font-size: 1.5rem;
    }
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        gap: 1.5rem;
        justify-content: flex-start;
    }
    .tab-nav button {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }
    
    /* About Page */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .page-header {
        padding: 2.5rem 0;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .about-image img {
        box-shadow: -10px 10px 0 var(--border-color);
    }
    
    /* Contact Page */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* Product Detail Page */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-gold);
}

.product-title-large {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-price-large {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.product-short-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-meta p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.product-meta strong {
    color: var(--dark-brown);
    display: inline-block;
    width: 100px;
}

.product-meta a {
    color: var(--text-muted);
}

.product-meta a:hover {
    color: var(--primary-gold);
}

/* Lookbook Grid (Category Replacement) */
.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    margin-bottom: 4rem;
}

.lookbook-img {
    display: block;
    overflow: hidden;
    margin-bottom: 1rem;
}

.lookbook-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.lookbook-img:hover img {
    transform: scale(1.05);
}

.lookbook-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lookbook-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.2rem;
}

.lookbook-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lookbook-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.lookbook-btn:hover {
    background-color: var(--primary-gold);
    color: var(--white);
}




/* Social Icons in Header */
.header-actions.social-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.header-actions.social-icons a {
    color: var(--text-muted, #777);
    font-size: 1.25rem;
    transition: color 0.3s ease;
    text-decoration: none;
}
.header-actions.social-icons a:hover {
    color: var(--dark-brown, #3e3221);
}


/* Mobile Social Icons */
.mobile-social-icons {
    display: none;
}

@media (max-width: 768px) {
    .header-actions.social-icons {
        display: none !important;
    }
    
    .mobile-social-icons {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color, #eee);
        width: 100%;
    }
    
    .mobile-social-icons a {
        color: var(--text-muted, #777);
        font-size: 1.5rem;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .mobile-social-icons a:hover {
        color: var(--primary-gold, #c1a68d);
    }
}


/* Enhanced Mobile Filter */
@media (max-width: 768px) {
    .shop-sidebar {
        display: block !important; /* Override previous 1fr 1fr grid */
        background: var(--white);
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        margin-bottom: 2.5rem;
        border: 1px solid var(--border-color);
    }
    .filter-title {
        font-size: 1.25rem;
        border-bottom: 2px solid var(--primary-gold);
        padding-bottom: 0.8rem;
        margin-bottom: 1.2rem;
        color: var(--dark-brown);
        font-weight: 700;
    }
    .filter-tree > li > a, .filter-tree .cat-level-2 {
        padding: 0.6rem 0;
        font-size: 1.05rem;
    }
    .filter-tree ul a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    .filter-toggle {
        padding: 0.5rem;
    }
}

/* Product Detail Responsive Fixes */
@media (max-width: 768px) {
    /* Make action buttons stack on very small screens, or at least adjust padding */
    .product-actions {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    .product-actions .btn {
        width: 100% !important;
        padding: 0.8rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Allow thumbnails to wrap so they don't overflow the screen */
    .thumbnail-list {
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 0.5rem !important;
    }
    .thumbnail {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Adjust product title font size for mobile */
    .product-title-large {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    
    /* Adjust table layout for better spacing on mobile */
    .product-details-table td {
        padding: 0.4rem 0 !important;
        font-size: 0.85rem !important;
    }
    
    /* Shopping Policy smaller text */
    .shopping-policy ol {
        font-size: 0.8rem !important;
    }
}

/* Premium Mobile Refining Fixes */
@media (max-width: 768px) {
    /* 1. Fix global container padding so content is not squished */
    .container {
        padding: 0 1.25rem !important;
    }
    
    /* 2. Make thumbnails horizontally scrollable (sleeker than wrapping on small screens) */
    .thumbnail-list {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        padding-bottom: 0.5rem;
        gap: 0.8rem !important;
        scrollbar-width: none; /* Firefox */
    }
    .thumbnail-list::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .thumbnail {
        flex: 0 0 auto !important; /* Prevent from shrinking */
        width: 75px !important;
        height: 75px !important;
        border-radius: 4px;
    }
    
    /* 3. Refine table aesthetics (add subtle borders between rows for readability) */
    .product-details-table td {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid var(--border-color);
    }
    .product-details-table tr:last-child td {
        border-bottom: none;
    }
    
    /* 4. Improve spacing in the product details section */
    .product-detail-layout {
        gap: 1.5rem !important;
    }
    
    /* 5. Refine Modal for smaller screens */
    #conditionModal > div {
        width: 95% !important;
        max-height: 85vh !important;
        border-radius: 12px !important;
    }
    
    /* 6. Buttons aesthetics */
    .product-actions .btn {
        border-radius: 8px !important; /* Slightly softer corners on mobile look better sometimes, or keep 50px */
        border-radius: 50px !important; /* Keeping pill shape */
        padding: 0.85rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px;
    }
    
    /* 7. Breadcrumb spacing */
    .breadcrumb {
        white-space: normal;
        line-height: 1.5;
    }
}

/* Critical Layout Fix for Mobile */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Anti-Overflow Fixes for Mobile */
@media (max-width: 768px) {
    /* Prevent the entire page from horizontal scrolling */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Ensure flex containers do not expand beyond their parents */
    .product-detail-layout, 
    .product-gallery, 
    .product-summary {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure the thumbnail list stays within bounds while scrolling internally */
    .thumbnail-list {
        max-width: 100% !important;
    }
    
    /* Break long text like titles if they exceed screen width */
    .product-title-large, 
    .breadcrumb {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Header & Breadcrumb Mobile Fixes */
@media (max-width: 1024px) {
    /* Swap Logo and Toggle Menu positions using flex order */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .logo {
        order: 1;
        margin-right: auto; /* Push to the left */
    }
    .mobile-toggle {
        order: 2;
        margin-left: auto; /* Push to the right */
    }
    
    /* Hide breadcrumbs entirely on mobile */
    .breadcrumb {
        display: none !important;
    }
    
    /* Hide the breadcrumb container on product page to prevent blank space */
    .breadcrumb-container {
        display: none !important;
    }
    
    /* In category pages, reduce page-header padding since breadcrumb is hidden */
    .page-header {
        padding: 1.5rem 0 !important;
    }
}

/* Add spacing between header and product content after hiding breadcrumbs */
@media (max-width: 1024px) {
    .product-detail-layout {
        margin-top: 1.5rem !important;
    }
}

/* Trust Section (Why Collectors Trust) */
.trust-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.trust-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.trust-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.trust-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Trust Section */
@media (max-width: 992px) {
    .trust-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
}

@media (max-width: 576px) {
    .trust-features-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .trust-section h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    .trust-section > .container > p {
        font-size: 1rem !important;
        margin-bottom: 3rem !important;
    }
}

/* New Header Styles */
.mobile-header-icons {
    display: none;
}

.pc-search-icon i {
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .mobile-header-icons {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
    
    .mobile-header-icons a {
        color: var(--text-main);
        font-size: 1.2rem;
    }
    
    .mobile-header-icons a:hover {
        color: var(--primary-gold);
    }
    
    .header-inner {
        justify-content: space-between !important;
        position: relative;
    }
    
    /* Ensure logo stays centered on mobile */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: unset !important;
        margin-right: 0 !important;
    }
    
    .mobile-toggle {
        order: unset !important;
        margin-left: 0 !important;
    }
}

/* Fix Mobile Header Height and Search Icon */
@media (max-width: 1024px) {
    .header-inner {
        height: 85px !important; /* Make header taller so logo isn't cramped */
    }
    
    .logo img {
        height: 45px !important; /* Adjust logo size slightly for better proportions */
    }
    
    .pc-search-icon {
        display: none !important; /* Hide search icon from hamburger menu */
    }
}

/* Mobile Right Actions */
.mobile-right-actions {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-right-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .mobile-search-btn {
        color: var(--text-main);
        font-size: 1.2rem;
    }
    
    .mobile-search-btn:hover {
        color: var(--primary-gold);
    }
    
    /* Ensure .mobile-toggle margin is reset since it's now wrapped */
    .mobile-toggle {
        margin-left: 0 !important;
    }
}

@media (max-width: 1024px) {
    .header-actions {
        display: none !important;
    }
}
