/* =====================================================================
   Handicrafto - storefront theme
   Built on Bootstrap 5.3. Layout/responsive tweaks live in responsive.css.
   ===================================================================== */

:root {
  --c-primary: #f0763a;
  --c-primary-dark: #d35f24;
  --c-primary-soft: #fdece0;
  --c-gold: #c9a24a;
  --c-gold-light: #e9d7a6;
  --c-navy: #2e4fb0;
  --c-ink: #1c2333;
  --c-text: #33394a;
  --c-muted: #6d7488;
  --c-cream: #fbf9f6;
  --c-sand: #eef1f8;
  --c-line: #dfe3ee;
  --c-white: #ffffff;
  --c-success: #2f7d4f;
  --c-danger: #c0392b;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(28, 35, 51, .07);
  --shadow: 0 10px 30px rgba(28, 35, 51, .12);
  --header-h: 76px;
}

/* ---------------------------------------------------------------- Base */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-cream);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: .1px;
}
a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; }
.text-gold { color: var(--c-gold) !important; }
.text-primary-brand { color: var(--c-primary) !important; }
.bg-cream { background: var(--c-cream) !important; }
.bg-sand { background: var(--c-sand) !important; }
.muted { color: var(--c-muted); }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

/* Icons drawn from /icons/*.svg as CSS masks so they inherit currentColor */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -.22em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.6em; height: 1.6em; }

/* ---------------------------------------------------------------- Buttons */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.35rem; letter-spacing: .2px; transition: all .2s ease; }
.btn-sm { padding: .38rem .95rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.9rem; }
.btn-brand { background: var(--c-primary); border: 1px solid var(--c-primary); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn-gold { background: var(--c-gold); border: 1px solid var(--c-gold); color: #2a1a17; }
.btn-gold:hover { background: #b78f37; border-color: #b78f37; color: #2a1a17; }
.btn-outline-brand { background: transparent; border: 1.5px solid var(--c-primary); color: var(--c-primary); }
.btn-outline-brand:hover { background: var(--c-primary); color: #fff; }
.btn-dark-soft { background: var(--c-ink); border: 1px solid var(--c-ink); color: #fff; }
.btn-dark-soft:hover { background: #000; color: #fff; }
.btn:disabled, .btn.disabled { opacity: .55; }

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--c-line);
  padding: .62rem .9rem;
  background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 .2rem rgba(240, 118, 58, .12);
}
.form-label { font-weight: 600; font-size: .86rem; color: var(--c-ink); margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.invalid-feedback, .field-error { display: block; color: var(--c-danger); font-size: .82rem; margin-top: .25rem; }

/* ---------------------------------------------------------------- Announcement + header */
.topbar { background: var(--c-ink); color: #eadfca; font-size: .82rem; }
.topbar a { color: #eadfca; }
.topbar a:hover { color: var(--c-gold); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar-links { display: flex; gap: 18px; align-items: center; }

.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-main { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand img { height: 46px; width: auto; display: block; }

.search-box { position: relative; flex: 1; max-width: 640px; }
.search-form {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--c-line);
  border-radius: 999px; background: var(--c-cream);
  overflow: hidden; transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-form:focus-within { border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 .2rem rgba(240, 118, 58, .1); }
.search-form input { flex: 1; border: 0; background: transparent; padding: .7rem 1.1rem; outline: none; min-width: 0; }
.search-form button { border: 0; background: var(--c-primary); color: #fff; padding: 0 1.3rem; display: flex; align-items: center; }
.search-form button:hover { background: var(--c-primary-dark); }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); z-index: 1040; display: none; overflow: hidden;
}
.search-suggest.show { display: block; }
.suggest-group-title { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--c-muted); padding: 10px 16px 4px; font-weight: 700; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--c-text); }
.suggest-item:hover, .suggest-item.active { background: var(--c-cream); color: var(--c-primary); }
.suggest-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--c-sand); }
.suggest-item .price { margin-left: auto; font-weight: 700; color: var(--c-primary); font-size: .88rem; }
.suggest-empty { padding: 16px; color: var(--c-muted); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-action {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--c-ink); padding: 6px 12px; border-radius: 10px; font-size: .72rem; font-weight: 600; line-height: 1.2;
  background: none; border: 0;
}
.header-action .icon { font-size: 22px; margin-bottom: 2px; }
.header-action:hover { color: var(--c-primary); background: var(--c-cream); }
.badge-count {
  position: absolute; top: 0; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--c-primary); color: #fff; border-radius: 999px; font-size: .68rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.badge-count[data-count="0"] { display: none; }

.account-menu { min-width: 250px; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.account-menu .dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.account-menu .dropdown-item:hover { background: var(--c-cream); color: var(--c-primary); }
.account-menu .menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--c-line); margin-bottom: 6px; }
.account-menu .menu-head strong { display: block; color: var(--c-ink); }
.account-menu .menu-head small { color: var(--c-muted); }

.mode-switch { display: inline-flex; background: var(--c-sand); border-radius: 999px; padding: 3px; margin: 4px 8px 8px; }
.mode-switch button { border: 0; background: transparent; padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--c-muted); }
.mode-switch button.active { background: var(--c-primary); color: #fff; }

.mobile-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--c-ink); padding: 4px 8px; }

/* Category navigation */
.category-nav { background: #fff; border-top: 1px solid var(--c-line); }
.category-nav .container { display: flex; align-items: center; }
.cat-nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; overflow: visible; row-gap: 2px; }
.cat-nav-list > li { position: relative; }
.cat-nav-list > li > a {
  display: flex; align-items: center; gap: 5px; padding: 12px 14px; color: var(--c-ink); font-weight: 600; font-size: .9rem; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.cat-nav-list > li:hover > a, .cat-nav-list > li > a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.cat-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--c-line);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 10px; display: none; z-index: 1035;
}
.cat-nav-list > li:hover .cat-dropdown, .cat-nav-list > li:focus-within .cat-dropdown { display: block; }
.cat-dropdown a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--c-text); font-size: .9rem; }
.cat-dropdown a:hover { background: var(--c-cream); color: var(--c-primary); }
.cat-dropdown .view-all { font-weight: 700; color: var(--c-primary); border-bottom: 1px dashed var(--c-line); margin-bottom: 4px; border-radius: 0; }
.nav-sell { margin-left: auto; }

