/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Austere Modern Scandinavian Palette */
    --clr-bg: #FFFFFF;
    /* Pure White background */
    --clr-text-main: #2C2C2C;
    /* High contrast dark charcoal from strict modernism */
    --clr-primary: #78857C;
    /* Muted grey-green */
    --clr-accent: #EAEAEA;
    /* Austere light grey for accents/bars */
    --clr-wood: #F7F7F7;
    /* Very subtle off-white/grey for section backgrounds */
    --clr-white: #ffffff;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

body,
html {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography styles */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
}

/* --- Top Announcement Bar --- */
.top-bar {
    background-color: var(--clr-accent);
    color: var(--clr-text-main);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
    /* Above navbar */
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--clr-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--clr-accent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-text-main);
    /* Match logo text color */
    letter-spacing: 0.5px;
}

.logo-img {
    height: 50px;
    /* Adjust size relative to navbar */
    width: auto;
    border-radius: 50%;
    /* Circle framing */
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1rem;
    /* Reduced gap to fit 5 items */
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    /* Reduced font size */
    letter-spacing: 0.5px;
    /* Tighter letter spacing */
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#language-switcher {
    padding: 0.3rem;
    border: 1px solid var(--clr-wood);
    border-radius: 4px;
    background: transparent;
    font-family: var(--font-body);
    color: var(--clr-text-main);
    cursor: pointer;
    outline: none;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--clr-accent);
    color: var(--clr-white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section & Video Carousel --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligned left as requested */
    text-align: left;
    overflow: hidden;
    /* Hide overflow from videos */
}

/* Video Carousel Base */
.video-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.0) 100%);
    /* Fade from pure white */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 2rem 5%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--clr-text-main);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--clr-text-main);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--clr-text-main);
    color: var(--clr-bg);
    /* Inverted stark look: Charcoal bg, white text */
    font-weight: 400;
    font-family: var(--font-body);
    /* Straight body font */
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    /* Sharp austere border */
    border: 1px solid var(--clr-text-main);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-text-main);
}

.btn-secondary {
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    /* Thinner border */
    border-radius: 2px;
    font-weight: 400;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.4s ease;
}

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

/* --- Collections Section --- */
.section-collections {
    padding: 5rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--clr-primary);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Larger min-width based on feedback */
    gap: 2rem;
    /* Smaller gap */
}

.collection-card {
    background-color: var(--clr-white);
    border-radius: 0;
    /* Sharp corners */
    overflow: hidden;
    border: 1px solid var(--clr-accent);
    /* Austere grey border instead of shadow */
    transition: transform 0.4s ease, border-color 0.4s ease;
    text-align: center;
    /* Center aligned for elegance */
}

.collection-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-text-main);
    /* Darken border on hover */
}

.card-img {
    height: 270px;
    /* Larger aspect ratio */
    background-size: cover;
    background-position: center;
    border-bottom: none;
    /* Removed heavy border for elegance */
}

.card-content {
    padding: 2.5rem 1.5rem;
    /* More breathing room */
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
    font-style: italic;
    /* Feminine typographic touch */
}

.card-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    min-height: 45px;
}

/* --- Reviews Section --- */
.section-reviews {
    padding: 6rem 5%;
    background-color: var(--clr-wood);
    /* Soft peach background */
    text-align: center;
}

.section-reviews .section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-main);
    margin-bottom: 3rem;
    font-style: italic;
    font-family: var(--font-heading);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background-color: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: 0;
    border: 1px solid var(--clr-accent);
    text-align: center;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #F8C35A;
    /* Warm gold/yellow for stars */
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--clr-primary);
}

/* --- Footer --- */
footer {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 4rem 5% 1rem 5%;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-social h3 {
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
    color: var(--clr-wood);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--clr-accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}


/* --- Product Listing Page (PLP) --- */
.page-header {
    text-align: center;
    padding: 4rem 5% 2rem;
    background-color: var(--clr-bg);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--clr-text-main);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--clr-text-main);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-style: italic;
    opacity: 0.8;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(158, 181, 168, 0.3);
    border-bottom: 1px solid rgba(158, 181, 168, 0.3);
    padding: 1rem 0;
}

.filter-categories {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.filter-categories a {
    color: var(--clr-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.filter-categories a:hover,
.filter-categories a.active {
    opacity: 1;
}

.filter-categories a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--clr-primary);
}

.sort-dropdown select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(158, 181, 168, 0.5);
    border-radius: 4px;
    background-color: transparent;
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.products-container {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--clr-white);
}

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

