@import url('https://fonts.googleapis.com/css2?family=Inter:wght@900&display=swap');

/* RESET & FONTS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* ... (existing styles) ... */

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    /* Black / Ultra Bold */
    letter-spacing: 0.5px;
    /* Tighter for chubbier look */
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}



.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* DROPDOWN MENU */
.nav-item {
    position: relative;
    display: inline-block;
    height: 100%;
    margin: 0 15px;
    /* Moved margin from 'a' to 'nav-item' for spacing */
}

/* Remove margin from links inside nav-item to avoid double spacing */
.nav-item>a {
    margin: 0;
}

.nav-ifooter p {
    margin: 5px 0;
}

footer a {
    color: #000000;
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #1a1a1a;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    margin: 0;
    /* Override nav link margin */
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 80vh;
    /* Takes up 80% of screen height */
    overflow: hidden;
    margin-bottom: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 10%;
    left: 40px;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-main {
    background: white;
    color: black;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-main:hover {
    background: #f0f0f0;
}

/* FILTER SIDEBAR & LAYOUT */
.shop-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    gap: 40px;
    align-items: flex-start;
}

.filter-sidebar {
    width: 25%;
    position: sticky;
    top: 100px;
}

.shop-content {
    width: 75%;
}

.filter-section {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.filter-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.product-info {
    padding: 0 15px;
    text-align: center;
}

.product-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.filter-content {
    display: none;
}

.filter-content label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-content input[type="checkbox"] {
    margin-right: 10px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .filter-sidebar {
        display: none;
    }

    .shop-layout {
        display: block;
        padding: 20px;
    }

    .shop-content {
        width: 100%;
    }
}

/* PRODUCT GRID (The "Masonry" Look) */
.product-section {
    padding: 0 0 60px 0;
    /* Adjusted padding since it's inside shop-content */
    max-width: none;
    /* Reset max-width since container handles it */
    margin: 0;
    text-align: center;
    /* Ensures inline-block h2 is centered */
}

.product-section h2 {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 10px;
}

.product-grid {
    display: grid;
    /* This creates the responsive columns */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* Row gap 40px, Column gap 20px */
    justify-content: center;
    /* Center the grid items */
}

/* MARQUEE */
.marquee {
    background-color: #000000;
    color: #ffffff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    /* Ensure it sits above navbar if needed, though usually standard flow works */
    z-index: 1001;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    /* Remove padding hack */
    padding-left: 0;
    /* Ensure enough duplicates in HTML for seamless loop */
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    /* Black / Ultra Bold */
    letter-spacing: 0.5px;
    /* Tighter for chubbier look */
}

.logo a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move exactly half the width (the first duplicate set) */
        transform: translateX(-50%);
    }
}

/* ENTRY POP-UP MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-box {
    background: #ffffff;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

.modal-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modal-box p {
    margin-bottom: 20px;
    color: #555;
}

.modal-box input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

.modal-box button {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s;
}

.modal-box button:hover {
    background: #333;
}

/* LEGAL PAGES */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
}

.legal-container h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-container p,
.legal-container ul {
    margin-bottom: 15px;
    color: #444;
}

.legal-container ul {
    padding-left: 20px;
}

/* Mobile Styling */
@media (max-width: 768px) {

    /* Navbar Stacking */
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    /* Hero Text & Spacing */
    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 40px 20px;
    }

    /* Section Spacing */
    .product-section h2 {
        margin-top: 50px;
    }
}

.product-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.image-container {
    position: relative;
    width: 100%;
    /* This aspect ratio creates the tall fashion image look */
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom effect on hover like Shopmicas */
.product-card:hover .image-container img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.product-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.product-desc {
    font-size: 0.9rem !important;
    /* Ensure override */
    color: #555;
    margin: 5px 0 15px;
    white-space: normal;
    overflow: hidden;
    max-width: 100%;
}

/* PRODUCT DETAIL PAGE TWO-COLUMN LAYOUT */
.product-detail-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.detail-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-info {
    flex: 1;
    padding-top: 20px;
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.detail-info .price {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
}

.detail-info .description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.detail-info label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-info select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        gap: 30px;
    }
}

.btn-buy {
    text-decoration: none;
    font-size: 0.8rem;
    color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
}

/* FOOTER */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    margin-top: 50px;
    font-size: 0.8rem;
    color: #666;
}

