/* Wreath Center — storefront */
body { background: var(--bg); }
main { min-height: 60vh; }

/* Promo bar */
.promo-bar { background: var(--green-900); color: var(--on-dark-muted); font-size: 13px; text-align: center; padding: 7px 16px; }
.promo-bar strong { color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-main { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--green-800); text-decoration: none !important; flex-shrink: 0; }
.logo svg { width: 38px; height: 38px; }
.logo-text { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--accent); line-height: 1; }
.logo-text span { color: var(--green-800); }
.search { flex: 1; display: flex; position: relative; max-width: 760px; }
.search input { border-radius: 999px; border: 2px solid var(--ink); padding: 10px 52px 10px 18px; font-size: 15px; background: #fff; }
.search input:focus { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); border-color: var(--ink); }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.icon-btn:hover { background: var(--bg-cream); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.currency-select { width: auto; padding: 6px 28px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border-color: var(--line); background-color: #fff; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 220px; padding: 8px; z-index: 50; }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--bg-cream); text-decoration: none; }
.account-dropdown .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.account-dropdown .who strong { display: block; color: var(--ink); font-size: 14px; }
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; padding: 10px 12px; color: var(--ink-2); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a:hover, .cat-nav a.active { color: var(--ink); text-decoration: none; border-bottom-color: var(--ink); }
.cat-nav a.sale { color: var(--danger); font-weight: 600; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .header-main { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .logo-text { font-size: 20px; }
  .logo svg { width: 32px; height: 32px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .icon-btn .label { display: none; }
  .currency-select { padding: 5px 22px 5px 8px; }
}

/* Hero */
.hero { background: var(--bg-cream); border-radius: 0 0 28px 28px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 40px 0 44px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 14px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 17px; color: var(--ink-2); max-width: 520px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-art a { display: block; }
.hero-art img { width: 100%; border-radius: 18px; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
.hero-art a:first-child { grid-row: span 2; }
.hero-art a:first-child img { aspect-ratio: auto; height: 100%; }
.hero-perks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: var(--ink-2); font-size: 14px; }
.hero-perks span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding: 28px 0; } .hero-art { order: -1; } }

/* Category circles (Etsy-style) */
.cat-circles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin: 32px 0 8px; }
.cat-circle { text-align: center; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none !important; }
.cat-circle img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 8px; transition: transform .2s, box-shadow .2s; }
.cat-circle:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (max-width: 860px) { .cat-circles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cat-circles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .cat-circle { font-size: 12.5px; } }

/* Sections */
.section { margin: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Product grid & cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 18px; }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.card-product { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--bg-cream); aspect-ratio: 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card-product:hover .card-media img { transform: scale(1.04); }
.card-badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag-badge { background: #fff; color: var(--badge, var(--green-800)); font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.fav-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.fav-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); opacity: .92; }
.fav-btn svg { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.fav-btn:hover { transform: scale(1.06); }
.fav-btn.is-fav svg { fill: var(--accent); stroke: var(--accent); }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.card-title { color: var(--ink); font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-rating { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.card-price { font-size: 15.5px; }
.card-stock { font-size: 12.5px; font-weight: 600; }
.card-stock.low { color: var(--accent-dark); }
.card-stock.out { color: var(--muted); }

/* Shop listing */
.page-head { padding: 24px 0 8px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { color: var(--muted); }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-bottom: 48px; }
.filters h3 { font-size: 14px; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.filters h3:first-child { margin-top: 0; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li { margin: 2px 0; }
.filter-list a { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); font-size: 14px; }
.filter-list a:hover { background: var(--bg-cream); text-decoration: none; }
.filter-list a.active { background: var(--green-50); color: var(--green-800); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bg-cream); color: var(--ink); font-size: 13px; }
.chip:hover { text-decoration: none; background: var(--line); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar select { width: auto; }
.filter-toggle { display: none; }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; background: var(--bg-soft); padding: 16px; border-radius: 12px; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}

/* Product page */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 16px 0 40px; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 20px; } }
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button.active { border-color: var(--ink); }
.gallery-main { border-radius: 16px; overflow: hidden; background: var(--bg-cream); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery-thumbs { flex-direction: row; order: 2; } .gallery-thumbs button { width: 64px; } }
.buy-box h1 { font-family: var(--font); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; }
.buy-price { font-size: 26px; margin: 8px 0 4px; }
.buy-price .price-base { font-size: 14px; }
.fx-list { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.stock-line { font-size: 14px; font-weight: 600; margin: 6px 0 14px; }
.stock-line.low { color: var(--accent-dark); }
.stock-line.ok { color: var(--ok); }
.stock-line.out { color: var(--danger); }
.opt { margin-bottom: 18px; }
.opt-label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.opt-label .req { color: var(--danger); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 0 0 3px #fff; cursor: pointer; }
.swatch input:checked + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch input:focus-visible + span { outline: 2px solid var(--green-700); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: 14px; }
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .25); }
.char-count { font-size: 12px; color: var(--muted); text-align: right; margin-top: 3px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.qty button:hover { background: var(--bg-cream); }
.qty input { width: 48px; text-align: center; border: 0; padding: 8px 0; border-radius: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-actions { display: flex; gap: 10px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.buy-actions .btn-primary { flex: 1; min-width: 200px; }
.perks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; font-size: 14px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks svg { flex-shrink: 0; color: var(--green-700); }
details.acc { border-top: 1px solid var(--line); padding: 14px 0; }
details.acc summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.acc summary::after { content: '+'; font-size: 20px; line-height: 1; }
details.acc[open] summary::after { content: '–'; }
details.acc > div { padding-top: 10px; color: var(--ink-2); }
.tag-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* Reviews */
.reviews { border-top: 1px solid var(--line); padding: 32px 0; }
.review-summary { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.review-score { font-size: 40px; font-weight: 700; line-height: 1; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.verified { font-size: 12px; color: var(--ok); font-weight: 600; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 30px; color: #d9d6cd; cursor: pointer; margin: 0; font-weight: 400; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #e3a008; }
.rating-input input:focus-visible + label { outline: 2px solid var(--green-700); border-radius: 4px; }

/* Cart & checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 8px 0 48px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--bg-cream); }
.cart-line h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-line .opts { font-size: 13px; color: var(--muted); }
.cart-line .line-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.cart-line .line-total { text-align: right; font-weight: 700; }
@media (max-width: 520px) { .cart-line { grid-template-columns: 72px 1fr; } .cart-line img { width: 72px; height: 72px; } .cart-line .line-total { grid-column: 2; text-align: left; } }
.summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 140px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.summary-row.total { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 700; }
.summary .fx { font-size: 12.5px; color: var(--muted); }
.checkout-steps { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.checkout-steps .on { color: var(--ink); font-weight: 600; }
.method-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.method-card input { position: absolute; opacity: 0; }
.method-card span { display: block; padding: 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.method-card span small { display: block; font-weight: 400; color: var(--muted); }
.method-card input:checked + span { border-color: var(--ink); background: var(--bg-soft); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 12px; padding: 0; }

/* Account */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 24px 0 48px; }
.account-nav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); }
.account-nav a.active, .account-nav a:hover { background: var(--bg-cream); color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .account-layout { grid-template-columns: 1fr; } .account-nav { display: flex; overflow-x: auto; gap: 4px; } .account-nav a { white-space: nowrap; } }
.order-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.order-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.order-thumbs img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--green-700); }
.timeline li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }

/* Auth */
.auth-wrap { max-width: 440px; margin: 40px auto 64px; padding: 0 16px; }
.auth-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 1.7rem; text-align: center; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; }

/* Footer */
.site-footer { background: var(--green-900); color: var(--on-dark-muted); margin-top: 56px; padding: 44px 0 24px; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--on-dark-accent); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Misc */
.flash-wrap { padding-top: 16px; }
.banner-sale { background: linear-gradient(120deg, var(--accent-50), var(--bg)); border-radius: 18px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.banner-sale h2 { margin: 0 0 4px; }
.value-props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 0; }
.value-props div { background: var(--bg-soft); border-radius: 14px; padding: 18px; font-size: 14px; }
.value-props strong { display: block; margin-bottom: 4px; }
@media (max-width: 760px) { .value-props { grid-template-columns: 1fr 1fr; } }
.prose { max-width: 720px; }
.prose p { color: var(--ink-2); }

/* Branding (mascot / uploaded logo) */
.logo .mascot { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.logo .logo-img { display: block; max-width: 260px; object-fit: contain; object-position: left center; }
@media (max-width: 860px) { .logo .mascot { width: 32px; height: 32px; } .logo .logo-img { max-height: 40px; max-width: 200px; } }