#featured-products .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem 1.5rem;
}

.product-card {
    text-decoration: none;
    color: var(--clr-text-main);
    display: flex;
    flex-direction: column;
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--clr-bg);
    margin-bottom: 1.5rem;
    /* Soft shadow to replicate a printed poster feel */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

.product-hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    /* Above image, below add to cart btn */
    pointer-events: none;
    /* Let clicks pass through */
}

/* Favorite button overlay on product cards */
.product-card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.product-card-favorite:hover {
    transform: scale(1.05);
}

.product-card-favorite.active {
    color: red;
}

.product-card:hover .product-hover-video {
    opacity: 1;
}

.hover-add-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(252, 251, 245, 0.95);
    /* Soft cream */
    color: var(--clr-text-main);
    text-align: center;
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .hover-add-cart {
    transform: translateY(0);
}

.product-info {
    text-align: left;
    padding: 0 0.2rem;
}

.etsy-grid-price-main {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--clr-text-main);
    line-height: 1.2;
}

.etsy-grid-price-original {
    font-size: 0.75rem;
    color: #595959;
    margin-top: 0.2rem;
}

.etsy-grid-price-original del {
    text-decoration: line-through;
}

.etsy-grid-img-container {
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.5rem;
    box-shadow: none;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 5rem;
}

.page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid transparent;
    color: var(--clr-text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--clr-bg);
}

.page-link.active {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}


/* --- Product Details Page (PDP) --- */
.product-details-container {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.pdp-breadcrumbs {
    font-size: 0.85rem;
    color: var(--clr-primary);
    margin-bottom: 3rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: '>';
    margin: 0 0.5rem;
    color: var(--clr-text-main);
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--clr-text-main);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.pdp-wrapper {
    display: grid;
    /* Increased left column ratio to make images larger (was 4fr 6fr) */
    grid-template-columns: 5.5fr 4.5fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .pdp-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Left Column Layout */
.pdp-left-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 850px;
    min-width: 0;
    /* Increased from 650px */
}

/* Gallery - Etsy Style (Thumbnails Left, Main Right) */
.pdp-gallery {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    min-width: 0;
}

/* Main image/video container */
.pdp-main-media {
    flex-grow: 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f7f7f7;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4 / 5;
    min-width: 0;
    /* Forces a tall portrait ratio */
}

/* Live Embroidery Preview Overlay */
.embroidery-preview {
    position: absolute;
    top: 35%;
    /* Adjust based on where it looks best on the onesie image */
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    /* Slight rotation for realism */
    font-size: 2.5rem;
    color: transparent;
    /* Default hidden */
    pointer-events: none;
    /* Let clicks pass through to image/video */
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1), -0.5px -0.5px 0 rgba(255, 255, 255, 0.3);
    /* Embroidery 3D effect */
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease, font-family 0.3s ease;
}

.embroidery-preview.visible {
    opacity: 0.9;
}

/* --- Single Embroidery Preview (Chest/Corner placement) --- */
.single-embroidery-preview {
    position: absolute;
    top: 55%;
    left: 45%;
    transform: rotate(-5deg) translate(-50%, -50%);
    /* Slight angle */
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease, font-family 0.3s ease;
    mix-blend-mode: multiply;
    font-size: 32px;
    font-weight: 600;
}

.single-embroidery-preview.visible {
    opacity: 0.85;
}

.pdp-main-media img,
.pdp-main-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hidden-media {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.pdp-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 65px;
    /* Match thumbnail width */
    flex-shrink: 0;
    /* allow scrolling if many thumbnails */
    max-height: 550px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.pdp-thumbnails::-webkit-scrollbar {
    width: 4px;
}

.pdp-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--clr-accent);
    border-radius: 4px;
}

.thumbnail {
    width: 65px;
    height: 85px;
    border: 1px solid var(--clr-accent);
    cursor: pointer;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

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

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--clr-text-main);
}

.thumbnail.video-thumb {
    background-color: var(--clr-accent);
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Info Column */
.pdp-info {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.pdp-artist {
    color: var(--clr-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.pdp-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pdp-price {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* --- Etsy Style Pricing Block --- */
.etsy-pricing-block {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.etsy-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.etsy-price-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-text-main);
}

.etsy-price-original {
    font-size: 1.1rem;
    color: #666;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.etsy-discount-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.etsy-discount-badge {
    color: #0F8A5F;
    /* Green Etsy style */
}

.etsy-vat-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}

.etsy-vat-text a {
    text-decoration: underline;
}

/* Characteristics Section (Etsy Style) */
.pdp-characteristics {
    color: var(--clr-text-main);
    border-top: 1px solid var(--clr-accent);
    padding-top: 2rem;
}

.char-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.char-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.char-highlights {
    list-style: none;
    margin-bottom: 2.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.char-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
}

.char-highlights i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--clr-text-main);
}

.char-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--clr-text-main);
}

