/* packaging.himoved.com, on top of the Himoved store's own stylesheet (theme.css). */
:root {
  --font-heading: Fraunces, Georgia, serif;
  --font-heading-weight: 380;
  --font-body: Figtree, system-ui, sans-serif;
  --font-body-weight: 400;
  --heading-scale: 1;
  --body-scale: 1;
  --c-primary: #0F5B3E;
  --c-primary-dark: #0A3F2B;
  --c-accent: #D4AF37;
  --c-accent-text: #8C6B12;
  --c-bg: #F7F2E8;
  --c-bg-alt: #EDE3D1;
  --c-surface: #FFFCF6;
  --c-text: #1D2A23;
  --c-sale: #A4442A;
  --radius: 6px;
  --btn-radius: 40px;
  --page-width: 1320px;
}

/* ---------- Header and footer (kept simple) ---------- */
.rp-top { border-bottom: 1px solid rgba(15,91,62,.1); background: var(--c-bg); }
.rp-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.rp-top__logo img { width: 140px; height: auto; }
.rp-top__contact { min-height: 44px; padding: .6rem 1.4rem; }
@media (max-width: 599px) { .rp-top__inner { min-height: 64px; } .rp-top__logo img { width: 116px; } .rp-top__contact { min-height: 40px; padding: .5rem 1.1rem; } }

.rp-foot { margin: var(--float-gap); border-radius: var(--float-radius); background: var(--c-primary-dark); color: rgba(247,242,232,.82); padding: clamp(2rem, 4vw, 3rem) 0 1.5rem; font-size: .9rem; }
.rp-foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(247,242,232,.14); }
.rp-foot__logo img { width: 140px; height: auto; }
.rp-foot__links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.rp-foot__links a { color: rgba(247,242,232,.82); transition: color .2s ease; }
.rp-foot__links a:hover { color: var(--c-accent); }
.rp-foot__bottom { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: .8rem 1.5rem; padding-top: 1.2rem; font-size: .78rem; color: rgba(247,242,232,.5); }
.rp-foot__copy { justify-self: start; }
.rp-foot__tm { justify-self: end; text-align: right; }
.rp-foot .footer__credit { font-size: .82rem; }
@media (max-width: 749px) {
  .rp-foot__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rp-foot__copy, .rp-foot__tm { justify-self: center; text-align: center; }
  .rp-foot .footer__credit { order: 3; }
}
.rp-foot__bottom p { margin: 0; }
@media (max-width: 599px) { .rp-foot__links { display: grid; grid-template-columns: 1fr 1fr; } }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* ---------- Product list ---------- */
.pk-home { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.pk-home__intro { max-width: 680px; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.pk-home h1 { margin-bottom: .6rem; }
.pk-home .lead { margin: 0; }
.pk-scripts { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 1.1rem 0 0; font-size: 1.02rem; color: var(--c-accent-text); }
.pk-scripts span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 .9rem 0 0; border-radius: 50%; background: rgba(140,107,18,.45); vertical-align: middle; }
.pk-note { margin: 0 0 1.4rem; padding: .9rem 1.2rem; border-radius: 14px; background: #FBEFD5; color: #6B4E0B; }
.pk-note a { text-decoration: underline; }

.pk-search { position: relative; max-width: 460px; margin-bottom: 1.4rem; }
.pk-search svg { position: absolute; left: 1.1rem; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--c-primary); pointer-events: none; }
.pk-search input {
  width: 100%; height: 56px; padding: 0 1.2rem 0 3.1rem; border: 1px solid rgba(15,91,62,.22); border-radius: 999px;
  background: var(--c-surface); font: inherit; font-size: 1.05rem; color: var(--c-text); outline: none;
}
.pk-search input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(15,91,62,.08); }

.pk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(.8rem, 2vw, 1.3rem); }
.pk-card { display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; background: var(--c-surface); border: 1px solid rgba(15,91,62,.1); transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease; }
.pk-card:hover { border-color: rgba(15,91,62,.3); box-shadow: 0 24px 40px -32px rgba(10,63,43,.55); transform: translateY(-2px); }
.pk-card__art { aspect-ratio: 16 / 10; background: #fff center / contain no-repeat; border-bottom: 1px solid rgba(15,91,62,.08); -webkit-touch-callout: none; }
.pk-card__body { display: grid; gap: .35rem; padding: 1rem 1.15rem 1.15rem; }
.pk-card__name { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.25; color: var(--c-primary-dark); }
.pk-card__meta { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-text); }
.pk-card__meta svg { width: 14px; height: 14px; transition: transform .2s ease; }
.pk-card:hover .pk-card__meta svg { transform: translateX(3px); }
.pk-none { margin: 1rem 0 0; opacity: .7; }
@media (max-width: 599px) {
  .pk-grid { grid-template-columns: 1fr; }
  .pk-card { flex-direction: row; align-items: stretch; }
  .pk-card__art { flex: 0 0 42%; aspect-ratio: auto; min-height: 92px; border-bottom: 0; border-right: 1px solid rgba(15,91,62,.08); }
  .pk-card__body { align-content: center; padding: .9rem 1rem; }
  .pk-card__name { font-size: 1.05rem; }
}

