/* Shop website, in the same layout as the gift shop: white header with serif logo and uppercase menu,
   cream hero with a 3D carousel, centred section titles with a gold rule, sand product tiles, cocoa footer. */
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.demo-bar { background: var(--soft-2); color: var(--ink); text-align: center; font-size: 13px; padding: 6px 16px; }
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 13px; font-weight: 500; padding: 9px 16px; }

/* ----- header ----- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 1px 2px rgba(45, 38, 32, .04); }
.hdr { width: min(1240px, 100% - 32px); margin-inline: auto; height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1.1; justify-self: start; min-width: 0; }
.brand img { height: 58px; width: auto; max-width: 190px; object-fit: contain; }
.logo-name { font: 700 26px/1.1 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.logo-tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-top: 3px; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a, .nav-drop > button { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1.5px solid transparent; }
.main-nav > a:hover, .nav-drop > button:hover, .main-nav > a.on, .nav-drop.on > button { color: var(--gold-ink); border-bottom-color: var(--gold-ink); }
.nav-drop { position: relative; }
.nav-drop svg { width: 14px; height: 14px; }
.drop-panel { position: absolute; top: calc(100% + 14px); inset-inline-start: 50%; translate: -50% 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(45, 38, 32, .35); padding: 8px; display: grid; }
[dir="rtl"] .drop-panel { translate: 50% 0; }
.drop-panel a { padding: 9px 14px; border-radius: 8px; text-decoration: none; font-size: 14px; white-space: nowrap; }
.drop-panel a:hover { background: var(--soft-2); color: var(--gold-ink); }
.hdr-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }
.hdr-icon { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; color: var(--ink); border-radius: 50%; }
.hdr-icon:hover { background: var(--soft-2); }
.hdr-icon svg { width: 22px; height: 22px; }
.hdr-lang { border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 500; padding: 8px 10px; color: var(--ink); }
.hdr-lang:hover { color: var(--gold-ink); }
.menu-toggle { display: none; }
.badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.search-row { border-top: 1px solid var(--line); padding: 12px 0; background: var(--bg); }
.search-row input { border-radius: 8px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 8px 16px 16px; display: grid; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.mobile-menu .mm-head { font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); padding: 16px 4px 6px; }

main { min-height: 60vh; }

/* ----- bands and titles ----- */
.band { background: var(--soft-2); background-image: radial-gradient(color-mix(in srgb, var(--accent-2) 22%, transparent) 1px, transparent 1px); background-size: 22px 22px; border-bottom: 1px solid var(--line); }
.page-band { padding: 44px 0 40px; text-align: center; }
.page-band h1 { font-size: clamp(30px, 4.6vw, 46px); }
.page-band p { margin: 8px auto 0; max-width: 60ch; color: var(--muted); }
.title-c { text-align: center; margin-bottom: 30px; }
.title-c h2, .title-s h2 { font-size: clamp(26px, 3.4vw, 34px); }
.rule { display: block; width: 80px; height: 2px; background: var(--accent-2); margin: 12px auto 0; }
.title-s { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.title-s .rule { margin-inline: 0; }
.view-all { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; }
.view-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ----- hero with 3D carousel ----- */
.hero { padding: 46px 0 34px; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.45; }
.hero .sub { color: var(--gold-ink); margin: 14px 0 0; font-size: clamp(15px, 1.6vw, 18px); }
.carousel { position: relative; height: 430px; margin-top: 30px; perspective: 1200px; transform-style: preserve-3d; }
.c-item { position: absolute; top: 0; left: 50%; width: 290px; height: 400px; border-radius: 16px; overflow: hidden; background: var(--soft); box-shadow: 0 24px 50px -22px rgba(45, 38, 32, .55);
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .6s ease; cursor: pointer; border: 0; padding: 0; color: #fff; text-align: start; }
.c-item img { width: 100%; height: 100%; object-fit: cover; }
.c-item .c-cap { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(30, 24, 20, .8)); font: 600 17px/1.3 var(--serif); }
.c-item[data-pos="center"] { transform: translateX(-50%) translateZ(0) scale(1); opacity: 1; z-index: 3; }
.c-item[data-pos="left"] { transform: translateX(-160%) translateZ(-200px) rotateY(25deg); opacity: .6; z-index: 2; }
.c-item[data-pos="right"] { transform: translateX(60%) translateZ(-200px) rotateY(-25deg); opacity: .6; z-index: 2; }
.c-item[data-pos="hidden"] { transform: translateX(-50%) translateZ(-400px) scale(.7); opacity: 0; z-index: 1; pointer-events: none; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.dots button { width: 7px; height: 7px; border-radius: 4px; border: 0; padding: 0; background: color-mix(in srgb, var(--accent-2) 45%, transparent); cursor: pointer; transition: width .3s; }
.dots button.on { width: 22px; background: var(--accent-2); }
.hero .btn { margin-top: 22px; }

/* ----- best sellers and category tiles ----- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.tiles.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.c3 .tile-img { aspect-ratio: 4 / 3; }
.tile { display: block; text-decoration: none; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px -4px rgba(45, 38, 32, .2); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(45, 38, 32, .4); }
.tile-img { aspect-ratio: 1 / 1.1; background: var(--soft); overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-name { padding: 16px 12px; text-align: center; font: 500 16px/1.35 var(--serif); }
.tile-name small { display: block; font: 400 12px/1.4 var(--sans); color: var(--muted); margin-top: 3px; }

/* ----- product grid ----- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-img { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; inset-inline-end: 12px; padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--surface); color: var(--gold-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.tag.out { background: var(--ink); color: #fff; }
.tag.sale { background: var(--accent-2); color: #fff; }
.card-act { position: absolute; inset: auto 0 0; padding: 12px; transition: transform .3s; }
.card-act .btn { width: 100%; min-height: 42px; }
@media (hover: hover) { .card-act { transform: translateY(110%); } .card:hover .card-act, .card:focus-within .card-act { transform: none; } }
.card-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-title { font: 500 17px/1.35 var(--serif); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { color: var(--gold-ink); }
.card-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.card .price { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-inline-start: .35em; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar select { width: auto; min-width: 190px; border-radius: 8px; }
.empty { text-align: center; color: var(--muted); padding: 50px 16px; }
.list-wrap { padding-bottom: 70px; }

/* ----- product page ----- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 40px 0 20px; align-items: start; }
.pd > *, .co > * { min-width: 0; }
.gallery-main { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 70px; height: 70px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--soft); }
.thumbs button.on { border-color: var(--accent-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.crumb { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; }
.pd-info h1 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 8px; }
.pd-price { font-size: 22px; margin: 14px 0 4px; }
.pd-price .price { color: var(--ink); font-weight: 600; }
.stock-line { font-size: 13.5px; font-weight: 600; }
.stock-line.in { color: var(--ok); } .stock-line.low { color: var(--warn); } .stock-line.out { color: var(--bad); }
.opt-label { font-weight: 600; margin: 22px 0 10px; font-size: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 14px; }
[dir="rtl"] .opt { padding: 4px 4px 4px 12px; }
.opt.noimg { padding: 8px 14px; }
.opt img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.buy-row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 180px; min-height: 48px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); height: 48px; }
.stepper button { width: 40px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.stepper span { min-width: 30px; text-align: center; font-weight: 600; }
.pd-desc { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); white-space: pre-line; color: var(--muted); }
.custom-box { margin-top: 18px; }

/* ----- cart drawer ----- */
.drawer-bg { position: fixed; inset: 0; background: rgba(45, 38, 32, .45); z-index: 50; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(430px, 100%); background: var(--bg); z-index: 51; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--soft-2); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; background: var(--soft); }
.line-name { font: 500 15px/1.35 var(--serif); }
.line-sub { font-size: 12.5px; color: var(--muted); }
.line .stepper { height: 34px; margin-top: 6px; }
.line .stepper button { width: 30px; }
.line-end { display: grid; gap: 4px; justify-items: end; }
.line-end .price { color: var(--ink); font-size: 14px; }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12.5px; text-decoration: underline; padding: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; }
.sum-row.total { font-weight: 700; font-size: 18px; }

