/* Shared inner-page pieces */
.mainnav .is-current::after { transform: scaleX(1); }
.pagehero { position: relative; height: 320px; overflow: hidden; background: var(--photo-bg); color: var(--on-dark); }
.pagehero--tall { height: 460px; }
.pagehero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.pagehero__text { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 44px; gap: 8px; }
.pagehero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.1; }
.pagehero p { font-size: 16px; max-width: 560px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding-block: 22px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Collection */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); padding: 7px 14px; font-size: 14px; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.chip:hover, .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.chip__price { display: block; font-size: 12px; opacity: .75; margin-top: 2px; }
.pd__add:disabled { opacity: .4; cursor: not-allowed; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 26px 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; font-size: 14px; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort select { border: 1px solid var(--line); background: var(--paper); height: 38px; padding: 0 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-inline-start: auto; }
.filters:empty { display: none; }
.filter { display: flex; align-items: center; gap: 8px; }
.filter select { border: 1px solid var(--line); background: var(--paper); height: 38px; padding: 0 10px; max-width: 230px; }
.filter select:disabled { opacity: .55; }
.products--grid { row-gap: 44px; }
.empty { text-align: center; padding: 60px 0; display: grid; justify-items: center; gap: 14px; }

/* Product */
.pd { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.pd__main { aspect-ratio: 1; background: var(--sand); overflow: hidden; }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pd__thumbs button { aspect-ratio: 1; overflow: hidden; border: 1px solid transparent; opacity: .7; transition: opacity var(--ease), border-color var(--ease); }
.pd__thumbs button.is-on, .pd__thumbs button:hover { opacity: 1; border-color: var(--ink); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { position: sticky; top: calc(var(--head-h, 112px) + 20px); display: grid; gap: 12px; }
.pd__name { font-size: 30px; font-weight: 400; line-height: 1.2; }
.pd__rating { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pd__rating .stars svg { width: 15px; height: 15px; }
.pd__price { font-size: 22px; }
.pd__stock { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.pd__stock.is-in { color: #1f7a3d; } .pd__stock.is-out { color: var(--error); } .pd__stock.is-back { color: #8a5a00; }
.pd__sku { margin: 4px 0 0; font-size: 13px; color: #6b6b6b; }
.pd__attrs { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd__attrs th, .pd__attrs td { text-align: start; padding: 8px 10px; border-bottom: 1px solid #ececec; vertical-align: top; }
.pd__attrs th { width: 38%; font-weight: 600; }
.pr__closed { color: #6b6b6b; font-size: 14px; }
.pd__badges { position: static; }
.badge--line { border: 1px solid var(--line); }
.pd__label { font-size: 14px; margin-top: 6px; }
.pd__label strong { text-transform: capitalize; font-weight: 700; }
.pd__swatches button { width: 32px; height: 32px; border: 1px solid var(--line); background: linear-gradient(var(--c), var(--c)) content-box; padding: 3px; transition: border-color var(--ease); }
.pd__swatches button.is-on, .pd__swatches button:hover { border-color: var(--ink); }
.pd__buy { display: flex; gap: 10px; margin-top: 8px; }
.qty { display: flex; border: 1px solid var(--line); background: var(--paper); }
.qty button { width: 38px; font-size: 18px; }
.qty button:hover { background: var(--sand); }
.qty input { width: 44px; text-align: center; border: 0; background: none; }
.pd__add { flex: 1; min-height: 48px; font-size: 16px; }
.pd__wish { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; justify-self: start; }
.pd__wish:hover { text-decoration: underline; }
.pd__wish.is-on svg { fill: var(--red); stroke: var(--red); }
.pd__perks { margin: 4px 0 8px; padding-inline-start: 18px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; padding-block: 14px; font-size: 16px; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc > div { padding-bottom: 16px; font-size: 14px; color: var(--ink-2); }
.acc a { text-decoration: underline; }

/* About */
.lead { max-width: 760px; margin: 30px auto 0; text-align: center; display: grid; gap: 18px; }
.lead h2 { font-family: var(--display); font-size: 40px; }
.lead p { font-size: 17px; line-height: 1.8; }
.stat { font-family: var(--display); font-size: 44px !important; line-height: 1.1; margin-bottom: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 90px; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.split > div { display: grid; gap: 18px; justify-items: start; max-width: 480px; }
.split p { font-size: 15px; line-height: 1.8; }
.split--flip img { order: 2; }
.reviews--grid { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
.reviews--grid .review__text { -webkit-line-clamp: unset; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; padding-top: 20px; }
.form { display: grid; gap: 16px; }
.form h2 { margin-bottom: 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; }
.form input, .form select, .form textarea { border: 1px solid var(--line); background: var(--paper); padding: 10px 12px; font: inherit; outline: none; transition: border-color var(--ease); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.form .btn { justify-self: start; min-height: 46px; padding-inline: 32px; }
.form__ok { background: var(--olive-bg); color: var(--olive); padding: 12px 14px; font-size: 14px; }
.form__err { background: var(--error-bg); color: var(--error); padding: 12px 14px; font-size: 14px; }
.contact__info { background: var(--sand); padding: 30px; display: grid; gap: 10px; align-content: start; font-size: 14px; }
.contact__info h3 + p { margin-bottom: 8px; }
.contact__info a { text-decoration: underline; }
.showrooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.showrooms img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; background: var(--sand); }
.showrooms p { font-size: 14px; color: var(--ink-2); }
.faq { max-width: 820px; }
.faq--page { margin: 10px 0 40px; display: grid; gap: 0; }
.faq__item { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::after { content: "+"; font-size: 22px; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary h2 { font-size: 18px; font-weight: 700; margin: 0; }
.faq__item p { margin-top: 10px; line-height: 1.75; }
.faq__item a, .page__head a, .intro a, .section__note a { text-decoration: underline; }
.page__head { padding-block: 10px 20px; display: grid; gap: 10px; max-width: 820px; }
.page__head h1 { font-family: var(--display); font-size: 40px; font-weight: 400; }
.contact__h { font-size: 22px; font-weight: 400; }
.section__note { color: var(--ink-2); font-size: 15px; max-width: 760px; }
.helplinks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; }
.helplinks a { text-decoration: underline; }
.links-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.links-inline a { text-decoration: underline; }
.usps--links { padding-top: 60px; }
.usps--links h3 { font-size: 20px; font-weight: 400; margin-bottom: 6px; }
.usps--links h3 a:hover { text-decoration: underline; }
.usps--links .usp p { font-size: 15px; line-height: 1.6; }
.intro { max-width: 860px; margin: 48px auto 0; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.intro:empty { display: none; }
.intro h2 { font-family: var(--display); font-size: 26px; font-weight: 400; }
.intro p { line-height: 1.8; color: var(--ink-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) { .page__head h1 { font-size: 30px; } .intro h2 { font-size: 22px; } }

/* Cart drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(92vw, 420px); background: var(--bg); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 250ms ease; visibility: hidden; }
.cart-open .drawer { transform: none; visibility: visible; }
.drawer-backdrop { display: none; }
.cart-open .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 65; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__items { flex: 1; overflow-y: auto; padding: 10px 22px; display: grid; align-content: start; gap: 16px; justify-items: start; }
.drawer__empty { padding-top: 20px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; width: 100%; font-size: 14px; padding-block: 8px; }
.line img { width: 72px; height: 72px; object-fit: cover; }
.line p { color: var(--muted); font-size: 13px; }
.line__remove { font-size: 12px; text-decoration: underline; align-self: start; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 24px; display: grid; gap: 12px; }
.drawer__foot > p:first-child { display: flex; justify-content: space-between; font-size: 16px; }
.drawer__foot .btn { min-height: 48px; }
.drawer__note { font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 1000px) {
  .pd, .contact { grid-template-columns: 1fr; gap: 32px; }
  .pd__info { position: static; }
  .showrooms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pagehero { height: 240px; }
  .pagehero--tall { height: 320px; }
  .pagehero__text { padding-bottom: 26px; }
  .products--grid { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; gap: 14px; row-gap: 30px; }
  .products--grid > * { flex: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chip { white-space: nowrap; }
  .toolbar { flex-wrap: wrap; }
  .filters { order: 3; width: 100%; margin: 0; }
  .filter { flex: 1 1 140px; flex-direction: column; align-items: stretch; gap: 4px; }
  .filter select { max-width: none; width: 100%; }
  .pd__name { font-size: 24px; }
  .split { grid-template-columns: 1fr; gap: 22px; padding-top: 56px; }
  .split--flip img { order: 0; }
  .lead h2 { font-size: 30px; }
  .reviews--grid, .showrooms, .form__row { grid-template-columns: 1fr; }
  .reviews--grid .review { flex: none; }
  .contact__info { padding: 22px; }
}

/* Collection header without image + Load More */
.pagehero--plain { height: auto; background: var(--pagehero-plain); color: var(--ink); }
.pagehero--plain .pagehero__text { padding-block: 56px 40px; }
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 40px 0 8px; font-size: 14px; color: #6b635c; }
@media (max-width: 760px) { .pagehero--plain .pagehero__text { padding-block: 36px 28px; } }

/* Category banner: a warm lifestyle photo under the title, darkened only where the text sits */
.pagehero--cat { height: 380px; }
.pagehero--cat picture { position: absolute; inset: 0; }
.pagehero--cat img { filter: none; }
.pagehero--cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 22, 18, .72) 0%, rgba(26, 22, 18, .38) 45%, rgba(26, 22, 18, .08) 100%); }
.pagehero--cat .pagehero__text { z-index: 1; padding-bottom: 48px; gap: 12px; }
.pagehero--cat h1 { letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.pagehero--cat p { font-size: 17px; line-height: 1.65; max-width: 620px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
[dir="rtl"] .pagehero--cat h1 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
@media (max-width: 760px) {
  .pagehero--cat { height: 300px; }
  .pagehero--cat .pagehero__text { padding-bottom: 28px; gap: 8px; }
  .pagehero--cat h1 { font-size: 34px; }
  .pagehero--cat p { font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Blog list and post */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; margin: 8px 0 64px; }
.blog-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: var(--paper, #fff); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.blog-card:hover, .blog-card:focus-visible { border-color: var(--ink); transform: translateY(-2px); }
.blog-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ece7df; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blog-card:hover .blog-card__img img { transform: scale(1.03); }
.blog-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.blog-card__meta, .blog-post__meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.blog-card__title { font-family: "Marcellus", Georgia, serif; font-size: 22px; line-height: 1.3; }
.blog-card__text { color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__more { margin-top: 4px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.blog-empty { margin: 24px 0 64px; color: var(--ink-2); }
.blog-post__meta { margin: 0 0 16px; }
.blog-post__img { margin: 0 0 28px; aspect-ratio: 16 / 9; overflow: hidden; background: #ece7df; }
.blog-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-x { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ececec; }
.cart-x__title { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.cart-x__item { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; color: inherit; text-decoration: none; }
.cart-x__item img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #f3f1ee; }
.cart-x__item:hover span { text-decoration: underline; }

.pd .qty[hidden] { display: none; }
/* Phase 3 product types: variation choice, grouped list, external button */
.chip[data-off] { opacity: .5; text-decoration: line-through; }
.chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; background: var(--paper); color: inherit; border-color: var(--line); }
.pd__clear { justify-self: start; width: auto; background: none; border: 0; padding: 0; margin: 2px 0 6px; font-size: 13px; text-decoration: underline; color: var(--muted, #666); cursor: pointer; }
.pd__clear:hover { color: var(--ink); }
.pd__vdesc { font-size: 14px; line-height: 1.6; margin: 4px 0 8px; }
.pd__ext { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.pd__group { margin-top: 8px; }
.pd__group table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 14px; }
.pd__group td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pd__group .pd__gq { width: 72px; padding-inline-start: 0; }
.pd__group .pd__gq input { width: 60px; padding: 7px 6px; border: 1px solid var(--line); text-align: center; font: inherit; }
.pd__group .pd__gn a { color: inherit; font-weight: 600; }
.pd__group .pd__gp { white-space: nowrap; }
.pd__group .pd__gs { font-size: 13px; font-weight: 600; }
.pd__group .is-in { color: #1f7a3d; } .pd__group .is-out { color: var(--error); } .pd__group .is-back { color: #8a5a00; }
.pd__gext { padding: 6px 10px; font-size: 12px; white-space: nowrap; }

/* Phase 4: product video slide, brand logos, categories and tags, password form */
.pd__main { position: relative; }
.pd__video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--dark); }
.pd__vthumb { position: relative; }
.pd__vthumb svg { position: absolute; inset: 50% auto auto 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); fill: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.pd__brand { display: inline-flex; align-items: center; gap: 6px; }
.pd__brand img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.pd__meta { margin: 18px 0 0; font-size: 14px; color: var(--muted, #6b6b6b); }
.pd__meta p { margin: 4px 0; }
.pd__meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pp-lock { max-width: 460px; margin: 48px auto; display: grid; gap: 14px; }
.pp-lock label { display: grid; gap: 6px; font-weight: 600; }
.pp-lock input { padding: 12px 14px; border: 1px solid var(--line, #ccc); font: inherit; }
.pp-lock__err { color: var(--error); margin: 0; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; vertical-align: middle; margin-inline-end: 10px; }
