/* --- Global Variables (Easy Theme Changing) --- */
:root {
    --primary-dark: #222222; 
    --accent-gold: #c5a059; 
    --bg-light: #fdfbf7;
    --text-muted: #595959; 
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --font-etsy: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    
    background: linear-gradient(to right, rgba(253, 251, 247, 1) 40%, rgba(253, 251, 247, 0.3) 100%),
                url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.highlight {
    color: var(--accent-gold);
    font-style: italic;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 80%;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: #ffffff;
    border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-dark);
}

/* --- Premium Glass Card --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 350px;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.glass-card:hover {
    transform: translateY(-30px);
}

.badge {
    background-color: var(--accent-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.glass-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* --- Features Section --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 5rem 5%;
    background-color: #ffffff;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    border-top: 3px solid var(--accent-gold);
    background-color: var(--bg-light);
    transition: box-shadow 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================= */
/* --- EXPLORE COLLECTION PAGE STYLES ---    */
/* ========================================= */

.relative-nav {
    position: relative;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.explore-container {
    padding: 4rem 5%;
    background-color: var(--bg-light);
    min-height: 100vh;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.swing-card {
    text-decoration: none !important;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.swing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    background-color: #f5f5f5; 
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swing-card:hover .card-image-wrapper img {
    transform: scale(1.06); 
}

/* ETSY STYLE CATALOG INFO */
.card-info {
    padding: 1.2rem 1rem;
    text-align: left; 
}

.card-info h3 {
    font-family: var(--font-etsy);
    font-weight: 400;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    text-decoration: none !important;
    
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-family: var(--font-etsy);
    font-weight: 700;
    color: var(--primary-dark); 
    font-size: 1.2rem;
}


/* ========================================= */
/* --- PRODUCT DETAIL PAGE STYLES ---        */
/* ========================================= */

.product-detail-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Gallery gets slightly more space */
    gap: 4rem;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start; 
}

/* --- Left Side: Gallery (ETSY VERTICAL STYLE) --- */
.product-gallery {
    position: sticky;
    top: 100px; 
    display: flex;
    flex-direction: row-reverse; /* Flips order: Main image on right, thumbs on left */
    gap: 15px;
    align-items: start;
}

.main-display {
    flex: 1;
    width: 100%;
    aspect-ratio: 1 / 1; 
    background-color: #f5f5f5;
    border-radius: 8px; /* Clean flat edges like Etsy */
    overflow: hidden;
}

.main-display img, .main-display video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-row {
    display: flex;
    flex-direction: column; /* Vertical column */
    gap: 12px;
    overflow-y: auto; /* Scrollable if there are many images */
    overflow-x: hidden;
    max-height: 600px; /* Lock height to main display */
    width: 70px;
    flex-shrink: 0;
    
    /* Clean scrollbar hiding for Etsy look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.thumbnail-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.thumb-box {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background-color: #f5f5f5;
}

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

.thumb-box.active {
    border-color: var(--primary-dark);
    /* Removed bounce hover to keep it flat and editorial */
}

.video-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
}

.play-icon {
    font-size: 1.5rem;
    color: white;
}

/* --- Right Side: Info --- */
.product-info h1 {
    font-family: var(--font-etsy);
    font-weight: 400;
    font-size: 1.6rem; 
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* ETSY STYLE PRICE */
.product-price {
    font-family: var(--font-etsy);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* ETSY STYLE HYPE TEXT & BADGES */
.hype-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 25px;
}

.etsy-delivery-badge {
    background-color: #D4E9D7; 
    color: #222222;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--font-etsy);
}

.etsy-scarcity-text {
    color: #A61A2E; 
    font-size: 0.95rem;
    margin-bottom: 2px;
    line-height: 1.4;
    font-family: var(--font-etsy);
}

.etsy-basket-text {
    color: #222222;
    font-size: 0.95rem;
    font-family: var(--font-etsy);
}


/* --- Action Buttons --- */
.action-buttons {
    margin-bottom: 3.5rem;
}

.btn-large {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.2rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
    background-color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--primary-dark);
}

/* --- Read More Feature --- */
.description-section {
    position: relative;
}

.description-container {
    position: relative;
    max-height: 300px; 
    overflow: hidden;
    transition: max-height 0.8s ease; 
}

.description-container.expanded {
    max-height: 3000px; 
}

.product-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.product-description strong {
    color: var(--primary-dark);
}

.read-more-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(253, 251, 247, 0) 0%, rgba(253, 251, 247, 1) 90%);
    pointer-events: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 1rem 0;
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: color 0.3s ease;
    margin-top: -10px;
}

.read-more-btn:hover {
    color: var(--text-muted);
}


/* ========================================= */
/* --- 3D CONFIGURATOR UI STYLES ---         */
/* ========================================= */

.thumb-3d {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3a3a3a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumb-3d .play-icon {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: 600;
}

#configurator-panel {
    animation: fadeInSlide 0.4s ease-out forwards;
}

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

.config-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
}

.config-section {
    margin-bottom: 2.5rem;
}

.config-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.camera-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cam-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.cam-btn:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cam-btn.active {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.swatch-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
    transform: scale(1.1);
}

.fabric-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fabric-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.fabric-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.fabric-thumb.active {
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: white;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Mobile Breakpoint for Gallery */
@media (max-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr; 
    }
    .product-gallery {
        position: static; 
        flex-direction: column; /* Reverts to horizontal scrolling for mobile */
    }
    .thumbnail-row {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

/* ========================================== */
/* SIMILAR PRODUCTS CROSS-SELL SECTION        */
/* ========================================== */
.similar-products-wrapper {
    max-width: 1200px;
    margin: 60px auto 40px auto;
    padding: 0 20px;
    border-top: 1px solid #eaeaea;
    padding-top: 40px;
}

.similar-title {
    font-family: var(--font-etsy);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

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

.similar-card {
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.similar-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.similar-details {
    padding: 15px 10px;
    text-align: left; 
}

.similar-details h5 {
    font-family: var(--font-etsy);
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: var(--primary-dark);
    line-height: 1.3;
}

.similar-details .similar-price {
    font-family: var(--font-etsy);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    text-align: left;
}

@media (max-width: 992px) {
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .similar-grid {
        grid-template-columns: 1fr;
    }
}

.card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.swing-card:hover .card-overlay { opacity: 1; }

.action-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.like-btn.liked { color: #A61A2E; }

.social-actions {
    display: flex;
    gap: 15px;
}