/* Retail navigation and the shopping panels shared by the storefront pages. */
:root {
  --atelier-cream: #fcf9f2;
  --atelier-espresso: #372e24;
  --atelier-rule: #dcd3c1;
  --atelier-olive: #4e5640;
}
.mast.shop-mast {
  background: #fffdf7;
  color: var(--atelier-espresso);
  padding: 13px clamp(22px, 5vw, 96px);
  min-height: 76px;
  border-bottom: 1px solid var(--atelier-rule);
}
.shop-mast .brand img { width: clamp(88px, 7.1vw, 118px); height: auto; }
.shop-mast #shop-nav { gap: 4px clamp(16px, 2.2vw, 38px); }
.shop-mast #shop-nav a {
  display: inline-flex; align-items: center; min-height: 36px;
  position: relative; font-size: 12px; font-weight: 550; white-space: nowrap;
}
.shop-mast #shop-nav a::after {
  content: ""; position: absolute; height: 1px; bottom: 3px; left: 0; right: 0;
  background: #86673f; transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.shop-mast #shop-nav a:is(:hover, :focus-visible, [aria-current="page"]) { text-decoration: none; }
.shop-mast #shop-nav a:is(:hover, :focus-visible, [aria-current="page"])::after { transform: scaleX(1); }
.shop-mast .shop-tools { gap: clamp(9px, 1.1vw, 20px); }
.shop-tools :is(.account-link, .bag, .nav-search) { min-height: 40px; }
.shop-tools .nav-search { min-width: 30px; }
.shop-tools .bag { gap: 6px; }
.shop-tools .bag b { background: #ede4d4; font-size: 10px; min-width: 19px; height: 19px; line-height: 19px; }
.foot {
  --footer-ink: #362f24;
  color: var(--footer-ink);
  background: #efe8d9;
  padding: clamp(40px, 5.2vw, 82px) clamp(22px, 5vw, 96px);
  gap: clamp(18px, 3vw, 50px);
  border: 0;
  position: relative;
}
.foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  opacity: .63;
  background: url("assets/kavir-border.svg") left top / auto 7px repeat-x;
}
.foot .brand img { width: clamp(94px, 8vw, 124px); height: auto; }
.foot > div:not(.social-links) { max-width: 560px; gap: 9px 23px; }
.foot a, .foot button { font-weight: 550; }
.foot > div > :is(a,button) { line-height: 1.8; }
.foot small { color: #5d5449; white-space: nowrap; }
.foot .footer-contact h2 { margin-bottom: 4px; color: var(--footer-ink); }
.foot .social-links { gap: 5px; }
.foot .social-links a { color: var(--footer-ink); border: 1px solid #c9bda8; }
.foot .social-links a:is(:hover,:focus-visible) { background: #e3d7c4; color: #2d291e; }
.wa-contact { background: #4b5540; box-shadow: 0 3px 12px #211d1833; }
.wa-contact:hover { background: #353e2e; }

dialog#panel {
  border: 1px solid #cbbb9e; background: var(--atelier-cream);
  color: var(--atelier-espresso); border-radius: 4px;
  box-shadow: 0 20px 85px #241c1740;
}
dialog#panel::backdrop { background: rgb(40 32 23 / .63); }
dialog#panel .dialog-shell { padding: clamp(23px, 3.2vw, 49px); }
dialog#panel[data-mode="updates"] .dialog-shell { padding: 0; }
dialog#panel .close {
  height: 38px; width: 38px; z-index: 1;
  border-color: #d4c6b1; background: #fffbf2; color: #3b3026;
}
dialog#panel .close:is(:hover,:focus-visible) { background: #e6dece; }
dialog#panel h2 { letter-spacing: -.045em; text-wrap: balance; }
dialog#panel .kicker { color: #715a40; }
dialog#panel .btn { background: var(--atelier-espresso); border-color: var(--atelier-espresso); color: #fffbf4; }
dialog#panel .btn:hover { background: #55432e; }
dialog#panel :is(input:not([type="checkbox"],[type="radio"]), textarea, select) {
  border-color: #cbbda9; background: #fffdf8;
}
dialog#panel .basket-row { border-color: var(--atelier-rule); }
dialog#panel[data-mode="guide"] { max-width: min(720px,calc(100vw - 24px)); }
dialog#panel .choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-block: 24px; }
dialog#panel .choices .chip { min-height: 46px; background: #fffbf3; border: 1px solid #cbbda9; border-radius: 2px; }
dialog#panel .choices .chip:is(:hover,:focus-visible) { background: #e9e2d4; color: var(--atelier-espresso); }
dialog#panel .product-detail .photo { background: #eee6d9; width: 100%; object-fit: contain; }
dialog#panel .match img { width: 100%; }
/* The basket remains in view alongside the current collection on wide screens. */
dialog#panel[data-mode="basket"] {
  width: min(460px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border: 0;
  border-inline-start: 1px solid var(--atelier-rule);
  border-radius: 0;
}
dialog#panel[data-mode="basket"] .dialog-shell {
  min-height: 100%;
  padding: 24px clamp(18px, 2.8vw, 40px);
}
dialog#panel[data-mode="basket"] #inside { padding-block: 12px 24px; }
dialog#panel[data-mode="basket"] .basket-row {
  display: grid;
  grid-template-columns: 60px minmax(0,1fr) auto;
  gap: 6px 14px;
  padding-block: 18px;
}
dialog#panel[data-mode="basket"] .basket-row > img {
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 60px;
  height: 88px;
  max-height: 88px;
  object-fit: contain;
  background: #f4ede0;
  mix-blend-mode: multiply;
}
dialog#panel[data-mode="basket"] .basket-row > div:not(.qty) { grid-column: 2; grid-row: 1; }
dialog#panel[data-mode="basket"] .qty { grid-column: 2; grid-row: 2; gap: 9px; }
dialog#panel[data-mode="basket"] .basket-row > b { grid-column: 3; grid-row: 1; align-self: start; }
dialog#panel[data-mode="basket"] .qty button { width: 29px; height: 29px; }
dialog#panel[data-mode="basket"] [data-checkout] { display: flex; width: 100%; margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  dialog#panel[data-mode="basket"][open] { animation: basket-arrive 230ms ease-out; }
  @keyframes basket-arrive {
    from { transform: translateX(28px); opacity: .5; }
    to { transform: translateX(0); opacity: 1; }
  }
}
@media (max-width: 1050px) and (min-width:931px) {
  .mast.shop-mast { gap: 12px; padding-inline: 3vw; }
  .shop-mast #shop-nav { column-gap: 16px; }
}
@media (max-width: 930px) {
  .mast.shop-mast { row-gap: 0; padding-block: 9px 6px; }
  .shop-mast #shop-nav { column-gap: clamp(10px, 3vw, 27px); row-gap: 0; }
  .shop-mast #shop-nav a { font-size: 11px; min-height: 32px; }
}
@media (max-width: 560px) {
  .mast.shop-mast { padding-inline: 18px; }
  .shop-mast .brand img { width: 82px; }
  .shop-mast #shop-nav { justify-content: space-between; column-gap: 6px; }
  .shop-mast #shop-nav a { font-size: 10px; }
  .shop-tools .account-link { font-size: 11px; }
  .foot { gap: 20px; }
  dialog#panel .choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 355px) {
  .shop-mast #shop-nav { justify-content: flex-start; column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-mast #shop-nav a::after { transition: none; }
}
@media print {
  .mast.shop-mast, .wa-contact { display: none; }
}
