/* ============================================================
   Made by Her Studio — Main Stylesheet
   ============================================================ */

/* ─── CSS Custom Properties ────────────────────────────────────────────────── */
:root {
    /* Shadcn / Tailwind-style HSL tokens */
    --background:         30 20% 97%;
    --foreground:         25 15% 15%;
    --card:               30 15% 94%;
    --card-foreground:    25 15% 15%;
    --popover:            30 20% 97%;
    --popover-foreground: 25 15% 15%;
    --primary:            25 30% 45%;
    --primary-foreground: 30 20% 97%;
    --secondary:          30 18% 91%;
    --secondary-foreground: 25 15% 20%;
    --muted:              30 12% 86%;
    --muted-foreground:   25 10% 45%;
    --accent:             30 20% 83%;
    --accent-foreground:  25 15% 15%;
    --destructive:        0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border:             30 15% 83%;
    --input:              30 15% 83%;
    --ring:               25 30% 45%;
    --radius:             0.375rem;

    /* Brand tokens */
    --forest:       25 30% 45%;
    --forest-light: 25 25% 55%;
    --forest-dark:  25 35% 35%;
    --sage:         30 20% 72%;
    --cream:        35 25% 96%;
    --charcoal:     20 10% 18%;

    /* Fonts */
    --font-display: 'Cormorant Garamond', serif;
    --font-body:    'Outfit', sans-serif;

    /* Shadows */
    --shadow-soft:     0 4px 20px -4px hsl(25 15% 15% / 0.08);
    --shadow-elevated: 0 8px 40px -8px hsl(25 15% 15% / 0.15);

    /* Easing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, video { display: block; max-width: 100%; }

ul { list-style: none; margin: 0; padding: 0; }

button, input, textarea, select {
    font-family: var(--font-body);
    font-size: inherit;
}

button { cursor: pointer; }

.hidden { display: none !important; }
.opacity-60 { opacity: 0.6; }

/* ─── Layout Helpers ────────────────────────────────────────────────────────── */
.container-wide {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.scroll-mt-24 { scroll-margin-top: 6rem; }

/* ─── Typography ────────────────────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

.section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}

/* ─── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes accordionDown {
    from { max-height: 0; opacity: 0; }
    to   { max-height: 500px; opacity: 1; }
}
@keyframes accordionUp {
    from { max-height: 500px; opacity: 1; }
    to   { max-height: 0; opacity: 0; }
}

.animate-fade-in  { animation: fadeIn  0.6s var(--ease-smooth) both; }
.animate-slide-up { animation: slideUp 0.6s var(--ease-smooth) both; }

/* ─── Utility Classes ───────────────────────────────────────────────────────── */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px;
    background-color: currentColor;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

.card-hover {
    transition: all 0.5s var(--ease-smooth);
}
.card-hover:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
}

.image-zoom { transition: transform 0.7s ease-out; }
.image-zoom:hover { transform: scale(1.05); }

/* Badges */
.sold-out-badge,
.new-badge,
.one-of-a-kind-badge,
.multiple-colors-badge {
    position: absolute;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}
.sold-out-badge        { top: 0.5rem; left: 0.5rem; background-color: hsl(var(--charcoal)); color: hsl(var(--cream)); }
.new-badge             { top: 0.5rem; right: 0.5rem; background-color: hsl(var(--forest)); color: #fff; }
.one-of-a-kind-badge   { bottom: 0.5rem; left: 0.5rem; background-color: hsl(var(--sage)); color: hsl(var(--forest-dark)); font-size: 0.5rem; }
.multiple-colors-badge { top: 0.5rem; right: 0.5rem; background-color: hsl(280 40% 50%); color: #fff; }
.multiple-colors-badge.has-new { top: 2.25rem; }

@media (min-width: 768px) {
    .sold-out-badge        { top: 0.75rem; left: 0.75rem; font-size: 0.75rem; padding: 0.375rem 0.75rem; }
    .new-badge             { top: 0.75rem; right: 0.75rem; font-size: 0.75rem; padding: 0.375rem 0.75rem; }
    .one-of-a-kind-badge   { bottom: 0.75rem; left: 0.75rem; font-size: 0.625rem; padding: 0.25rem 0.5rem; }
    .multiple-colors-badge { top: 0.75rem; right: 0.75rem; font-size: 0.75rem; padding: 0.375rem 0.75rem; }
    .multiple-colors-badge.has-new { top: 3rem; }
}

/* Chevron pattern */
.chevron-pattern {
    background-color: hsl(var(--secondary));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpolyline points='0,20 20,0 40,20' fill='none' stroke='hsl(30,15%25,78%25)' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 40px 20px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    border: 1px solid transparent;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-sm  { padding: 0.5rem 1.25rem; }
.btn-lg  { padding: 0.75rem 2rem; font-size: 1rem; }

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-color: hsl(var(--border));
}
.btn-secondary:hover { background-color: hsl(var(--muted)); }

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background-color: rgba(255,255,255,0.1); }

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}
.btn-ghost:hover { background-color: hsl(var(--secondary)); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ─── Forms ─────────────────────────────────────────────────────────────────── */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}
.form-label span { color: hsl(var(--muted-foreground)); }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: hsl(var(--muted-foreground)); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}
.form-textarea { resize: none; }

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

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ─── HEADER ────────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    z-index: 50;
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    min-width: 0;
    gap: 0.5rem;
}

