@font-face{font-family:StoreArabic;src:url("fonts/NotoSansArabic-Regular.ttf");font-display:swap}
:root{--walnut:#563522;--beige:#f2e4cf}
body{background:var(--beige);color:var(--walnut);font-family:StoreArabic,Tahoma,sans-serif}
.delivery-note{background:var(--walnut);color:#fff;text-align:center;font-size:.82rem;padding:5px 12px}
header.masthead{display:grid;grid-template-columns:1fr auto 1fr;direction:rtl;gap:0;align-items:center;padding:17px max(14px,4vw);background:var(--beige);color:var(--walnut);border:0;border-bottom:1px solid #d4bfa5}
.wordmark{display:grid;justify-items:center;color:inherit;text-decoration:none}
.masthead .wordmark strong{font:700 clamp(1.4rem,5.3vw,2.55rem)/1.1 Georgia,serif;letter-spacing:.075em}
.wordmark span{font-size:.8rem;line-height:1.7}
.shop-menu{position:relative;justify-self:start}
.shop-menu summary,.utilities button{display:grid;place-items:center;cursor:pointer;width:40px;height:44px;position:relative;padding:0;color:var(--walnut);background:transparent}
.shop-menu summary{list-style:none}.shop-menu summary::-webkit-details-marker{display:none}
.shop-menu summary i{width:20px;height:14px;border-block:1.7px solid currentColor}
.shop-menu summary i:after{content:"";display:block;height:1.7px;background:currentColor;margin-top:4.4px}
.shop-menu nav{position:absolute;z-index:5;top:100%;right:0;background:var(--beige);border:1px solid #d1cbbd;width:210px;padding:6px 14px;box-shadow:0 7px 20px #0002}
.shop-menu a{display:block;padding:9px;color:inherit;text-decoration:none}
.utilities{display:flex;justify-self:end}.utilities #basket{display:flex;align-items:center;gap:7px;width:auto;min-width:44px;background:transparent;color:var(--walnut);font-size:.875rem;white-space:nowrap}
.utilities #basket i{display:block;width:16px;height:17px;border:1.5px solid;position:relative;margin-top:6px}
.utilities #basket i:before{content:"";position:absolute;left:3px;top:-7px;width:7px;height:7px;border:1.5px solid;border-radius:9px 9px 0 0}
.basket-summary{margin:8px 0;color:var(--walnut)}
.search-shortcut:before{content:"";width:13px;height:13px;border:1.7px solid;border-radius:50%}
.search-shortcut:after{content:"";width:8px;height:1.7px;background:currentColor;position:absolute;transform:rotate(45deg);left:25px;top:29px}
#sections{display:flex;justify-content:center;gap:clamp(12px,5vw,52px);margin:0;padding:0 10px;flex-wrap:nowrap;background:var(--beige);border-bottom:1px solid #d4bfa5}
#sections a,#sections a[aria-current]{border:0;border-radius:0;background:transparent;color:var(--walnut);padding:10px 0;white-space:nowrap;font-size:clamp(.85rem,3vw,1rem);min-height:44px;text-decoration:none}
#sections a[aria-current]{box-shadow:inset 0 -2px var(--walnut)}
.watch-tile .tile-price {
  display: block; padding: 0 10px 8px; color: #604326;
  font-size: .9rem; font-weight: normal;
}
.watch-tile .tile-name:has(+ .tile-price) { padding-bottom: 1px; }
#collection{scroll-margin-top:12px}
#watch-viewer{width:min(930px,95vw);max-height:92dvh;background:#fffaf3}
#watch-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"details photo" "details thumbs" "related related";gap:12px;padding:16px;align-items:start}
#watch-content .details{grid-area:details;padding:8px}
#watch-content .photo{grid-area:photo;width:100%;max-height:50dvh}
#watch-content .photo img{object-fit:contain}
#watch-content .photos{grid-area:thumbs;padding:0}
#watch-content .bar{padding:12px;background:#f3e5d3;border-radius:8px;margin:10px 0}
#watch-content .bar button{background:#603c29;color:white;min-height:44px}
.watch-specs{display:grid;grid-template-columns:auto 1fr;gap:5px 16px;margin:0}
.watch-specs dt{color:#6a5344}.watch-specs dd{margin:0}
.related-watches{grid-area:related;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border-top:1px solid #d9c8b3}
.related-watches h3{grid-column:1/-1;margin:12px 0 0}
.related-watches button{padding:0 0 8px;background:#f4e9d9;color:#422d21;font:inherit;font-size:.9rem;overflow:hidden}
.related-watches img{display:block;width:100%;aspect-ratio:1;object-fit:cover;margin-bottom:5px}
@media(max-width:650px){
 #watch-content{display:flex;flex-direction:column;padding:10px;align-items:stretch}
 #watch-content .details{display:contents}
 #watch-content .bar{order:-3;margin:0}
 #watch-content .photo{order:1;align-self:center;width:min(100%,38dvh)}
 #watch-content .photos{order:2}
 #watch-content h3,#watch-content dl{order:3;margin-block:5px}
 .related-watches{order:4;grid-template-columns:repeat(2,minmax(0,1fr))}
 #watch-content .related-watches h3{order:0}
}
#watch-content .bar,.details .bar{flex-wrap:wrap}
#watch-content .bar .buy-now,.details .buy-now{background:#e9d5b8;color:#462d20;border:1px solid #87694f}
#customer-form{display:grid;gap:12px}#customer-form label{display:grid;gap:4px}
#customer-form input,#customer-form select,#customer-form textarea,#extra-product{font:inherit;padding:8px;width:100%;border:1px solid #aa8c70;border-radius:6px}
#recipient{white-space:pre-line;overflow-wrap:anywhere}
.order-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #d9c8b3}
.order-line strong{width:100%}#order-review>label{display:block;margin-top:16px}
#order-review #total{margin:16px 0;font-weight:bold}#extra-add{margin-top:6px}
/* Leave room after the final tracking space so iOS keeps the leading digit visible. */
.phone-boxes{
  --digits:11; position:relative; display:block; width:100%; min-width:0; container-type:inline-size;
}
#customer-form .phone-boxes input{
  --cell:min(36px,calc((100cqw - 2px) / (var(--digits) + 0.5)));
  --inset:calc((var(--cell) - 1ch) / 2);
  display:block; box-sizing:border-box; width:calc(var(--cell) * (var(--digits) + 0.5) + 2px);
  max-width:100%; height:44px; direction:ltr; text-align:left; border:0; border-radius:4px;
  padding:0 0 0 var(--inset); font:20px/44px monospace; font-variant-numeric:tabular-nums;
  letter-spacing:calc(var(--cell) - 1ch); color:var(--text); caret-color:var(--gold);
  background:transparent; position:relative;
}
.phone-boxes::before{
  --cell:min(36px,calc((100cqw - 2px) / (var(--digits) + 0.5)));
  content:""; position:absolute; inset:0 auto 0 0; width:calc(var(--cell) * var(--digits));
  pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 44' preserveAspectRatio='none'%3E%3Crect x='1' y='1' width='34' height='42' rx='3' fill='%23242426' stroke='%2385765e'/%3E%3C/svg%3E") left center / var(--cell) 100% repeat-x;
  margin-right:0;
}
#customer-form .phone-boxes input:focus-visible{outline:2px solid #86623f;outline-offset:2px}

.product-tile { position: relative; min-width: 0; }
.related-watches .product-tile > button:first-child { width: 100%; height: 100%; }
.product-tile > .quick-add {
  position: absolute; inset-block-start: 8px; inset-inline-end: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  width: auto; height: 44px; padding: 0 10px; aspect-ratio: auto;
  white-space: nowrap; font-size: .875rem; line-height: 1.3;
  overflow: visible; border: 1px solid #d9c8b3; border-radius: 9px;
  background: #fffaf3; color: #563522; box-shadow: 0 2px 6px #28190f35;
  touch-action: manipulation;
}
.product-tile > .quick-add:focus-visible { outline: 3px solid #a36630; outline-offset: 1px; }
.product-tile > .quick-add:active { transform: scale(.95); }
.product-tile > .quick-add:disabled { background: #ecdfce; cursor: default; }

.catalog-tools {
  display: flex; align-items: start; gap: 12px; margin: 0 0 12px;
}
.catalog-tools #catalog-form { flex: 1; min-width: 0; }
.catalog-search-box { position: relative; }
.catalog-search-box::before, .catalog-search-box::after {
  content: ""; position: absolute; pointer-events: none; color: #755b46;
}
.catalog-search-box::before {
  inset-inline-start: 17px; top: calc(50% - 8px);
  width: 12px; height: 12px; border: 1.7px solid; border-radius: 50%;
}
.catalog-search-box::after {
  inset-inline-start: 29px; top: calc(50% + 6px); width: 7px; height: 1.7px;
  background: currentColor; transform: rotate(-45deg);
}
.catalog-tools #catalog-search {
  height: 36px; padding: 3px 40px 3px 10px; margin: 0;
  background: white; border: 1px solid #c9b49a; border-radius: 8px;
}
.catalog-tools #suggestions { margin: 6px 0 0; max-height: 15rem; overflow-y: auto; }
.catalog-tools #suggestions:not([hidden]) { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(5.5rem,100%),1fr)); gap:.35rem; padding:.35rem; }
.catalog-tools #suggestions button { padding:0; aspect-ratio:1; overflow:hidden; border-radius:.4rem; }
.catalog-tools #suggestions img { display:block; width:100%; height:100%; object-fit:contain; background:#202022; }
.catalog-tools #suggestions button:focus-visible { outline:2px solid var(--gold); outline-offset:-2px; }

#catalog-filters {
  display: grid; grid-template-columns: auto auto minmax(96px, 1fr);
  gap: 6px 12px; align-items: center;
}
.catalog-choice { min-width: 0; border: 0; margin: 0; padding: 0; }
.catalog-choice legend {
  float: inline-start; margin-inline-end: 5px; padding: 0;
  color: #684a36; font-size: .875rem; line-height: 36px;
}
.brand-field > span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.choice-strip {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px; border: 1px solid #cdb89d; border-radius: 7px; background: #fffaf3;
}
.choice-strip label { position: relative; min-width: 0; cursor: pointer; }
.choice-strip input {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.choice-strip span {
  display: grid; place-items: center; min-height: 30px; padding: 2px 7px;
  white-space: nowrap; font-size: .875rem; line-height: 1.45; border-radius: 4px; color: #503b2e;
}
.choice-strip input:checked + span, .catalog-tools #brands button[aria-pressed=true] {
  color: white; background: #563522;
}
.choice-strip input:focus-visible + span, #brand-toggle:focus-visible, .catalog-tools #brands button:focus-visible {
  outline: 2px solid #ac732e; outline-offset: 1px;
}
.brand-field { position: relative; min-width: 0; }
#brand-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 7px;
  min-height: 36px; width: 100%; padding: 3px 8px; white-space: nowrap; font-size: .875rem;
  border: 1px solid #c9b49a; border-radius: 7px; background: #fffaf3; color: #563522;
}
#brand-toggle::after {
  content: ""; width: 8px; height: 8px; border: solid currentColor;
  border-width: 0 1.7px 1.7px 0; transform: translateY(-2px) rotate(45deg);
}
#brand-toggle[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
.catalog-tools #brands {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  gap: 4px; margin: 0; padding-top: 6px; border-top: 1px solid #e2d4c3;
}
.catalog-tools #brands button {
  justify-content: center; min-height: 32px; border-radius: 6px;
  padding: 3px 6px; background: #fffaf3; color: #563522; font-size: .875rem;
}
@media (min-width: 961px) {
  #catalog-filters { width: min(65%, 43rem); }
}
@media (max-width: 960px) {
  .catalog-tools { display: block; }
  #catalog-filters { margin-top: 6px; grid-template-columns: auto auto auto; justify-content: start; }
}
@media (max-width: 650px) {
  #catalog-filters { grid-template-columns: auto auto; gap: 5px 8px; }
  #grade-group { grid-column: 1 / -1; grid-row: 2; }
  .brand-field { grid-column: 2; grid-row: 1; }
  .choice-strip span { padding-inline: 5px; }
  .catalog-tools #brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  #catalog-filters { grid-template-columns: minmax(0, 1fr) auto; column-gap: 4px; }
  .choice-strip span { padding-inline: 3px; }
}

.watch-tile.eyewear-tile h2 img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f6f6f6;
}
#watch-content.eyewear-detail .photo {
  width: 100%;
  aspect-ratio: 1.7;
  background: #f6f6f6;
}
#watch-content .eyewear-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#watch-content .eyewear-colors button {
  display: grid;
  width: 100%;
  height: auto;
  padding: 3px;
  text-align: center;
}
#watch-content .eyewear-colors img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.25;
  object-fit: contain;
  background: #f6f6f6;
}
#watch-content .eyewear-colors span { direction: ltr; font-size: .8rem; }
.eyewear-sheet { display: block; margin-block: .75rem; }
.order-line .eyewear-order-photo { object-fit: contain; background: #f6f6f6; }
@media(max-width:650px) {
  #watch-content.eyewear-detail .photo { order: -6; max-height: 27dvh; }
  #watch-content.eyewear-detail .photos { order: -5; }
  #watch-content.eyewear-detail .details > small { order: -4; margin: 0; }
}

/* Match the studio surface around the new landscape product photos. */
.watch-tile.eyewear-tile h2 img[src^="eyewear/charcoal/"],
#watch-content.eyewear-detail .photo:has(img[src^="eyewear/charcoal/"]),
#watch-content .eyewear-colors img[src^="eyewear/charcoal/"],
.order-line .eyewear-order-photo[src^="eyewear/charcoal/"] { background: #484644; }

#photo-send .action { display: inline-block; margin-block: .5rem; }
#photo-send p { margin-block: .4rem; }
#photo-attachments { margin-block-start: 1rem; }
#photo-attachments summary { cursor: pointer; }
#photo-files a { display: block; padding-block: .3rem; }