/* ---------------------------------------------------------------- Hero slider */
.hero { position: relative; background: var(--c-ink); }
.hero .carousel-item { height: 540px; background: var(--c-ink); }
.hero .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 8, 8, .78) 0%, rgba(20, 8, 8, .35) 55%, rgba(20, 8, 8, 0) 100%); }
.hero .slide-body { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero .slide-content { max-width: 540px; color: #fff; }
.hero .slide-kicker { display: inline-block; letter-spacing: 3px; text-transform: uppercase; font-size: .78rem; color: var(--c-gold-light); margin-bottom: 14px; font-weight: 700; }
.hero h1, .hero h2 { color: #fff; font-size: 3rem; line-height: 1.12; margin-bottom: 16px; }
.hero p { color: #efe3d1; font-size: 1.08rem; margin-bottom: 26px; }
.hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #fff; opacity: .5; }
.hero .carousel-indicators .active { background: var(--c-gold); opacity: 1; width: 28px; border-radius: 999px; }

/* ---------------------------------------------------------------- Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--c-line); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 18px 8px; }
.trust-item .icon { font-size: 30px; color: var(--c-primary); }
.trust-item strong { display: block; color: var(--c-ink); font-size: .95rem; }
.trust-item span.sub { color: var(--c-muted); font-size: .82rem; }

/* ---------------------------------------------------------------- Section heading */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 1.9rem; margin: 0; }
.section-head .kicker { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: 3px; color: var(--c-gold); font-weight: 800; margin-bottom: 4px; }
.section-head .view-all { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.orn-divider { display: flex; align-items: center; gap: 12px; color: var(--c-gold); justify-content: center; margin: 8px 0 26px; }
.orn-divider::before, .orn-divider::after { content: ""; height: 1px; width: 70px; background: var(--c-gold-light); }
.orn-divider i { width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); display: block; }

/* ---------------------------------------------------------------- Category cards */
.cat-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow-sm); background: var(--c-sand); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card .cat-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; background: linear-gradient(0deg, rgba(20, 8, 8, .78), transparent); }
.cat-card .cat-label strong { display: block; font-family: var(--font-heading); font-size: 1.08rem; }
.cat-card .cat-label span { font-size: .78rem; color: #eadfca; }

/* ---------------------------------------------------------------- Product card */
.product-card {
  position: relative; height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .pc-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--c-sand); overflow: hidden; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-badge { position: absolute; top: 12px; left: 12px; background: var(--c-primary); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px; }
.pc-badge.out { background: #555; }
.pc-wish {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95);
  display: flex; align-items: center; justify-content: center; color: var(--c-muted); box-shadow: var(--shadow-sm); transition: all .2s;
}
.pc-wish:hover { color: var(--c-primary); transform: scale(1.08); }
.pc-wish.active { color: var(--c-primary); }
.pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pc-vendor { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--c-muted); font-weight: 700; }
.pc-vendor a { color: inherit; }
.pc-vendor a:hover { color: var(--c-primary); }
.pc-title { font-family: var(--font-heading); font-size: 1.02rem; margin: 4px 0 6px; line-height: 1.3; }
.pc-title a { color: var(--c-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title a:hover { color: var(--c-primary); }
.pc-meta { font-size: .78rem; color: var(--c-muted); margin-bottom: 8px; }
.pc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price-now { font-size: 1.2rem; font-weight: 800; color: var(--c-ink); }
.price-was { color: var(--c-muted); text-decoration: line-through; font-size: .88rem; }
.price-off { color: var(--c-success); font-weight: 800; font-size: .82rem; }
.pc-actions { margin-top: 12px; }
.pc-actions .btn { width: 100%; }

.rating-badge {
  display: inline-flex; align-items: center; gap: 4px; background: var(--c-success); color: #fff; font-weight: 800; font-size: .76rem;
  padding: 2px 8px; border-radius: 6px; line-height: 1.5;
}
.rating-badge.low { background: #d98c1f; }
.rating-badge .icon { width: .85em; height: .85em; }
.rating-count { color: var(--c-muted); font-size: .8rem; margin-left: 6px; }
.stars { color: var(--c-gold); display: inline-flex; gap: 1px; }
.stars .off { color: #d9cfbc; }

/* ---------------------------------------------------------------- Store cards */
.store-card { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; height: 100%; transition: box-shadow .25s, transform .25s; color: var(--c-text); }
.store-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--c-text); }
.store-card img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-gold-light); flex: none; }
.store-card h5 { font-size: 1.05rem; margin: 0 0 2px; }
.store-card .meta { font-size: .8rem; color: var(--c-muted); }

/* ---------------------------------------------------------------- Promo banners */
.promo-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 1; color: #fff; box-shadow: var(--shadow-sm); }
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.promo-card:hover img { transform: scale(1.05); }
.promo-card .promo-body { position: relative; z-index: 2; height: 100%; padding: 24px 26px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(0deg, rgba(20, 8, 8, .7), rgba(20, 8, 8, .05) 70%); }
.promo-card h4 { color: #fff; font-size: 1.3rem; margin: 0 0 4px; }
.promo-card p { margin: 0 0 8px; color: #efe3d1; font-size: .9rem; }
.promo-card .cta { font-weight: 800; color: var(--c-gold-light); }

/* ---------------------------------------------------------------- Page header / breadcrumb */
.page-head { background: linear-gradient(135deg, var(--c-ink), var(--c-navy)); color: #fff; padding: 34px 0; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 30px solid rgba(201, 162, 74, .12); transform: rotate(45deg); }
.page-head h1 { color: #fff; font-size: 2rem; margin: 0 0 4px; }
.page-head p { color: #dfd0bb; margin: 0; }
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid var(--c-line); }
.breadcrumb { margin: 0; padding: 12px 0; font-size: .84rem; }
.breadcrumb-item a { color: var(--c-muted); }
.breadcrumb-item.active { color: var(--c-ink); font-weight: 600; }

/* ---------------------------------------------------------------- Listing page */
.filter-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; }
.filter-card h6 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--c-muted); margin: 0 0 10px; font-weight: 800; }
.filter-block { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.filter-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-list { list-style: none; padding: 0; margin: 0; max-height: 220px; overflow: auto; }
.filter-list a { display: flex; justify-content: space-between; padding: 5px 0; color: var(--c-text); font-size: .92rem; }
.filter-list a:hover, .filter-list a.active { color: var(--c-primary); font-weight: 700; }
.filter-list .sub { padding-left: 14px; font-size: .86rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--c-primary-soft); color: var(--c-primary); border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 700; }
.chip a { color: inherit; display: inline-flex; }
.pagination { --bs-pagination-active-bg: var(--c-primary); --bs-pagination-active-border-color: var(--c-primary); --bs-pagination-color: var(--c-primary); --bs-pagination-hover-color: var(--c-primary-dark); --bs-pagination-focus-color: var(--c-primary-dark); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(240, 118, 58, .12); }
.filter-toggle { display: none; }

/* ---------------------------------------------------------------- Product detail */
.gallery-main { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; transform-origin: center; }
.gallery-main.zoomed img { transform: scale(1.9); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid var(--c-line); border-radius: 10px; overflow: hidden; background: #fff; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--c-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-size: 1.85rem; line-height: 1.2; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.pd-price .price-now { font-size: 2rem; }
.pd-price .price-was { font-size: 1.1rem; }
.pd-price .price-off { font-size: 1rem; }
.stock-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #e7f4ec; color: var(--c-success); }
.stock-pill.low { background: #fdf1dc; color: #b26b00; }
.stock-pill.out { background: #fbe4e1; color: var(--c-danger); }
.spec-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.spec-mini div { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 10px 14px; }
.spec-mini small { display: block; text-transform: uppercase; letter-spacing: 1px; font-size: .68rem; color: var(--c-muted); font-weight: 700; }
.spec-mini strong { color: var(--c-ink); font-size: .95rem; }
.buy-box { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--c-line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: transparent; color: var(--c-ink); font-size: 1.1rem; }
.qty button:hover { background: var(--c-cream); }
.qty input { width: 46px; text-align: center; border: 0; font-weight: 700; padding: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vendor-mini { display: flex; align-items: center; gap: 12px; background: var(--c-sand); border-radius: var(--radius); padding: 12px 14px; }
.vendor-mini img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.nav-tabs-brand { border-bottom: 2px solid var(--c-line); gap: 6px; }
.nav-tabs-brand .nav-link { border: 0; color: var(--c-muted); font-weight: 700; padding: .8rem 1.2rem; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; }
.nav-tabs-brand .nav-link:hover { color: var(--c-primary); }
.nav-tabs-brand .nav-link.active { color: var(--c-primary); border-bottom-color: var(--c-primary); background: none; }
.spec-table th { width: 32%; background: var(--c-sand); font-weight: 700; color: var(--c-ink); }
.spec-table td, .spec-table th { padding: .7rem 1rem; border-color: var(--c-line); }
.rating-summary { text-align: center; }
.rating-summary .big { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 700; color: var(--c-ink); line-height: 1; }
.rating-bar { display: flex; align-items: center; gap: 10px; font-size: .84rem; margin: 6px 0; }
.rating-bar .bar { flex: 1; height: 8px; background: var(--c-sand); border-radius: 99px; overflow: hidden; }
.rating-bar .bar span { display: block; height: 100%; background: var(--c-gold); }
.review-card { border-bottom: 1px solid var(--c-line); padding: 18px 0; }
.review-card:last-child { border-bottom: 0; }
.review-card .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin-right: 6px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { cursor: pointer; color: #d9cfbc; font-size: 1.8rem; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--c-gold); }

/* ---------------------------------------------------------------- Cart / checkout */
.panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.panel-head { padding: 14px 20px; border-bottom: 1px solid var(--c-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h5, .panel-head h6 { margin: 0; }
.panel-body { padding: 20px; }
.vendor-group-head { background: var(--c-sand); padding: 10px 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--c-line); }
.cart-line { display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--c-line); align-items: flex-start; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; background: var(--c-sand); flex: none; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info h6 { font-family: var(--font-heading); font-size: 1.02rem; margin-bottom: 4px; }
.cart-line .line-total { text-align: right; min-width: 110px; font-weight: 800; color: var(--c-ink); }
.link-danger-soft { color: var(--c-danger); font-size: .84rem; font-weight: 600; background: none; border: 0; padding: 0; }
.link-danger-soft:hover { text-decoration: underline; }
.summary-card { position: sticky; top: calc(var(--header-h) + 60px); }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .95rem; }
.sum-row.total { border-top: 1.5px dashed var(--c-line); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 800; color: var(--c-ink); }
.sum-row .discount { color: var(--c-success); font-weight: 700; }
.coupon-box { display: flex; gap: 8px; }
.coupon-tag { display: inline-flex; align-items: center; gap: 8px; background: #e7f4ec; color: var(--c-success); border-radius: 999px; padding: 4px 6px 4px 12px; font-weight: 700; font-size: .82rem; }
.coupon-tag button { border: 0; background: rgba(47, 125, 79, .15); color: var(--c-success); border-radius: 50%; width: 20px; height: 20px; line-height: 1; padding: 0; }
.option-card { border: 1.5px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: all .2s; background: #fff; }
.option-card:hover { border-color: var(--c-gold); }
.option-card.selected, .option-card:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.option-card input { margin-top: 4px; accent-color: var(--c-primary); }
.steps { display: flex; gap: 8px; align-items: center; font-size: .86rem; font-weight: 700; color: var(--c-muted); }
.steps .on { color: var(--c-primary); }
.steps .sep { width: 28px; height: 1px; background: var(--c-line); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { font-size: 54px; color: var(--c-gold); }

/* ---------------------------------------------------------------- Account */
.account-nav { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.account-nav .who { padding: 20px; text-align: center; background: linear-gradient(135deg, var(--c-ink), var(--c-navy)); color: #fff; }
.account-nav .who img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c-gold); margin-bottom: 8px; }
.account-nav .who strong { display: block; font-family: var(--font-heading); }
.account-nav .who small { color: #dfd0bb; }
.account-nav a.item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--c-text); border-bottom: 1px solid var(--c-line); font-weight: 600; font-size: .92rem; }
.account-nav a.item:last-child { border-bottom: 0; }
.account-nav a.item:hover, .account-nav a.item.active { background: var(--c-cream); color: var(--c-primary); }
.account-nav a.item .pill { margin-left: auto; background: var(--c-primary); color: #fff; font-size: .7rem; border-radius: 99px; padding: 1px 8px; }
.stat-tile { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat-tile .icon { font-size: 30px; color: var(--c-primary); }
.stat-tile strong { display: block; font-size: 1.5rem; color: var(--c-ink); font-family: var(--font-heading); line-height: 1.1; }
.status-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .2px; }
.status-warning { background: #fdf1dc; color: #a86200; }
.status-info { background: #e4f1f8; color: #1a6b93; }
.status-primary { background: #e6ebfa; color: #2846a8; }
.status-success { background: #e2f3e8; color: var(--c-success); }
.status-danger { background: #fbe4e1; color: var(--c-danger); }
.status-secondary { background: #ececec; color: #555; }
.status-dark { background: #dedede; color: #222; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--c-line); }
.timeline li { position: relative; padding: 0 0 18px 16px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-gold); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--c-gold); }
.timeline li:first-child::before { background: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.address-card { border: 1.5px solid var(--c-line); border-radius: var(--radius); padding: 16px; background: #fff; height: 100%; }
.address-card.default { border-color: var(--c-gold); background: #fffaf0; }
.notice-item { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--c-line); align-items: flex-start; }
.notice-item.unread { background: #fffaf0; }
.notice-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); margin-top: 7px; flex: none; }
.notice-item.read .dot { background: var(--c-line); }

/* ---------------------------------------------------------------- Store page */
.store-hero { position: relative; height: 230px; background: var(--c-ink); overflow: hidden; }
.store-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.store-info { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); margin-top: -56px; position: relative; z-index: 2; padding: 20px 24px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.store-info .logo { width: 104px; height: 104px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow-sm); object-fit: cover; background: #fff; margin-top: -50px; }

/* ---------------------------------------------------------------- Auth */
.auth-wrap { min-height: calc(100vh - 220px); display: flex; align-items: center; padding: 48px 0; background: radial-gradient(circle at 15% 15%, #f3e3c3 0, transparent 40%), radial-gradient(circle at 85% 90%, #f0d6d9 0, transparent 40%), var(--c-cream); }
.auth-card { background: #fff; border: 1px solid var(--c-line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.auth-side { background: linear-gradient(160deg, var(--c-ink), var(--c-navy)); color: #fff; padding: 44px 36px; height: 100%; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; bottom: -70px; right: -70px; width: 240px; height: 240px; border: 34px solid rgba(201, 162, 74, .15); transform: rotate(45deg); }
.auth-side h2 { color: #fff; font-size: 1.9rem; }
.auth-side p { color: #e5d6bf; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; }
.auth-side li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; color: #f3e8d3; }
.auth-side li .icon { color: var(--c-gold); }
.auth-form { padding: 44px 40px; }

/* ---------------------------------------------------------------- Static pages */
.prose { font-size: 1.02rem; line-height: 1.8; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose ul { padding-left: 1.2rem; }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.value-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; height: 100%; text-align: center; }
.value-card .icon { font-size: 34px; color: var(--c-primary); margin-bottom: 10px; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--c-ink); color: #cdbfad; padding-top: 56px; margin-top: 40px; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: #cdbfad; }
.site-footer a:hover { color: var(--c-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; color: #fff; }
.social-links a:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-line .icon { color: var(--c-gold); margin-top: 4px; }

/* ---------------------------------------------------------------- Utilities: toast, back-to-top */
.toast-stack { position: fixed; top: 92px; right: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast-msg {
  min-width: 260px; max-width: 360px; background: #fff; border-left: 5px solid var(--c-success); border-radius: 10px; box-shadow: var(--shadow);
  padding: 12px 16px; font-weight: 600; color: var(--c-ink); animation: toast-in .25s ease; display: flex; gap: 10px; align-items: center;
}
.toast-msg.error { border-left-color: var(--c-danger); }
.toast-msg.hide { opacity: 0; transform: translateX(20px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-primary); color: #fff;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .25s; z-index: 1000; display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--c-primary-dark); transform: translateY(-3px); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.alert { border-radius: var(--radius-sm); }

/* Hero carousel arrows: smaller and tucked to the edges so they never sit over the headline */
.hero .carousel-control-prev, .hero .carousel-control-next { width: 56px; opacity: .55; }
.hero .carousel-control-prev:hover, .hero .carousel-control-next:hover { opacity: 1; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { width: 1.4rem; height: 1.4rem; }
/* Reveal animation only hides content when JavaScript is running */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; }