@media (min-width: 1024px) { .site-nav { height: 5rem; } }

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
}
.site-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12rem;
}
.site-logo {
    height: auto;
    max-height: 3.25rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
@media (min-width: 1024px) {
    .site-logo { max-height: 4.5rem; }
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-link {
    font-size: 0.875rem;
    font-family: var(--font-body);
    letter-spacing: 0.025em;
    color: hsl(var(--foreground));
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.cart-btn {
    position: relative;
    padding: 0.5rem;
    background: none;
    border: none;
    color: hsl(var(--foreground));
    transition: opacity 0.2s;
}
.cart-btn:hover { opacity: 0.6; }

.cart-icon { width: 1.25rem; height: 1.25rem; }

.theme-cart-count {
    position: absolute;
    top: -0.125rem; right: -0.125rem;
    width: 1.25rem; height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 500;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 9999px;
    line-height: 1;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: none;
    border: none;
    color: hsl(var(--foreground));
    transition: opacity 0.2s;
}
.mobile-menu-btn:hover { opacity: 0.6; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.nav-mobile {
    border-top: 1px solid hsl(var(--border));
    padding: 1rem 0;
    animation: fadeIn 0.3s var(--ease-smooth);
}
.nav-mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-family: var(--font-body);
    letter-spacing: 0.025em;
    color: hsl(var(--foreground));
    transition: color 0.2s;
}
.nav-mobile-link:hover { color: hsl(var(--muted-foreground)); }

/* ─── PAGE MAIN ─────────────────────────────────────────────────────────────── */
.page-main { padding-top: 4rem; min-height: 100vh; }
@media (min-width: 1024px) { .page-main { padding-top: 5rem; } }

/* ─── HERO SECTION ──────────────────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-overline {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* ─── ABOUT SECTION ─────────────────────────────────────────────────────────── */
.about-section { padding: 5rem 0; }

.about-content {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.about-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: hsl(var(--muted-foreground));
}

.about-highlighted {
    font-weight: 500;
    color: hsl(var(--foreground));
}

.about-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ─── SHOP SECTION ──────────────────────────────────────────────────────────── */
.shop-section { padding: 5rem 0; }

.shop-header { text-align: center; margin-bottom: 3rem; }

.shop-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-pill {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    border: none;
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    transition: all 0.3s;
    cursor: pointer;
}
.category-pill:hover { background-color: hsl(var(--muted)); }
.category-pill.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.price-filter-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.price-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    border: none;
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    transition: all 0.3s;
    cursor: pointer;
}
.price-filter-toggle:hover { background-color: hsl(var(--muted)); }
.price-range-display { font-size: 0.75rem; opacity: 0.7; }
.chevron-icon { width: 1rem; height: 1rem; transition: transform 0.3s; }
.price-filter-toggle.open .chevron-icon { transform: rotate(180deg); }

.price-filter-body {
    width: 100%;
    max-width: 24rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s var(--ease-smooth), opacity 0.3s;
    padding: 0;
}
.price-filter-body.open { max-height: 10rem; opacity: 1; padding: 0.5rem 0; }

/* Dual range slider */
.range-slider-track {
    position: relative;
    height: 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}
.range-slider-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: hsl(var(--muted));
    border-radius: 2px;
}
.range-input {
    position: absolute;
    top: 4px;
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}
.range-input::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}
.range-input::-moz-range-track {
    height: 4px;
    background: transparent;
}
.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem; height: 1.25rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    border: 2px solid hsl(var(--background));
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.15s;
}
.range-input::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range-input::-moz-range-thumb {
    width: 1.25rem; height: 1.25rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    border: 2px solid hsl(var(--background));
    cursor: pointer;
    pointer-events: all;
}

.price-filter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px)  { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.product-card-link { display: block; }
.product-card-link:hover .product-card-name { opacity: 0.7; }

.product-card-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: hsl(var(--secondary));
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-card-image {
    width: 100%; height: 100%;
    object-fit: cover;
}

.product-card-info { display: flex; flex-direction: column; gap: 0.25rem; }

.product-card-name {
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body);
    transition: opacity 0.2s;
}

