/* Palette + type shared with the main site (home.jasuwonderworld.net) so moving
   between the website and the shop feels like one brand. */
@font-face { font-family: 'Fraunces'; src: url('/public/fonts/fraunces-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/public/fonts/fraunces-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/public/fonts/fraunces-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/public/fonts/fraunces-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/public/fonts/work-sans-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/public/fonts/work-sans-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/public/fonts/work-sans-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/public/fonts/work-sans-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/public/fonts/work-sans-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --brand: #ec430f;
  --brand-dark: #b8340a;
  --coral: #e48f85;
  --coral-dark: #c96a5f;
  --gold: #a8842e;
  --gold-dark: #8a6b1f;
  --header-bg: #2b2620;
  --header-bg-2: #3d342b;
  --text: #2b2620;
  --text-soft: #5c554c;
  --bg: #fbf6ee;
  --paper: #fffdf9;
  --tint: #fdf1ea;
  --border: #ead9c4;
  --danger: #c0392b;
  --title-orange: #e0482a;
  --btn-gradient: linear-gradient(90deg, #e8866d 0%, #dda84a 100%);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  /* Solid fallback lives on the html root, one layer further back than body, so
     body's own paint can never cover the fixed watercolor wash below. */
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: transparent;
  position: relative;
  line-height: 1.55;
}

h1, h2, h3, h4, .section-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Soft watercolor wash: large, blurred, low-opacity color blooms fixed behind all
   content - evokes the artist's own medium without needing image assets. Repeats
   down the page (not just the first viewport) via background-attachment. */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 5% 0%, rgba(228, 143, 133, 0.30), transparent 70%),
    radial-gradient(ellipse 700px 550px at 100% 15%, rgba(168, 132, 46, 0.22), transparent 70%),
    radial-gradient(ellipse 750px 620px at 0% 60%, rgba(139, 168, 136, 0.22), transparent 72%),
    radial-gradient(ellipse 800px 650px at 100% 85%, rgba(236, 67, 15, 0.14), transparent 70%),
    radial-gradient(ellipse 650px 550px at 30% 100%, rgba(228, 143, 133, 0.24), transparent 72%);
}

