/* =====================================================================
   DIYARA — MAIN STYLESHEET
   Part 1: original Diyara design (colours, type, layout, cards).
   Part 2 (bottom of file): additions for the gallery, mobile menu,
   forms and accessibility. Colours are defined once in :root.
   ===================================================================== */

:root {
  --w: #4a2f1f;
  --b: #e9dcc8;
  --iv: #faf6ef;
  --g: #a8853f;
  --t: #2b2724;
  --c: #fffdf9
}

* {
  box-sizing: border-box;
  margin: 0
}

html {
  scroll-behavior: smooth
}

body {
  font: 15px/1.6 Inter, sans-serif;
  color: var(--t);
  background: var(--iv);
  overflow-x: hidden;
  animation: pg .5s
}

@keyframes pg {
  0% {
    opacity: 0
  }
}

h1,
h2,
h3,
h4,
.serif {
  font-family: Cormorant Garamond, serif;
  font-weight: 500
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit
}

:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 2px
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--iv);
  border-bottom: 1px solid #e3d8c6
}

.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4vw;
  transition: .3s
}

header.s .hd {
  padding: 10px 4vw
}

.logo {
  font: 600 26px Cormorant Garamond;
  letter-spacing: .14em;
  color: var(--w)
}

.logo i {
  color: var(--g);
  font-style: normal
}

nav.d {
  display: flex;
  gap: 26px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase
}

nav.d a {
  padding: 8px 0;
  border-bottom: 1px solid transparent
}

nav.d a:hover {
  border-color: var(--g)
}

.ic {
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .1em;
  align-items: center
}

.ic b {
  background: var(--g);
  color: #fff;
  border-radius: 9px;
  padding: 0 6px;
  font-size: 11px
}

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--c);
  border-bottom: 1px solid #e3d8c6;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  padding: 30px 5vw;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .3s
}

header:has(.hasm:hover) .mega,
.mega:hover,
.mega:focus-within {
  opacity: 1;
  visibility: visible;
  transform: none
}

.mega h4 {
  font-size: 18px;
  color: var(--w);
  margin-bottom: 6px
}

.mega a {
  display: block;
  padding: 2px 0;
  color: #6b6259;
  font-size: 14px
}

.mega a:hover {
  color: var(--g)
}

.burger {
  display: none;
  font-size: 22px
}

.hero {
  height: 86vh;
  min-height: 520px;
  background: #5a3b27 center/cover;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 6vw
}

.hero h1 {
  font-size: clamp(42px, 8vw, 96px);
  line-height: 1;
  letter-spacing: .03em;
  animation: up 1.2s both
}

.hero p {
  max-width: 480px;
  margin: 20px 0 32px;
  animation: up 1.2s .2s both
}

.hero .bt {
  animation: up 1.2s .4s both
}

@keyframes up {
  0% {
    opacity: 0;
    transform: translateY(30px)
  }
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--w);
  color: #fff;
  transition: .25s;
  margin: 0 10px 10px 0
}

.btn:hover {
  background: var(--g)
}

.btn.o {
  background: none;
  border: 1px solid currentColor
}

.btn.o:hover {
  background: #fff;
  color: var(--w)
}

.btn.dk {
  color: var(--w)
}

.btn.dk:hover {
  background: var(--w);
  color: #fff
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 6vw;
  background: var(--b);
  text-align: center;
  font-size: 13px
}

.trust b {
  display: block;
  font: 600 18px Cormorant Garamond;
  letter-spacing: .1em;
  color: var(--w)
}

section {
  padding: 80px 6vw
}

h2.t {
  font-size: clamp(32px, 4.5vw, 52px);
  text-align: center;
  color: var(--w)
}

.sub {
  text-align: center;
  color: #7a7066;
  margin: 8px 0 40px
}

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.cat {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #5a3b27;
  display: block
}

.cat.sq {
  aspect-ratio: 1
}

.cat .im {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: transform .8s
}

.cat:hover .im {
  transform: scale(1.07)
}

.cat:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(transparent 50%, #140a05b3)
}

.cat div {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  color: #fff
}

.cat h3 {
  font-size: 32px
}

.cat span {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase
}

