/* ============================================================
   Bawla x Stitch design layer (on top of Origins base)
   Tokens: bg #faf9f6, cards #fff r4 shadow-sm, black square
   buttons r0, gold chips #ffdea4/#785d24, hairlines #c4c7c7,
   footer light w/ top hairline. Fonts: Noto Kufi (headings),
   Almarai (body), Amiri (wordmark), Material Symbols (icons).
   ============================================================ */

:root {
  --bw-bg: #faf9f6;
  --bw-card: #ffffff;
  --bw-low: #f4f3f0;
  --bw-container: #efeeeb;
  --bw-high: #e9e8e5;
  --bw-ink: #1a1c1a;
  --bw-ink-2: #444748;
  --bw-outline: #747878;
  --bw-hairline: #c4c7c7;
  --bw-gold: #755a21;
  --bw-gold-chip: #ffdea4;
  --bw-gold-text: #785d24;
  --bw-gold-dim: #e6c27e;
  --bw-dark: #1c1b1b;
  --bw-dark-text: #858383;
  --bw-beige: #ebe1d4;
  --bw-radius: 4px;
  --bw-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  --bw-shadow-soft: 0 1px 8px rgb(0 0 0 / 0.03);
  --bw-font-head: 'Noto Kufi Arabic', 'Almarai', sans-serif;
  --bw-font-body: 'Almarai', sans-serif;
  --bw-font-mark: 'Amiri', serif;
  --bw-gutter: 32px;
  --bw-page: 1200px;
}

html { background: var(--bw-bg); }
body {
  background: var(--bw-bg) !important;
  color: var(--bw-ink);
  font-family: var(--bw-font-body) !important;
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, .h1, .h2, .h3, yc-section-head h2 {
  font-family: var(--bw-font-head);
  color: var(--bw-ink);
  font-weight: 500;
  letter-spacing: 0;
}

/* Material Symbols helper */
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  direction: ltr;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-smoothing: antialiased;
}

/* ---------- generic overrides ---------- */
yc-section .section-core, .main-container { background: transparent; }

/* Buttons: square black */
.yc-btn.primary, button.primary, [data-buy-button],
.product-add-to-cart button, .express-checkout .place-order button {
  background: #000 !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  padding: 14px 24px !important;
  border: none !important;
  box-shadow: none !important;
}
.yc-btn.primary:hover, button.primary:hover, [data-buy-button]:hover {
  background: #1c1b1b !important;
}
.yc-btn.secondary {
  border-radius: 0 !important;
  border: 1px solid var(--bw-ink) !important;
  background: transparent !important;
  color: var(--bw-ink) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
}

/* Section head: eyebrow + title, view-all on the far side */
yc-section-head { display: block; margin-bottom: 28px; }
yc-section-head h2 { font-size: 28px; line-height: 1.35; margin: 4px 0 0; }

.bw-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.bw-section-head .eyebrow {
  font-size: 12px; color: var(--bw-gold-text); font-weight: 500;
}
.bw-section-head h2 { font-size: 28px; margin: 4px 0 0; }
.bw-section-head .view-all {
  font-size: 13px; color: var(--bw-ink); text-decoration: none;
  border-bottom: 1px solid var(--bw-hairline); padding-bottom: 2px;
  white-space: nowrap;
}
.bw-section-head .view-all:hover { border-color: var(--bw-ink); }

/* Gold chip */
.bw-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bw-gold-chip); color: var(--bw-gold-text);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: var(--bw-radius);
}
.bw-chip.plain { background: transparent; color: var(--bw-ink-2); padding: 4px 0; }