/* Full-width layout: content spans the screen with side margins that grow on larger screens. */
.wrap { max-width: none; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 3rem); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---- Row 1: logo / search / account / cart, Amazon-style dark bar ---- */
.header-top { background: var(--header-bg); }
.header-top-row {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 1rem;
  padding: 0.75rem 1.25rem;
}
.logo { font-size: 1.3rem; font-weight: 700; color: white; text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.logo-img { max-height: 42px; width: auto; display: block; }
.search-form { display: flex; gap: 0; flex: 1; max-width: 900px; margin: 0 auto; }
.search-form input {
  flex: 1; padding: 0.55rem 0.9rem; border: none; border-radius: 6px 0 0 6px; font-size: 0.95rem;
}
.search-form button {
  border: none; background: var(--gold); color: #fff; border-radius: 0 6px 6px 0;
  padding: 0 1rem; cursor: pointer; font-size: 1.1rem;
}
.search-form button:hover { background: var(--gold-dark); }

.account-link, .cart-link {
  color: white; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0;
  padding: 0.3rem 0.4rem; border-radius: 6px;
}
.account-link:hover, .cart-link:hover { background: rgba(255,255,255,0.08); }
.account-link-text { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 0.9rem; }
.account-link-text small { font-weight: 400; font-size: 0.72rem; color: #e9dccb; }
.cart-link { font-weight: 700; }
.cart-icon { flex-shrink: 0; color: var(--gold); }
.cart-count-badge {
  background: var(--gold); color: #fff; font-weight: 800; font-size: 0.75rem;
  border-radius: 999px; min-width: 1.3rem; height: 1.3rem; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 0.3rem; margin-right: -0.15rem;
}

/* ---- Row 2: category strip ---- */
.header-nav { background: var(--header-bg-2); }
.header-nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; padding: 0.5rem 1.25rem; }
.header-nav-row a { color: #f3ece2; text-decoration: none; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.header-nav-row a:hover { color: var(--gold); text-decoration: underline; }

.categories-toggle {
  background: none; color: white; border: none;
  padding: 0.15rem 0; font-weight: 700; font-size: 0.88rem; cursor: pointer;
  white-space: nowrap; display: flex; align-items: center; gap: 0.3rem;
}
.categories-toggle:hover { color: var(--gold); }


.category-drawer-overlay {
  position: fixed; inset: 0; background: rgba(43,38,32,0.5); z-index: 299;
  opacity: 0; transition: opacity 0.25s;
}
.category-drawer-overlay.visible { opacity: 1; }
.category-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 85vw;
  background: white; z-index: 300; transform: translateX(-100%);
  transition: transform 0.25s ease; display: flex; flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.category-drawer.open { transform: translateX(0); }
.category-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.category-drawer-close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #888; }
.category-drawer-nav { display: flex; flex-direction: column; overflow-y: auto; flex: 1; padding: 0.5rem 0; }
.category-drawer-nav a { padding: 0.7rem 1.25rem; color: var(--text); text-decoration: none; }
.category-drawer-nav a:hover { background: var(--bg); color: var(--brand-dark); }
.category-drawer-all {
  display: block; text-align: center; padding: 1rem 1.25rem; font-weight: 600;
  color: var(--brand-dark); text-decoration: none; border-top: 1px solid var(--border);
}
.category-drawer-all:hover { background: var(--bg); }

.cart-toast {
  position: fixed; top: 5.5rem; right: 1.25rem; z-index: 400; width: min(360px, calc(100vw - 2rem));
  background: #fff; color: var(--text, #2b2620); padding: 1rem 1rem 1rem 1.1rem; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(30, 20, 10, 0.25); border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0; transform: translateY(-12px) scale(0.98); transition: opacity 0.25s ease, transform 0.25s ease;
}
.cart-toast.visible { opacity: 1; transform: none; }
.cart-toast.is-error { border-left: 4px solid #d92b12; }
.cart-toast-close { position: absolute; top: 0.35rem; right: 0.5rem; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #8a7f74; cursor: pointer; padding: 0.25rem; }
.cart-toast-body { display: flex; gap: 0.85rem; align-items: center; padding-right: 1.25rem; }
.cart-toast-img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: #f4ede4; }
.cart-toast-title { margin: 0; font-weight: 700; font-size: 0.95rem; }
.cart-toast-title::before { content: "\2713  "; color: #2e8b57; }
.cart-toast.is-error .cart-toast-title::before { content: "! "; color: #d92b12; }
.cart-toast-item { margin: 0.2rem 0 0; font-size: 0.88rem; color: #5a5048; line-height: 1.35; }
.cart-toast-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.cart-toast-actions > * { flex: 1; text-align: center; justify-content: center; font-size: 0.88rem; padding: 0.6rem 0.75rem; }
.cart-toast a.cart-toast-view { color: #fff; text-decoration: none; }
@media (max-width: 600px) { .cart-toast { top: auto; bottom: 1rem; right: 1rem; left: 1rem; width: auto; } }
.cart-count-badge.bump { animation: cartBump 0.45s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.is-adding { opacity: 0.7; cursor: progress; }


.nav-dropdown { position: relative; margin-left: 1rem; }
.nav-dropdown-toggle { color: var(--text); text-decoration: none; white-space: nowrap; }
.nav-dropdown-toggle:hover { color: var(--brand); }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 0;
  /* Flush against the toggle (no gap) so the cursor never leaves the hoverable
     area while moving from the link down into the menu; padding-top fakes the
     visual breathing room without creating a dead zone the way margin did. */
  padding-top: 0.6rem;
  z-index: 50;
}
.nav-dropdown-menu-inner {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1); min-width: 200px; padding: 0.4rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 0.45rem 1rem; color: var(--text); text-decoration: none; font-size: 0.9rem; }
.nav-dropdown-menu a:hover { background: var(--bg); color: var(--brand-dark); }
.nav-dropdown-all { border-top: 1px solid var(--border); margin-top: 0.3rem; padding-top: 0.6rem !important; font-weight: 600; color: var(--brand-dark) !important; }

.search-form-page { display: flex; gap: 0.5rem; max-width: 400px; margin: 1rem 0; }
.search-form-page input { flex: 1; padding: 0.6rem; border: 1px solid var(--border); border-radius: 6px; }
.search-summary { color: #888; margin-bottom: 1rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0 1.5rem;
}
.filter-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: #666; }
.filter-field input, .filter-field select {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 120px;
}
.filter-field input[type="number"] { min-width: 90px; }
.filter-bar .btn-small { height: 2.25rem; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding: 2rem 0 3rem; }
.page-link { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.page-link:hover { color: var(--brand); }
.page-link.disabled { color: #ccc; pointer-events: none; }
.page-status { color: #888; font-size: 0.9rem; }

.hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: 0.25rem; }

/* ---- Carousel (shared by hero banners and the product slider) ---- */
.carousel { position: relative; overflow: hidden; margin: 1.5rem 0; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { flex: 0 0 100%; min-width: 100%; }
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85); border: 1px solid var(--border);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--brand-dark);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-prev:hover, .carousel-next:hover { background: var(--brand); color: white; }
.carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.75rem; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; }
.carousel-dot.active { background: var(--brand); }

.hero-carousel { border-radius: 12px; }
.hero-slide { position: relative; }
.hero-slide img { width: 100%; height: clamp(340px, 30vw, 560px); object-fit: cover; display: block; }
.hero-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white; font-size: 1.3rem; font-weight: 700;
}

.section-heading { font-size: 1.5rem; margin: 0 0 1rem; }
.product-carousel-section { margin: 2.5rem 0; }
.product-carousel-slide {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 300px));
  justify-content: center; gap: 1.25rem; padding: 0 0.25rem;
}

.category-section { margin: 2.25rem 0; }
.category-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.view-all-link { color: var(--brand-dark); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.view-all-link:hover { color: var(--brand); }

.product-row {
  display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
}
.product-row .product-card { flex: 0 0 190px; width: 190px; scroll-snap-align: start; }
.see-more-card {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--bg); border: 1px dashed var(--border); color: var(--brand-dark);
  font-weight: 600; min-height: 100%;
}
.see-more-card:hover { background: white; border-color: var(--brand); }

/* ---- Testimonials ---- */
.testimonials-section { margin: 2.25rem 0 2rem; padding: 2rem 0; border-top: 1px solid var(--border); }
.testimonial-row {
  display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 0.75rem; margin-bottom: 1.5rem;
  scroll-snap-type: x proximity;
}
.testimonial-card {
  background: white; border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem;
  flex: 0 0 260px; width: 260px; height: 190px; display: flex; flex-direction: column;
  scroll-snap-align: start; overflow: hidden;
}
.testimonial-card.expanded { height: auto; }
.testimonial-stars { color: #e0c34a; margin-bottom: 0.5rem; flex-shrink: 0; }
.star-empty { color: #e0dcd3; }
.testimonial-message {
  font-style: italic; margin: 0 0 0.5rem; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
}
.testimonial-card.expanded .testimonial-message { -webkit-line-clamp: unset; }
.read-more-btn {
  background: none; border: none; color: var(--brand-dark); font-weight: 600; font-size: 0.8rem;
  cursor: pointer; padding: 0; text-align: left; margin-bottom: 0.5rem;
}
.read-more-btn:hover { text-decoration: underline; }
.testimonial-author { font-weight: 600; color: var(--brand-dark); margin: auto 0 0; flex-shrink: 0; }

.testimonial-grid-full { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.testimonial-card-full { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.testimonial-card-full .testimonial-message {
  font-style: italic; margin: 0 0 0.75rem;
  display: block; -webkit-line-clamp: unset; overflow: visible;
}
.testimonial-card-full .testimonial-author { font-weight: 600; color: var(--brand-dark); margin: 0; }
.testimonial-form-wrap { max-width: 420px; }
.testimonial-form-wrap summary { cursor: pointer; color: var(--brand-dark); font-weight: 600; margin-bottom: 0.75rem; }
.testimonial-form { display: flex; flex-direction: column; gap: 0.5rem; }
.testimonial-form label { font-weight: 600; font-size: 0.85rem; margin-top: 0.4rem; }
.testimonial-form input, .testimonial-form select, .testimonial-form textarea {
  padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit;
}
.form-success { color: var(--brand-dark); background: var(--tint); padding: 0.75rem 1rem; border-radius: 8px; }

.categories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 2rem; }
.category-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}
.category-pill.active, .category-pill:hover { background: var(--brand); color: white; border-color: var(--brand); }
.browse-all-pill { background: var(--brand-dark); color: white; border-color: var(--brand-dark); font-weight: 600; }
.browse-all-pill:hover { background: var(--brand); border-color: var(--brand); color: white; }

.browse-all-cta {
  text-align: center; background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem 1.5rem; margin: 2.5rem 0;
}
.browse-all-cta h2 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.browse-all-cta p { color: #888; margin: 0 0 1rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 40vw), 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem;
}
.product-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.product-card-link { text-decoration: none; color: var(--text); display: block; flex: 1; }
.product-image { aspect-ratio: 10 / 7; background: #fff; border: 1px solid #ece6df; border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image { box-shadow: 0 12px 28px rgba(60, 35, 15, 0.14); transform: translateY(-3px); }
.product-card:hover .product-image img { transform: scale(1.04); }
.no-image { color: #999; font-size: 0.85rem; }
.no-image.large { width: 100%; height: 400px; }
.product-info { padding: 0.85rem 0.1rem 0.2rem; }
.product-info h3 { margin: 0 0 0.35rem; font-family: var(--font-serif); font-weight: 500; font-size: 1.02rem; line-height: 1.3; color: var(--title-orange); }
.product-card:hover .product-info h3 { text-decoration: underline; text-underline-offset: 3px; }
.category-tag { font-size: 0.8rem; color: #888; margin: 0 0 0.4rem; }
.price { font-weight: 600; color: var(--text); }
.product-info .price { margin: 0; font-size: 1.2rem; font-weight: 600; color: #2b2620; }
.product-info .starting-bid-label { font-size: 0.78rem; font-weight: 600; color: #8a7f74; }
.quick-add-form, .card-buy { margin: 0; padding: 0.35rem 0 0; }
/* "3 Sizes" option picker */
.card-options { margin: 0 0 0.6rem; }
.card-options summary { display: inline-flex; align-items: center; gap: 0.25rem; list-style: none; cursor: pointer; color: #1a6fd8; font-size: 0.9rem; }
.card-options summary::-webkit-details-marker { display: none; }
.card-options summary::after { content: ""; width: 0.45em; height: 0.45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 0.35rem; transition: transform 0.2s; }
.card-options[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.card-options select { display: block; width: 100%; margin-top: 0.45rem; padding: 0.5rem 0.6rem; border: 1px solid #ddd3c8; border-radius: 10px; background: #fff; font: inherit; font-size: 0.9rem; }
/* quantity + gradient "Add to Basket" pill */
.card-buy-row { display: flex; align-items: stretch; height: 48px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(214, 120, 80, 0.22); }
.card-qty { width: 56px; flex: none; border: 1px solid #e6ddd3; border-right: 0; border-radius: 999px 0 0 999px; padding: 0 0 0 0.9rem; font: inherit; font-size: 0.95rem; background: #fff; color: var(--text); }
.btn-add-to-basket {
  flex: 1; display: flex; align-items: center; justify-content: center; margin: 0; width: auto;
  background: var(--btn-gradient); border: 0; border-radius: 0 999px 999px 0; padding: 0 0.75rem;
  color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; cursor: pointer; text-decoration: none;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.btn-add-to-basket:hover { filter: brightness(1.06) saturate(1.1); color: #fff; }
.btn-add-to-basket.btn-add-full { border-radius: 999px; height: 48px; box-shadow: 0 6px 18px rgba(214, 120, 80, 0.22); }
.btn-add-to-basket.is-disabled { background: #d9d2ca; box-shadow: none; cursor: not-allowed; }
.card-stock { margin: 0.5rem 0 0; text-align: center; font-size: 0.85rem; color: #4a4038; }
.card-stock.is-out { color: #a33; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding: 2rem 0; }
/* Full-width page, but a tall painting never grows taller than the window. */
.product-detail-image .zoom-container { display: flex; justify-content: center; background: var(--paper); }
.product-detail-image img#productImage { width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.product-detail-info h1 { font-size: clamp(1.6rem, 2.2vw, 2.4rem); }
.product-detail-info .description { max-width: 70ch; line-height: 1.65; white-space: pre-line; }
.product-detail-image .zoom-container { overflow: hidden; border-radius: 10px; cursor: zoom-in; }
.product-detail-image img { width: 100%; display: block; border-radius: 10px; transition: transform 0.15s ease-out; }
.product-thumb-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.product-thumb {
  width: 64px; height: 64px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); background: white; cursor: pointer;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb.active, .product-thumb:hover { border-color: var(--brand); }
.add-to-cart-form { display: flex; flex-direction: column; gap: 0.6rem; max-width: 420px; margin-top: 1.5rem; }
.add-to-cart-form label { font-weight: 600; font-size: 0.85rem; }
.add-to-cart-form select, .add-to-cart-form input { padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; }

.auction-explainer {
  background: var(--tint); border: 1px solid #f3c9bb; border-radius: 10px;
  padding: 1.1rem 1.25rem; margin: 1rem 0 1.5rem;
}
.auction-explainer p { margin: 0 0 0.5rem; font-size: 0.9rem; line-height: 1.5; }
.auction-explainer p:last-child { margin-bottom: 0; }
.auction-explainer a { color: var(--brand-dark); font-weight: 600; }
.starting-bid-label { display: block; font-size: 0.7rem; font-weight: 600; color: #888; text-transform: uppercase; }

.auction-box { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; margin: 1rem 0; }
.auction-label { color: #888; font-size: 0.85rem; margin: 0 0 0.2rem; }
.auction-amount { font-size: 1.8rem; font-weight: 700; color: var(--brand-dark); margin: 0 0 0.5rem; }
.auction-countdown { font-weight: 600; color: var(--danger); margin: 0 0 0.75rem; }
.auction-bid-form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.auction-bid-form label { font-weight: 600; font-size: 0.85rem; }
.auction-bid-form input { padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; }

.share-bar { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; }
.share-label { font-size: 0.85rem; color: #888; }
.share-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: white; border: 1px solid var(--border); color: var(--brand-dark);
  cursor: pointer; text-decoration: none;
}
.share-icon:hover { background: var(--brand); color: white; border-color: var(--brand); }
.share-copied { font-size: 0.8rem; color: var(--brand-dark); }

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(43, 38, 32, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; cursor: zoom-out; padding: 2rem;
}
.lightbox-overlay.hidden { display: none; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

.btn-primary {
  background: var(--brand);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-small { padding: 0.3rem 0.7rem; font-size: 0.85rem; border-radius: 5px; border: 1px solid var(--border); background: white; cursor: pointer; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-featured-on { background: #f6e58d; border-color: #e0c34a; color: #7a5c00; }
.btn-link { background: none; border: none; color: #ccc; cursor: pointer; text-decoration: underline; padding: 0; }

.cart-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.cart-table th, .cart-table td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--border); }
.cart-total { font-size: 1.2rem; margin: 1rem 0; }
.checkout-options { max-width: 320px; margin-top: 1rem; }
.checkout-options form { margin-bottom: 0; }
.checkout-options .btn-primary { width: 100%; }
.checkout-divider { text-align: center; color: #999; font-size: 0.85rem; margin: 0.75rem 0; }
.inline-form { display: inline; }
.inline-form-row { display: flex; gap: 0.5rem; align-items: center; margin: 1rem 0; }

.confirm-page { padding: 3rem 0; text-align: center; }

.site-footer { padding: 3rem 0 2rem; margin-top: 3rem; border-top: 1px solid var(--border); color: var(--text-soft); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.footer-brand p { max-width: 38ch; margin: 0.6rem 0 1rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: white; }
.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col h4 { font-size: 1rem; margin: 0 0 0.4rem; color: var(--text); }
.footer-col a { color: var(--text-soft); text-decoration: none; }
.footer-col a:hover { color: var(--brand); }
.footer-legal-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.footer-legal-links a { color: var(--text-soft); text-decoration: none; font-size: 0.85rem; }
.footer-legal-links a:hover { color: var(--brand); text-decoration: underline; }
.footer-copy { text-align: center; font-size: 0.85rem; margin: 0; }
.stock-note { font-size: 0.82rem; font-weight: 600; color: var(--gold-dark); margin: 0.3rem 0 0; }
.stock-note-out { color: var(--danger); }
.notice-callout {
  background: var(--tint); border: 1px solid #f3c9bb; border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 0.9rem 1.1rem; margin: 1rem 0; font-size: 0.92rem;
}
.notice-callout a { color: var(--brand-dark); font-weight: 600; }
.secure-note { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--text-soft); margin: 0 0 0.75rem; }
.secure-note svg { color: #2e7d4f; flex-shrink: 0; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.header-nav-site { margin-left: auto; display: flex; gap: 1.1rem; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,0.18); }

/* ---- Legal pages ---- */
.legal-page { max-width: 780px; margin: 0 auto; padding: 1rem 0 3rem; }
.legal-page h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.legal-page h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; color: var(--brand-dark); }
.legal-page p, .legal-page li { line-height: 1.6; color: #444; }
.legal-page ul { padding-left: 1.3rem; }
.legal-meta { color: #888; font-size: 0.85rem; margin-bottom: 1.5rem; }
.legal-note { margin-top: 2rem; padding: 1rem; background: white; border: 1px solid var(--border); border-radius: 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal-table th, .legal-table td { text-align: left; padding: 0.6rem; border: 1px solid var(--border); font-size: 0.9rem; }
.legal-table th { background: white; }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--header-bg); color: white; padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; max-width: 640px; text-align: center; }
.cookie-banner a { color: #f5b8a8; }
.cookie-banner .btn-primary { flex-shrink: 0; padding: 0.5rem 1.3rem; }

/* Admin */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #2a2a2a; color: white; padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; }
.admin-brand { font-weight: 700; font-size: 1.1rem; margin: 0; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.admin-sidebar a { color: #ddd; text-decoration: none; }
.admin-sidebar a:hover { color: white; }
.admin-content { flex: 1; padding: 2rem; max-width: 900px; }
.admin-bare { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.admin-login-wrap { max-width: 340px; }
.admin-login-form, .product-form, .account-form { display: flex; flex-direction: column; gap: 0.6rem; }
.admin-login-form input, .product-form input, .product-form select, .product-form textarea,
.account-form input {
  padding: 0.6rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit;
}
.admin-login-form label, .product-form label, .account-form label { font-weight: 600; margin-top: 0.5rem; font-size: 0.9rem; }
.account-form-wrap { max-width: 400px; margin: 0 auto; }
.loyalty-box { background: var(--tint); border: 1px solid var(--brand); border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 1rem; }
.loyalty-box p { margin: 0.2rem 0; }
.form-error { color: var(--danger); }
.hint { font-size: 0.8rem; color: #888; margin: 0.1rem 0; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: 0.5rem; }

.admin-header-row { display: flex; justify-content: space-between; align-items: center; }
.category-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 1rem; }
.category-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); background: white;
}
.category-row:last-child { border-bottom: none; }
.category-row-head { background: #f6f2ec; font-weight: 600; font-size: 0.85rem; color: #777; }
.category-edit-form { display: flex; align-items: center; gap: 0.75rem; flex: 1; }
.cat-col-name { width: 200px; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: 5px; }
.cat-col-sort { width: 60px; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: 5px; }
.cat-col-slug { flex: 1; color: #999; font-size: 0.85rem; }
.cat-col-menu { width: 60px; text-align: center; }
.admin-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.admin-table th, .admin-table td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--border); }
.admin-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; }
.admin-thumb-large { max-width: 200px; border-radius: 8px; margin-bottom: 0.5rem; }
.admin-thumb-small { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.admin-gallery-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.admin-gallery-item { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem; text-align: center; }
.admin-gallery-item .admin-thumb-large { max-width: 140px; margin-bottom: 0.4rem; }
.admin-url-copy {
  display: block; width: 100%; max-width: 320px; font-size: 0.72rem; color: #888;
  padding: 0.25rem 0.4rem; border: 1px solid var(--border); border-radius: 4px;
  margin: 0.3rem 0; background: #faf8f4;
}
.admin-gallery-actions { display: flex; gap: 0.3rem; justify-content: center; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 700; margin: 0; color: var(--brand-dark); }

.dash-greeting {
  background: #eef2ff; border: 1px solid #dde3fb; border-radius: 8px;
  padding: 0.8rem 1.1rem; margin-bottom: 1rem; font-size: 0.92rem;
}
.dash-header-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.dash-range-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.85rem; }
.dash-range-form input[type="date"] { padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: 5px; margin-left: 0.3rem; }
.dash-range-quick { display: flex; gap: 0.3rem; margin-left: 0.5rem; }
.dash-range-quick a.btn-small { text-decoration: none; color: var(--text); }
.btn-active { background: var(--brand) !important; color: white !important; border-color: var(--brand) !important; }

.stat-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 0.75rem 0; }
.stat-card-color { border-radius: 10px; padding: 1.3rem 1.4rem; }
.stat-card-color p { margin: 0; }
.stat-num-lg { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.2rem !important; }
.stat-green { background: #d9f2ea; color: #146c53; }
.stat-orange { background: #fde8d2; color: #9a5a10; }
.stat-blue { background: #dbe9fc; color: #1e4e96; }
.stat-purple { background: #ece2f9; color: #5c3690; }

.dash-charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; }
.dash-chart-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; }
.dash-chart-card h3 { margin: 0 0 0.75rem; font-size: 0.95rem; }
.status-pill { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.8rem; background: #eee; }
.status-pill.status-paid { background: #d4edda; color: #155724; }
.status-pill.status-pending { background: #fff3cd; color: #856404; }
.status-pill.status-fulfilled { background: #cce5ff; color: #004085; }
.status-pill.status-cancelled, .status-pill.status-refunded { background: #f8d7da; color: #721c24; }

/* Mobile overrides - kept at the end of the file on purpose: a @media block earlier in
   the cascade loses to an unconditional rule of equal specificity that comes after it in
   source order, regardless of whether the media condition matches, so these must be last. */
@media (max-width: 640px) {
  .header-top-row { flex-wrap: wrap; padding: 0.6rem 0.9rem; }
  .search-form { order: 3; flex-basis: 100%; max-width: none; }
  .account-link-text small { display: none; }
  .header-nav-row { padding: 0.45rem 0.9rem; gap: 0.8rem; overflow-x: auto; flex-wrap: nowrap; }

  .product-detail { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem 0; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem 0.9rem; margin-bottom: 0.9rem; }
  .cart-table td { border: none; padding: 0.3rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .cart-table td[data-label="Item"] { display: block; font-weight: 600; }
  .cart-table td[data-label]:not([data-label="Item"])::before { content: attr(data-label); color: var(--text-soft); font-size: 0.85rem; }
  .cart-table .cart-remove-cell { justify-content: flex-end; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: auto; }
  .dash-header-row { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 1.6rem; }
  .hero-slide img { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-nav-site { margin-left: 0; border-left: none; padding-left: 0; }
}

/* Shop front page heading under the banner carousel */
.shop-title { font-size: clamp(1.25rem, 2.4vw, 1.75rem); text-align: center; margin: 1.25rem auto 0.25rem; max-width: 40ch; line-height: 1.3; }

/* Reassurance line under Add to cart */
.secure-note-small { font-size: 0.82rem; color: #6b6259; margin: 0.6rem 0 0; }
.secure-note-small a { color: inherit; }

/* Seller details line in the footer */
.footer-seller { font-size: 0.78rem; opacity: 0.8; margin: 1rem 0 0.25rem; line-height: 1.6; }
.footer-seller a { color: inherit; }

/* Secondary (outline) button - used in the basket pop-up */
.btn-secondary { background: transparent; color: var(--text); border: 2px solid var(--border); padding: 0.7rem 1.3rem; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 700; text-decoration: none; display: inline-block; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Homepage hero slider ---------- */
.hero-slider { position: relative; height: clamp(460px, 78vh, 760px); overflow: hidden; background: #1c1612; color: #fff; isolation: isolate; --px: 0px; --py: 0px; --hero-interval: 7000ms; }
.hero-slider-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; z-index: 1; }
.hero-slider-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slider-slide.is-leaving { visibility: visible; z-index: 1; }
.hero-slider-media { position: absolute; inset: -30px; transform: translate3d(var(--px), var(--py), 0); transition: transform 0.6s ease-out; }
.hero-slider-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; display: block; transform: scale(1.12); transform-origin: 65% 45%; }
/* "Ken Burns": the active picture slowly zooms out and drifts */
.hero-slider-slide.is-active .hero-slider-media img { animation: heroKenBurns calc(var(--hero-interval) + 2500ms) ease-out forwards; }
@keyframes heroKenBurns { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
/* shading so the text reads well on any photo */
.hero-slider-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 15, 10, 0.86) 0%, rgba(22, 15, 10, 0.6) 34%, rgba(22, 15, 10, 0.12) 64%, rgba(22, 15, 10, 0) 100%), linear-gradient(0deg, rgba(22, 15, 10, 0.55) 0%, rgba(22, 15, 10, 0) 35%); }
/* soft watercolor glow drifting behind the text */
.hero-slider-glow { position: absolute; z-index: 3; left: -12%; top: -20%; width: 60%; height: 140%; pointer-events: none; mix-blend-mode: screen; opacity: 0.35; background: radial-gradient(closest-side, rgba(255, 90, 60, 0.55), transparent 70%), radial-gradient(closest-side at 70% 70%, rgba(120, 80, 220, 0.45), transparent 70%); filter: blur(40px); animation: heroGlow 16s ease-in-out infinite alternate; }
@keyframes heroGlow { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(8%, 6%, 0) rotate(12deg); } }

.hero-slider-content { position: absolute; z-index: 4; left: clamp(1.25rem, 6vw, 6rem); bottom: clamp(5.5rem, 14vh, 9rem); max-width: min(640px, 88vw); }
.hero-slider-eyebrow { display: inline-block; margin: 0 0 1rem; padding: 0.35rem 0.85rem; border-radius: 99px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-slider-title { margin: 0; font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1.04; letter-spacing: -0.015em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35); color: #fff; }
.hero-word { display: inline-block; }
.hero-slider-text { margin: 1.1rem 0 0; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.hero-slider-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.hero-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.95rem 1.6rem; border-radius: 99px; font-weight: 700; font-size: 0.98rem; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.hero-btn-primary { background: #ff5a3c; color: #fff; box-shadow: 0 10px 30px rgba(255, 90, 60, 0.4); }
.hero-btn-primary:hover { transform: translateY(-2px); background: #ff6d52; box-shadow: 0 14px 34px rgba(255, 90, 60, 0.55); color: #fff; }
.hero-btn-primary span { transition: transform 0.2s ease; }
.hero-btn-primary:hover span { transform: translateX(4px); }
.hero-btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(4px); }
.hero-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* text animates in when its slide becomes active */
.hero-slider-slide .hero-slider-eyebrow, .hero-slider-slide .hero-word, .hero-slider-slide .hero-slider-text, .hero-slider-slide .hero-slider-actions { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px); }
.hero-slider-slide.is-active .hero-slider-eyebrow { animation: heroIn 0.8s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero-slider-slide.is-active .hero-word { animation: heroIn 0.9s calc(0.4s + var(--i) * 0.08s) cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero-slider-slide.is-active .hero-slider-text { animation: heroIn 0.9s 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero-slider-slide.is-active .hero-slider-actions { animation: heroIn 0.9s 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }

/* navigation: arrows + progress bars */
.hero-slider-nav { position: absolute; z-index: 5; left: clamp(1.25rem, 6vw, 6rem); right: clamp(1.25rem, 6vw, 6rem); bottom: clamp(1.5rem, 4vh, 2.5rem); display: flex; align-items: center; gap: 1rem; }
.hero-slider-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.15rem; cursor: pointer; backdrop-filter: blur(4px); transition: background 0.2s, transform 0.2s; }
.hero-slider-arrow:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.06); }
.hero-slider-progress { flex: 1; display: flex; gap: 0.75rem; }
.hero-progress { flex: 1; max-width: 220px; display: flex; flex-direction: column; gap: 0.45rem; background: none; border: 0; padding: 0.4rem 0; cursor: pointer; color: rgba(255, 255, 255, 0.6); text-align: left; font: inherit; }
.hero-progress.is-active { color: #fff; }
.hero-progress-num { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; }
.hero-progress-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.hero-progress-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.hero-progress.is-done .hero-progress-bar span { width: 100%; }
.hero-progress.is-active .hero-progress-bar span { animation: heroProgress var(--hero-interval) linear forwards; }
.hero-slider.is-paused .hero-progress.is-active .hero-progress-bar span { animation-play-state: paused; }
@keyframes heroProgress { from { width: 0; } to { width: 100%; } }

@media (max-width: 700px) {
  .hero-slider { height: clamp(520px, 86vh, 680px); }
  .hero-slider-shade { background: linear-gradient(0deg, rgba(22, 15, 10, 0.92) 0%, rgba(22, 15, 10, 0.55) 45%, rgba(22, 15, 10, 0.1) 75%); }
  .hero-slider-content { bottom: 5.5rem; }
  .hero-slider-arrow { display: none; }
  .hero-btn { padding: 0.85rem 1.25rem; font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider-slide .hero-slider-media img, .hero-slider-glow, .hero-progress-bar span { animation: none !important; }
  .hero-slider-slide .hero-slider-eyebrow, .hero-slider-slide .hero-word, .hero-slider-slide .hero-slider-text, .hero-slider-slide .hero-slider-actions { opacity: 1; transform: none; filter: none; animation: none !important; }
  .hero-slider-media { transition: none; }
}

/* admin: slider management */
.admin-banner-card { display: grid; grid-template-columns: 220px 1fr 160px; gap: 1.25rem; align-items: start; padding: 1rem; margin: 1rem 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.admin-banner-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.admin-banner-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 0; }
.admin-banner-form label { font-size: 0.82rem; display: flex; flex-direction: column; gap: 0.2rem; }
.admin-banner-form button { grid-column: 1 / -1; justify-self: start; }
.admin-banner-actions p { margin: 0 0 0.5rem; font-size: 0.9rem; }
@media (max-width: 900px) { .admin-banner-card { grid-template-columns: 1fr; } .admin-banner-form { grid-template-columns: 1fr; } }
/* the slider runs edge to edge even inside the page container */
.hero-slider { width: 100vw; margin-left: calc(50% - 50vw); margin-top: 0; }

/* ---------- Requested shop style (coral-to-gold buttons, airy product grid) ---------- */
.btn-primary { background: var(--btn-gradient); box-shadow: 0 6px 18px rgba(214, 120, 80, 0.22); transition: filter 0.2s ease; }
.btn-primary:hover { background: var(--btn-gradient); filter: brightness(1.06) saturate(1.1); }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(min(250px, 42vw), 1fr)); gap: 2.2rem 1.75rem; }
@media (max-width: 600px) {
  .product-grid { gap: 1.6rem 0.9rem; }
  .card-buy-row { height: 42px; }
  .card-qty { width: 42px; padding-left: 0.55rem; font-size: 0.85rem; }
  .btn-add-to-basket { font-size: 0.82rem; padding: 0 0.4rem; }
  .btn-add-to-basket.btn-add-full { height: 42px; }
  .product-info h3 { font-size: 0.95rem; }
  .product-info .price { font-size: 1.05rem; }
}

/* Product frames: upright (portrait) and the whole product shown - nothing cropped (T-shirts, mugs, tall art) */
.product-card .product-image { aspect-ratio: 4 / 5; padding: 0.6rem; }
.product-card .product-image img { object-fit: contain; }

/* Admin: clickable, sortable column headings */
.admin-table th .sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.admin-table th .sort-link:hover { color: var(--brand); text-decoration: underline; }
.admin-table th .sort-link.is-sorted { color: var(--brand-dark); }
.admin-table th .sort-hint { opacity: 0.35; font-size: 0.85em; }

/* Basket: product thumbnails */
.cart-item { display: flex; align-items: center; gap: 0.9rem; }
.cart-thumb { flex: none; width: 72px; height: 72px; border-radius: 10px; border: 1px solid #ece6df; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cart-item-name { color: var(--text); font-weight: 600; text-decoration: none; }
.cart-item-name:hover { color: var(--title-orange); text-decoration: underline; }
.cart-item-text small { color: var(--text-soft); }
@media (max-width: 700px) { .cart-thumb { width: 64px; height: 64px; } }

/* Language switcher (header) */
.lang-switch { position: relative; flex: none; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; padding: 0.4rem 0.55rem; border-radius: 8px; font-weight: 700; font-size: 0.85rem; color: inherit; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: rgba(255, 255, 255, 0.12); }
.lang-switch-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 140px; padding: 0.35rem; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(40, 25, 10, 0.2); display: flex; flex-direction: column; }
.lang-switch-menu a { padding: 0.55rem 0.8rem; border-radius: 8px; color: #2b2620; text-decoration: none; font-size: 0.95rem; }
.lang-switch-menu a:hover { background: #f6f2ec; }
.lang-switch-menu a.is-current { font-weight: 700; color: var(--title-orange); }
/* "This shop is also in Finnish" bar */
.lang-suggest { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 0.8rem; max-width: calc(100% - 2rem); padding: 0.7rem 0.8rem 0.7rem 1.1rem; border-radius: 999px; background: #2b2620; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); font-size: 0.92rem; }
.lang-suggest[hidden] { display: none; }
.lang-suggest-go { color: #fff; font-weight: 700; white-space: nowrap; text-decoration: none; background: var(--btn-gradient); padding: 0.4rem 0.9rem; border-radius: 999px; }
.lang-suggest-close { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 0.3rem; opacity: 0.7; }
.lang-suggest-close:hover { opacity: 1; }
@media (max-width: 700px) { .lang-suggest { border-radius: 16px; flex-wrap: wrap; justify-content: center; text-align: center; } }

/* Admin: Finnish & Swedish translation fields */
.translation-box { margin: 1rem 0; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: #fbf9f6; }
.translation-box summary { cursor: pointer; font-weight: 700; }
.translation-box .tr-ok { color: #2e7d32; font-weight: 600; font-size: 0.85rem; margin-left: 0.4rem; }
.translation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-top: 0.75rem; }
.translation-grid h3 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.translation-grid input, .translation-grid textarea { width: 100%; }
.admin-banner-form .translation-box { grid-column: 1 / -1; }
.category-edit-form .cat-col-tr { width: 150px; }
.category-row-head .cat-col-tr { width: 150px; display: inline-block; }
@media (max-width: 800px) { .translation-grid { grid-template-columns: 1fr; } }
/* Header: let the search box shrink so account, cart and language always fit on one row */
.search-form, .search-form input { min-width: 0; }
.lang-switch summary { color: #fff; }
.lang-switch:not([open]) .lang-switch-menu { display: none; }
@media (max-width: 640px) { .lang-switch { margin-left: auto; } }
/* Full-width sections use 100vw, which includes the scrollbar - never let that cause sideways scrolling */
html, body { overflow-x: clip; }

/* Slider picture focus chosen in the admin */
.hero-slider-media img.focus-left { object-position: 15% 45%; transform-origin: 20% 45%; }
.hero-slider-media img.focus-center { object-position: 50% 45%; transform-origin: 50% 45%; }
.hero-slider-media img.focus-right { object-position: 85% 45%; transform-origin: 80% 45%; }
/* Admin: change a slide's picture */
.admin-banner-media { display: flex; flex-direction: column; gap: 0.6rem; }
.admin-banner-image-form { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; font-size: 0.82rem; }
.admin-banner-image-form input[type=file] { font-size: 0.8rem; max-width: 100%; }
.admin-banner-card.is-updated { outline: 2px solid #2e7d32; }