/* ----- checkout ----- */
.co { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; padding: 36px 0 70px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(45, 38, 32, .05); }
.panel h2 { font-size: 22px; margin-bottom: 16px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: flex; gap: 10px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); font-weight: 600; }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--soft-2); }
.choice input { accent-color: var(--ink); width: 18px; height: 18px; }
.code-row { display: flex; gap: 8px; }
.note { background: var(--soft-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; }
.err-box { background: color-mix(in srgb, var(--bad) 9%, transparent); color: var(--bad); border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.co .sticky { position: sticky; top: 100px; }
.mini-line { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.mini-line img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.mini-line div { flex: 1; min-width: 0; }

.done { max-width: 580px; margin: 0 auto; text-align: center; }
.done.panel { margin-block: -8px 70px; }
.done .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.track-wrap { max-width: 640px; margin: 36px auto 70px; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.timeline li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.timeline li.on { color: var(--ink); font-weight: 600; }
.timeline li.on::before { background: var(--accent-2); border-color: var(--accent-2); }

/* ----- footer ----- */
footer.foot { background: var(--ink); color: #efe8dd; padding: 64px 0 28px; font-size: 14px; }
[data-theme="berry"] footer.foot, [data-theme="sky"] footer.foot, [data-theme="mint"] footer.foot, [data-theme="lilac"] footer.foot { background: #2a2026; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-logo { font: 700 26px/1.2 var(--serif); color: #fff; margin-bottom: 14px; }
.foot-logo img { height: 56px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.foot h3 { font: 400 22px/1.2 var(--serif); color: var(--accent-2); margin-bottom: 16px; }
.foot p { margin: 0 0 10px; white-space: pre-line; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--accent-2); }
.socials { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.socials a { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #cfc4b4; }
.wa-float { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 39; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.wa-float svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) { .c-item, .card-img img, .tile, .card-act { transition: none; } }
@media (max-width: 1000px) {
  .tiles, .tiles.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
}
@media (max-width: 900px) {
  .hdr { grid-template-columns: auto 1fr auto; height: 66px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .brand { justify-self: center; align-items: center; }
  .pd, .co { grid-template-columns: 1fr; gap: 24px; }
  .co .sticky { position: static; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .logo-name { font-size: 21px; max-width: 170px; }
  .logo-tag { font-size: 9.5px; }
  .hdr-lang { padding: 8px 4px; font-size: 13px; }
  .hdr-icon { width: 38px; height: 38px; }
  .section { padding: 44px 0; }
  .carousel { height: 340px; }
  .c-item { width: 220px; height: 310px; }
  .c-item[data-pos="left"] { transform: translateX(-120%) translateZ(-200px) rotateY(25deg) scale(.85); }
  .c-item[data-pos="right"] { transform: translateX(20%) translateZ(-200px) rotateY(-25deg) scale(.85); }
  .grid { gap: 24px 12px; }
  .card-title { font-size: 15px; }
  .card-info { flex-direction: column; gap: 4px; }
  .tile-name { font-size: 14px; padding: 12px 8px; }
  .title-s { flex-direction: column; align-items: flex-start; }
  .form-grid, .choice { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
}

/* 0–9 picker for number balloons */
.digits { gap: 10px; }
.digit { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.digit.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.digit-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--sand, #f3ece1); font: 600 18px/1 inherit; font-family: inherit; cursor: pointer; color: inherit; }
.digit-btn:hover:not(:disabled) { background: var(--gold, #c5a880); color: #fff; }
.digit-btn:disabled { opacity: .45; cursor: not-allowed; }
.digit-n { font-weight: 600; font-size: 14px; padding: 0 2px; }
.digit-minus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1; color: inherit; }
.digit-sum { margin-top: 10px; font-size: 13px; }

/* ----- phones: bigger tap targets, no iPhone zoom on typing ----- */
.box-mbar { display: none; }
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }
  .dots { gap: 2px; }
  .dots button { width: 7px; height: 7px; box-sizing: content-box; border: 10px solid transparent; background-clip: padding-box; }
  .dots button.on { width: 22px; }
  .foot ul { gap: 2px; }
  .foot ul a { display: inline-block; padding: 9px 0; }
  .crumb { display: inline-block; padding: 8px 0; }
  .chip { min-height: 40px; display: inline-flex; align-items: center; }
  .box-mbar:not([hidden]) { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 38; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
  .box-mbar .mbar-info { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 13px; }
  .box-mbar .meter { margin: 0; }
  .box-mbar .btn { flex: none; padding-inline: 16px; }
  body:has(.box-mbar:not([hidden])) footer.foot { padding-bottom: 110px; }
  body:has(.box-mbar:not([hidden])) .wa-float { bottom: 88px; }
}