/* ---------- One product ---------- */
.pk-product { padding: clamp(1.4rem, 3.5vw, 2.6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.pk-back { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 600; color: var(--c-primary); }
.pk-back svg { width: 16px; height: 16px; }
.pk-back:hover { text-decoration: underline; }
.pk-product__head { margin: clamp(1rem, 2.5vw, 1.8rem) 0 1.2rem; }
.pk-product h1 { margin: 0; font-size: calc(clamp(2rem, 1.5rem + 2.2vw, 3.3rem) * var(--heading-scale)); }

.pk-langs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.pk-lang {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 52px; padding: .45rem 1.1rem;
  border: 1px solid rgba(15,91,62,.22); border-radius: 16px; background: var(--c-surface); color: var(--c-primary-dark); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pk-lang:hover { border-color: var(--c-primary); }
.pk-lang__native { font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
.pk-lang__en { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.pk-lang[aria-selected="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pk-lang[aria-selected="true"] .pk-lang__en { opacity: .75; }
.pk-lang:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 599px) {
  .pk-langs { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(clamp(1.1rem, 4vw, 3rem) * -1); padding-right: clamp(1.1rem, 4vw, 3rem); scrollbar-width: none; }
  .pk-langs::-webkit-scrollbar { display: none; }
  .pk-lang { flex: none; }
}

.pk-sheet { margin: 0; }
.pk-sheet__open {
  position: relative; display: block; width: 100%; padding: clamp(.5rem, 1.4vw, 1rem); border: 0; border-radius: 22px; cursor: zoom-in;
  background: #fff; box-shadow: 0 2px 0 rgba(255,255,255,.6), 0 40px 70px -46px rgba(10,63,43,.6), inset 0 0 0 1px rgba(15,91,62,.08);
  -webkit-touch-callout: none; user-select: none;
}
.pk-sheet__canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; background: #F6F2EA; }
.pk-sheet__status { position: absolute; inset: 0; display: grid; place-content: center; padding: 1.5rem; text-align: center; font-size: .95rem; color: rgba(29,42,35,.6); }
.pk-sheet__status[hidden] { display: none; }
.pk-sheet__open.is-loading .pk-sheet__status::after { content: ""; display: block; width: 40px; height: 2px; margin: 1rem auto 0; background: var(--c-accent); animation: pkLoad 1.2s ease-in-out infinite alternate; }
@keyframes pkLoad { from { transform: scaleX(.3); } to { transform: scaleX(1.4); } }
.pk-sheet__zoom {
  position: absolute; right: clamp(1rem, 2.4vw, 1.6rem); bottom: clamp(1rem, 2.4vw, 1.6rem); display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .95rem .5rem .7rem; border-radius: 999px; background: rgba(10,63,43,.88); color: #fff; font-size: .85rem; font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); pointer-events: none; transition: background-color .2s ease;
}
.pk-sheet__zoom svg { width: 18px; height: 18px; }
.pk-sheet__open:hover .pk-sheet__zoom { background: var(--c-primary-dark); }
.pk-sheet__open.is-loading .pk-sheet__zoom { display: none; }
.pk-hint { margin: .9rem 0 0; font-size: .92rem; opacity: .7; }

/* ---------- Full-screen viewer ---------- */
.pk-locked, .pk-locked body { overflow: hidden; }
.pk-zoom { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #10261c; color: #fff; overflow: hidden; }
.pk-zoom::backdrop { background: #10261c; }
.pk-zoom__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; -webkit-touch-callout: none; user-select: none; }
.pk-zoom__canvas.is-grabbing { cursor: grabbing; }
.pk-zoom__bar { position: absolute; z-index: 1; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: max(.8rem, env(safe-area-inset-top)) .8rem .8rem; background: linear-gradient(rgba(16,38,28,.85), rgba(16,38,28,0)); pointer-events: none; }
.pk-zoom__bar > * { pointer-events: auto; }
.pk-zoom__langs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.pk-zoom__langs::-webkit-scrollbar { display: none; }
.pk-zoom__lang { flex: none; min-height: 40px; padding: .35rem .95rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(16,38,28,.6); color: #fff; font-size: .95rem; font-weight: 600; }
.pk-zoom__lang[aria-pressed="true"] { background: #F7F2E8; border-color: #F7F2E8; color: var(--c-primary-dark); }
.pk-zoom__btn { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(16,38,28,.75); color: #fff; }
.pk-zoom__btn svg { width: 22px; height: 22px; }
.pk-zoom__btn:hover { background: rgba(16,38,28,.95); border-color: rgba(255,255,255,.5); }
.pk-zoom__btn:disabled { opacity: .4; }
.pk-zoom__tools { position: absolute; z-index: 1; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; gap: .5rem; padding: .35rem; border-radius: 999px; background: rgba(16,38,28,.6); transform: translateX(-50%); }
.pk-zoom__tools .pk-zoom__btn { border-color: transparent; }
.pk-zoom__tip { display: none; position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.2rem); margin: 0; text-align: center; font-size: .9rem; color: rgba(255,255,255,.8); transition: opacity .3s ease; pointer-events: none; }
@media (orientation: portrait) and (max-width: 700px) { .pk-zoom__tip { display: block; } }
.pk-zoom.is-used .pk-zoom__tip { opacity: 0; }

/* ---------- Header search ---------- */
.rp-top__inner { gap: clamp(.8rem, 2.5vw, 2rem); }
.pk-find { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; height: 48px; padding: 0 4px 0 1rem; border: 1px solid rgba(15,91,62,.22); border-radius: 999px; background: var(--c-surface); }
.pk-find:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(15,91,62,.08); }
.pk-find > svg { flex: none; width: 20px; height: 20px; color: var(--c-primary); }
.pk-find input { flex: 1; min-width: 0; height: 100%; padding: 0 .7rem; border: 0; background: none; outline: none; font: inherit; font-size: 1rem; color: var(--c-text); }
.pk-find input::-webkit-search-cancel-button { display: none; }
.pk-find__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--c-primary); color: #fff; }
.pk-find__go svg { width: 16px; height: 16px; }
.pk-find__list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: .35rem; list-style: none; max-height: min(60vh, 420px); overflow-y: auto; border-radius: 18px; background: var(--c-surface); border: 1px solid rgba(15,91,62,.14); box-shadow: 0 24px 48px -24px rgba(10,63,43,.45); }
.pk-find__list li[role=option] { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border-radius: 12px; cursor: pointer; }
.pk-find__list li[aria-selected="true"], .pk-find__list li[role=option]:hover { background: rgba(15,91,62,.08); }
.pk-find__list span { font-weight: 600; color: var(--c-primary-dark); }
.pk-find__list small { flex: none; font-size: .75rem; color: var(--c-accent-text); }
.pk-find__empty { padding: .7rem .9rem; opacity: .7; }
@media (max-width: 749px) {
  .rp-top__inner { flex-wrap: wrap; padding-top: .6rem; padding-bottom: .7rem; row-gap: .6rem; }
  .pk-find { order: 3; flex-basis: 100%; max-width: none; height: 46px; }
}

/* ---------- Product dropdown ---------- */
.pk-pick { max-width: 620px; margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.pk-pick label { display: block; margin-bottom: .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent-text); }
.pk-pick__row { display: flex; gap: .6rem; }
.pk-pick__select { position: relative; flex: 1; min-width: 0; }
.pk-pick select { width: 100%; height: 56px; padding: 0 3rem 0 1.2rem; border: 1px solid rgba(15,91,62,.22); border-radius: 999px; background: var(--c-surface); font: inherit; font-size: 1.02rem; color: var(--c-primary-dark); appearance: none; -webkit-appearance: none; cursor: pointer; }
.pk-pick select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(15,91,62,.08); }
.pk-pick__select svg { position: absolute; right: 1.2rem; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--c-primary); pointer-events: none; }
.pk-pick .btn { min-height: 56px; padding: .8rem 1.6rem; }
.pk-pick .btn svg { width: 16px; height: 16px; }
.pk-list-head p { margin: 0 0 1rem; font-size: .95rem; opacity: .75; }
.pk-list-head a { text-decoration: underline; }
@media (max-width: 599px) { .pk-pick .btn { padding: .8rem 1.2rem; } }
