/* Recreation of Aldaham's Salla product page (theme 581928698) for the 3D viewer demo. */
:root {
  --color-primary: #d8c082;
  --color-primary-dark: #b29a5c;
  --color-primary-light: #fee6a8;
  --color-primary-reverse: #594103;
  --text: #111827;
  --text-2: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f1f1f1;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --ok: #16a34a;
  --sale: #dc2626;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: #000;
  font-family: 'Almarai', -apple-system, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.demo-strip {
  background: #1f1a10; color: #f3e7c6; font-size: 12.5px; text-align: center;
  padding: 7px 16px; letter-spacing: 0;
}
.demo-strip b { color: var(--color-primary); font-weight: 700; }

/* header */
.site-header { border-bottom: 1px solid var(--line-soft); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header__inner {
  max-width: 1280px; margin: 0 auto; height: 84px; padding: 0 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.site-header__start { display: flex; align-items: center; gap: 18px; }
.site-header__end { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.site-header__logo img { height: 34px; width: auto; }
.icon-btn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; color: #111; cursor: pointer; padding: 0; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .count {
  position: absolute; top: -2px; inset-inline-end: -4px; min-width: 18px; height: 18px; border-radius: 999px;
  background: #e11d48; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
}
.site-nav { max-width: 1280px; margin: 0 auto; padding: 0 16px 12px; display: flex; gap: 26px; justify-content: center; font-size: 14px; color: #222; flex-wrap: wrap; }
.site-nav a:hover { color: var(--color-primary-dark); }

/* breadcrumb */
.breadcrumb { max-width: 1280px; margin: 0 auto; padding: 18px 16px 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #111; }
.breadcrumb .sep { color: #9ca3af; font-size: 11px; }

/* product layout */
.product-single { max-width: 1280px; margin: 0 auto; padding: 16px 16px 60px; }
.product-single__columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.product-single__slider { position: sticky; top: 100px; }
.product-single__main-media { height: 650px; position: relative; }

/* salla-slider replica */
salla-slider { display: flex; gap: 14px; height: 100%; }
salla-slider .s-slider-container { flex: 1 1 auto; min-width: 0; height: 100%; border-radius: 6px; background: #fff; }
salla-slider .s-slider-container .swiper-slide { height: 100%; display: grid; place-items: center; background: #fff; }
salla-slider .magnify-wrapper { display: grid; place-items: center; width: 100%; height: 100%; }
salla-slider .product-single__slide-image { width: 100%; height: 100%; object-fit: contain; }
salla-slider .s-slider-thumbs { flex: 0 0 92px; height: 100%; order: -1; }
salla-slider .s-slider-thumbs-container { height: 100%; }
salla-slider .s-slider-thumbs .swiper-slide {
  height: 120px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff;
  opacity: .9; transition: border-color .15s, opacity .15s;
}
salla-slider .s-slider-thumbs .swiper-slide-thumb-active { border-color: var(--color-primary); opacity: 1; box-shadow: 0 0 0 1px var(--color-primary); }
salla-slider .product-single__thumb-image { width: 100%; height: 100%; object-fit: contain; }

.media-actions { position: absolute; top: 14px; inset-inline-end: 112px; display: flex; gap: 10px; z-index: 10; }
.media-actions .icon-btn { width: 40px; height: 40px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.media-actions .icon-btn svg { width: 17px; height: 17px; }

/* info column */
.brand-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; }
.brand-card img { width: 64px; height: auto; }
.brand-card p { margin: 0; font-size: 14px; color: #111; }
.brand-card a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.product-title { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.5; margin: 0 0 4px; }
.product-subtitle { margin: 0 0 6px; color: var(--text-2); font-size: 15px; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 2px; }
.price { font-size: 20px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.price .riyal { width: .82em; height: .9em; display: inline-block; background: currentColor; -webkit-mask: url(img/riyal.svg) center/contain no-repeat; mask: url(img/riyal.svg) center/contain no-repeat; }
.price.is-sale { color: var(--sale); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 15px; display: inline-flex; align-items: center; gap: 3px; }
.price-old .riyal { width: .82em; height: .9em; display: inline-block; background: currentColor; -webkit-mask: url(img/riyal.svg) center/contain no-repeat; mask: url(img/riyal.svg) center/contain no-repeat; }
.tax-note { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.stock { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 14px; margin-bottom: 18px; }
.stock svg { width: 17px; height: 17px; }
.specs { list-style: disc; padding-inline-start: 22px; margin: 0 0 24px; font-size: 14.5px; line-height: 2.05; color: #111; }
.desc { font-size: 14.5px; line-height: 2; color: #111; margin-bottom: 18px; }
.desc h3 { font-size: 15px; margin: 18px 0 6px; }
.desc ul { padding-inline-start: 22px; margin: 0; }
.sku { display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; margin-bottom: 18px; }
.sku span:first-child { color: var(--muted); }
.buy-row { display: flex; gap: 12px; align-items: stretch; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty button { width: 42px; height: 48px; border: 0; background: var(--bg-soft); font-size: 18px; cursor: pointer; color: #111; }
.qty input { width: 46px; border: 0; text-align: center; font: inherit; font-size: 15px; background: #fff; }
.btn-primary {
  flex: 1; height: 50px; border: 0; border-radius: 6px; background: var(--color-primary); color: var(--color-primary-reverse);
  font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { background: #cfb574; }
.btn-primary svg { width: 19px; height: 19px; }
.installments { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.installments b { color: #111; }
.three-d-note {
  margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; background: #fbf8ef; border: 1px solid #efe5c9; border-radius: 8px;
  padding: 12px 14px; font-size: 13px; color: #5d4c1d; line-height: 1.8;
}
.three-d-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--color-primary-dark); }

.site-footer { border-top: 1px solid var(--line-soft); padding: 26px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* responsive (Salla's mobile layout: gallery full width, thumbs below) */
@media (max-width: 1023px) {
  .product-single__columns { grid-template-columns: 1fr; gap: 22px; }
  .product-single__slider { position: static; }
}
@media (max-width: 767px) {
  .site-header__inner { height: 64px; }
  .site-header__logo img { height: 26px; }
  .site-nav { display: none; }
  .product-single { padding: 8px 0 40px; }
  .product-single__info { padding: 0 16px; }
  .breadcrumb { padding: 12px 16px 6px; font-size: 12px; }
  .product-single__main-media { height: auto; }
  salla-slider { flex-direction: column; gap: 10px; height: auto; }
  salla-slider .s-slider-container { width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 0; }
  salla-slider .s-slider-thumbs { order: 0; flex: none; height: 78px; padding: 0 16px; }
  salla-slider .s-slider-thumbs .swiper-slide { height: 76px; width: 76px; }
  .media-actions { inset-inline-end: 14px; }
  .product-title { font-size: 20px; }
}