/* ---------- announcement bar ---------- */
#youcan-section--announcement-bar .announcement,
.announcement {
  background: var(--bw-container) !important;
  padding: 8px 16px !important;
}
.announcement .message {
  font-size: 12px !important; font-weight: 500; color: var(--bw-ink) !important;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.announcement .message::before {
  content: "✳"; color: var(--bw-gold); font-size: 12px;
}

/* ---------- header ---------- */
.bw-header {
  background: var(--bw-bg);
  border-bottom: 1px solid var(--bw-hairline);
  position: sticky; top: 0; z-index: 60;
}
.bw-header .wrap {
  max-width: var(--bw-page); margin: 0 auto; padding: 14px var(--bw-gutter);
  display: flex; align-items: center; gap: 24px;
}
.bw-header .logo a { text-decoration: none; color: var(--bw-ink); display: flex; flex-direction: column; line-height: 1; }
.bw-header .logo .ar { font-family: var(--bw-font-mark); font-size: 26px; }
.bw-header .logo .latin { font-size: 9px; letter-spacing: 0.35em; color: var(--bw-ink-2); margin-top: 3px; }
.bw-header .logo img { max-height: 40px; width: auto; }
.bw-header nav.main-nav { margin-inline-start: 16px; flex: 1; }
.bw-header nav.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.bw-header nav.main-nav a {
  text-decoration: none; color: var(--bw-ink); font-size: 13.5px; font-weight: 500;
  background: none; border: none; padding: 4px 0;
}
.bw-header nav.main-nav a:hover { color: var(--bw-gold); }
.bw-header nav.main-nav .sub-links { display: none; }
.bw-header .actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.bw-header .actions .icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--bw-ink); cursor: pointer; border-radius: 0;
}
.bw-header .actions .icon-btn:hover { background: var(--bw-low); }
.bw-header .search-bar { display: none; }
.bw-header .menu-toggle { display: none; }
@media (max-width: 900px) {
  .bw-header nav.main-nav ul.desktop-links { display: none; }
  .bw-header .menu-toggle { display: inline-flex; }
}

/* cart bubble inherits icon-btn look */
.bw-header yc-cart-bubble button, .bw-header yc-cart-bubble .yc-btn {
  background: transparent !important; border: none !important; color: var(--bw-ink) !important;
  width: 38px; height: 38px; padding: 0 !important;
}