.cat span i {
  display: inline-block;
  transition: .3s;
  font-style: normal
}

.cat:hover span i {
  transform: translate(6px)
}

.im {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px
}

.card .pic {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--b)
}

.card .im {
  transition: transform .7s
}

.card:hover .im {
  transform: scale(1.05)
}

.im2 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity .5s
}

.card h3 {
  font-size: 21px;
  margin-top: 12px
}

.pr s {
  color: #998;
  margin: 0 6px
}

.pr em {
  color: #8a3d2b;
  font-style: normal;
  font-size: 12px
}

.bd {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--w);
  color: #fff;
  font-size: 10px;
  letter-spacing: .14em;
  padding: 3px 9px;
  z-index: 2
}

.wl {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  background: #fffc;
  border-radius: 50%;
  transition: .2s
}

.wl.on {
  color: #a12;
  animation: pop .4s
}

@keyframes pop {
  50% {
    transform: scale(1.35)
  }
}

.qa {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  transform: translateY(100%);
  transition: .3s;
  z-index: 3
}

.card:hover .qa,
.card:focus-within .qa {
  transform: none
}

.qa button {
  flex: 1;
  padding: 12px;
  background: #fffffff2;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase
}

.qa button:hover {
  background: var(--w);
  color: #fff
}

.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  background: var(--w);
  color: #f3e9d8
}

.feat>div {
  padding: 9vw 6vw
}

.feat h2 {
  font-size: clamp(34px, 5vw, 60px)
}

.feat p {
  margin: 18px 0 28px;
  max-width: 440px
}

.made {
  background: var(--b);
  text-align: center
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center
}

.rev {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px
}

.rev div {
  flex: 0 0 min(340px, 80%);
  scroll-snap-align: start;
  background: var(--c);
  padding: 28px;
  border: 1px solid #eadfcb
}

.rev small {
  color: var(--g);
  letter-spacing: .14em
}

footer {
  background: #221812;
  color: #cbbfae;
  padding: 64px 6vw 24px
}

.f {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px
}

footer h5 {
  color: #fff;
  font-size: 12px;
  letter-spacing: .16em;
  margin-bottom: 10px;
  text-transform: uppercase
}

footer a {
  display: block;
  padding: 2px 0;
  font-size: 14px
}

footer a:hover {
  color: var(--g)
}

.nl {
  display: flex;
  max-width: 460px;
  margin: 0 auto
}

.nl input {
  flex: 1
}

input,
select,
textarea {
  font: inherit;
  padding: 12px;
  border: 1px solid #d5c8b3;
  background: #fff;
  width: 100%;
  margin-bottom: 10px
}

input[type=radio],
input[type=checkbox] {
  width: auto;
  margin: 0 6px 0 0
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px
}

.shop {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  padding: 30px 6vw 80px
}

.bc {
  padding: 20px 6vw 0;
  font-size: 12px;
  color: #8a8074
}

.pd {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5vw;
  padding: 30px 6vw
}

.big {
  aspect-ratio: 1/1;
  background: var(--b)
}

.big .im {
  animation: pg .4s
}

.th {
  display: flex;
  gap: 8px;
  margin-top: 8px
}

.th button {
  width: 70px;
  height: 70px;
  opacity: .6
}

.th button.a {
  opacity: 1;
  outline: 2px solid var(--g)
}

details {
  border-top: 1px solid #e0d4c0;
  padding: 14px 0
}

summary {
  cursor: pointer;
  letter-spacing: .1em;
  font-size: 12px;
  text-transform: uppercase
}

.ov {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #0007;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: .3s
}

.ov.o {
  opacity: 1;
  visibility: visible
}

.dr {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--iv);
  z-index: 100;
  transform: translate(100%);
  transition: .4s;
  padding: 24px;
  overflow: auto;
  visibility: hidden
}

.dr.o {
  transform: none;
  visibility: visible
}

.dr.l {
  right: auto;
  left: 0;
  transform: translate(-100%)
}

.dr.l.o {
  transform: none
}

.row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e6dbc8;
  font-size: 14px
}

.row .im {
  width: 70px;
  height: 70px;
  flex: none
}