.product-card-price {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Coming soon card */
.coming-soon-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    border: 2px dashed hsl(var(--muted-foreground) / 0.2);
    background-color: hsl(var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.coming-soon-card span {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.no-products-message {
    text-align: center;
    padding: 5rem 0;
    color: hsl(var(--muted-foreground));
}

/* ─── FAQ SECTION ───────────────────────────────────────────────────────────── */
.faq-section {
    background-color: hsl(var(--secondary));
    padding: 5rem 0;
}

.faq-inner { max-width: 40rem; margin-left: auto; margin-right: auto; }

.section-header-center { text-align: center; margin-bottom: 3rem; }

.faq-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 500;
    margin-top: 0.5rem;
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item { background-color: hsl(var(--background)); border-radius: var(--radius); overflow: hidden; }

.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    cursor: pointer;
    gap: 1rem;
    transition: background-color 0.2s;
}
.faq-trigger:hover { background-color: hsl(var(--muted) / 0.5); }

.faq-question { flex: 1; }
.faq-icon { flex-shrink: 0; display: flex; align-items: center; }

.faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    overflow: hidden;
}

/* ─── CTA SECTION ───────────────────────────────────────────────────────────── */
.cta-section { padding: 5rem 0; }

.cta-inner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
    color: #fff;
}
@media (min-width: 768px) { .cta-inner { padding: 4rem; } }

.cta-bg-image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
}

.cta-content { position: relative; z-index: 10; }

.cta-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.cta-text {
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid hsl(var(--border));
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
@media (min-width: 1024px) { .footer-grid { padding: 4rem 0; } }

.footer-logo-link { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo { width: 2.5rem; height: 2.5rem; border-radius: 9999px; object-fit: cover; }
.footer-brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; }

.footer-tagline {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    max-width: 24rem;
    line-height: 1.6;
}

.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social-link {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-decoration: underline;
    transition: color 0.2s;
}
.footer-social-link:hover { color: hsl(var(--foreground)); }

.footer-col-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; font-family: var(--font-body); }

.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link { font-size: 0.875rem; color: hsl(var(--muted-foreground)); transition: color 0.2s; }
.footer-link:hover { color: hsl(var(--foreground)); }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.footer-contact-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.footer-copyright { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.footer-credit { font-size: 0.75rem; color: hsl(var(--muted-foreground)); transition: color 0.2s; }
.footer-credit:hover { color: hsl(var(--foreground)); }

/* ─── CONTACT PAGE ──────────────────────────────────────────────────────────── */
.contact-page { padding-top: 6rem; }
@media (min-width: 1024px) { .contact-page { padding-top: 7rem; } }

.contact-page .container-wide { padding-top: 2.5rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
    margin-bottom: 2rem;
}
.back-link:hover { color: hsl(var(--foreground)); }
.back-link-icon { width: 1rem; height: 1rem; }

.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-title { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 500; margin-bottom: 1rem; }
.contact-subtitle { color: hsl(var(--muted-foreground)); }

.contact-layout {
    max-width: 56rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 2fr; } }

.contact-info-card {
    background-color: hsl(var(--secondary));
    border-radius: var(--radius);
    padding: 1.5rem;
}
.contact-info-title { font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.contact-info-icon { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); flex-shrink: 0; }
.contact-info-link { transition: color 0.2s; }
.contact-info-link:hover { color: hsl(var(--primary)); }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-success {
    text-align: center;
    padding: 2rem 0;
}
.success-icon-wrap {
    width: 4rem; height: 4rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.success-check-icon { width: 2rem; height: 2rem; }
.success-title { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 500; margin-bottom: 1rem; }

/* ─── WOOCOMMERCE — Single Product ──────────────────────────────────────────── */
.single-product-page { padding-top: 6rem; }
@media (min-width: 1024px) { .single-product-page { padding-top: 7rem; } }

.product-back-link { padding: 1.5rem 0; }

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 5rem;
}
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Image Column */
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }

.product-main-image-wrap {
    aspect-ratio: 3 / 4;
    background-color: hsl(var(--secondary));
    border-radius: var(--radius);
    overflow: hidden;
}

.product-main-image {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumbnails { display: flex; gap: 0.75rem; overflow-x: auto; }

.product-thumb-btn {
    flex-shrink: 0;
    width: 5rem; height: 6rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    background: hsl(var(--secondary));
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s;
}
.product-thumb-btn.is-active { border-color: hsl(var(--foreground)); }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Info Column */
.product-info { padding-top: 0; }
@media (min-width: 1024px) { .product-info { padding-top: 2.5rem; } }

.product-category-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    display: block;
    margin-bottom: 0.5rem;
}

.product-title { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 500; margin-bottom: 1rem; }

.product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }

.product-sold-out-notice {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.product-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Variants */
.product-variants { margin-bottom: 1.5rem; }
.product-variant-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.75rem; display: block; }
.product-colors { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.product-color-btn {
    width: 2.5rem; height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid hsl(var(--border));
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s, border-color 0.15s;
}
.product-color-btn:hover { transform: scale(1.05); }
.product-color-btn.selected { border-color: hsl(var(--foreground)); transform: scale(1.1); }

.product-sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-size-btn {
    min-width: 3rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.product-size-btn:hover { border-color: hsl(var(--foreground)); }
.product-size-btn.selected { border-color: hsl(var(--foreground)); background-color: hsl(var(--foreground)); color: hsl(var(--background)); }

/* Attribute selects */
.product-attribute { margin-bottom: 1rem; }
.product-attribute select {
    width: auto;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--background));
    font-size: 0.875rem;
    cursor: pointer;
}

/* Quantity + ATC */
.product-atc-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.qty-btn:hover { background-color: hsl(var(--secondary)); }
.qty-btn svg { width: 1rem; height: 1rem; }
.qty-display { padding: 0.75rem 1rem; min-width: 3rem; text-align: center; font-size: 0.875rem; }
.qty-hidden { display: none; }

.atc-btn {
    flex: 1;
}

/* Product Details */
.product-details-section {
    border-top: 1px solid hsl(var(--border));
    padding-top: 2rem;
}
.product-details-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; font-family: var(--font-body); }
.product-details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}
.product-details-bullet {
    width: 0.375rem; height: 0.375rem;
    border-radius: 9999px;
    background-color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* Related Products */
.related-products {
    border-top: 1px solid hsl(var(--border));
    padding: 5rem 0;
}
.related-title { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; margin-bottom: 2.5rem; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* ─── WOOCOMMERCE — Cart Drawer ──────────────────────────────────────────────── */
#theme-cart-overlay {
    position: fixed;
    inset: 0;
    background-color: hsl(var(--foreground) / 0.2);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

body.cart-open #theme-cart-overlay {
    opacity: 1;
    pointer-events: all;
}

#theme-cart-drawer {
    position: fixed;
    right: 0; top: 0;
    height: 100%;
    width: 100%;
    max-width: 28rem;
    background-color: hsl(var(--background));
    z-index: 101;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-elevated);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-smooth);
}

body.cart-open #theme-cart-drawer { transform: translateX(0); }

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    flex-shrink: 0;
}
.cart-drawer-title { font-size: 1.125rem; font-weight: 500; }
.cart-close-btn {
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
    transition: opacity 0.2s;
}
.cart-close-btn:hover { opacity: 0.6; }
.cart-close-btn svg { width: 1.25rem; height: 1.25rem; }

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}
.cart-empty-icon { width: 3rem; height: 3rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.cart-empty-text { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }

.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.cart-item { display: flex; gap: 1rem; }
.cart-item-thumb-link { flex-shrink: 0; width: 5rem; height: 6rem; border-radius: var(--radius); overflow: hidden; background-color: hsl(var(--secondary)); display: block; }
.cart-item-thumb { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s; }
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.cart-item-variation { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

.cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 0.25rem;
    background: transparent; border: none; cursor: pointer;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}
.cart-qty-btn:hover { background-color: hsl(var(--secondary)); }
.cart-qty-btn svg { width: 0.75rem; height: 0.75rem; }
.cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.cart-remove-btn {
    margin-left: auto;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    background: none; border: none; cursor: pointer;
    transition: color 0.2s;
}
.cart-remove-btn:hover { color: hsl(var(--foreground)); }

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.cart-subtotal-label { color: hsl(var(--muted-foreground)); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.cart-checkout-btn { width: 100%; }

/* ─── WOOCOMMERCE — Archive / Shop ──────────────────────────────────────────── */
.shop-archive { padding-top: 6rem; }
@media (min-width: 1024px) { .shop-archive { padding-top: 7rem; } }

.shop-archive-header { text-align: center; padding: 3rem 0 2rem; }
.shop-archive-title { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 500; margin-bottom: 1rem; }

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-bottom: 5rem;
}
@media (min-width: 768px)  { .shop-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .shop-product-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* Archive product card — same styles as home card */
.archive-product-card .product-card-image-wrap { margin-bottom: 1rem; }
.archive-atc-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    font-size: 0.75rem;
}

/* ─── WOOCOMMERCE — Checkout ─────────────────────────────────────────────────── */
.checkout-page { min-height: 100vh; }


/* Checkout: padding interno para evitar overflow en mobile */
.checkout-page .container-wide {
    padding-left: 0;
    padding-right: 0;
}
.checkout-page .checkout-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 1024px) {
    .checkout-page .checkout-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Checkout: prevent horizontal scroll — ALL viewport sizes */
html.woocommerce-checkout,
body.woocommerce-checkout { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body.woocommerce-checkout .page-main,
body.woocommerce-checkout .checkout-page,
body.woocommerce-checkout .wp-block-group.alignwide,
body.woocommerce-checkout form.checkout { overflow-x: hidden; max-width: 100%; }
body.woocommerce-checkout .container-wide { overflow-x: hidden; }
body.woocommerce-checkout form.checkout { box-sizing: border-box; }
body.woocommerce-checkout .select2-container { max-width: 100% !important; }
/* Select2 country dropdown: prevent horizontal overflow */
body.woocommerce-checkout .select2-container { width: 100% !important; }
body.woocommerce-checkout .form-row .select2-container { width: 100% !important; }
/* Dropdown panel: constrain to viewport */
.woocommerce-checkout .select2-dropdown { max-width: calc(100vw - 2rem) !important; }
@supports (width: min(1px, 1px)) {
    .woocommerce-checkout .select2-dropdown,
    .woocommerce-checkout .select2-container--default .select2-selection--single {
        max-width: min(100%, calc(100vw - 2rem)) !important;
    }
}
/* Long country names: truncate with ellipsis */
.woocommerce-checkout .select2-results__option,
.woocommerce-checkout .select2-selection__rendered {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}
body.woocommerce-checkout #theme-cart-drawer { max-width: 100%; }
body.woocommerce-checkout .site-header .container-wide,
body.woocommerce-checkout .site-header .site-nav,
body.woocommerce-checkout #mobile-menu.nav-mobile { overflow-x: hidden; max-width: 100%; }

/* Mobile: stricter overflow containment (100vw causes horizontal scroll on mobile) */
@media (max-width: 1023px) {
    html.woocommerce-checkout,
    body.woocommerce-checkout { overflow-x: hidden !important; overflow-x: clip !important; }
    .woocommerce-checkout .select2-dropdown { max-width: calc(100% - 2rem) !important; }
    .woocommerce-checkout .wp-block-group.alignwide { max-width: 100% !important; }
}

/* Desktop: restore container-wide max-width (avoid full viewport) */
@media (min-width: 1024px) {
    body.woocommerce-checkout .container-wide { max-width: 80rem; }
}

/* Contain Stripe iframe overflow (width: calc(100%+8px), margin:-4px) */
.woocommerce-checkout .payment_method_stripe .payment_box,
.woocommerce-checkout .wc-upe-form,
.woocommerce-checkout .wc-stripe-upe-element { overflow-x: hidden; }

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem 4rem;
    padding: 2.5rem 0 5rem;
    width: 100%;
    min-width: 0;
}
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: 1fr 1fr; } }
/* Error notices: full-width row above columns (don't break layout) */
.checkout-layout > .woocommerce-NoticeGroup,
.checkout-layout > .woocommerce-NoticeGroup-checkout {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
}
.checkout-col-order,
.checkout-col-form { min-width: 0; }
.woocommerce-checkout #payment,
.woocommerce-checkout .payment_method_stripe .payment_box,
.woocommerce-checkout [data-mount-point] { min-width: 0; max-width: 100%; }

