/* Chicona visual + commerce hotfix v4
   - clean product-card swatches
   - remove duplicate sidebar labels
   - normalize language controls
   - keep checkout item names readable
*/
:root{
  --cv4-ink:#111827;
  --cv4-muted:#6b7280;
  --cv4-gold:#8a621a;
  --cv4-line:rgba(17,24,39,.11);
  --cv4-soft:#f7f3ec;
}

/* ---------- Product card color swatches ---------- */
html body .product-card :is(.pc-swatches,.swatches,.product-swatches,.colors-row){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  width:100%!important;
  min-height:30px!important;
  height:30px!important;
  max-height:30px!important;
  margin:5px 0 4px!important;
  padding:0 4px!important;
  overflow:hidden!important;
  line-height:0!important;
  font-size:0!important;
}
html body .product-card :is(.pc-swatches,.swatches,.product-swatches,.colors-row) > .swatch-wrap{
  display:contents!important;
}
html body .product-card button.pc-swatch,
html body .product-card button.swatch.pc-swatch{
  position:relative!important;
  display:inline-grid!important;
  place-items:center!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  min-height:26px!important;
  flex:0 0 26px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  outline:0!important;
  border-radius:999px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:0!important;
  overflow:visible!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
html body .product-card button.pc-swatch > *,
html body .product-card .pc-swatches :is(.swatch-name,.color-name,.label,.name){
  display:none!important;
}
html body .product-card button.pc-swatch::before{
  content:""!important;
  display:block!important;
  width:17px!important;
  height:17px!important;
  min-width:17px!important;
  min-height:17px!important;
  border:1px solid rgba(17,24,39,.26)!important;
  border-radius:999px!important;
  background-color:var(--pc-swatch-color,#d1d5db)!important;
  background-image:var(--pc-swatch-image,none)!important;
  background-size:cover!important;
  background-position:center!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.92) inset!important;
}
html body .product-card button.pc-swatch::after{
  content:none!important;
  display:none!important;
}
html body .product-card button.pc-swatch.active::before,
html body .product-card button.pc-swatch[aria-pressed="true"]::before{
  border-color:var(--cv4-ink)!important;
  box-shadow:0 0 0 2px #fff,0 0 0 3px var(--cv4-gold)!important;
}
html body .product-card button.pc-swatch:focus-visible{
  outline:2px solid var(--cv4-gold)!important;
  outline-offset:1px!important;
}
html body .product-card .pc-swatches-more{
  display:inline-grid!important;
  place-items:center!important;
  min-width:25px!important;
  height:25px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:var(--cv4-soft)!important;
  color:#5d451d!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:800!important;
  flex:0 0 auto!important;
}

/* ---------- Sidebar: only the actual accordion title remains ---------- */
#sidebar .cv4-duplicate-sidebar-label{display:none!important;}
#sidebar details.sb-acc > summary .summary-title{
  min-width:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}
#sidebar details.sb-acc > summary .summary-title > span{
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1.35!important;
  white-space:normal!important;
}
html[lang^="ar"] #sidebar .i18n-en,
html[dir="rtl"] #sidebar .i18n-en{display:none!important;}
html[lang^="en"] #sidebar .i18n-ar,
html[dir="ltr"] #sidebar .i18n-ar{display:none!important;}
#sidebar .sb-body > .cv4-orphan-section-label{display:none!important;}

/* ---------- Language controls ---------- */
.page-lang-switch,
.lang-switch.cv4-lang-switch,
.flex.cv4-lang-switch{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  padding:3px!important;
  border:1px solid var(--cv4-line)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(15,23,42,.05)!important;
  flex:0 0 auto!important;
}
#btnAR,#btnEN,#btnAr,#btnEn,
.lang-seg button,
[data-lang="ar"],[data-lang="en"]{
  min-width:44px!important;
  min-height:38px!important;
  padding:7px 11px!important;
  border:0!important;
  border-radius:11px!important;
  background:transparent!important;
  color:#4b5563!important;
  box-shadow:none!important;
  text-decoration:none!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
#btnAR[aria-selected="true"],#btnEN[aria-selected="true"],
#btnAr[aria-selected="true"],#btnEn[aria-selected="true"],
.lang-seg button.active,.lang-seg button[aria-selected="true"],
[data-lang].active,[data-lang][aria-selected="true"]{
  background:#fff7e8!important;
  color:#6b4811!important;
  box-shadow:0 0 0 1px rgba(138,98,26,.30) inset!important;
}
#btnAR:focus-visible,#btnEN:focus-visible,#btnAr:focus-visible,#btnEn:focus-visible,
.lang-seg button:focus-visible,[data-lang]:focus-visible{
  outline:2px solid var(--cv4-gold)!important;
  outline-offset:2px!important;
}
@media(max-width:520px){
  .unified-page-head .cv4-lang-switch{margin-inline-start:auto!important;}
  #btnAR,#btnEN,#btnAr,#btnEn{min-width:40px!important;padding-inline:8px!important;font-size:12px!important;}
}

/* ---------- Checkout summary readability ---------- */
body[data-page-name="checkout"] #itemsList .line,
body[data-page-name="checkout"] #itemsList .cv3-checkout-line{
  min-width:0!important;
  width:100%!important;
}
body[data-page-name="checkout"] #itemsList .font-medium,
body[data-page-name="checkout"] #itemsList .cv3-product-name{
  max-width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  line-height:1.45!important;
}
body[data-page-name="checkout"] #itemsList .text-xs{
  overflow-wrap:normal!important;
  word-break:normal!important;
}