.pdp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--clr-accent);
    padding-top: 2rem;
}

/* Etsy-Inspired Variants */
.etsy-variants {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.etsy-style label {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--clr-text-main);
    margin-bottom: 0.3rem;
}

.required-star {
    font-size: 1rem;
}

/* Total Price Display */
.pdp-total-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-wood);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select {
    position: relative;
}

.custom-select select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #CCC;
    border-radius: 4px;
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* very subtle Etsy shadow */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select select:hover,
.custom-select select:focus {
    border-color: var(--clr-text-main);
    outline: none;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--clr-text-main);
    font-size: 0.8rem;
}

.pdp-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--clr-accent);
    border-radius: 2px;
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 0 1rem;
    font-size: 1.2rem;
    color: var(--clr-text-main);
    cursor: pointer;
}

#product-qty {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--clr-accent);
    border-right: 1px solid var(--clr-accent);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--clr-text-main);
    -moz-appearance: textfield;
    appearance: textfield;
}

#product-qty::-webkit-outer-spin-button,
#product-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    flex: 1;
    /* Takes up remaining space */
    padding: 1rem;
}

.favorite-btn {
    width: 55px;
    background: transparent;
    border: 1px solid var(--clr-accent);
    border-radius: 2px;
    color: var(--clr-text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.favorite-btn:hover,
.favorite-btn.active {
    border-color: var(--clr-text-main);
    color: #e25555;
    /* subtle red for heart */
}

.pdp-shipping-info {
    font-size: 0.85rem;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* --- PDP Personalization UI (Clothing) --- */

/* Swatches */
.swatch-container {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.swatch-label {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swatch-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.swatch {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--clr-accent);
    transition: all 0.2s ease;
}

.thread-swatch {
    width: 28px;
    /* Slightly smaller for thread */
    height: 28px;
}

/* Selected State */
.swatch-label input[type="radio"]:checked~.swatch {
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--clr-text-main);
    transform: scale(1.1);
}

.selected-value {
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Checkbox Toggle */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    user-select: none;
    margin-top: 1rem;
    color: var(--clr-text-main);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid var(--clr-text-main);
    border-radius: 3px;
    margin-right: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container:hover input~.checkmark {
    background-color: var(--clr-wood);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

/* Personalization Box */
.personalization-box {
    background-color: var(--clr-wood);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    border: 1px dashed var(--clr-primary);
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    overflow: hidden;
}

.personalization-box.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border: none;
}

.personalization-guidance {
    font-size: 0.85rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.etsy-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--clr-accent);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.etsy-input:focus {
    outline: none;
    border-color: var(--clr-primary);
}

.etsy-input.error {
    border-color: #CC4B4B;
    background-color: #FFF5F5;
}

.validation-message {
    color: #CC4B4B;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.validation-message.hidden {
    display: none;
}

/* Accordion */
.pdp-accordion {
    margin-top: 2rem;
    border-top: 1px solid var(--clr-accent);
}

.accordion-item {
    border-bottom: 1px solid var(--clr-accent);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--clr-text-main);
    cursor: pointer;
}

.accordion-header .icon-minus {
    display: none;
}

.accordion-header.active .icon-plus {
    display: none;
}

.accordion-header.active .icon-minus {
    display: block;
}

.accordion-content {
    display: none;
    padding-bottom: 1.5rem;
    color: var(--clr-text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- Legal Pages --- */
.legal-page {
    padding: 6rem 5%;
    background-color: var(--clr-bg);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--clr-white);
    padding: 4rem;
    border-radius: 0;
    border: 1px solid var(--clr-accent);
}

.legal-title {
    font-size: 2.5rem;
    color: var(--clr-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.legal-section {
    margin-top: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--clr-text-main);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(158, 181, 168, 0.3);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--clr-primary);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-list {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-legal-link {
    color: inherit;
    text-decoration: underline;
    opacity: 0.8;
}

.footer-legal-link:hover {
    opacity: 1;
}

/* --- FAQ Accordion --- */
.faq-list {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(158, 181, 168, 0.3);
    /* Sage green line */
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    /* Remove default triangle in most browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

/* Remove default triangle for Webkit */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--clr-primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--clr-primary);
    transition: transform 0.3s ease;
}

details[open] .faq-question::after {
    transform: rotate(45deg);
    /* Turns the + into an x */
}

.faq-answer {
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
    line-height: 1.7;
    color: var(--clr-text-main);
}

.faq-answer p:not(:last-child) {
    margin-bottom: 1rem;
}

/* --- Etsy Elements --- */
.etsy-search-container {
    display: block;
    padding: 0.8rem 5%;
    background-color: var(--clr-bg);
    border-bottom: 1px solid rgba(158, 181, 168, 0.3);
}

.etsy-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border: 2px solid var(--clr-text-main);
    border-radius: 25px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.etsy-search-input {
    flex: 1;
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.etsy-search-btn {
    background-color: var(--clr-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.etsy-gallery-actions,
.etsy-pagination {
    display: none;
}

.etsy-slider-track {
    width: 100%;
    height: 100%;
    display: flex;
    /* On desktop, keep standard behavior (no scroll snap) */
}

.etsy-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.etsy-slide img,
.etsy-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide for mobile prototype simplicity */
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .hero p {
        font-size: 1rem;
    }

    /* 2 columns on mobile to match Etsy style */
    .product-grid,
    #featured-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0.5rem;
    }

    .product-card,
    .collection-card {
        width: 100%;
        margin: 0;
    }

    .products-container {
        padding: 3rem 5%;
    }

    .product-image-container {
        margin-bottom: 0.8rem;
        aspect-ratio: 4/5;
        /* Slightly squarer so it's not too tall on small screens */
        height: auto;
    }

    .product-title {
        font-size: 1rem;
    }

    .section-collections {
        padding: 3rem 5%;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-img {
        height: 320px;
        /* Better proportion for full width */
    }

    .card-content {
        padding: 1.5rem 1rem;
    }

    .card-content h3 {
        font-size: 1.4rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        /* Fix horizontal overflow from 300px minmax */
    }

    .footer-content {
        grid-template-columns: 1fr;
        /* Stack footer vertically */
    }

    /* --- Etsy Mobile Specific Styles --- */
    /* End mobile specific Etsy styles */
    /* Full-Bleed Snap Gallery */
    .pdp-gallery.etsy-mobile-gallery {
        flex-direction: column;
        margin: 0 calc(-50vw + 50%);
        /* Edge-to-edge container */
        width: 100vw;
        position: relative;
    }

    .etsy-mobile-gallery .pdp-thumbnails {
        display: none !important;
        /* Hide thumbnails entirely on mobile */
    }

    .etsy-slider-container {
        width: 100vw;
        aspect-ratio: 4 / 5;
        border-radius: 0;
        position: relative;
        overflow: hidden;
        /* Prevent parent scrolling */
    }

    .etsy-slider-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        height: 100%;
        scrollbar-width: none;
        /* Firefox */
    }

    .etsy-slider-track::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .etsy-slide {
        scroll-snap-align: start;
        flex: 0 0 100vw;
        width: 100vw;
        height: 100%;
        background-color: #f7f7f7;
    }

    /* Gallery Overlays */
    .etsy-gallery-actions {
        display: flex;
        /* Show on mobile */
        position: absolute;
        top: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 0.8rem;
        z-index: 10;
    }

    .gallery-action-btn {
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #222;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .etsy-pagination {
        display: flex;
        /* Show on mobile */
        position: absolute;
        bottom: 1.5rem;
        left: 0;
        width: 100%;
        justify-content: center;
        gap: 8px;
        z-index: 10;
    }

    .etsy-pagination .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.7);
        transition: background-color 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .etsy-pagination .dot.active {
        background-color: #333;
        /* Dark indicator */
    }

    /* Restore padding for text sections */
    .pdp-info,
    .pdp-characteristics {
        padding: 0 5%;
    }

    /* Remove top whitespace for full-bleed gallery */
    .product-details-container {
        padding-top: 1rem;
    }

    .pdp-breadcrumbs {
        margin-bottom: 1rem;
        padding: 0 5%;
    }

    .pdp-wrapper {
        gap: 1.5rem;
    }

    /* Sticky Add To Cart */
    .pdp-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem 5%;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        margin-top: 0;
    }

    /* Add padding to wrapper to prevent the last content from being hidden behind sticky bar */
    .pdp-wrapper {
        padding-bottom: 5rem;
    }
}