/* ---------- hero ---------- */
.bw-hero .card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--bw-low); border-radius: var(--bw-radius); overflow: hidden;
}
.bw-hero .media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.bw-hero .content {
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.bw-hero .chips { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bw-hero h1 { font-size: 40px; line-height: 1.35; margin: 0; font-weight: 500; }
.bw-hero p.sub { font-size: 15px; color: var(--bw-ink-2); margin: 0; max-width: 46ch; }
.bw-hero .cta { margin-top: 8px; }
.bw-hero .cta a {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; padding: 14px 24px;
}
.bw-hero .cta a .ms { font-size: 16px; }
@media (max-width: 768px) {
  .bw-hero .card { grid-template-columns: 1fr; }
  .bw-hero .content { padding: 28px 20px; }
  .bw-hero h1 { font-size: 28px; line-height: 1.4; }
}

/* ---------- collection cards ---------- */
.bw-collections ul.items-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.bw-cat-card {
  display: flex; flex-direction: column; gap: 30px;
  background: var(--bw-card); border-radius: var(--bw-radius); box-shadow: var(--bw-shadow);
  padding: 20px; text-decoration: none; color: var(--bw-ink);
  transition: box-shadow 0.2s;
}
.bw-cat-card:hover { box-shadow: var(--bw-shadow-soft); }
.bw-cat-card .num { font-size: 12px; color: var(--bw-outline); }
.bw-cat-card .mid { display: flex; flex-direction: column; gap: 10px; }
.bw-cat-card .ms { font-size: 26px; color: var(--bw-ink); }
.bw-cat-card .name { font-size: 15px; font-weight: 600; }
.bw-cat-card .sub { font-size: 12px; color: var(--bw-outline); }
@media (max-width: 900px) { .bw-collections ul.items-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- product cards ---------- */
.items-grid { display: grid; grid-template-columns: repeat(var(--items-columns, 3), 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .items-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.product-card {
  background: var(--bw-card) !important;
  border: none !important;
  border-radius: var(--bw-radius) !important;
  box-shadow: var(--bw-shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card .img-link { display: block; position: relative; aspect-ratio: 1/1; background: var(--bw-low); }
.product-card .img-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .badge {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  background: var(--bw-gold-chip) !important; color: var(--bw-gold-text) !important;
  font-size: 10.5px; font-weight: 600; padding: 4px 10px; border-radius: var(--bw-radius);
}
.product-card .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; text-align: start; }
.product-card .brand-line { font-size: 11px; color: var(--bw-outline); }
.product-card .title {
  font-size: 14px; font-weight: 600; color: var(--bw-ink); text-decoration: none;
  line-height: 1.5; background: none; border: none; padding: 0;
}
.product-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.product-card .price { display: flex; align-items: baseline; gap: 8px; }
.product-card .price .current { font-size: 13px; font-weight: 600; color: var(--bw-ink); }
.product-card .price .compare-at { font-size: 11px; color: var(--bw-outline); text-decoration: line-through; }
.product-card .add-btn, .product-card a.yc-btn.secondary, .product-card .product-add-to-cart button {
  display: inline-flex; align-items: center; gap: 6px;
  background: #000 !important; color: #fff !important; border: none !important;
  font-size: 11px !important; font-weight: 600; padding: 9px 14px !important; border-radius: 0 !important;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.product-card .add-btn .ms { font-size: 15px; }

/* ---------- quote band ---------- */
.bw-quote .band {
  background: var(--bw-low); border-radius: var(--bw-radius);
  padding: 56px 32px; text-align: center;
}
.bw-quote .kicker { font-size: 12px; color: var(--bw-gold-text); font-weight: 500; margin-bottom: 14px; }
.bw-quote blockquote {
  font-family: var(--bw-font-head); font-size: 26px; line-height: 1.6; font-weight: 500;
  margin: 0 auto; max-width: 34ch; color: var(--bw-ink);
}
.bw-quote .attrib { margin-top: 18px; font-size: 12px; color: var(--bw-ink-2); }
@media (max-width: 768px) { .bw-quote blockquote { font-size: 20px; } .bw-quote .band { padding: 36px 20px; } }

/* ---------- feature columns ---------- */
.bw-features .columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bw-feature {
  background: var(--bw-card); border-radius: var(--bw-radius); box-shadow: var(--bw-shadow);
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.bw-feature .ms { font-size: 24px; color: var(--bw-ink); margin-top: 2px; }
.bw-feature .t { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.bw-feature .s { font-size: 12px; color: var(--bw-outline); line-height: 1.6; }
@media (max-width: 900px) { .bw-features .columns { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer.bw-footer {
  background: var(--bw-bg) !important; color: var(--bw-ink) !important;
  border-top: 1px solid var(--bw-hairline);
  margin-top: 64px;
}
.bw-footer .wrap {
  max-width: var(--bw-page); margin: 0 auto; padding: 28px var(--bw-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.bw-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.bw-footer .links a { color: var(--bw-ink-2); font-size: 12.5px; text-decoration: none; background: none; border: none; padding: 0; }
.bw-footer .links a:hover { color: var(--bw-ink); }
.bw-footer .brand { display: flex; align-items: baseline; gap: 10px; color: var(--bw-ink); }
.bw-footer .brand .ar { font-family: var(--bw-font-mark); font-size: 22px; }
.bw-footer .brand .copy { font-size: 11px; letter-spacing: 0.08em; color: var(--bw-ink-2); }
.bw-footer .social-links { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.bw-footer .social-links a { color: var(--bw-ink-2) !important; background: none !important; border: none !important; }
.bw-footer .social-links a:hover { color: var(--bw-ink) !important; }

/* ---------- breadcrumbs ---------- */
.bw-crumbs { font-size: 12px; color: var(--bw-outline); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.bw-crumbs a { color: var(--bw-outline); text-decoration: none; }
.bw-crumbs a:hover { color: var(--bw-ink); }
.bw-crumbs .sep { color: var(--bw-hairline); }

/* ---------- single product ---------- */
yc-product.single-product {
  display: grid; grid-template-columns: 5fr 6fr; gap: 24px; align-items: start;
}
@media (max-width: 900px) { yc-product.single-product { grid-template-columns: 1fr; } }

yc-product-info.bw-buybox {
  background: var(--bw-card); border-radius: var(--bw-radius); box-shadow: var(--bw-shadow);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
yc-product-info .eyebrow { font-size: 12px; color: var(--bw-gold-text); font-weight: 500; display: flex; gap: 8px; align-items: center; }
yc-product-info h1.title, yc-product-info .h2 { font-size: 28px; line-height: 1.45; margin: 0; font-family: var(--bw-font-head); font-weight: 500; }
yc-product-info .price { display: flex; align-items: center; gap: 12px; }
yc-product-info .price .current { font-size: 22px !important; font-weight: 600; font-family: var(--bw-font-head); }
yc-product-info .price .compare-at { font-size: 14px; color: var(--bw-outline); text-decoration: line-through; }
yc-product-info .description { font-size: 14px; color: var(--bw-ink-2); line-height: 1.8; }

yc-product-media.bw-gallery {
  background: var(--bw-card); border-radius: var(--bw-radius); box-shadow: var(--bw-shadow);
  padding: 16px;
}
yc-product-media .main-image { border-radius: var(--bw-radius); overflow: hidden; background: var(--bw-low); }
yc-product-media .main-image img { width: 100%; display: block; }
yc-product-media .gallery { margin-top: 12px; }
yc-product-media .gallery label.image { border-radius: var(--bw-radius); overflow: hidden; }

/* variants */
yc-variants .variant .label { font-size: 12px; font-weight: 600; color: var(--bw-ink-2); display: block; margin-bottom: 8px; }
yc-variants input + label, yc-variants .variant-toggle label {
  border-radius: var(--bw-radius) !important; border-color: var(--bw-hairline) !important;
}

/* accordions */
details.accordion { border: none !important; border-bottom: 1px solid var(--bw-high) !important; border-radius: 0 !important; background: transparent !important; }
details.accordion summary { padding: 14px 0 !important; display: flex; align-items: center; gap: 10px; }
details.accordion summary .title { font-size: 14px; font-weight: 600; }
details.accordion .content { font-size: 13px; color: var(--bw-ink-2); padding-bottom: 16px; line-height: 1.8; }
.bw-accordions { counter-reset: acc; }
.bw-accordions details.accordion summary::before {
  counter-increment: acc; content: counter(acc, decimal-leading-zero);
  font-size: 11px; color: var(--bw-outline); min-width: 20px;
}

/* express checkout (COD) */
.express-checkout { display: flex; flex-direction: column; gap: 12px; }
.express-checkout .header { font-size: 14px; font-weight: 600; }
.express-checkout .fields { display: flex; flex-direction: column; gap: 10px; }
.express-checkout .field label { font-size: 12px; color: var(--bw-ink-2); display: block; margin-bottom: 4px; }
.express-checkout .field input, .express-checkout .field textarea {
  width: 100%; border: 1px solid var(--bw-hairline) !important; border-radius: var(--bw-radius) !important;
  padding: 12px 14px !important; font-size: 14px; background: #fff; font-family: var(--bw-font-body);
}
.express-checkout .field input:focus { border-color: var(--bw-ink) !important; outline: none; }
.buy-area .place-order { display: flex; gap: 10px; align-items: stretch; margin-top: 4px; }
.buy-area .place-order button[data-buy-button] { flex: 1; }
yc-quantity-control, .buy-area yc-quantity-control {
  border: 1px solid var(--bw-hairline) !important; border-radius: 0 !important;
}

/* trust row under gallery */
.bw-trust { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.bw-trust .item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--bw-ink-2); }
.bw-trust .ms { font-size: 18px; color: var(--bw-gold); }

/* related products head */
.bw-related-note { font-size: 12px; color: var(--bw-gold-text); }

/* page width for sections */
yc-section .section-core { max-width: var(--bw-page); margin: 0 auto; padding-inline: var(--bw-gutter); }
@media (max-width: 768px) { yc-section .section-core { padding-inline: 20px; } }

/* misc links */
a { color: var(--bw-ink); }

/* specificity tie-breakers vs featured-product.css (section css loads later) */
.single-product yc-product-media.bw-gallery {
  position: static;
  --media-main-image-border: none;
}
.single-product yc-product-info.bw-buybox { gap: 16px; }
