/* JUV Line website. Plain CSS (the server has no build step). Colours and fonts from the brand guidelines. */
:root {
  --ivory: #F5F0E8; --sand: #E3D5C1; --taupe: #6E6760; --noir: #000; --terracotta: #BF491F; --olive: #776E30;
  --terracotta-19: #F2DBD2; --olive-19: #E4E2D6; --line: #DDD2C2; --white: #fff;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--noir); font: 300 16px/1.6 var(--sans); }
body.rtl { font-family: var(--ar); font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: 0; inset-inline-start: 8px; background: var(--noir); color: var(--white); padding: 8px 12px; z-index: 99; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html, body { overflow-x: clip; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.muted { color: var(--taupe); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* type */
.eyebrow, .label { font-family: var(--sans); font-weight: 500; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.heading { font-weight: 300; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .2em; text-transform: uppercase; }
.display, .statement { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }
.display { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; }
.statement { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; }
.title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin-bottom: .3em; }
.rtl .eyebrow, .rtl .label, .rtl .heading { font-family: var(--ar); letter-spacing: 0; font-weight: 500; }
.rtl .heading { font-weight: 500; }
.rtl .display, .rtl .statement, .rtl .title { font-family: var(--ar); font-style: normal; font-weight: 500; }
.rtl .display { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.3; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 26px; border: 1px solid var(--noir); background: var(--noir); color: var(--white); text-decoration: none; font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; border-radius: 2px; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--noir); }
.btn.ghost:hover { background: var(--noir); color: var(--white); }
.btn.light { background: var(--white); color: var(--noir); border-color: var(--white); }
.btn.light:hover { background: var(--ivory); }
.btn.ghost.light { background: transparent; color: var(--white); border-color: var(--white); }
.btn.ghost.light:hover { background: var(--white); color: var(--noir); }
.btn.small { min-height: 38px; padding: 8px 16px; }
.btn.wide { width: 100%; }
.rtl .btn { letter-spacing: 0; font-size: .95rem; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.link.light { color: var(--white); }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.rtl .tag { letter-spacing: 0; font-size: .8rem; }

/* header */
.preview-bar { background: var(--olive); color: var(--white); text-align: center; font-size: .85rem; padding: 6px var(--gutter); }
.preview-bar a { margin-inline-start: 8px; }
.announce { background: var(--terracotta); color: var(--white); text-align: center; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px var(--gutter); }
.rtl .announce { letter-spacing: 0; font-size: .85rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ivory); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand img { width: 135px; height: auto; }
.main-nav { display: flex; gap: 22px; margin-inline-start: 12px; }
.main-nav a { text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.rtl .main-nav a { letter-spacing: 0; font-size: .95rem; }
.main-nav a:hover, .main-nav a.on { border-color: var(--terracotta); }
.tools { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.search input { width: 160px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 6px 2px; font-size: .9rem; }
.search input:focus { outline: none; border-color: var(--noir); }
.lang { text-decoration: none; font-size: .9rem; }
.lang[lang="ar"] { font-family: var(--ar); }
.cur { position: relative; font-size: .85rem; }
.cur summary { cursor: pointer; list-style: none; padding: 6px 4px; letter-spacing: .08em; }
.cur summary::-webkit-details-marker { display: none; }
.cur-menu { position: absolute; inset-inline-end: 0; top: 100%; background: var(--white); border: 1px solid var(--line); display: grid; min-width: 90px; z-index: 30; }
.cur-menu a { padding: 8px 14px; text-decoration: none; }
.cur-menu a:hover, .cur-menu a.on { background: var(--ivory); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; text-decoration: none; }
.count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--terracotta); color: var(--white); font-size: .7rem; line-height: 18px; text-align: center; font-weight: 500; }
.menu-btn { display: none; }

/* flash */
.flash { margin: 16px 0; padding: 12px 16px; border-inline-start: 3px solid; background: var(--white); }
.flash.ok { border-color: var(--olive); }
.flash.err { border-color: var(--terracotta); color: #8a2f12; }

/* home */
.hero { background: var(--terracotta); color: var(--white); padding: clamp(56px, 10vw, 120px) 0; }
.hero-inner { max-width: 760px; }
.hero .lead { font-size: 1.1rem; max-width: 560px; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn:not(.ghost) { background: var(--noir); border-color: var(--noir); }
.hero .btn:not(.ghost):hover { background: var(--white); color: var(--noir); border-color: var(--white); }
.values, .promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 48px; padding-bottom: 48px; text-align: center; }
.values p, .promise p { color: var(--taupe); margin: 0; }
.values .label, .promise .label { margin-bottom: 8px; }
.promise { border-top: 1px solid var(--line); }
.section { padding-top: 40px; padding-bottom: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.split { background: var(--olive); color: var(--white); padding: clamp(48px, 8vw, 96px) var(--gutter); }
.split-text { max-width: 640px; margin: 0 auto; text-align: center; }
.split-text p { opacity: .95; }
.split-text .btn { margin: 12px 12px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border: 1px solid var(--noir); text-decoration: none; border-radius: 2px; }
.chip:hover { background: var(--noir); color: var(--white); }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.card-img { position: relative; display: block; text-decoration: none; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-img:hover img { transform: scale(1.03); }
.badges { position: absolute; top: 10px; inset-inline-start: 10px; }
.badge { display: inline-block; background: var(--terracotta); color: var(--white); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; font-weight: 500; }
.rtl .badge { letter-spacing: 0; font-size: .75rem; }
.badge.olive { background: var(--olive); }
.badge.muted { background: var(--taupe); }
.card-body { padding-top: 12px; }
.card-body h3 { font-weight: 400; font-size: 1rem; margin: 0 0 4px; }
.card-body h3 a { text-decoration: none; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0; }
.price { font-weight: 500; white-space: nowrap; }
.placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--sand); color: var(--taupe); }
.placeholder svg { width: 42%; max-width: 160px; opacity: .55; }
.ph-mark { font-family: var(--sans); letter-spacing: .4em; font-size: .8rem; margin-top: 10px; }
.ph-note { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.rtl .ph-note { letter-spacing: 0; }

/* shop list */
.page-head { padding-top: 32px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding-bottom: 56px; }
.shop-layout .grid { grid-template-columns: repeat(3, 1fr); }
.filters label, .field { display: grid; gap: 6px; margin-bottom: 14px; font-size: .85rem; }
.filters summary { cursor: pointer; margin-bottom: 14px; }
select, input[type=text], input[type=email], input[type=number], input[type=search]:not(#q), input:not([type]), textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 2px; font-size: 1rem;
}
textarea { min-height: 0; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--noir); }
.filter-actions { display: flex; gap: 14px; align-items: center; }
.empty { padding: 48px 0; text-align: center; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 36px; }
.pagination .off { color: var(--line); }

/* product page */
.crumbs { padding-top: 20px; font-size: .8rem; color: var(--taupe); }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 6px; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-top: 16px; padding-bottom: 48px; }
.gallery-main { aspect-ratio: 4 / 5; background: var(--sand); }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--sand); }
.gallery-main [hidden] { display: none; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button { flex: 0 0 72px; height: 90px; padding: 0; border: 1px solid transparent; background: var(--sand); cursor: pointer; }
.thumbs button.on { border-color: var(--noir); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video { position: relative; }
.thumb-video span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; background: rgba(0, 0, 0, .28); }
.big-price { font-size: 1.4rem; margin-bottom: 4px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--noir); margin: 20px 0; }
.mode-switch button { padding: 12px; background: transparent; border: 0; cursor: pointer; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.rtl .mode-switch button { letter-spacing: 0; font-size: .95rem; }
.mode-switch button.on { background: var(--noir); color: var(--white); }
.buy-form { margin-top: 16px; }
.pick { border: 0; padding: 0; margin: 0 0 18px; }
.pick legend { font-size: .85rem; margin-bottom: 8px; display: flex; gap: 12px; align-items: baseline; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--sw); border: 1px solid var(--line); box-shadow: inset 0 0 0 3px var(--ivory); cursor: pointer; }
.swatch input:checked + span { border: 1px solid var(--noir); }
.swatch input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.sizes button { min-height: 44px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.sizes button.on { border-color: var(--noir); background: var(--noir); color: var(--white); }
.sizes button:disabled { color: #b9b1a7; background: transparent; text-decoration: line-through; cursor: not-allowed; }
.stock-note { min-height: 1.5em; font-size: .85rem; color: var(--olive); }
.stock-note.warn { color: var(--terracotta); }
.qty-row { display: flex; gap: 10px; }
.qty { width: 72px !important; text-align: center; flex: 0 0 72px; }
.custom-price { margin-bottom: 2px; }
.measure { border: 0; padding: 0; margin: 12px 0 8px; }
.measure legend { font-size: .85rem; margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.measure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
.desc { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.assurance { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--taupe); }
.assurance li { padding: 3px 0; }
.assurance li::before { content: "—"; margin-inline-end: 8px; color: var(--terracotta); }

/* cart and checkout */
.lines { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lines.plain .line { grid-template-columns: 1fr auto auto; }
.line-img { width: 72px; height: 90px; background: var(--sand); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-img .placeholder svg { width: 60%; }
.line-img .ph-mark, .line-img .ph-note { display: none; }
.line-info { display: grid; gap: 2px; min-width: 0; }
.line-qty { display: grid; justify-items: center; gap: 4px; }
.line-total { text-align: end; }
.has-problem { background: var(--terracotta-19); }
.problem { color: #8a2f12; font-size: .85rem; }
.cart-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sum > div { display: flex; gap: 24px; justify-content: flex-end; font-size: 1.1rem; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0 56px; flex-wrap: wrap; }
.checkout { padding-top: 32px; padding-bottom: 56px; }
.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.checkout-form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.checkout-form legend { margin-bottom: 12px; }
.phone { display: flex; gap: 8px; }
.phone select { flex: 0 0 96px; }
.radio-cards { display: grid; gap: 8px; margin-bottom: 14px; }
.radio-cards label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.radio-cards label:has(input:checked) { border-color: var(--noir); }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 18px; font-size: .9rem; }
.agree input { margin-top: 5px; }
.summary { background: var(--white); padding: 20px; border: 1px solid var(--line); }
.summary .line { grid-template-columns: 56px 1fr auto auto; }
.summary .line-img { width: 56px; height: 70px; }
.totals { margin: 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 1.15rem; font-weight: 500; }
.totals .omr { color: var(--taupe); font-size: .9rem; }
.stack { display: grid; gap: 4px; max-width: 420px; }

/* order page */
.order-page { padding-top: 40px; padding-bottom: 56px; }
.order-page .summary { margin: 24px 0; }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; counter-reset: s; }
.steps li { position: relative; padding-top: 30px; font-size: .8rem; text-align: center; color: var(--taupe); }
.steps li::before { content: ""; position: absolute; top: 8px; inset-inline: 0; height: 2px; background: var(--line); }
.steps li::after { content: ""; position: absolute; top: 2px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--line); }
.steps li.done { color: var(--noir); }
.steps li.done::before { background: var(--olive); }
.steps li.done::after { background: var(--olive); border-color: var(--olive); }

/* information pages */
.prose { padding-top: 40px; padding-bottom: 64px; }
.prose h2.label { margin-top: 28px; }
.prose ul, .prose ol { padding-inline-start: 20px; }
.prose li { margin-bottom: 8px; }
.contact-list { list-style: none; padding: 0 !important; }
.contact-list .label { display: inline-block; min-width: 120px; color: var(--taupe); }
table.simple, table.chart { border-collapse: collapse; width: 100%; background: var(--white); }
table.simple th, table.simple td { border-bottom: 1px solid var(--line); padding: 12px; text-align: start; }
table.simple td { text-align: end; white-space: nowrap; }
.table-scroll { overflow-x: auto; margin: 20px 0 12px; }
table.chart th, table.chart td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.chart th { text-align: start; font-weight: 500; font-size: .85rem; }
table.chart tr.head { background: var(--terracotta); color: var(--white); }
table.chart tr:nth-child(odd):not(.head) { background: var(--ivory); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* footer */
.site-footer { background: var(--noir); color: var(--sand); padding: 48px 0 24px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h3 { color: var(--white); font-weight: 500; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.rtl .foot-grid h3 { letter-spacing: 0; font-size: .9rem; }
.foot-grid a { display: block; text-decoration: none; padding: 3px 0; font-size: .9rem; }
.foot-grid a:hover { color: var(--white); }
.foot-grid .tagline { font-size: .7rem; letter-spacing: .3em; margin: 12px 0 6px; color: var(--white); }
.foot-grid .muted { color: #a8a4a0; font-size: .9rem; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #333; margin-top: 32px; padding-top: 16px; font-size: .8rem; color: #a8a4a0; }

/* tablet and phone */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout .grid { grid-template-columns: repeat(2, 1fr); }
  .search input { width: 110px; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0; margin: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .bar { position: relative; gap: 8px; }
  .brand { margin-inline-end: auto; }
  .brand img { width: 110px; }
  .tools { gap: 8px; margin: 0; }
  .search { display: none; }
  .main-nav.open + .tools .search, .search.show { display: block; }
  .product, .checkout-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; gap: 8px; }
  .filters details:not([open]) { margin-bottom: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .values, .promise { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .grid, .shop-layout .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .measure-grid { grid-template-columns: repeat(2, 1fr); }
  .line { grid-template-columns: 56px 1fr auto; }
  .line-img { width: 56px; height: 70px; }
  .line .line-total { grid-column: 2 / -1; text-align: start; }
  .foot-grid { grid-template-columns: 1fr; }
  .steps li { font-size: .7rem; }
  .lang { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