/* New Product Card Elements */
.card-swatches {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    justify-content: center;
    margin-top: auto;
    /* Pushes content to bottom */

    /* Centering since the card text is centered */
}

.swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.swatch.selected {
    border: 2px solid white;
    box-shadow: 0 0 0 2px black;
    transform: scale(1.2);
    /* Was 1.1 */
}

.btn-add-cart {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background-color: #333;
}

/* Quick Shop Modal */
.modal-hidden {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-grid {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

#qs-image {
    width: 50%;
    object-fit: cover;
    max-height: 400px;
}

.qs-details {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.qs-details h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.qs-details p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.qs-details label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.qs-colors {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.qs-sizes {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.size-btn {
    border: 1px solid #ccc;
    background: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.size-btn.selected,
.swatch.selected {
    border: 2px solid #000;
}

.size-btn:hover {
    border-color: #000;
}

#qs-add-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: auto;
    transition: background 0.3s;
}

#qs-add-btn:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .modal-grid {
        flex-direction: column;
    }

    #qs-image,
    .qs-details {
        width: 100%;
    }
}

/* CART SIDEBAR */
.sidebar-hidden {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-open {
    transform: translateX(0);
}

#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
}

.cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

.cart-item-details p {
    margin: 0 0 5px 0;
    font-size: 0.8rem;
    color: #666;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background: black;
    color: white;
    padding: 15px;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #333;
}

/* NAVBAR CART BADGE */
.cart-icon {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

#cart-count {
    background: black;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Update PDP Add to Cart Button */
/* Overriding potentially inline styles with !important where necessary if specific constraints exist */
.btn-buy,
.product-detail-container .btn-buy,
.detail-info .btn-buy {
    width: auto !important;
    min-width: 200px;
    margin-top: 20px;
    display: inline-block !important;
    background-color: #000;
    color: #fff;
    padding: 12px 30px;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-buy:hover {
    background-color: #333;
    text-decoration: none;
    color: #fff;
}

/* CART UI UPGRADES */

.cart-active-section,
.cart-saved-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

.cart-variant {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.cart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.cart-price {
    font-weight: 600;
    margin: 0;
}

.cart-actions {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    margin-top: 5px;
}

.action-link {
    cursor: pointer;
    text-decoration: underline;
    color: #666;
}

.action-link:hover {
    color: #000;
}

.action-link.delete {
    color: #999;
}

.action-link.delete:hover {
    color: #cc0000;
}

/* Saved For Later Section */
.cart-saved-section {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.cart-saved-section h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.saved-item {
    border-bottom: 1px solid #e0e0e0;
}

.saved-item:last-child {
    border-bottom: none;
}

.btn-move-cart {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    font-size: 0.7rem;
    padding: 4px 8px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-move-cart:hover {
    background: #000;
    color: #fff;
}

/* CONFIRMATION OVERLAY */
#cart-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

#cart-confirm-overlay.active {
    display: flex;
}

.confirm-box {
    text-align: center;
    padding: 20px;
    width: 80%;
}

.confirm-box p {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.confirm-buttons button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    min-width: 80px;
}

#confirm-yes {
    background: red;
    color: white;
}

#confirm-yes:hover {
    background: darkred;
}

#confirm-no {
    background: #ccc;
    color: black;
}

#confirm-no:hover {
    background: #bbb;
}


/* --- PRODUCT DETAIL LAYOUT --- */
.product-detail-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

.detail-image {
    flex: 1;
}

.detail-info {
    flex: 1;
    padding-top: 20px;
}



/* --- HOMEPAGE CAROUSEL --- */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.homepage-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    /* Space for scrollbar */
    /* Remove scroll-snap-type to allow smooth JS auto-scroll */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide the ugly scrollbar but keep functionality */
.homepage-carousel::-webkit-scrollbar {
    display: none;
}

/* Fix Card Width */
.homepage-carousel .product-card {
    flex: 0 0 300px;
    /* Fixed width, won't shrink */
    scroll-snap-align: start;
}

/* --- GALLERY STYLES --- */
.main-image-wrapper {
    width: 100%;
}

#main-product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* --- SWATCHES & SIZE BUTTONS --- */
.qs-colors,
.qs-sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 5px;
}

.swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.swatch.selected {
    border: 2px solid white;
    box-shadow: 0 0 0 2px black;
    transform: scale(1.1);
}

.size-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: 0.2s;
}

.size-btn.selected {
    background: black;
    color: white;
    border-color: black;
}