.q button {
  width: 26px;
  border: 1px solid #cbb
}

.tab {
  width: 100%;
  border-collapse: collapse
}

.tab td {
  padding: 6px 0
}

.pg {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 6vw
}

.pg h1 {
  font-size: 48px;
  color: var(--w);
  margin-bottom: 20px
}

.pg h3 {
  margin: 24px 0 6px;
  font-size: 26px
}

.pg p {
  margin-bottom: 10px
}

.two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 40px 6vw
}

.step {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0
}

.step span {
  padding: 8px 14px;
  border: 1px solid #d5c8b3;
  font-size: 12px
}

.step .d {
  background: var(--w);
  color: #fff
}

.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: 1s
}

.fade.v {
  opacity: 1;
  transform: none
}

.demo {
  background: #f6ecd0;
  font-size: 12px;
  text-align: center;
  padding: 6px 10px
}

@media (max-width:900px) {

  nav.d,
  .mega {
    display: none
  }

  .burger {
    display: block
  }

  .cats {
    grid-template-columns: 1fr 1fr
  }

  .grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .feat,
  .story,
  .pd,
  .two,
  .shop {
    grid-template-columns: 1fr
  }

  .f,
  .trust {
    grid-template-columns: 1fr 1fr
  }

  .ic span {
    display: none
  }
}

@media (max-width:560px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 10px
  }

  .cats {
    grid-template-columns: 1fr
  }

  section {
    padding: 56px 5vw
  }

  .card h3 {
    font-size: 17px
  }

  .qa {
    transform: none;
    position: static
  }

  .hd {
    padding: 14px 4vw
  }

  .logo {
    font-size: 19px
  }

  .ic {
    gap: 10px
  }

  .pg h1 {
    font-size: 36px
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}

@media (max-width:560px) {
  .hd {
    gap: 6px
  }

  .ic {
    font-size: 11px;
    gap: 8px;
    letter-spacing: 0
  }

  .ic a[href*=login],
  .ic a[href*=account] {
    display: none
  }

  .logo {
    font-size: 17px;
    letter-spacing: .06em
  }
}

main {
  animation: pg .5s
}

.sr {
  position: absolute;
  left: -9999px
}

img.pi,
.fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.fill {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0
}

img.pi {
  transition: transform .7s
}

.card:hover img.pi {
  transform: scale(1.05)
}

.card {
  animation: up .6s both
}

.card .pic .im2 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity .5s
}

.card:hover .im2 {
  opacity: 1
}

.card .pic a {
  display: block;
  height: 100%
}

.hero {
  position: relative;
  overflow: hidden
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #1e120a80;
  z-index: 1
}

.hero>div {
  position: relative;
  z-index: 2
}

.hero>.im {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0
}

.pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 40px
}

.pager button {
  padding: 8px 14px;
  border: 1px solid #d5c8b3
}

.pager button.a {
  background: var(--w);
  color: #fff
}

.row img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  flex: none
}

.th button img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pg .4s
}

.cat {
  animation: up .8s both
}

.cat span {
  text-transform: uppercase
}

/* Diyara logo (image) */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0
}

.logo img {
  display: block;
  width: auto;
  height: 64px;
  aspect-ratio: 1/1;
  max-width: 100%;
  object-fit: contain
}

header .hd {
  padding-top: 10px;
  padding-bottom: 10px
}

header.s .hd {
  padding-top: 8px;
  padding-bottom: 8px
}

header.s .logo img {
  height: 52px
}

footer .logo img {
  height: 112px
}

.dr .logo img {
  height: 84px
}

@media (max-width:900px) {
  .logo img {
    height: 56px
  }

  header.s .logo img {
    height: 46px
  }

  footer .logo img {
    height: 96px
  }
}

@media (max-width:560px) {
  .logo img {
    height: 48px
  }

  header .hd {
    padding-top: 8px;
    padding-bottom: 8px
  }

  header.s .hd {
    padding-top: 6px;
    padding-bottom: 6px
  }

  header.s .logo img {
    height: 42px
  }

  footer .logo img {
    height: 88px
  }

  .dr .logo img {
    height: 72px
  }
}