.checkout-col-order { order: 2; }
.checkout-col-form  { order: 1; }
@media (min-width: 1024px) {
    .checkout-col-order { order: 1; }
    .checkout-col-form  { order: 2; }
}

.checkout-section-title { font-size: 1.25rem; font-weight: 500; margin-bottom: 1.5rem; }

.checkout-items { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }

.checkout-item { display: flex; gap: 1rem; }
.checkout-item-img-wrap { width: 5rem; height: 6rem; background-color: hsl(var(--secondary)); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.checkout-item-img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { font-size: 0.875rem; font-weight: 500; display: block; transition: opacity 0.2s; }
.checkout-item-name:hover { opacity: 0.7; }
.checkout-item-price { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.checkout-item-total { font-size: 0.875rem; font-weight: 500; flex-shrink: 0; }

.checkout-totals {
    border-top: 1px solid hsl(var(--border));
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.checkout-total-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.checkout-total-row.final { font-size: 1rem; font-weight: 500; padding-top: 0.75rem; border-top: 1px solid hsl(var(--border)); }
.checkout-total-label { color: hsl(var(--muted-foreground)); }
.checkout-total-label.final { color: hsl(var(--foreground)); }
.checkout-free { color: hsl(var(--primary)); font-weight: 500; }

/* Order review: shipping, total, payment (no product duplication) */
#order_review {
    margin-top: 1.5rem;
}
.checkout-review-order {
    border: none;
    padding-top: 0;
    margin-top: 0;
}
.checkout-review-table {
    width: 100%;
    border: none;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    border-collapse: collapse;
}
.checkout-review-table tfoot tr:empty {
    display: none;
}
.checkout-review-table th,
.checkout-review-table td {
    padding: 0.625rem 0;
    border: none;
    vertical-align: top;
    font-weight: inherit;
}
.checkout-review-table th {
    text-align: left;
    color: hsl(var(--muted-foreground));
    padding-right: 1rem;
}
.checkout-review-table tr.shipping th,
.checkout-review-table tr.shipping td,
.checkout-review-table tr.shipping td table,
.checkout-review-table tr.shipping td * {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}
/* tr.order-total: full width (override display:flex from .checkout-total-row) */
.checkout-review-table tr.order-total {
    display: table-row !important;
    width: 100% !important;
}
.checkout-review-table tr.order-total th,
.checkout-review-table tr.order-total td {
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border)) !important;
    font-size: 1rem;
    font-weight: 500;
}
.checkout-review-table tr.order-total td { text-align: right; }
/* Align second column (td) to end of row for shipping and total */
.checkout-review-table tr.woocommerce-shipping-totals td {
    text-align: right;
}
.checkout-review-table tr.woocommerce-shipping-totals td .woocommerce-shipping-methods {
    display: inline-block;
    text-align: left;
}
.checkout-review-table tr.order-total th { color: hsl(var(--foreground)); }
.checkout-review-table tr.shipping td ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.checkout-review-table tr.shipping td li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checkout-review-table tr.shipping td label {
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    cursor: pointer;
    font-weight: 400;
}
.checkout-review-table tr.shipping td input[type="radio"] {
    accent-color: hsl(var(--primary));
    width: 1rem;
    height: 1rem;
}

