/* Balklänning.nu — midnight + champagne */
:root {
    --ink: #1b1f3b;
    --ink-2: #2c3160;
    --text: #23233a;
    --muted: #6d6a7c;
    --gold: #b08d57;
    --gold-soft: #e9dcc5;
    --paper: #fcfaf7;
    --blush: #f6eee8;
    --line: #e9e2d9;
    --card: #fff;
    --sale: #b3264a;
    --radius: 14px;
    --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, select { font-family: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; letter-spacing: -0.005em; }
h2 { font-size: 1.85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

/* === Header === */
.site-header { background: rgba(252, 250, 247, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1; white-space: nowrap; }
.logo span { color: var(--gold); font-style: italic; font-weight: 500; }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color .15s; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* === Hero (towns, guides, static) === */
.hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(233, 220, 197, .18) 0, transparent 40%),
        radial-gradient(circle at 85% 0%, rgba(176, 141, 87, .25) 0, transparent 45%),
        linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #f4efe8; padding: 2.25rem 0 3rem; margin-bottom: 2.5rem; position: relative; overflow: hidden;
}
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: .5rem 0 .75rem; }
.hero .intro { max-width: 720px; font-size: 1.0625rem; color: rgba(244, 239, 232, .85); }
.hero .breadcrumbs, .hero .breadcrumbs a { color: rgba(244, 239, 232, .7); }
.hero .breadcrumbs a:hover { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero .btn { background: var(--gold); color: #fff; }
.hero .btn:hover { background: #9a7a48; }
.hero .btn-ghost { background: transparent; border: 1px solid rgba(244, 239, 232, .45); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* === Breadcrumbs === */
.breadcrumbs { font-size: .8125rem; color: var(--muted); padding-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs a:hover { color: var(--ink); }

/* === Product page header === */
.page-header { padding: .75rem 0 1.25rem; max-width: 860px; }
.page-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.result-count { display: inline-block; font-size: .8125rem; font-weight: 500; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; margin-top: .35rem; }
.intro { font-size: 1.0625rem; color: var(--muted); margin-top: .6rem; }

/* === Toolbar === */
.toolbar { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.toolbar-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: .5rem; }
.filter-group label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.filter-group select {
    font-size: .8125rem; padding: .45rem 2rem .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text);
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%236d6a7c' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7rem center;
}
.filter-group select:focus { outline: none; border-color: var(--ink); }

/* === Chips === */
.quick-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.colour-chips { margin-top: .6rem; }
.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8125rem; font-weight: 500; padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 999px;
    color: var(--text); background: #fff; transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* === Size filter === */
.size-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; flex: 1; }
.size-filter-label { font-size: .8125rem; font-weight: 500; color: var(--muted); margin-right: .25rem; }
.size-chip { font-size: .75rem; font-weight: 600; min-width: 2.2rem; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; transition: all .15s; }
.size-chip:hover { border-color: var(--ink); }
.size-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.size-chip.clear { background: var(--blush); }
.size-filter-hint { font-size: .75rem; color: var(--muted); }

/* === Product grid & card === */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1.25rem; padding-bottom: 2.5rem; }
.product-card { position: relative; }
.product-link { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid transparent; transition: box-shadow .25s, transform .25s, border-color .25s; }
.product-link:hover { box-shadow: 0 14px 34px rgba(27, 31, 59, .10); transform: translateY(-3px); border-color: var(--gold-soft); }
.badge-discount { position: absolute; top: .75rem; left: .75rem; z-index: 2; font-size: .75rem; font-weight: 600; color: #fff; background: var(--sale); padding: .2rem .55rem; border-radius: 999px; }
.product-image { aspect-ratio: 3/4; background: var(--blush); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-link:hover .product-image img { transform: scale(1.04); }
.no-image { color: var(--muted); font-size: .875rem; }
.product-info { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.product-name { font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--text); margin-top: .2rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { margin-top: .4rem; display: flex; align-items: baseline; gap: .45rem; }
.price-current { font-size: 1rem; font-weight: 600; color: var(--ink); }
.price-original { font-size: .8125rem; color: var(--muted); text-decoration: line-through; }
.product-card .badge-discount ~ * .price-current { color: var(--sale); }
.product-sizes { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .5rem; }
.product-sizes li { font-size: .6875rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .35rem; }
.product-sizes li.more { border-style: dashed; }
.product-sizes-unknown { font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.product-cta { margin-top: auto; padding-top: .75rem; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.product-link:hover .product-cta { color: var(--gold); }

/* === Buttons & empty state === */
.btn { display: inline-block; padding: .7rem 1.6rem; background: var(--ink); color: #fff; border-radius: 999px; font-size: .875rem; font-weight: 600; transition: background .15s, transform .15s; }
.btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state h1 { font-size: 2rem; margin-bottom: .5rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.5rem; }

/* === Pagination === */
.pagination { display: flex; justify-content: center; align-items: center; gap: .35rem; flex-wrap: wrap; padding: 0 0 3rem; }
.page-link { min-width: 2.4rem; text-align: center; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; background: #fff; }
.page-link:hover { border-color: var(--ink); }
.page-link.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-gap { color: var(--muted); padding: 0 .25rem; }

/* === Editorial content === */
.content { max-width: 860px; padding: 1rem 0 2rem; }
.content-narrow { max-width: 760px; }
.content h2 { margin: 2rem 0 .75rem; }
.content h2:first-child { margin-top: 0; }
.content p, .content ul { margin-bottom: 1rem; color: #3a3850; }
.content ul { padding-left: 1.25rem; }
.content li { margin-bottom: .45rem; }
.content a, .section-lead a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.content a:hover { color: var(--gold); }
.section-lead { color: var(--muted); max-width: 760px; margin: .5rem 0 1.5rem; }
.fallback { padding-top: 1rem; }
.fallback h2 { margin-bottom: .25rem; }

/* === FAQ === */
.faq { max-width: 860px; padding: 1rem 0 2rem; }
.faq h2 { margin-bottom: 1rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 1.25rem 1.1rem; color: #3a3850; }

/* === Explore tiles & link pills === */
.category-links { padding: 1.5rem 0 3.5rem; }
.category-links h2 { margin-bottom: 1.25rem; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.explore-tile { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.explore-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27, 31, 59, .08); }
.explore-image { aspect-ratio: 3/4; background: var(--blush); overflow: hidden; }
.explore-image img { width: 100%; height: 100%; object-fit: cover; }
.explore-label { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); padding: .6rem .75rem 0; line-height: 1.2; }
.explore-count { font-size: .75rem; color: var(--muted); padding: .15rem .75rem .75rem; }
.link-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.explore-link { font-size: .875rem; font-weight: 500; padding: .5rem 1.05rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; transition: all .15s; }
.explore-link:hover { border-color: var(--gold); color: var(--ink); }
.explore-link-all { background: var(--ink); color: #fff; border-color: var(--ink); }
.explore-link-all:hover { background: var(--ink-2); color: #fff; }

/* === Town page: shop list === */
.shops { padding-bottom: 1.5rem; }
.shop-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; counter-reset: shop; }
.shop-card { counter-increment: shop; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem 1rem 3.4rem; position: relative; transition: border-color .2s, box-shadow .2s; }
.shop-card:hover { border-color: var(--gold-soft); box-shadow: 0 8px 22px rgba(27, 31, 59, .06); }
.shop-card::before { content: counter(shop); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--blush); color: var(--gold); font-family: var(--serif); font-weight: 600; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.shop-card h3 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.shop-address { font-size: .8125rem; color: var(--muted); margin-top: .15rem; }
.shop-side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex-shrink: 0; }
.rating { display: inline-flex; align-items: center; gap: .35rem; }
.stars { position: relative; font-size: .8125rem; letter-spacing: 1px; color: var(--line); }
.stars::before { content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--r); overflow: hidden; color: var(--gold); }
.rating-num { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.shop-map { font-size: .8125rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.shop-map:hover { color: var(--gold); }
.town-online { padding: 1rem 0 1rem; }
.town-online .center { margin-top: -1rem; padding-bottom: 2rem; }
.town-links { padding: 1rem 0 2rem; }
.town-links h2 { margin-bottom: .5rem; }

/* === Guide CTA === */
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: linear-gradient(135deg, #fff 0%, var(--blush) 100%); border: 1px solid var(--gold-soft); border-radius: 20px; padding: 1.75rem 2rem; margin-bottom: 2rem; }
.cta-card h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.cta-card p { color: #3a3850; max-width: 640px; }
.cta-card .btn { flex-shrink: 0; background: var(--gold); }
.cta-card .btn:hover { background: #9a7a48; }

/* === Town index === */
.letter-index { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.5rem; position: sticky; top: 64px; background: var(--paper); padding: .6rem 0; z-index: 5; }
.letter-index a { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.letter-index a:hover { background: var(--ink); color: #fff; }
.town-letter { padding-bottom: 1.5rem; scroll-margin-top: 120px; }
.town-letter h2 { font-size: 2rem; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: .25rem; margin-bottom: .75rem; }
.town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem; }
.town-link { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; font-weight: 500; transition: border-color .15s; }
.town-link:hover { border-color: var(--gold); }
.town-link .muted { font-size: .75rem; font-weight: 400; }

/* === Footer === */
.site-footer { background: var(--ink); color: rgba(244, 239, 232, .75); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .logo { color: #fff; font-size: 2rem; }
.footer-brand p { font-size: .875rem; margin-top: .75rem; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links h4 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: .9rem 0 .35rem; }
.footer-links h4:first-child { margin-top: 0; }
.footer-links a { font-size: .875rem; color: rgba(244, 239, 232, .75); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(244, 239, 232, .12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .8125rem; }
.footer-bottom p + p { margin-top: .4rem; color: rgba(244, 239, 232, .5); }
.footer-bottom a { color: rgba(244, 239, 232, .85); }
.footer-bottom a:hover { color: #fff; }

/* === Responsive === */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .main-nav a::after { display: none; }
    .nav-toggle { display: block; }
    .shop-list { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem .75rem; }
    .quick-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -1.25rem; padding: 0 1.25rem; }
    .quick-filters::-webkit-scrollbar { display: none; }
    .toolbar-row { flex-direction: column; }
    .hero { padding: 1.5rem 0 2.25rem; }
    .shop-card { flex-direction: column; align-items: flex-start; }
    .shop-side { align-items: flex-start; flex-direction: row; gap: 1rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-info { padding: .7rem .7rem .85rem; }
}
