/*
Theme Name: Taj Maalem | تاج معلم
Author: Taj Maalem
Description: قالب متجر مغربي فاخر ومتجاوب لبيع الجلابة والجبادور للرجال والأطفال.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taj-maalem
*/

:root {
  --ink: #20352b;
  --ink-soft: #536057;
  --forest: #243b30;
  --forest-deep: #1d3128;
  --olive: #68745b;
  --gold: #b89a69;
  --gold-light: #d9c7a5;
  --cream: #f6f3ec;
  --paper: #fbfaf7;
  --line: #e8e3d9;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; }
::selection { background: #d9c7a5; color: var(--forest-deep); }
:focus-visible { outline: 3px solid #b89a69; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.announcement-bar {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 6px 20px;
  background: var(--forest-deep);
  color: #f7f1e7;
  font-size: 11px;
  letter-spacing: .015em;
}
.announcement-bar p { margin: 0; }
.announcement-bar a { margin-inline-start: 12px; color: #e5cfaa; font-size: 10px; font-weight: 700; transition: color .2s; }
.announcement-bar a:hover { color: #fff; }
.announcement-bar a span { display: inline-block; margin-inline-start: 3px; }
.announcement-sparkle { display: inline-flex; width: 13px; color: #d4bd91; }
.announcement-sparkle svg { width: 13px; fill: currentColor; stroke: currentColor; stroke-width: .8; }
.announcement-separator { padding: 0 5px; color: #c7ae80; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251,250,247,.96);
  border-bottom: 1px solid rgba(43,58,48,.08);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1260px, calc(100% - 64px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo-image { width: 54px; height: 62px; object-fit: contain; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -2px;
}
.brand-mark i { position: absolute; top: -8px; inset-inline-end: 0; color: var(--gold); font-size: 14px; font-style: normal; letter-spacing: 0; }
.brand-copy { display: grid; gap: 0; line-height: 1.25; }
.brand-copy strong { font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.brand-copy small { color: #8c867b; font-size: 9px; letter-spacing: .06em; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); margin-inline-start: auto; margin-inline-end: auto; }
.main-nav a { position: relative; padding: 9px 0; color: #4b534d; font-size: 13px; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 3px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.main-nav a:hover { color: var(--forest); }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { border: 0; padding: 0; display: inline-grid; place-items: center; cursor: pointer; color: var(--forest); background: transparent; }
.icon-button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.search-trigger { width: 39px; height: 39px; border-radius: 50%; transition: background .2s; }
.search-trigger:hover { background: #efede6; }
.header-shop-button { min-height: 42px; padding: 0 17px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid #d6d3c9; color: var(--forest); font-size: 12px; font-weight: 700; transition: .2s ease; }
.header-shop-button:hover { border-color: var(--forest); background: var(--forest); color: #fff; }
.header-shop-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.menu-trigger { display: none; width: 40px; height: 40px; }
.menu-trigger svg { width: 23px; height: 23px; }

.hero-wrap { width: min(1380px, calc(100% - 64px)); margin: 30px auto 0; }
.hero-panel { min-height: 538px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #f0ede5; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 63px clamp(40px, 6.3vw, 91px) 55px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: #8e7755; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: var(--gold); }
.hero-copy h1 { margin: 0; color: var(--forest-deep); font-size: clamp(39px, 4.6vw, 63px); font-weight: 600; letter-spacing: -.065em; line-height: 1.38; }
.hero-copy h1 em, .section-heading h2 em, .story-copy h2 em, .faq-heading h2 em, .order-success h2 em, .dialog-heading h2 em { color: #a48a5d; font-style: normal; }
.hero-description { max-width: 410px; margin: 20px 0 0; color: #667069; font-size: 14px; line-height: 2.1; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button-primary { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; border: 1px solid var(--forest); background: var(--forest); color: #fff; font-size: 12px; font-weight: 700; transition: .25s ease; }
.button-primary:hover { border-color: #364c3a; background: #364c3a; transform: translateY(-2px); box-shadow: 0 9px 20px rgba(32,53,43,.14); }
.button-primary svg, .button-text svg, .product-cta svg, .footer-cta svg, .submit-order-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.button-text { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; color: #47544a; font-size: 11px; font-weight: 700; transition: color .2s; }
.button-text:hover { color: #aa8955; }
.button-text > span { font-size: 16px; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 35px; padding-top: 18px; border-top: 1px solid #ded8cb; }
.proof-seal { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #d5c6a8; border-radius: 50%; color: #a78d61; }
.proof-seal svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: .7; }
.hero-proof > span:last-child { display: grid; gap: 2px; }
.hero-proof strong { color: #485348; font-size: 10px; }
.hero-proof small { color: #8b8a80; font-size: 9px; }
.hero-visual { position: relative; min-height: 538px; overflow: hidden; background: #d8d4c9; }
.hero-image { object-fit: cover; object-position: center 43%; }
.hero-image-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(21,38,29,.1), transparent 44%), linear-gradient(0deg, rgba(31,39,31,.18), transparent 34%); pointer-events: none; }
.hero-photo-note { position: absolute; bottom: 25px; inset-inline-start: 27px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; background: rgba(250,248,242,.91); backdrop-filter: blur(8px); }
.photo-note-dot { width: 7px; height: 7px; border-radius: 50%; background: #a78d61; box-shadow: 0 0 0 4px #e4dbc9; }
.hero-photo-note > span:last-child { display: grid; gap: 1px; }
.hero-photo-note strong { color: var(--forest); font-size: 10px; }
.hero-photo-note small { color: #8c8c80; font-size: 9px; }
.hero-stamp { position: absolute; top: 26px; inset-inline-start: 27px; width: 88px; height: 96px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 2px; background: rgba(255,255,255,.9); box-shadow: 0 7px 20px rgba(26,35,27,.13); transform: rotate(-7deg); }
.hero-stamp img { display: block; width: 78px; height: 88px; object-fit: contain; }
.hero-stamp i { color: #e0c99c; font-size: 15px; font-style: normal; }
.hero-caption { display: flex; align-items: center; gap: 13px; padding: 13px 2px 0; color: #928d81; font-size: 9px; letter-spacing: .04em; }
.caption-rule { width: 44px; height: 1px; background: #cdbb99; }

.benefit-strip { width: min(1100px, calc(100% - 64px)); min-height: 96px; margin: 16px auto 0; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.benefit-item { display: flex; align-items: center; gap: 12px; }
.benefit-icon { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #e1d9c9; border-radius: 50%; color: #9a8159; font-family: Georgia, serif; font-size: 18px; }
.benefit-item > span:last-child { display: grid; gap: 3px; }
.benefit-item strong { color: #414c43; font-size: 11px; }
.benefit-item small { color: #939087; font-size: 9px; }
.benefit-divider { width: 1px; height: 33px; background: #e5e0d5; }
.section-shell { width: min(1190px, calc(100% - 64px)); margin-inline: auto; }
.catalog-section { padding-top: 104px; padding-bottom: 108px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-heading .eyebrow, .story-copy .eyebrow, .faq-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2, .story-copy h2, .faq-heading h2 { margin: 0; color: var(--forest-deep); font-size: clamp(34px, 4vw, 46px); font-weight: 600; letter-spacing: -.055em; line-height: 1.4; }
.section-subtitle { margin: 11px 0 0; color: #81837a; font-size: 12px; line-height: 1.9; }
.catalog-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 3px; }
.filter-tabs { display: inline-flex; align-items: center; padding: 3px; border: 1px solid #e6e2d8; background: #f5f3ed; }
.filter-tabs button { min-height: 34px; padding: 0 14px; border: 0; background: transparent; color: #72786f; cursor: pointer; font-size: 10px; transition: .2s; }
.filter-tabs button.active { background: var(--forest); color: white; box-shadow: 0 2px 7px rgba(32,53,43,.14); }
.catalog-search { height: 40px; width: 205px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e6e2d8; background: #fff; color: #81877e; }
.catalog-search svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.catalog-search input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.catalog-search input::placeholder { color: #a3a39a; }
.catalog-search:focus-within { border-color: #af986d; box-shadow: 0 0 0 2px rgba(184,154,105,.1); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; margin-top: 37px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #eae6dc; background: #fff; animation: card-in .45s both; transition: box-shadow .25s, transform .25s, border-color .25s; }
.product-card:hover { transform: translateY(-4px); border-color: #ddd2be; box-shadow: 0 15px 34px rgba(34,44,35,.08); }
@keyframes card-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.product-image-button { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #f1eee7; text-align: right; }
.product-media { position: relative; display: block; width: 100%; aspect-ratio: .78; overflow: hidden; background: #ede9df; }
.product-image { object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-image { transform: scale(1.045); }
.product-badge { position: absolute; top: 13px; inset-inline-start: 13px; z-index: 2; padding: 7px 10px; background: rgba(250,248,242,.94); color: #7b6848; font-size: 9px; font-weight: 700; }
.product-image-action { position: absolute; inset-inline: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: rgba(250,248,242,.92); color: var(--forest); font-size: 10px; font-weight: 700; opacity: 0; transform: translateY(5px); transition: .25s; }
.product-image-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product-card:hover .product-image-action, .product-image-button:focus-visible .product-image-action { opacity: 1; transform: translateY(0); }
.product-card-body { padding: 17px 16px 16px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #9a8055; font-size: 9px; }
.product-crafted { color: #9a9a8f; }
.product-name-button { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--forest-deep); cursor: pointer; text-align: right; }
.product-name-button h3 { overflow: hidden; margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.product-name-button:hover h3 { color: #91744c; }
.product-description { min-height: 37px; margin: 7px 0 13px; color: #85877d; font-size: 10px; line-height: 1.85; }
.product-price-row { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid #f0eee8; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.product-price strong { color: var(--forest); font-size: 13px; }
.product-price del { color: #a6a59b; font-size: 9px; }
.shipping-note { color: #9b978c; font-size: 8px; white-space: nowrap; }
.product-cta { width: 100%; min-height: 42px; margin-top: 12px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dcded5; background: white; color: var(--forest); cursor: pointer; font-size: 10px; font-weight: 700; transition: .2s; }
.product-cta:hover { border-color: var(--forest); background: var(--forest); color: #fff; }
.product-cta svg { width: 16px; height: 16px; }
.catalog-footnote { display: flex; align-items: center; gap: 8px; margin: 23px 0 0; color: #919087; font-size: 10px; line-height: 1.8; }
.catalog-footnote span { color: #b29867; font-size: 14px; }
.empty-results { min-height: 250px; margin-top: 37px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #d9d4c8; color: #83887e; text-align: center; }
.empty-results > span { color: #b59a6a; font-size: 35px; }
.empty-results strong { margin-top: 6px; color: var(--forest); font-size: 16px; }
.empty-results p { margin: 8px 0 14px; font-size: 11px; }
.empty-results button { padding: 9px 14px; border: 1px solid #d7d3c8; background: transparent; color: var(--forest); cursor: pointer; font-size: 10px; }

.story-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; margin-bottom: 100px; background: #f0ede5; }
.story-image-wrap { position: relative; min-height: 440px; overflow: hidden; background: #e4dfd4; }
.story-image { object-fit: cover; object-position: 45% center; }
.story-image-label { position: absolute; bottom: 20px; inset-inline-start: 20px; display: flex; align-items: center; gap: 9px; padding: 10px 13px; background: rgba(250,248,242,.93); color: #566153; font-size: 10px; }
.story-image-label i { color: #a48a5d; font-size: 16px; font-style: normal; }
.story-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 50px clamp(30px, 6vw, 80px); }
.story-copy h2 { font-size: clamp(33px, 3.7vw, 45px); }
.story-copy > p:not(.eyebrow) { max-width: 420px; margin: 17px 0 0; color: #73776d; font-size: 12px; line-height: 2.2; }
.story-signature { display: flex; align-items: center; gap: 11px; margin-top: 25px; padding-top: 15px; border-top: 1px solid #ded8cc; min-width: 185px; }
.signature-logo { width: 42px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.story-signature > span:last-child { display: grid; gap: 2px; }
.story-signature strong { color: #475449; font-size: 10px; }
.story-signature small { color: #928d80; font-size: 9px; }
.story-link { margin-top: 13px; }
.quote-band { position: relative; min-height: 236px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 101px; padding: 32px 24px; overflow: hidden; background: #e9e6dc; text-align: center; }
.quote-band::before, .quote-band::after { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(174,148,102,.18); border-radius: 50%; }
.quote-band::before { top: -148px; inset-inline-start: -44px; }
.quote-band::after { bottom: -155px; inset-inline-end: -55px; }
.quote-ornament { color: #aa9163; font-family: Georgia, serif; font-size: 27px; line-height: 1; }
.quote-band p { margin: 12px 0 10px; color: var(--forest); font-size: clamp(20px, 2.4vw, 29px); font-weight: 500; letter-spacing: -.04em; line-height: 1.8; }
.quote-caption { color: #8a8375; font-size: 10px; }
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding-bottom: 104px; }
.faq-heading h2 { font-size: 37px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #445146; cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: #ab9164; font-size: 19px; font-weight: 300; transition: transform .2s; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { margin: -3px 0 18px; color: #7d8278; font-size: 11px; line-height: 2; }

.site-footer { background: var(--forest-deep); color: #f5f0e7; }
.footer-main { min-height: 230px; display: grid; grid-template-columns: 1.35fr .9fr .9fr 1.1fr; gap: 42px; align-items: start; padding-top: 47px; padding-bottom: 40px; }
.footer-brand .brand-mark { border-color: #ac9569; color: #f2eadb; }
.footer-brand .brand-mark i { color: #d4bd91; }
.footer-brand .brand-copy strong { color: #f7f2e8; }
.footer-brand .brand-copy small { color: #bdb6a7; }
.footer-brand-block > p { margin: 15px 0 0; color: #c1c5b9; font-size: 10px; line-height: 2; }
.footer-links, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 8px; }
.footer-links > strong, .footer-contact > strong { margin-bottom: 3px; color: #e4d3b2; font-size: 11px; }
.footer-links a, .footer-contact p { margin: 0; color: #c1c5b9; font-size: 10px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact p { line-height: 1.8; }
.footer-cta { min-height: 35px; padding: 0 12px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid #657366; color: #f5f0e7; font-size: 10px; transition: background .2s; }
.footer-cta:hover { background: #304638; }
.footer-cta svg { width: 14px; height: 14px; }
.footer-bottom { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #adb4a8; font-size: 9px; }
.footer-bottom i { color: #d1b98c; font-style: normal; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 25px; background: rgba(20,31,25,.65); backdrop-filter: blur(7px); animation: modal-fade .18s ease-out; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.order-dialog { position: relative; width: min(940px, 100%); max-height: min(92vh, 900px); overflow: auto; background: var(--paper); box-shadow: 0 24px 90px rgba(0,0,0,.25); animation: dialog-in .24s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; z-index: 3; top: 13px; inset-inline-start: 13px; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,.85); color: #415046; transition: background .2s; }
.modal-close:hover { background: #e7e0d2; }
.modal-close svg { width: 18px; height: 18px; }
.modal-close:disabled { opacity: .5; cursor: not-allowed; }
.order-dialog-grid { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 640px; }
.order-form-panel { padding: 39px 35px 30px; }
.dialog-heading .eyebrow { margin-bottom: 10px; }
.dialog-heading h2 { margin: 0; color: var(--forest); font-size: 30px; font-weight: 600; letter-spacing: -.05em; }
.dialog-heading > p:last-child { margin: 7px 0 20px; color: #81847b; font-size: 10px; }
.order-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #576156; font-size: 10px; font-weight: 700; }
.form-field b, .option-fieldset legend b { color: #a67b51; font-size: 11px; }
.form-field > span small { margin-inline-start: 4px; color: #9a9b91; font-size: 9px; font-weight: 400; }
.form-field input { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #e5e1d7; border-radius: 0; outline: 0; background: #fff; color: var(--ink); font-size: 11px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.form-field input:focus { border-color: #ac956b; box-shadow: 0 0 0 2px rgba(184,154,105,.11); }
.form-field input::placeholder { color: #b1b1a9; }
.option-fieldset { min-width: 0; margin: 1px 0 0; padding: 0; border: 0; }
.option-fieldset legend { margin-bottom: 8px; color: #576156; font-size: 10px; font-weight: 700; }
.color-options { display: flex; flex-wrap: wrap; gap: 7px; }
.color-option { min-height: 32px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e7e3d8; background: #fff; color: #667067; cursor: pointer; font-size: 9px; transition: .2s; }
.color-option:hover { border-color: #c5b38e; }
.color-option.selected { border-color: var(--forest); background: #f4f5f0; color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.swatch { width: 14px; height: 14px; display: inline-block; border: 1px solid rgba(35,45,37,.17); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.size-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.size-option { min-height: 48px; padding: 6px 7px; display: flex; flex-direction: column; justify-content: center; gap: 3px; border: 1px solid #e7e3d8; background: #fff; color: #536054; cursor: pointer; text-align: right; transition: .2s; }
.size-option:hover { border-color: #c5b38e; }
.size-option.selected { border-color: var(--forest); background: #eff2ec; box-shadow: inset 0 0 0 1px var(--forest); color: var(--forest); }
.size-option > span { font-size: 9px; font-weight: 700; }
.size-option small { color: #92938a; font-size: 8px; }
.quantity-row { min-height: 38px; display: flex; align-items: center; gap: 12px; color: #586257; font-size: 10px; font-weight: 700; }
.quantity-control { height: 31px; display: inline-flex; align-items: center; border: 1px solid #dedbd1; background: #fff; }
.quantity-control button { width: 31px; height: 29px; border: 0; background: transparent; color: #5f6c5c; cursor: pointer; font-size: 15px; }
.quantity-control button:hover:not(:disabled) { background: #f0eee7; }
.quantity-control button:disabled { color: #c7c8c1; cursor: not-allowed; }
.quantity-control output { min-width: 27px; color: var(--forest); text-align: center; font-size: 11px; }
.quantity-hint { color: #9b9a91; font-size: 9px; font-weight: 400; }
.form-error { margin: -4px 0 0; padding: 8px 10px; border-right: 2px solid #bb6e5c; background: #f8ece8; color: #894638; font-size: 10px; line-height: 1.7; }
.form-total { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 3px; border-top: 1px solid #e8e4db; color: #576156; font-size: 11px; font-weight: 700; }
.form-total > span { display: grid; gap: 3px; }
.form-total small { color: #92938a; font-size: 8px; font-weight: 400; }
.form-total strong { color: var(--forest); font-size: 15px; }
.submit-order-button { min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--forest); background: var(--forest); color: white; cursor: pointer; font-size: 11px; font-weight: 700; transition: .2s; }
.submit-order-button:hover:not(:disabled) { background: #354d3b; }
.submit-order-button:disabled { opacity: .72; cursor: wait; }
.submit-order-button svg { width: 16px; height: 16px; }
.form-privacy { display: flex; align-items: center; justify-content: center; gap: 5px; margin: -7px 0 0; color: #919188; font-size: 8px; }
.loading-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-summary-panel { display: flex; flex-direction: column; padding: 45px 25px 24px; background: #f0ede5; }
.summary-image-wrap { position: relative; width: 100%; aspect-ratio: .94; max-height: 300px; overflow: hidden; background: #e7e2d7; }
.summary-image { object-fit: cover; }
.summary-product-info { padding-top: 17px; }
.summary-category { color: #a1885b; font-size: 9px; }
.summary-product-info h3 { margin: 5px 0 4px; color: var(--forest); font-size: 17px; }
.summary-product-info > p { margin: 0; color: #85877d; font-size: 9px; line-height: 1.8; }
.summary-price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.summary-price strong { color: var(--forest); font-size: 15px; }
.summary-price del { color: #9e9d93; font-size: 9px; }
.summary-selection { display: flex; flex-direction: column; gap: 6px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #ded9cd; color: #85877d; font-size: 9px; }
.summary-selection strong { color: #4b594d; font-weight: 700; }
.summary-assurance { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; color: #657362; }
.summary-assurance > span { font-size: 20px; }
.summary-assurance p { margin: 0; color: #82877b; font-size: 9px; line-height: 1.7; }
.order-success { min-height: 500px; padding: 74px 30px 55px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-check { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 19px; border: 1px solid #bcc9b6; border-radius: 50%; background: #eef3eb; color: var(--forest); font-size: 24px; }
.order-success .eyebrow { margin-bottom: 8px; }
.order-success h2 { margin: 0; color: var(--forest); font-size: 31px; font-weight: 600; }
.order-success > p:not(.eyebrow) { max-width: 420px; margin: 12px 0 20px; color: #7d8278; font-size: 11px; line-height: 2; }
.order-number-box { min-width: 220px; padding: 11px 20px; display: grid; gap: 5px; border: 1px dashed #c6b794; background: #f6f3ec; }
.order-number-box small { color: #8b887e; font-size: 9px; }
.order-number-box strong { color: var(--forest); font-size: 18px; letter-spacing: .1em; direction: ltr; }
.success-detail { width: min(360px, 100%); margin-top: 15px; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e8e4db; color: #6d756b; font-size: 10px; }
.success-detail span:last-child { color: var(--forest); font-weight: 700; white-space: nowrap; }
.success-close { min-width: 190px; margin-top: 20px; }

@media (max-width: 1080px) {
  .header-inner { width: min(100% - 48px, 1260px); }
  .hero-wrap { width: calc(100% - 48px); }
  .hero-panel, .hero-visual { min-height: 490px; }
  .hero-copy { padding-inline: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-media { aspect-ratio: .92; }
  .section-shell { width: calc(100% - 64px); }
  .catalog-controls { flex-wrap: wrap; justify-content: flex-end; }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; padding-top: 0; flex-direction: row; align-items: center; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .announcement-bar { min-height: 33px; gap: 5px; padding-inline: 9px; font-size: 9px; }
  .announcement-bar a { margin-inline-start: 4px; font-size: 9px; }
  .announcement-sparkle { width: 11px; }
  .header-inner { position: relative; width: calc(100% - 34px); min-height: 70px; gap: 12px; }
  .brand-mark { width: 38px; height: 38px; font-size: 14px; }
  .brand-copy strong { font-size: 15px; }
  .main-nav { position: absolute; top: calc(100% + 1px); inset-inline: -17px; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 20px 14px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 13px 18px rgba(31,46,36,.08); }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid #eeece5; font-size: 12px; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .header-actions { gap: 4px; }
  .search-trigger { width: 35px; height: 35px; }
  .header-shop-button { min-height: 36px; padding: 0 10px; gap: 5px; font-size: 10px; }
  .header-shop-button svg { width: 14px; height: 14px; }
  .menu-trigger { display: inline-grid; width: 35px; height: 35px; }
  .hero-wrap { width: calc(100% - 28px); margin-top: 14px; }
  .hero-panel { display: flex; flex-direction: column; }
  .hero-copy { order: 2; min-height: 350px; padding: 31px 27px 30px; }
  .hero-visual { order: 1; min-height: 360px; }
  .hero-image { object-position: center 38%; }
  .hero-copy .eyebrow { margin-bottom: 11px; font-size: 9px; }
  .hero-copy h1 { font-size: clamp(36px, 10vw, 49px); }
  .hero-description { max-width: 480px; margin-top: 12px; font-size: 12px; line-height: 1.9; }
  .hero-actions { margin-top: 17px; gap: 14px; }
  .button-primary { min-height: 45px; padding-inline: 17px; gap: 11px; font-size: 11px; }
  .hero-proof { margin-top: 19px; padding-top: 12px; }
  .hero-photo-note { bottom: 15px; inset-inline-start: 14px; padding: 9px 11px; }
  .hero-stamp { top: 15px; inset-inline-start: 15px; width: 72px; height: 78px; }
  .hero-stamp img { width: 63px; height: 71px; }
  .hero-caption { font-size: 8px; }
  .benefit-strip { width: calc(100% - 34px); min-height: unset; justify-content: space-between; gap: 10px; padding: 18px 0; }
  .benefit-item { gap: 7px; }
  .benefit-icon { width: 30px; height: 30px; flex: 0 0 30px; font-size: 15px; }
  .benefit-item strong { font-size: 9px; }
  .benefit-item small { font-size: 8px; }
  .benefit-divider { height: 28px; }
  .section-shell { width: calc(100% - 34px); }
  .catalog-section { padding-top: 70px; padding-bottom: 73px; }
  .section-heading { display: block; }
  .section-heading h2, .story-copy h2 { font-size: 35px; }
  .section-subtitle { margin-top: 6px; font-size: 10px; }
  .catalog-controls { justify-content: space-between; gap: 8px; margin-top: 20px; }
  .filter-tabs { flex: 0 0 auto; }
  .filter-tabs button { min-height: 32px; padding-inline: 10px; font-size: 9px; }
  .catalog-search { width: min(205px, 44vw); height: 36px; gap: 6px; padding-inline: 8px; }
  .catalog-search input { font-size: 9px; }
  .product-grid { gap: 11px; margin-top: 19px; }
  .product-media { aspect-ratio: .76; }
  .product-badge { top: 8px; inset-inline-start: 8px; padding: 6px 7px; font-size: 8px; }
  .product-card-body { padding: 11px 10px 10px; }
  .product-meta { margin-bottom: 6px; font-size: 8px; }
  .product-crafted { display: none; }
  .product-name-button h3 { font-size: 12px; }
  .product-description { min-height: 35px; margin: 6px 0 8px; font-size: 9px; line-height: 1.7; }
  .product-price-row { min-height: 31px; gap: 3px; padding-bottom: 8px; }
  .product-price { gap: 4px; }
  .product-price strong { font-size: 10px; }
  .product-price del { font-size: 8px; }
  .shipping-note { display: none; }
  .product-cta { min-height: 36px; margin-top: 8px; padding-inline: 8px; font-size: 9px; }
  .product-cta svg { width: 14px; height: 14px; }
  .product-image-action { display: none; }
  .catalog-footnote { align-items: flex-start; font-size: 9px; }
  .story-section { display: flex; flex-direction: column; margin-bottom: 65px; }
  .story-image-wrap { min-height: 320px; }
  .story-copy { padding: 30px 25px 31px; }
  .story-copy > p:not(.eyebrow) { margin-top: 10px; font-size: 11px; }
  .story-signature { margin-top: 15px; }
  .quote-band { min-height: 200px; margin-bottom: 69px; }
  .quote-band p { font-size: 19px; }
  .faq-section { display: block; padding-bottom: 70px; }
  .faq-heading { margin-bottom: 21px; }
  .faq-heading h2 { font-size: 32px; }
  .faq-item summary { min-height: 54px; font-size: 11px; }
  .faq-item p { font-size: 10px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 34px; padding-bottom: 30px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; align-items: flex-start; flex-direction: column; gap: 9px; }
  .footer-bottom { min-height: 52px; flex-wrap: wrap; gap: 4px 15px; padding-block: 9px; font-size: 8px; }
  .modal-backdrop { align-items: start; padding: 11px; }
  .order-dialog { max-height: calc(100dvh - 22px); }
  .order-dialog-grid { display: flex; flex-direction: column; }
  .order-form-panel { order: 1; padding: 34px 20px 22px; }
  .order-summary-panel { order: 2; display: grid; grid-template-columns: minmax(92px, .36fr) 1fr; gap: 0 13px; padding: 15px 20px; }
  .summary-image-wrap { grid-row: span 2; aspect-ratio: .9; max-height: 158px; }
  .summary-product-info { padding-top: 2px; }
  .summary-product-info h3 { font-size: 13px; }
  .summary-product-info > p { font-size: 8px; }
  .summary-price { margin-top: 6px; }
  .summary-selection { flex-direction: row; flex-wrap: wrap; gap: 5px 11px; margin-top: 8px; padding-top: 7px; font-size: 8px; }
  .summary-assurance { grid-column: 2; margin-top: 5px; padding-top: 3px; }
  .summary-assurance > span { font-size: 16px; }
  .summary-assurance p { font-size: 8px; }
  .dialog-heading .eyebrow { font-size: 9px; }
  .dialog-heading h2 { font-size: 26px; }
  .dialog-heading > p:last-child { margin-bottom: 15px; }
  .order-form { gap: 11px; }
  .form-row { gap: 8px; }
  .form-field { font-size: 9px; }
  .form-field input { height: 37px; padding-inline: 8px; font-size: 10px; }
  .size-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .size-option { min-height: 45px; }
  .color-options { gap: 5px; }
  .color-option { padding-inline: 7px; font-size: 8px; }
  .order-success { min-height: 470px; padding-inline: 23px; }
  .order-success h2 { font-size: 26px; }
}

@media (max-width: 390px) {
  .announcement-bar { font-size: 8px; }
  .announcement-bar a { font-size: 8px; }
  .brand { gap: 7px; }
  .header-inner { width: calc(100% - 24px); }
  .brand-copy strong { font-size: 14px; }
  .header-shop-button { padding-inline: 7px; font-size: 9px; }
  .header-shop-button svg { display: none; }
  .search-trigger, .menu-trigger { width: 31px; }
  .catalog-controls { flex-wrap: wrap; }
  .catalog-search { width: 100%; order: -1; }
  .filter-tabs { margin-inline-start: auto; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .form-field input { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* WordPress theme image positioning and notices */
img.hero-image,
img.product-image,
img.story-image,
img.summary-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.product-card[hidden],
.modal-backdrop[hidden],
#empty-results[hidden] {
  display: none !important;
}
.order-notice {
  width: min(1190px, calc(100% - 64px));
  min-height: 52px;
  margin: 15px auto 0;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 16px;
  border: 1px solid #d8e4d4;
  background: #f0f6ee;
  color: #4b6747;
  font-size: 10px;
}
.order-notice strong { font-size: 11px; }
.order-notice .notice-total { color: #324936; font-weight: 700; white-space: nowrap; }
.order-notice-error { border-color: #ead7d2; background: #f8eeeb; color: #925847; }
@media (max-width: 760px) {
  .order-notice { width: calc(100% - 28px); margin-top: 10px; font-size: 9px; }
  .order-notice strong { width: 100%; }
}