/* Payment section (gateways, Stripe, Place order) */
.woocommerce-checkout .checkout-col-order #payment {
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}
.woocommerce-checkout .checkout-col-order #payment ul.wc_payment_methods {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.woocommerce-checkout .checkout-col-order #payment li.wc_payment_method {
    margin-bottom: 0.75rem;
    padding: 0;
}
.woocommerce-checkout .checkout-col-order #payment li.wc_payment_method label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.woocommerce-checkout .checkout-col-order #payment .payment_box {
    padding: 0.75rem 0 0 1.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}
.woocommerce-checkout .checkout-col-order #payment .payment_method_stripe .payment_box {
    padding: 1rem;
    margin-top: 0.5rem;
    background-color: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
}
.woocommerce-checkout .checkout-col-order .place-order {
    margin-top: 1.5rem;
}
.woocommerce-checkout .checkout-col-order #place_order {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: hsl(var(--primary-foreground));
    background-color: hsl(var(--primary));
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.2s;
}
.woocommerce-checkout .checkout-col-order #place_order:hover {
    opacity: 0.9;
}

.checkout-form { display: flex; flex-direction: column; gap: 2rem; }
.woocommerce-checkout .checkout-form .form-row {
    margin: 0 0 1rem;
    padding: 0;
}
.woocommerce-checkout .checkout-form .form-row label {
    display: none !important;
}
.woocommerce-checkout .checkout-form .form-row input.input-text,
.woocommerce-checkout .checkout-form .form-row textarea {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background-color: hsl(var(--background)) !important;
    border: 1px solid hsl(var(--input)) !important;
    border-radius: var(--radius) !important;
    font-size: 0.875rem !important;
    font-family: var(--font-body) !important;
    color: hsl(var(--foreground)) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.woocommerce-checkout .checkout-form .form-row input.input-text:focus,
.woocommerce-checkout .checkout-form .form-row select:focus,
.woocommerce-checkout .checkout-form .form-row textarea:focus {
    outline: none !important;
    border-color: hsl(var(--ring)) !important;
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2) !important;
}
.woocommerce-checkout .checkout-form .form-row input::placeholder,
.woocommerce-checkout .checkout-form .form-row textarea::placeholder {
    color: hsl(var(--muted-foreground)) !important;
}
.woocommerce-checkout .checkout-form .form-row select {
    appearance: none !important;
}

.checkout-section { display: flex; flex-direction: column; gap: 0.75rem; }

.checkout-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.checkout-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }

.checkout-submit { width: 100%; }
.checkout-disclaimer { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-align: center; }

.checkout-empty { text-align: center; padding: 5rem 0; }
.checkout-empty-icon { width: 4rem; height: 4rem; color: hsl(var(--muted-foreground)); margin: 0 auto 1.5rem; }
.checkout-empty-title { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 500; margin-bottom: 1rem; }
.checkout-empty-text { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }

.checkout-complete { text-align: center; padding: 5rem 0; }
.checkout-success-icon { width: 4rem; height: 4rem; background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }

/* ─── WooCommerce Notices ────────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    list-style: none;
}
.woocommerce-message { background-color: hsl(var(--secondary)); border-left: 4px solid hsl(var(--primary)); }
.woocommerce-info { background-color: hsl(var(--secondary)); border-left: 4px solid hsl(var(--forest-light)); }
.woocommerce-error { background-color: hsl(0 84% 97%); border-left: 4px solid hsl(var(--destructive)); color: hsl(var(--destructive)); }

/* ─── Misc Overrides ─────────────────────────────────────────────────────────── */
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pb-20 { padding-bottom: 5rem; }
.pt-24 { padding-top: 6rem; }

