/* Fashion Modern Theme */
.theme-body { font-family: var(--theme-font); color: var(--theme-secondary); }
.theme-container { max-width: var(--theme-container-width, 80rem); margin: 0 auto; padding: 0 1rem; width: 100%; }
.theme-header { z-index: 50; }
.theme-header-inner { display: flex; flex-direction: column; }
.theme-header-top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; min-height: 4rem; }
.theme-logo-text { font-weight: 700; font-size: 1.25rem; color: var(--theme-secondary); }
.theme-nav a { margin: 0 1rem; font-size: 0.875rem; font-weight: 500; color: var(--theme-secondary, #1e293b); }
.theme-nav a:hover { color: var(--theme-primary); }
.theme-hero { position: relative; min-height: clamp(420px, 72vh, 680px); overflow: hidden; }
.theme-hero-slider { position: relative; min-height: clamp(420px, 72vh, 680px); overflow: hidden; isolation: isolate; }
.theme-hero-media-track { position: absolute; inset: 0; z-index: 1; }
.theme-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; pointer-events: none; overflow: hidden; }
.theme-hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.theme-hero-slide.is-active img.theme-hero-bg { animation: themeHeroKenBurns 14s ease-out forwards; }
@keyframes themeHeroKenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }
.theme-hero-slider[data-slides="1"] .theme-hero-slide { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.theme-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: rgba(255,255,255,.92); border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,.18); transition: transform .2s, background .2s; backdrop-filter: blur(4px); }
.theme-hero-arrow:hover { transform: translateY(-50%) scale(1.06); background: #fff; }
.theme-hero-prev { left: 1.25rem; }
.theme-hero-next { right: 1.25rem; }
.theme-hero-dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: .5rem; padding: .35rem .65rem; border-radius: 9999px; background: rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.theme-hero-dot { width: .5rem; height: .5rem; border-radius: 9999px; border: none; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: transform .2s, background .2s; }
.theme-hero-dot.is-active { background: #fff; transform: scale(1.35); }
.theme-hero-bg, .theme-hero-placeholder { width: 100%; height: 100%; min-height: clamp(420px, 72vh, 680px); object-fit: cover; display: block; }
.theme-hero-placeholder { background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)); }
.theme-hero-video { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.theme-hero-video iframe,
.theme-hero-video-file { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%); border: 0; pointer-events: none; object-fit: cover; }
.theme-hero-overlay {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(115deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.22) 42%, rgba(0,0,0,.48) 100%),
        linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 55%),
        var(--hero-overlay-tint, rgba(0,0,0,.28));
}
.theme-hero-content { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 3rem); color: #fff; background: none; pointer-events: none; box-sizing: border-box; }
.theme-hero-content-inner {
    max-width: min(44rem, 100%);
    width: auto;
    pointer-events: auto;
    animation: themeHeroFadeUp .7s ease-out both;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.theme-hero-content--left .theme-hero-content-inner { align-items: flex-start; }
.theme-hero-content--right .theme-hero-content-inner { align-items: flex-end; }
.theme-hero-content--centered .theme-hero-content-inner,
.theme-hero-content--bottom .theme-hero-content-inner { align-items: center; }
@keyframes themeHeroFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.theme-hero-content--centered { align-items: center; justify-content: center; text-align: center; }
.theme-hero-content--centered .theme-hero-content-inner { margin-inline: auto; text-align: center; }
.theme-hero-content--centered .theme-hero-title,
.theme-hero-content--centered .theme-hero-subtitle { margin-left: auto; margin-right: auto; }
.theme-hero-content--centered .theme-hero-btn { margin-left: auto; margin-right: auto; }
.theme-hero-content--left { align-items: flex-start; justify-content: center; text-align: left; padding-left: clamp(1.5rem, 6vw, 5.5rem); }
.theme-hero-content--left .theme-hero-content-inner { margin-right: auto; }
.theme-hero-content--right { align-items: flex-end; justify-content: center; text-align: right; padding-right: clamp(1.5rem, 6vw, 5.5rem); }
.theme-hero-content--right .theme-hero-content-inner { margin-left: auto; }
.theme-hero-content--bottom { align-items: center; justify-content: flex-end; text-align: center; padding-bottom: clamp(2.5rem, 8vw, 5rem); }
.theme-hero-content--bottom .theme-hero-content-inner { margin-inline: auto; }
.theme-hero-title {
    font-size: var(--hero-title-size, 40px);
    font-weight: 800;
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.theme-hero-subtitle {
    font-size: var(--hero-subtitle-size, 18px);
    margin: 0;
    max-width: 38rem;
    line-height: 1.5;
    opacity: .94;
    font-weight: 400;
    text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.theme-hero-content--centered .theme-hero-subtitle,
.theme-hero-content--bottom .theme-hero-subtitle { margin-left: auto; margin-right: auto; }
.theme-hero-content--right .theme-hero-subtitle { margin-left: auto; margin-right: 0; }
.theme-hero-content--left .theme-hero-title::after,
.theme-hero-content--right .theme-hero-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: .75rem;
    border-radius: 9999px;
    background: var(--theme-primary, #dc2626);
}
.theme-hero-content--right .theme-hero-title::after { margin-left: auto; }
.theme-hero-btn { font-size: var(--hero-button-size, 14px); margin-top: 0.375rem; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--theme-btn-radius, 0.5rem); font-weight: 600; transition: transform .2s, box-shadow .2s, filter .2s; box-sizing: border-box; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.theme-btn.theme-hero-btn {
    width: var(--hero-button-width, auto);
    min-width: var(--hero-button-width, auto);
    height: var(--hero-button-height, auto);
    min-height: var(--hero-button-height, auto);
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.theme-btn.theme-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.theme-btn-primary,
.theme-btn-primary:hover,
.theme-btn-primary:focus,
.theme-btn-primary:focus-visible {
    background: var(--theme-primary);
    color: #fff !important;
}
.theme-btn-primary:hover { filter: brightness(1.08); }
.theme-btn-outline { border: 1px solid #d1d5db; background: #fff; color: var(--theme-secondary, #111827); }
.theme-btn-outline:hover { color: var(--theme-secondary, #111827) !important; }
.theme-section { padding: 3rem 0; }
.theme-section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.theme-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.theme-link { color: var(--theme-primary); font-size: 0.875rem; }
.theme-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, 1fr); } }
.theme-product-card { display: block; background: #fff; border-radius: 0.75rem; overflow: hidden; border: 1px solid #e5e7eb; transition: box-shadow .2s; }
.theme-product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.theme-product-image { aspect-ratio: 3/4; background: #f3f4f6; position: relative; overflow: hidden; }
.theme-badge-sale { position: absolute; top: .5rem; left: .5rem; background: var(--theme-primary); color: #fff; font-size: .75rem; padding: .125rem .5rem; border-radius: 9999px; }
.theme-product-body { padding: 1rem; }
.theme-product-category { font-size: .75rem; color: #6b7280; }
.theme-product-title { font-weight: 500; font-size: .875rem; margin: .25rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-price-current { font-weight: 600; }
.theme-price-old { text-decoration: line-through; color: #9ca3af; font-size: .875rem; margin-left: .5rem; }
.theme-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .theme-category-grid { grid-template-columns: repeat(var(--category-cols, 6), minmax(0, 1fr)); } }
.theme-category-card { text-align: center; padding: 1rem; border: 1px solid #e5e7eb; border-radius: 0.75rem; }
.theme-category-img { width: 4rem; height: 4rem; border-radius: 9999px; object-fit: cover; margin: 0 auto .5rem; }
.theme-flash-sale { background: #fef2f2; }
.theme-countdown-timer { font-weight: 700; color: var(--theme-primary); }
.theme-review-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .theme-review-grid { grid-template-columns: repeat(3, 1fr); } }
.theme-review-card { background: #fff; padding: 1.5rem; border-radius: 0.75rem; border: 1px solid #e5e7eb; }
.theme-review-stars { color: #f59e0b; margin-bottom: .5rem; }
.theme-newsletter { background: var(--theme-secondary); color: #fff; }
.theme-newsletter .theme-section-title { color: #fff; }
.theme-newsletter-form { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 28rem; margin: 1rem auto 0; }
.theme-input { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.875rem; }
.theme-card { background: #fff; border-radius: 0.75rem; border: 1px solid #e5e7eb; }
.theme-footer { background: var(--theme-secondary); color: #d1d5db; margin-top: auto; padding: 2.5rem 0 1rem; }
.theme-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .theme-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.theme-footer-heading { color: #fff; font-weight: 500; margin-bottom: .75rem; }
.theme-footer-social a, .theme-footer-links a { display: block; font-size: .875rem; margin-bottom: .5rem; }
.theme-footer-social a:hover, .theme-footer-links a:hover { color: #fff; }
.theme-footer-bottom { border-top: 1px solid #374151; margin-top: 2rem; padding-top: 1rem; text-align: center; font-size: .75rem; color: #6b7280; }
.theme-product-detail { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .theme-product-detail { grid-template-columns: 1fr 1fr; } }
.theme-page-title { font-size: 1.875rem; font-weight: 700; }
.theme-faq-item { border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 1rem; }
.theme-faq-question { font-weight: 500; cursor: pointer; }

/* Header layout styles — 4 distinct variants */
.theme-header-default { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 50; }
.theme-header-default .theme-header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: .5rem 1rem;
}
.theme-header-default .theme-header-top { display: contents; }
.theme-header-default .theme-nav {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    gap: .25rem .5rem;
}
.theme-header-default .theme-nav a { margin: 0 .35rem; white-space: nowrap; }
.theme-header-default .theme-header-search { display: flex; }

.theme-header-centered { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 50; }
.theme-header-centered .theme-header-inner { flex-direction: column; height: auto; padding: .75rem 0; gap: .5rem; }
.theme-header-centered .theme-header-top { display: flex; align-items: center; justify-content: center; width: 100%; position: relative; min-height: 3rem; }
.theme-header-centered .theme-header-top .theme-logo { margin: 0 auto; }
.theme-header-centered .theme-header-top .theme-header-actions { position: absolute; right: 0; }
.theme-header-centered .theme-header-top #mobile-menu-toggle { position: absolute; left: 0; }
.theme-header-centered .theme-nav { display: flex !important; flex-wrap: wrap; justify-content: center; width: 100%; padding-bottom: .25rem; }
.theme-header-centered .theme-header-search { display: none; }

.theme-header-transparent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.theme-header-transparent .theme-header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: .5rem 1rem;
}
.theme-header-transparent .theme-header-top {
    display: contents;
}
.theme-header-transparent .theme-nav {
    display: flex !important;
    width: auto;
    padding: 0;
    margin: 0;
}
.theme-header-transparent .theme-logo-text,
.theme-header-transparent .theme-nav a,
.theme-header-transparent .theme-nav-dropdown,
.theme-header-transparent .theme-icon-btn,
.theme-header-transparent .theme-header-search svg {
    color: #fff !important;
    stroke: currentColor;
}
.theme-header-transparent .theme-header-search .input {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.35);
    color: #fff;
}
.theme-header-transparent .theme-header-search .input::placeholder { color: rgba(255,255,255,.75); }
.theme-header-transparent .theme-header-search-mobile { display: none !important; }
.theme-header-transparent.is-scrolled {
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 8px rgba(0,0,0,.08) !important;
}
.theme-header-transparent.is-scrolled .theme-logo-text,
.theme-header-transparent.is-scrolled .theme-nav a,
.theme-header-transparent.is-scrolled .theme-nav-dropdown,
.theme-header-transparent.is-scrolled .theme-icon-btn,
.theme-header-transparent.is-scrolled .theme-header-search svg {
    color: var(--theme-secondary, #1e293b) !important;
}
.theme-header-transparent.is-scrolled .theme-nav a:hover { color: var(--theme-primary) !important; }
.theme-header-transparent.is-scrolled .theme-header-search .input {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #111827;
}
.theme-header-transparent.is-scrolled .theme-header-search .input::placeholder { color: #9ca3af; }

body.theme-header-layout-transparent.has-home-hero .theme-main { padding-top: 0; }
body.theme-header-layout-transparent:not(.has-home-hero) .theme-main { padding-top: 4.5rem; }
body.theme-header-layout-transparent.has-home-hero .theme-hero,
body.theme-header-layout-transparent.has-home-hero #section-hero_slider { margin-top: 0; }

/* Inner pages without hero: solid readable header (JS also sets is-scrolled) */
body.theme-header-layout-transparent:not(.has-home-hero) .theme-header-transparent {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06) !important;
}
body.theme-header-layout-transparent:not(.has-home-hero) .theme-header-transparent .theme-logo-text,
body.theme-header-layout-transparent:not(.has-home-hero) .theme-header-transparent .theme-nav a,
body.theme-header-layout-transparent:not(.has-home-hero) .theme-header-transparent .theme-nav-dropdown,
body.theme-header-layout-transparent:not(.has-home-hero) .theme-header-transparent .theme-icon-btn {
    color: var(--theme-secondary, #1e293b) !important;
    text-shadow: none;
}

.theme-header-sticky { background: var(--theme-secondary, #1e293b); border-bottom: none; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.theme-header-sticky .theme-header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: 3.25rem;
    gap: .5rem 1rem;
}
.theme-header-sticky .theme-header-top { display: contents; }
.theme-header-sticky .theme-nav { display: flex !important; width: auto; padding: 0; }
.theme-header-sticky .theme-logo-text, .theme-header-sticky .theme-nav a, .theme-header-sticky .theme-icon-btn { color: #fff !important; }
.theme-header-sticky .theme-nav a:hover { color: var(--theme-accent, #fbbf24) !important; }
.theme-header-sticky .theme-header-search { display: none; }
.theme-header-sticky .theme-header-search-mobile { display: none !important; }

/* Footer layout styles */
.theme-footer-minimal .theme-footer-grid { grid-template-columns: 1fr !important; text-align: center; }
.theme-footer-minimal .theme-footer-social { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.theme-footer-expanded .theme-footer-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .theme-footer-expanded .theme-footer-grid { grid-template-columns: repeat(5, 1fr); } }

/* Dark mode */
.theme-body.theme-mode-dark { background: #0b1220; color: #e2e8f0; }
.theme-body.theme-mode-dark .theme-header { background: rgba(15, 23, 42, 0.96) !important; border-bottom: 1px solid #1e293b !important; }
.theme-body.theme-mode-dark .theme-logo-text,
.theme-body.theme-mode-dark .theme-nav a,
.theme-body.theme-mode-dark .theme-icon-btn { color: #e2e8f0 !important; text-shadow: none !important; }
.theme-body.theme-mode-dark .theme-nav a:hover { color: var(--theme-primary, #38bdf8) !important; }
.theme-body.theme-mode-dark .theme-footer { background: #0f172a; color: #94a3b8; border-top: 1px solid #1e293b; }
.theme-body.theme-mode-dark .theme-header-search .input { background: #1e293b; border-color: #334155; color: #f1f5f9; }
.theme-body.theme-mode-dark:not(.has-home-hero) .theme-header-transparent { background: rgba(15, 23, 42, 0.97) !important; border-bottom-color: #1e293b !important; }