.size-btn:hover {
    border-color: black;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
    }

    /* --- MOBILE GALLERY FIXES --- */
    /* 1. Stack everything vertically */
    .gallery-wrapper {
        flex-direction: column !important;
        /* Force column over inline default */
        height: auto !important;
        /* Let height grow naturally */
    }

    /* 2. Main Image takes full width */
    .main-view {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
        /* Keep it nice and tall */
    }

    /* 3. Thumbnails go to the bottom in a scrolling row */
    .thumbs-column {
        width: 100% !important;
        /* Overrides inline 80px */
        height: auto;
        flex-direction: row !important;
        /* Overrides inline column default */
        overflow-x: auto;
        /* Scrollable sideways */
        padding-top: 10px;
        order: 2;
        /* Forces thumbs to sit BELOW the main image */
    }

    /* 4. Fix Thumbnail Sizing */
    .thumb {
        width: 60px !important;
        /* Overrides inline 100% */
        height: 80px;
        flex-shrink: 0;
        /* Prevents squishing */
    }

    /* --- MOBILE CATEGORY GRID FIXES --- */
    /* 1. Switch to 2 Columns (Bigger Images) */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Forces 2 columns */
        gap: 15px;
        /* Smaller gap */
        padding: 0 10px;
    }

    /* 2. Ensure Images Fill the Card */
    .product-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
        /* Maintains standard fashion vertical shape */
        object-fit: cover;
    }

    /* 3. Scale Down the Buttons */
    .product-card .btn-add-cart {
        padding: 10px 0;
        /* Tighter padding */
        font-size: 0.8rem;
        /* Smaller text */
        width: 100%;
        /* Full width of the card */
        margin-top: 5px;
    }

    /* 4. Tweak Swatches for Mobile */
    .card-swatches .swatch {
        width: 20px;
        /* Slightly smaller circles */
        height: 20px;
    }
}

/* --- CHECKOUT PAGE (ACCORDION) --- */
.checkout-layout {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    gap: 60px;
}

.checkout-form-section {
    flex: 3;
}

.checkout-summary-section {
    flex: 2;
}

.checkout-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Accordion Steps */
.accordion-step {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.step-header h3 {
    margin: 0;
    font-size: 1.2rem;
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-content {
    display: none;
    /* Hidden by default */
    padding-top: 20px;
}

/* Active State */
.accordion-step.active .step-content {
    display: block;
    animation: fadeIn 0.5s;
}

/* Disabled State */
.accordion-step.disabled {
    opacity: 0.5;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Minimal Inputs */
.minimal-input {
    width: 100%;
    padding: 12px 0;
    margin-bottom: 20px;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.minimal-input:focus {
    border-bottom-color: #000;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row input {
    flex: 1;
}

/* Buttons */
.step-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.btn-step-continue,
.btn-place-order {
    flex: 2;
    padding: 15px;
    background: black;
    color: white;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-step-back {
    flex: 1;
    padding: 15px;
    background: white;
    color: black;
    border: 1px solid #ddd;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

/* Confirmation Page */
.confirmation-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.confirmation-container h1 {
    margin-top: 20px;
    font-size: 2rem;
    letter-spacing: 1px;
    font-weight: 900;
}

.confirmation-container p {
    color: #666;
    margin-bottom: 10px;
}

.confirmation-container button,
.confirmation-container .btn-buy,
.confirmation-container .btn-add-cart,
.confirmation-container .btn-step-continue {
    flex-grow: 0;
    /* Stop stretching */
    width: auto;
    /* Don't be full width */
    min-width: 200px;
    /* Nice standard size */
    margin-top: 30px;
    padding: 15px 30px;
    /* Normal padding */
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* Hover effect for polish */
.confirmation-container button:hover,
.confirmation-container .btn-step-continue:hover {
    opacity: 0.8;
}


.btn-step-continue:hover,
.btn-place-order:hover {
    background-color: #333;
}

/* Delivery Options */
.delivery-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    cursor: pointer;
}

.delivery-option input {
    margin-right: 15px;
}

.delivery-option label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
}

/* Order Summary Box */
.order-summary-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    position: sticky;
    top: 100px;
}

.order-summary-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.checkout-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #eee;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-details h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.checkout-item-details p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #666;
}

.summary-totals {
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.total-row {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

@media (max-width: 900px) {
    .checkout-layout {
        flex-direction: column;
        gap: 30px;
    }

    .order-summary-box {
        position: static;
    }
}