/* WooCommerce price */
.woocommerce-Price-amount.amount { font-weight: 400; }
ins .woocommerce-Price-amount { color: hsl(var(--foreground)); text-decoration: none; }
del .woocommerce-Price-amount { color: hsl(var(--muted-foreground)); font-size: 0.875em; }

/* ─── Thank You (Order Received) Page ────────────────────────────────────────── */
.order-received .post-entry,
.woocommerce-order-received .post-entry { max-width: 44rem; margin: 0 auto; }

.thankyou-page,
.order-received .woocommerce-order,
.woocommerce-order-received .woocommerce-order {
    font-family: var(--font-body) !important;
    font-size: 0.9375rem !important;
    color: hsl(var(--foreground)) !important;
}

/* Summary block: success message + overview */
.thankyou-summary {
    margin-bottom: 2rem;
    text-align: center;
}
.thankyou-page .woocommerce-notice,
.order-received .woocommerce-notice,
.woocommerce-order-received .woocommerce-notice {
    padding: 1.25rem 1.5rem !important;
    border-radius: var(--radius) !important;
    margin: 0 0 1.25rem !important;
    font-size: 1.25rem !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    border: none !important;
    color: hsl(var(--primary)) !important;
}
.thankyou-page .woocommerce-notice--success,
.order-received .woocommerce-notice--success.woocommerce-thankyou-order-received,
.woocommerce-order-received .woocommerce-notice--success.woocommerce-thankyou-order-received {
    background-color: transparent !important;
    border-left: none !important;
    color: hsl(var(--primary)) !important;
}
.thankyou-page .woocommerce-notice--error,
.order-received .woocommerce-notice--error,
.woocommerce-order-received .woocommerce-notice--error {
    background-color: hsl(0 84% 97%) !important;
    border-left-color: hsl(var(--destructive)) !important;
    color: hsl(var(--destructive)) !important;
}

/* Order overview: lista vertical con separadores (como imagen) */
.thankyou-overview,
.thankyou-page .woocommerce-order-overview,
.thankyou-page .order_details,
.order-received .woocommerce-order-overview,
.woocommerce-order-received .woocommerce-order-overview {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: var(--radius) !important;
    display: block !important;
    text-align: left !important;
}
.thankyou-page .woocommerce-order-overview li,
.thankyou-page .order_details li,
.order-received .woocommerce-order-overview li,
.woocommerce-order-received .woocommerce-order-overview li,
.woocommerce-order-received .order_details li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid hsl(var(--border)) !important;
    font-size: 0.9375rem !important;
    color: hsl(var(--foreground)) !important;
}
.thankyou-page .woocommerce-order-overview li:last-child,
.thankyou-page .order_details li:last-child,
.order-received .woocommerce-order-overview li:last-child,
.woocommerce-order-received .woocommerce-order-overview li:last-child,
.woocommerce-order-received .order_details li:last-child {
    border-bottom: none !important;
}
.thankyou-page .woocommerce-order-overview li::before,
.thankyou-page .order_details li::before { display: none !important; }
.thankyou-page .woocommerce-order-overview li strong,
.thankyou-page .order_details li strong,
.order-received .woocommerce-order-overview li strong,
.woocommerce-order-received .woocommerce-order-overview li strong,
.woocommerce-order-received .order_details li strong {
    font-weight: 500 !important;
    color: hsl(var(--foreground)) !important;
}

/* Buttons */
.thankyou-page .button,
.order-received .woocommerce-order .button,
.woocommerce-order-received .woocommerce-order .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    font-family: var(--font-body) !important;
    color: hsl(var(--primary-foreground)) !important;
    background-color: hsl(var(--primary)) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.thankyou-page .button:hover,
.order-received .woocommerce-order .button:hover,
.woocommerce-order-received .woocommerce-order .button:hover {
    opacity: 0.9 !important;
}

/* Order details section */
.thankyou-page .woocommerce-order-details,
.order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-order-details {
    margin-top: 2rem !important;
    padding: 1.5rem 1.5rem !important;
    background-color: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: var(--radius) !important;
}
.thankyou-page .woocommerce-order-details h2,
.order-received .woocommerce-order-details h2,
.woocommerce-order-received .woocommerce-order-details h2 {
    font-family: var(--font-display) !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    margin: 0 0 1rem !important;
    color: hsl(var(--primary)) !important;
}