/* hero photo */
.hero>.im .fill {
  object-fit: cover;
  object-position: center
}

.hero:before {
  background: linear-gradient(90deg, rgba(30, 18, 10, .78) 0%, rgba(30, 18, 10, .55) 40%, rgba(30, 18, 10, .12) 100%)
}

@media (max-width:900px) {
  .hero:before {
    background: rgba(30, 18, 10, .58)
  }
}

/* =====================================================================
   PART 2 — ADDITIONS (same palette, same look)
   ===================================================================== */

html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--w); color: #fff; padding: 10px 16px; font-size: 13px; }
.skip:focus { top: 8px; }

/* announcement bar (was the .demo bar) */
.announce { background: #f6ecd0; font-size: 12px; letter-spacing: .06em; text-align: center; padding: 7px 10px; color: var(--w); }

/* header controls are real buttons / links with comfortable touch targets */
.ic a, .ic button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 2px; }
.burger { min-width: 44px; min-height: 44px; margin-left: -10px; }
.hd { gap: 10px; }

/* grids must never overflow their column */
@media (min-width: 901px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .shop { grid-template-columns: 230px minmax(0, 1fr); }
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cats { grid-template-columns: 1fr 1fr; } .pd, .shop { grid-template-columns: minmax(0, 1fr); } }
.shop > div, .pd > div, .two > div, .story > div, .feat > div { min-width: 0; }
.card h3 a:hover { color: var(--g); }
.card .pic a { position: relative; }
.card .pic img.pi { position: absolute; top: 0; left: 0; }
.card .pic img.pi:first-of-type { position: absolute; }
.card small { color: #7a7066; }
.card.out .pic:after { content: "Currently unavailable"; position: absolute; left: 0; right: 0; bottom: 0; background: #fffffff2; text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 8px; z-index: 2; pointer-events: none; }
.qa button:disabled { opacity: .45; cursor: not-allowed; }
@media (hover: none) { .qa { transform: none; position: static; } .card .pic { overflow: visible; } .card .pic a { aspect-ratio: 1/1; overflow: hidden; } }

/* --- hero / banners ------------------------------------------------- */
.hero > .im .fill, .cat .fill, .feat .fill { position: absolute; inset: 0; }
.page-hero { height: 50vh; min-height: 320px; padding: 0 6vw; }
.page-hero h1 { font-size: clamp(40px, 7vw, 80px); }
.intro { padding: 20px 6vw 0; }
.intro h1 { font-size: clamp(36px, 6vw, 52px); color: var(--w); line-height: 1.1; }
.intro p { color: #6b6259; margin-top: 6px; max-width: 640px; }
.feat h2, .story h2 { line-height: 1.05; }
.rev p.serif { line-height: 1.3; }
.rev span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .1em; color: #7a7066; text-transform: uppercase; }

/* --- breadcrumb ------------------------------------------------------ */
.bc a:hover { color: var(--g); text-decoration: underline; }

/* --- product page ---------------------------------------------------- */
.pd { align-items: start; }
.pd h1 { font-size: clamp(34px, 4.5vw, 46px); color: var(--w); line-height: 1.1; }
.pd .meta { color: #7a7066; font-size: 13px; margin: 6px 0; }
.pd .price { font-size: 24px; margin: 8px 0; }
.pd .price s { color: #998; font-size: 16px; margin-left: 6px; }
.pd .price em { color: #8a3d2b; font-style: normal; font-size: 13px; margin-left: 6px; }
.pd .stock { color: #3d6b3a; }
.pd .stock.no { color: #a12; }
.pd .lead { margin: 14px 0; }
.pd label { margin-top: 10px; }
.pd select, .pd input[type=number] { margin-bottom: 6px; }
.pd .actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 0; }
.pd .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.dk { border: 1px solid currentColor; }
.btn[disabled]:hover { background: var(--w); }
.btn.o.dk[disabled]:hover { background: none; color: var(--w); }
.pd details p { margin-top: 8px; color: #5d544c; }

/* gallery (carousel) */
.gal { position: relative; min-width: 0; }
.gal-main { position: relative; background: var(--b); overflow: hidden; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gal-slide { flex: 0 0 100%; aspect-ratio: 1/1; scroll-snap-align: center; scroll-snap-stop: always; position: relative; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: #fffffff0; color: var(--w); font-size: 20px; line-height: 1; z-index: 3; display: flex; align-items: center; justify-content: center; transition: .2s; box-shadow: 0 1px 6px #0002; }
.gal-btn:hover { background: var(--w); color: #fff; }
.gal-btn.prev { left: 10px; }
.gal-btn.next { right: 10px; }
.gal-count { position: absolute; right: 10px; bottom: 10px; z-index: 3; background: #fffffff0; font-size: 11px; letter-spacing: .1em; padding: 3px 9px; }
.gal-dots { display: none; justify-content: center; gap: 4px; margin-top: 4px; }
.gal-dots button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.gal-dots button:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #cdbfa8; transition: .2s; }
.gal-dots button[aria-current=true]:after { background: var(--w); transform: scale(1.3); }
.th { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.th button { width: auto; height: auto; aspect-ratio: 1/1; opacity: .6; transition: opacity .2s; background: var(--b); }
.th button:hover { opacity: .9; }
.th button.a { opacity: 1; outline: 2px solid var(--g); outline-offset: -2px; }
@media (max-width: 700px) {
  .th { display: none; }
  .gal-dots { display: flex; }
  .gal-btn { width: 40px; height: 40px; }
}

/* --- listing / filters ------------------------------------------------ */
.shop aside h2 { margin-bottom: 8px; }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 50px 0; color: #6b6259; }
.empty a, .pg a.u, .u { text-decoration: underline; }
@media (max-width: 900px) {
  .shop { gap: 18px; }
  .shop aside .fgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .filters-toggle { display: inline-flex; margin-bottom: 8px; }
  .shop aside.closed .fgrid { display: none; }
}

/* --- drawers (cart / search / menu / quick view) ----------------------- */
.dr h2 { font-size: 28px; color: var(--w); }
.dr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dr-close { font-size: 26px; width: 44px; height: 44px; margin-right: -10px; }
.row { align-items: flex-start; }
.row > div { min-width: 0; flex: 1; }
.row .nm { font-weight: 500; display: block; }
.row small { color: #7a7066; display: block; }
.row .q { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.row .q button { width: 30px; height: 30px; }
.row .rm { font-size: 12px; text-decoration: underline; color: #7a7066; margin-left: auto; }
.tab td:last-child { text-align: right; }
.tab tr.total td { border-top: 1px solid #d5c8b3; padding-top: 10px; font-weight: 500; }
.dr .btn { width: 100%; text-align: center; margin: 8px 0 0; }
.menu-links a { display: block; padding: 13px 0; border-bottom: 1px solid #e6dbc8; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.menu-links a.sub { padding-left: 16px; text-transform: none; letter-spacing: 0; font-size: 15px; color: #6b6259; }
.dr[aria-hidden=true] { visibility: hidden; }
.sresults .row a:hover { color: var(--g); }
.qv-img { aspect-ratio: 1/1; background: var(--b); margin-bottom: 12px; }
.qv-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- forms & messages -------------------------------------------------- */
.pg { max-width: 820px; }
.pg.wide { max-width: 980px; }
.pg h1 { line-height: 1.1; }
.pg form label { margin-top: 6px; }
.pg ul { margin: 0 0 10px 20px; }
.msg { margin: 12px 0; padding: 12px 14px; background: var(--b); border-left: 3px solid var(--g); }
.msg.err { border-left-color: #a12; background: #f7e8e4; }
.note { font-size: 13px; color: #7a7066; }
.err-text { color: #a12; font-size: 13px; min-height: 18px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--g); outline-offset: 0; border-color: var(--g); }
button.btn:focus-visible, a.btn:focus-visible { outline-offset: 3px; }
.two form h1 { font-size: 40px; color: var(--w); }
.hp { position: absolute; left: -9999px; }
.nl button { flex: none; }
.pager button { min-width: 40px; min-height: 40px; }
.step span { margin: 0; }
.faq details summary { padding: 2px 0; }
.faq details p { margin-top: 8px; }
.pg table.tab td { padding: 8px 0; }
.pg .row { border-bottom: 1px solid #e6dbc8; }

/* --- reveal animation: visible when JS is off -------------------------- */
.no-js .fade { opacity: 1; transform: none; }

/* --- small screens ----------------------------------------------------- */
@media (max-width: 900px) {
  .hero { height: 78vh; min-height: 460px; }
  .feat > div { padding: 12vw 6vw; }
  .feat .imgcol { min-height: 300px !important; order: -1; }
  .story { gap: 28px; }
  .two { padding: 30px 5vw; gap: 28px; }
  section { padding: 64px 5vw; }
  .pd { padding: 20px 5vw; gap: 28px; }
  .bc { padding: 16px 5vw 0; }
  .intro { padding: 16px 5vw 0; }
  .shop { padding: 24px 5vw 64px; }
  .trust { padding: 28px 5vw; }
}
@media (max-width: 560px) {
  .announce { font-size: 11px; padding: 6px 8px; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .hero .btn { padding: 13px 20px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 16px 10px; font-size: 12px; }
  .trust b { font-size: 15px; }
  .cat { aspect-ratio: 4/3; }
  .cat.sq { aspect-ratio: 4/3; }
  .cat h3 { font-size: 26px; }
  .cats { gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .f { grid-template-columns: 1fr 1fr; }
  .f > div:first-child { grid-column: 1 / -1; }
  .nl { flex-direction: column; gap: 8px; }
  .nl .btn { width: 100%; text-align: center; margin: 0; }
  .nl input { margin-bottom: 0; }
  .pd h1 { font-size: 34px; }
  .pd .actions .btn { flex: 1 1 100%; text-align: center; margin-right: 0; }
  .dr { padding: 18px; }
  .card h3 { font-size: 16px; line-height: 1.25; }
  .card .pr, .card small { font-size: 13px; }
  .qa button { padding: 10px 4px; font-size: 10px; letter-spacing: .08em; }
  .ic a[href*="wishlist"] { padding: 0; }
  .page-hero { min-height: 260px; }
  .feat h2 { font-size: 34px; }
}
@media (max-width: 360px) {
  .ic { gap: 6px; font-size: 10px; }
  .logo img { height: 42px; }
  .grid { gap: 18px 8px; }
  .trust { grid-template-columns: 1fr; }
  .f { grid-template-columns: 1fr; }
}

/* --- keep card titles readable over light photography ------------------ */
.cat .im::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 26, 16, .78) 0%, rgba(43, 26, 16, .35) 38%, rgba(43, 26, 16, 0) 62%); pointer-events: none; }

/* =====================================================================
   PART 3 — PRODUCT PAGE & CHECKOUT POLISH (same palette)
   ===================================================================== */

/* product title block */
.pd .kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--g); margin-bottom: 6px; }
.pd .tagline { font-family: Cormorant Garamond, serif; font-size: 22px; color: #6b5444; margin: 4px 0 6px; line-height: 1.25; }
.pd .price { font-size: 28px; margin: 10px 0 2px; }
.pd .lead { line-height: 1.7; }
.hl { list-style: none; margin: 12px 0 4px; padding: 0; }
.hl li { position: relative; padding: 5px 0 5px 22px; color: #3d332c; }
.hl li:before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--g); border-bottom: 2px solid var(--g); transform: rotate(-45deg); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 8px; }
.opts select, .opts input { width: 100%; }
@media (max-width: 480px) { .opts { grid-template-columns: 1fr; } }
.assure { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #e0d3bd; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #6b5444; }
.assure li:before { content: "✓ "; color: var(--g); }

/* specification table */
.specs { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid #e6dbc8; vertical-align: top; }
.specs th { width: 42%; font-weight: 500; color: #6b5444; padding-right: 12px; }

/* thumbnails: any number of images, scroll sideways when there are many */
.th { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.th button { flex: 0 0 calc((100% - 32px) / 5); max-width: 130px; min-width: 76px; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-slide img { background: var(--b); }
@media (max-width: 700px) { .gal-dots { flex-wrap: wrap; } .gal-dots button { width: 22px; } }

/* checkout */
.coupon { display: flex; gap: 8px; margin-top: 14px; align-items: stretch; }
.coupon input { margin: 0; flex: 1; min-width: 0; }
.coupon .btn { margin: 0; padding: 0 18px; }
.ok-text { color: #3d6b3a; }
.eta { margin-top: 10px; padding: 10px 12px; background: var(--b); font-size: 14px; }
.step { flex-wrap: wrap; }
#pay-options label, #checkout-form fieldset label { display: block; padding: 4px 0; }
#checkout-form input[type=radio], #checkout-form input[type=checkbox] { width: auto; margin-right: 8px; }
.pg .btn + .btn, .pg .btn + a.btn { margin-left: 8px; }
@media (max-width: 480px) { .pg .btn + .btn, .pg .btn + a.btn { margin-left: 0; margin-top: 8px; } .pg .btn { display: block; text-align: center; } }

/* printing an order */
@media print {
  header, footer, .announce, .no-print, .skip, .dr, .ov, .step { display: none !important; }
  body { background: #fff; }
  .pg { max-width: 100%; padding: 0; }
}
.opts > div:has(#o-size) { grid-column: 1 / -1; }
@media (min-width: 901px) { .pd > div:first-child { position: sticky; top: 110px; align-self: start; } }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 100%; }
.pager button { margin: 0; }
@media (max-width: 700px) { .th { display: none; } }

/* =====================================================================
   PART 4 — CATEGORY DROPDOWNS (arrow beside each category)
   ===================================================================== */
nav.d { align-items: center; gap: 22px; }
.nd { position: relative; display: flex; align-items: center; }
.nd > a { padding: 8px 0; }
.nd .ar { width: 22px; height: 32px; margin-left: 2px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.nd .ar::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--g); border-bottom: 1.5px solid var(--g); transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.nd:hover .ar::before, .nd.open .ar::before, .nd:focus-within .ar::before { transform: translateY(1px) rotate(-135deg); }
.nd .dd { position: absolute; top: 100%; left: -18px; min-width: 230px; padding: 12px 0; background: var(--c); border: 1px solid #e3d8c6; box-shadow: 0 14px 34px #2b1a1018; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 70; }
.nd:hover .dd, .nd:focus-within .dd, .nd.open .dd { opacity: 1; visibility: visible; transform: none; }
.nd .dd a { display: block; padding: 9px 22px; border: 0; font-size: 13px; letter-spacing: .04em; text-transform: none; white-space: nowrap; color: var(--t); }
.nd .dd a:hover, .nd .dd a:focus-visible { background: var(--b); color: var(--w); border: 0; }
.nd .dd a.all { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--g); border-bottom: 1px solid #eee3d0; margin-bottom: 6px; padding-bottom: 12px; }
.nd:last-child .dd { left: auto; right: -18px; }
@media (max-width: 1180px) { nav.d { gap: 12px; font-size: 11px; letter-spacing: .1em; } .nd .ar { width: 18px; } }
@media (max-width: 1000px) { nav.d { gap: 8px; font-size: 10.5px; letter-spacing: .06em; } .nd .ar { width: 16px; margin-left: 0; } .hd { gap: 6px; } }

/* mobile menu accordion */
.menu-links .mi { display: flex; align-items: center; border-bottom: 1px solid #e6dbc8; }
.menu-links .mi a { flex: 1; border-bottom: 0; }
.menu-links .mt { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-links .mt::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--g); border-bottom: 2px solid var(--g); transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.menu-links .mt[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.menu-links .ms { background: #f4ecde; padding: 4px 0 6px; }
.menu-links .ms[hidden] { display: none; }
.menu-links .ms a.sub { padding: 11px 16px 11px 22px; font-size: 15px; border-bottom: 0; }
/* the full menu needs room: use the hamburger menu below 1100px */
@media (max-width: 1100px) { nav.d, .mega { display: none; } .burger { display: block; } }
nav.d, nav.d a { white-space: nowrap; }
nav.d { flex: 1; justify-content: center; min-width: 0; margin: 0 16px; }
@media (max-width: 1320px) { nav.d { gap: 12px; font-size: 11px; letter-spacing: .1em; } .nd .ar { width: 18px; } }