/* Table: productos y totales */
.thankyou-page .woocommerce-table--order-details,
.thankyou-page .shop_table,
.order-received .woocommerce-table--order-details,
.order-received .shop_table,
.woocommerce-order-received .woocommerce-table--order-details,
.woocommerce-order-received .shop_table {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
    font-size: 0.9375rem !important;
    color: hsl(var(--foreground)) !important;
}
.thankyou-page .woocommerce-table--order-details thead th,
.order-received .woocommerce-table--order-details thead th,
.woocommerce-order-received .woocommerce-table--order-details thead th {
    width: 100% !important;
    padding: 0 0 0.75rem !important;
    border-bottom: 1px solid hsl(var(--border)) !important;
    font-weight: 500 !important;
    color: hsl(var(--muted-foreground)) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
.thankyou-page .woocommerce-table--order-details tbody td,
.order-received .woocommerce-table--order-details tbody td,
.woocommerce-order-received .woocommerce-table--order-details tbody td {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid hsl(var(--border)) !important;
    vertical-align: top !important;
}
.thankyou-page .woocommerce-table--order-details tbody td.product-name a,
.order-received .woocommerce-table--order-details tbody td.product-name a,
.woocommerce-order-received .woocommerce-table--order-details tbody td.product-name a {
    color: hsl(var(--primary)) !important;
}
.thankyou-page .woocommerce-table--order-details tfoot th,
.thankyou-page .woocommerce-table--order-details tfoot td,
.order-received .woocommerce-table--order-details tfoot th,
.order-received .woocommerce-table--order-details tfoot td,
.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    padding: 0.625rem 0 !important;
    border: none !important;
    border-bottom: 1px solid hsl(var(--border)) !important;
    font-weight: 400 !important;
}
.thankyou-page .woocommerce-table--order-details tfoot th,
.order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot th {
    color: hsl(var(--muted-foreground)) !important;
}
/* Hide duplicate Payment method row in tfoot (already shown in overview) */
.thankyou-page .woocommerce-table--order-details tfoot tr:last-child,
.order-received .woocommerce-table--order-details tfoot tr:last-child,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child { display: none !important; }
.thankyou-page .woocommerce-table--order-details tfoot tr.order-total th,
.thankyou-page .woocommerce-table--order-details tfoot tr.order-total td,
.order-received .woocommerce-table--order-details tfoot tr.order-total th,
.order-received .woocommerce-table--order-details tfoot tr.order-total td,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr.order-total th,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr.order-total td {
    padding-top: 1rem !important;
    padding-bottom: 0 !important;
    border-top: 1px solid hsl(var(--border)) !important;
    border-bottom: none !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
}

/* Customer details: billing + shipping (grid, título y contenido alineados) */
.thankyou-page .woocommerce-customer-details,
.order-received .woocommerce-customer-details,
.woocommerce-order-received .woocommerce-customer-details {
    margin-top: 2rem !important;
}
.thankyou-page .woocommerce-customer-details .woocommerce-columns,
.order-received .woocommerce-customer-details .woocommerce-columns,
.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
}
/* Cuando solo hay billing (sin shipping), una columna para que título y contenido queden juntos */
.thankyou-page .woocommerce-customer-details .woocommerce-columns .woocommerce-column:first-child:last-child,
.order-received .woocommerce-customer-details .woocommerce-columns .woocommerce-column:first-child:last-child,
.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns .woocommerce-column:first-child:last-child {
    grid-column: 1 / -1 !important;
}
@media (max-width: 640px) {
    .thankyou-page .woocommerce-customer-details .woocommerce-columns,
    .order-received .woocommerce-customer-details .woocommerce-columns,
    .woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {
        grid-template-columns: 1fr !important;
    }
}
.thankyou-page .woocommerce-customer-details .woocommerce-column,
.order-received .woocommerce-customer-details .woocommerce-column,
.woocommerce-order-received .woocommerce-customer-details .woocommerce-column {
    margin: 0 !important;
    padding: 1.5rem 1.25rem !important;
    background-color: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: var(--radius) !important;
}
.thankyou-page .woocommerce-customer-details h2,
.thankyou-page .woocommerce-customer-details .woocommerce-column__title,
.order-received .woocommerce-customer-details h2,
.order-received .woocommerce-customer-details .woocommerce-column__title,
.woocommerce-order-received .woocommerce-customer-details h2,
.woocommerce-order-received .woocommerce-customer-details .woocommerce-column__title {
    font-family: var(--font-display) !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    margin: 0 0 0.75rem !important;
    color: hsl(var(--primary)) !important;
}
.thankyou-page .woocommerce-customer-details address,
.order-received .woocommerce-customer-details address,
.woocommerce-order-received .woocommerce-customer-details address {
    font-style: normal !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.9375rem !important;
    line-height: 1.7 !important;
    color: hsl(var(--foreground)) !important;
}
.thankyou-page .woocommerce-customer-details--phone,
.thankyou-page .woocommerce-customer-details--email,
.order-received .woocommerce-customer-details--phone,
.order-received .woocommerce-customer-details--email,
.woocommerce-order-received .woocommerce-customer-details--phone,
.woocommerce-order-received .woocommerce-customer-details--email {
    margin-top: 0.5rem !important;
}

/* ─── Print / No-JS safeguards ──────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, #theme-cart-drawer, #theme-cart-overlay { display: none; }
    body { color: #000; background: #fff; }
}
