/* ==========================================================================
   CWIRO theme for YouCan
   Layout and visual language inspired by the Kalles storefront.
   ========================================================================== */

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cw-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--cw-text);
  background: var(--cw-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cw-accent); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; color: var(--cw-primary); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.hidden { display: none !important; }

.cw-skip {
  position: absolute; inset-inline-start: 10px; top: -60px; z-index: 999;
  background: var(--cw-primary); color: #fff; padding: 10px 16px;
}
.cw-skip:focus { top: 10px; }

.cw-container {
  width: 100%;
  max-width: var(--cw-page-width);
  margin-inline: auto;
  padding-inline: 30px;
}
.cw-container--narrow { max-width: 860px; }
.cw-center { text-align: center; }
.cw-section { padding-top: var(--pt, 60px); padding-bottom: var(--pb, 60px); }

.cw-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.cw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 32px;
  background: var(--cw-btn-bg); color: var(--cw-btn-text);
  border: 2px solid var(--cw-btn-bg);
  border-radius: var(--cw-radius);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
  cursor: pointer; text-align: center;
}
.cw-btn:hover { background: var(--cw-accent); border-color: var(--cw-accent); color: #fff; }
.cw-btn--outline { background: transparent; color: var(--cw-primary); border-color: var(--cw-primary); }
.cw-btn--outline:hover { background: var(--cw-primary); border-color: var(--cw-primary); color: #fff; }
.cw-btn--light { background: #fff; color: var(--cw-primary); border-color: #fff; }
.cw-btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.cw-btn--whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.cw-btn--whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; }
.cw-btn--whatsapp .cw-icon { width: 22px; height: 22px; }
.cw-btn--lg { min-height: 54px; padding-inline: 40px; font-size: 14px; }
.cw-btn--sm { min-height: 38px; padding: 8px 18px; font-size: 12px; }
.cw-btn--block { display: flex; width: 100%; }
.cw-btn:disabled, .yc-btn:disabled { opacity: .45; cursor: not-allowed; }

.cw-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--cw-muted); text-decoration: underline; text-underline-offset: 3px;
}
.cw-link-btn:hover { color: var(--cw-primary); }
.cw-link-btn .cw-icon { width: 16px; height: 16px; }

.cw-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; transition: color .2s ease, background .2s ease;
}
.cw-icon-btn:hover { color: var(--cw-accent); }

.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%;
  animation: cw-spin .7s linear infinite;
}
@keyframes cw-spin { to { transform: rotate(360deg); } }

.cw-pulse { animation: cw-pulse 2.2s ease-in-out infinite; }
@keyframes cw-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(17, 17, 17, .35); }
  50% { box-shadow: 0 0 0 10px rgba(17, 17, 17, 0); }
}

/* ---------- Badges ---------- */
.cw-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; padding: 3px 10px; border-radius: 30px;
  font-size: 12px; font-weight: 600; line-height: 1.6; color: #fff;
}
.cw-badge--sale { background: var(--cw-sale); }
.cw-badge--new { background: var(--cw-accent); }
.cw-badge--soldout { background: #9b9b9b; }

/* ---------- Section titles ---------- */
.cw-title { text-align: center; margin-bottom: 40px; }
.cw-title--left { text-align: start; }
.cw-title__heading {
  display: inline-flex; align-items: center; gap: 18px;
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.01em;
}
.cw-title__heading::before,
.cw-title__heading::after {
  content: ""; width: 40px; height: 2px; background: var(--cw-primary);
}
.cw-title--left .cw-title__heading::before { display: none; }
.cw-title__sub {
  margin-top: 8px;
  font-family: var(--cw-font-accent); font-style: italic; font-size: 15px; color: var(--cw-muted);
}

/* ---------- Rich text ---------- */
.cw-rte { color: #555; }
.cw-rte p { margin-bottom: 1em; }
.cw-rte ul { list-style: disc; padding-inline-start: 1.2em; margin-bottom: 1em; }
.cw-rte ol { padding-inline-start: 1.2em; margin-bottom: 1em; }
.cw-rte a { text-decoration: underline; }
.cw-rte img { margin: 1em 0; }
.cw-rte h2, .cw-rte h3 { margin: 1.4em 0 .6em; }

/* ---------- Announcement bar ---------- */
.cw-announcement { background: var(--ann-bg); color: var(--ann-color); font-size: 12.5px; letter-spacing: .02em; }
.cw-announcement__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 40px; gap: 16px;
}
.cw-announcement__social .cw-social { justify-content: flex-start; }
.cw-announcement__social .cw-icon { width: 16px; height: 16px; }
.cw-announcement__slides { position: relative; height: 22px; overflow: hidden; text-align: center; min-width: 320px; }
.cw-announcement__item {
  position: absolute; inset: 0; margin: 0; line-height: 22px; white-space: nowrap;
  opacity: 0; transform: translateY(100%); transition: opacity .5s ease, transform .5s ease;
}
.cw-announcement__item.is-active { opacity: 1; transform: translateY(0); }
.cw-announcement__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.cw-announcement a:hover { color: inherit; opacity: .8; }
.cw-announcement__contact { display: flex; justify-content: flex-end; }
.cw-announcement__contact a { display: inline-flex; align-items: center; gap: 6px; }
.cw-announcement__contact .cw-icon { width: 15px; height: 15px; }

/* ---------- Social ---------- */
.cw-social { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; transition: background .2s ease, color .2s ease;
}
.cw-social .cw-icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.cw-header {
  position: relative; z-index: 50; background: var(--cw-bg);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: box-shadow .3s ease, transform .3s ease;
}
.cw-header--sticky { position: sticky; top: 0; }
.cw-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.cw-header__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 84px;
  transition: min-height .3s ease;
}
.cw-header.is-scrolled .cw-header__inner { min-height: 68px; }
.cw-header__burger { display: none; }
.cw-header__logo img { width: var(--cw-logo-width); max-width: 46vw; height: auto; }
.cw-header--logo-center .cw-header__inner { grid-template-columns: 1fr auto 1fr; }
.cw-header--logo-center .cw-header__logo { grid-column: 2; grid-row: 1; }
.cw-header--logo-center .cw-nav { grid-column: 1; grid-row: 1; justify-content: flex-start; }
.cw-header--logo-center .cw-header__icons { grid-column: 3; grid-row: 1; }

.cw-nav { display: flex; justify-content: center; }
.cw-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; }
.cw-nav__item { position: relative; }
.cw-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 28px 0;
  font-size: 14px; font-weight: 500; color: var(--cw-primary);
}
.cw-nav__link .cw-icon { width: 14px; height: 14px; }
.cw-nav__link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 22px; height: 2px; background: var(--cw-accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.cw-nav__link:hover::after, .cw-nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.cw-nav__badge {
  position: absolute; top: 12px; inset-inline-end: -18px; padding: 0 6px; border-radius: 3px;
  background: var(--badge); color: #fff; font-size: 9px; line-height: 16px; font-weight: 600; text-transform: uppercase;
}
.cw-nav__badge::after {
  content: ""; position: absolute; bottom: -4px; inset-inline-start: 6px;
  border: 2px solid transparent; border-top-color: var(--badge); border-inline-start-color: var(--badge);
}
.cw-nav__dropdown {
  position: absolute; top: 100%; inset-inline-start: -20px; min-width: 220px; padding: 14px 0;
  background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s ease;
}
.cw-nav__item:hover .cw-nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.cw-nav__dropdown a { display: block; padding: 7px 24px; font-size: 14px; color: #666; }
.cw-nav__dropdown a:hover { color: var(--cw-accent); padding-inline-start: 28px; }

.cw-header__icons { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.cw-count {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--cw-primary); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 18px; text-align: center;
}

.cw-header--transparent { position: absolute; inset-inline: 0; background: transparent; border-color: transparent; }
.cw-header--transparent.is-scrolled { position: fixed; background: var(--cw-bg); }

/* ---------- Drawers (menu) ---------- */
.cw-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.cw-drawer.is-open { visibility: visible; }
.cw-drawer__overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .35s ease;
}
.cw-drawer.is-open .cw-drawer__overlay { opacity: 1; }
.cw-drawer__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(360px, 86vw);
  display: flex; flex-direction: column; background: #fff; overflow-y: auto;
  transform: translateX(-100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
[dir="rtl"] .cw-drawer__panel { transform: translateX(100%); }
.cw-drawer.is-open .cw-drawer__panel { transform: none; }
.cw-drawer__head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  border-bottom: 1px solid #eee;
}
.cw-drawer__logo { width: 110px; }
.cw-drawer__search { display: flex; margin: 18px 20px 6px; border: 1px solid #ddd; }
.cw-drawer__search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; outline: none; }
.cw-drawer__search button { width: 46px; display: grid; place-items: center; }
.cw-mobile-nav { padding: 6px 0; }
.cw-mobile-nav > li { border-bottom: 1px solid #f1f1f1; }
.cw-mobile-nav a { display: block; padding: 14px 20px; font-weight: 500; color: var(--cw-primary); }
.cw-mobile-nav ul a { padding: 9px 34px; font-weight: 400; color: #666; }
.cw-drawer__foot { margin-top: auto; padding: 20px; display: grid; gap: 10px; background: var(--cw-soft); font-size: 14px; }
.cw-drawer__foot a { display: inline-flex; align-items: center; gap: 8px; }
.cw-drawer__foot .cw-icon { width: 18px; height: 18px; }

/* ---------- Cart drawer (classes driven by _cod_add-to-cart.js) ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 210; background: rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 220; width: min(420px, 92vw);
  display: flex; flex-direction: column; background: #fff;
  transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.open { transform: none; }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #eee;
}
.cart-drawer__head h2 { font-size: 18px; }
.cart-drawer__head h2 span { color: var(--cw-muted); font-weight: 400; }
.cart-drawer__shipping { padding: 16px 24px; background: var(--cw-soft); font-size: 13px; }
.cart-drawer__shipping p { margin-bottom: 8px; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-drawer__foot { padding: 20px 24px 24px; border-top: 1px solid #eee; display: grid; gap: 10px; }
.cart-drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.cart-drawer__total strong { font-size: 20px; color: var(--cw-primary); }
.cart-drawer__note { font-size: 12px; color: var(--cw-muted); margin: 0 0 4px; }
.cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px; text-align: center; color: var(--cw-muted); }
.cart-drawer__empty .cw-icon { width: 64px; height: 64px; color: #ccc; }

.cw-line-item { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid #f1f1f1; }
.cw-line-item__media img { width: 90px; height: 90px; object-fit: cover; background: var(--cw-soft); }
.cw-line-item__name { margin: 0 0 2px; font-weight: 500; color: var(--cw-primary); line-height: 1.4; }
.cw-line-item__variant { margin: 0; font-size: 13px; color: var(--cw-muted); }
.cw-line-item__price { margin: 4px 0 10px; font-weight: 600; }
.cw-line-item__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.cw-progress { height: 6px; border-radius: 6px; background: #e8e3de; overflow: hidden; }
.cw-progress span { display: block; height: 100%; border-radius: 6px; background: var(--cw-accent); transition: width .6s ease; }
.cw-progress--hot span { background: linear-gradient(90deg, var(--cw-sale), #f2994a); }

/* ---------- Quantity ---------- */
.cw-qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid #ddd; border-radius: var(--cw-radius); }
.cw-qty button { width: 42px; height: 100%; display: grid; place-items: center; color: #555; }
.cw-qty button:hover { color: var(--cw-primary); }
.cw-qty .cw-icon { width: 16px; height: 16px; }
.cw-qty input, .cw-qty span {
  width: 44px; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; outline: none;
}
.cw-qty input::-webkit-inner-spin-button, .cw-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cw-qty--sm { height: 36px; }
.cw-qty--sm button { width: 32px; }
.cw-qty--sm span { width: 30px; font-size: 13px; }

/* ---------- Search overlay ---------- */
.cw-search { position: fixed; inset: 0; z-index: 230; visibility: hidden; }
.cw-search.is-open { visibility: visible; }
.cw-search__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s ease; }
.cw-search.is-open .cw-search__overlay { opacity: 1; }
.cw-search__panel {
  position: relative; background: #fff; padding: 60px 0 50px;
  transform: translateY(-100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.cw-search.is-open .cw-search__panel { transform: none; }
.cw-search__close { position: absolute; top: 14px; inset-inline-end: 20px; }
.cw-search__title { text-align: center; font-size: 22px; font-weight: 600; color: var(--cw-primary); margin-bottom: 22px; }
.cw-search__form { display: flex; max-width: 700px; margin: 0 auto; border-bottom: 2px solid var(--cw-primary); }
.cw-search__form input { flex: 1; min-width: 0; border: 0; padding: 14px 4px; font-size: 18px; outline: none; background: transparent; }
.cw-search__form button { width: 50px; display: grid; place-items: center; }
.cw-search__form--page { margin-top: 20px; background: #fff; border: 0; }
.cw-search__form--page input { padding-inline: 18px; font-size: 15px; }
.cw-search__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--cw-muted); }
.cw-search__tags a { padding: 4px 14px; border: 1px solid #e3e3e3; border-radius: 30px; color: #555; }
.cw-search__tags a:hover { border-color: var(--cw-primary); color: var(--cw-primary); }

/* ---------- Slideshow ---------- */
.cw-slideshow { position: relative; overflow: hidden; background: #efe8e1; }
.cw-slideshow__track { position: relative; height: var(--slide-h, 620px); }
.cw-slideshow--medium { --slide-h: 520px; }
.cw-slideshow--large { --slide-h: 640px; }
.cw-slideshow--full { --slide-h: calc(100vh - 124px); }
.cw-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: var(--slide-bg); color: var(--slide-color);
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.cw-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.cw-slide__media { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 62%; overflow: hidden; }
.cw-slide__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--slide-bg) 0%, transparent 12%);
}
[dir="rtl"] .cw-slide__media::before { background: linear-gradient(-90deg, var(--slide-bg) 0%, transparent 12%); }
.cw-slide__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.08); transition: transform 7s ease;
}
.cw-slide.is-active .cw-slide__media img { transform: scale(1); }
.cw-slide--right .cw-slide__media { inset-inline-end: auto; inset-inline-start: 0; }
.cw-slide--right .cw-slide__media::before { background: linear-gradient(-90deg, var(--slide-bg) 0%, transparent 12%); }
.cw-slide--right .cw-slide__content { display: flex; justify-content: flex-end; }
.cw-slide--center .cw-slide__media { width: 100%; }
.cw-slide--center .cw-slide__media::before { background: rgba(0, 0, 0, .35); }
.cw-slide--center .cw-slide__content { text-align: center; }
.cw-slide--center .cw-slide__text { margin-inline: auto; color: #fff; }
.cw-slide--center .cw-slide__title { color: #fff; }
.cw-slide__content { position: relative; z-index: 2; }
.cw-slide__text { max-width: min(480px, 34vw); }
.cw-slide__sub {
  font-family: var(--cw-font-accent); font-style: italic; font-size: 18px; margin-bottom: 14px; color: inherit; opacity: .85;
}
.cw-slide__title {
  font-size: clamp(34px, 5vw, 62px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: inherit; margin-bottom: 18px;
}
.cw-slide__desc { font-size: 16px; opacity: .8; margin-bottom: 32px; max-width: 420px; }
.cw-slide--center .cw-slide__desc { margin-inline: auto; }
.cw-slide .cw-slide__sub, .cw-slide .cw-slide__title, .cw-slide .cw-slide__desc, .cw-slide .cw-btn {
  opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease;
}
.cw-slide.is-active .cw-slide__sub { opacity: .85; transform: none; transition-delay: .3s; }
.cw-slide.is-active .cw-slide__title { opacity: 1; transform: none; transition-delay: .45s; }
.cw-slide.is-active .cw-slide__desc { opacity: .8; transform: none; transition-delay: .6s; }
.cw-slide.is-active .cw-btn { opacity: 1; transform: none; transition-delay: .75s; }

.cw-slideshow__arrow {
  position: absolute; top: 50%; z-index: 3; width: 50px; height: 50px; margin-top: -25px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--cw-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08); opacity: 0; transition: all .3s ease;
}
.cw-slideshow:hover .cw-slideshow__arrow { opacity: 1; }
.cw-slideshow__arrow:hover { background: var(--cw-primary); color: #fff; }
.cw-slideshow__arrow--prev { inset-inline-start: 24px; }
.cw-slideshow__arrow--next { inset-inline-end: 24px; }
[dir="rtl"] .cw-slideshow__arrow .cw-icon { transform: scaleX(-1); }
.cw-slideshow__dots { position: absolute; bottom: 26px; inset-inline: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.cw-slideshow__dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cw-primary); opacity: .4; transition: all .3s ease; }
.cw-slideshow__dots button.is-active { opacity: 1; background: var(--cw-primary); width: 28px; border-radius: 10px; }

/* ---------- Features ---------- */
.cw-features { background: var(--feat-bg); }
.cw-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cw-features--bordered .cw-features__grid { border-bottom: 1px solid #eee; }
.cw-feature { display: flex; align-items: center; gap: 16px; padding: 34px 20px; }
.cw-features--bordered .cw-feature + .cw-feature { border-inline-start: 1px solid #eee; }
.cw-feature__icon { color: var(--cw-accent); }
.cw-feature__icon .cw-icon { width: 44px; height: 44px; }
.cw-feature__title { font-size: 15px; margin-bottom: 2px; }
.cw-feature__text { font-size: 13px; color: var(--cw-muted); margin: 0; line-height: 1.5; }

/* ---------- Collection banners ---------- */
.cw-banners__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cw-banners__grid--2 { grid-template-columns: repeat(2, 1fr); }
.cw-banners__grid--4 { grid-template-columns: repeat(4, 1fr); }
.cw-banners__grid--5 { grid-template-columns: repeat(6, 1fr); }
.cw-banners__grid--5 > .cw-banner { grid-column: span 2; }
.cw-banners__grid--5 > .cw-banner:nth-child(4) { grid-column: 2 / span 2; }
.cw-banner { position: relative; display: block; overflow: hidden; background: var(--cw-soft); }
.cw-banner__media { aspect-ratio: 4 / 5; overflow: hidden; }
.cw-banner__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.cw-banner:hover .cw-banner__media img { transform: scale(1.08); }
.cw-banner__label {
  position: absolute; bottom: 30px; inset-inline-start: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; min-width: 190px; padding: 14px 28px;
  background: #fff; text-align: center; transition: background .3s ease, color .3s ease;
}
[dir="rtl"] .cw-banner__label { transform: translateX(50%); }
.cw-banner:hover .cw-banner__label { background: var(--cw-primary); color: #fff; }
.cw-banner__title { font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: inherit; }
.cw-banner:hover .cw-banner__title { color: #fff; }
.cw-banner__caption { font-size: 12px; color: var(--cw-muted); }
.cw-banner:hover .cw-banner__caption { color: rgba(255, 255, 255, .7); }
.cw-banner:hover { color: inherit; }

/* ---------- Product grid & cards ---------- */
.cw-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 40px 30px; }
.cw-card { position: relative; }
.cw-card__media { position: relative; overflow: hidden; background: var(--cw-soft); aspect-ratio: 1 / 1; }
.cw-card__link { display: block; height: 100%; }
.cw-card__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.cw-card__img--hover { position: absolute; inset: 0; opacity: 0; }
.cw-card--has-hover:hover .cw-card__img--hover { opacity: 1; }
.cw-card:hover .cw-card__img { transform: scale(1.06); }
.cw-card__placeholder { display: grid; place-items: center; height: 100%; color: #ccc; }
.cw-card__placeholder .cw-icon { width: 70px; height: 70px; }
.cw-card__badges { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.cw-card__actions {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(20px); transition: all .35s ease;
}
[dir="rtl"] .cw-card__actions { transform: translateX(-20px); }
.cw-card:hover .cw-card__actions { opacity: 1; transform: none; }
.cw-card__action {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--cw-primary); box-shadow: 0 3px 12px rgba(0, 0, 0, .08); transition: all .25s ease;
}
.cw-card__action:hover { background: var(--cw-primary); color: #fff; }
.cw-card__action .cw-icon { width: 18px; height: 18px; }
.cw-card__quick {
  position: absolute; inset-inline: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 14px; background: #fff; color: var(--cw-primary);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--cw-radius);
  opacity: 0; transform: translateY(20px); transition: all .35s ease;
}
.cw-card:hover .cw-card__quick { opacity: 1; transform: none; }
.cw-card__quick:hover { background: var(--cw-primary); color: #fff; }
.cw-card__quick.is-loading { pointer-events: none; opacity: .7; }
.cw-card__info { padding-top: 16px; text-align: center; }
.cw-card__title { font-size: 15px; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.cw-card__title a { color: var(--cw-primary); }
.cw-card__title a:hover { color: var(--cw-accent); }
.cw-card__price { display: flex; justify-content: center; align-items: baseline; gap: 10px; font-size: 15px; }
.cw-card__price del { color: var(--cw-muted); font-size: 13px; }
.cw-card__price ins { text-decoration: none; color: var(--cw-sale); font-weight: 600; }
.cw-card__price span { color: #555; font-weight: 500; }
.cw-featured__more { margin-top: 50px; }

[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; inset-inline-end: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  padding: 3px 10px; background: var(--cw-primary); color: #fff; font-size: 12px; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
[data-tooltip]:hover::after { opacity: 1; visibility: visible; }

/* ---------- Promo / countdown ---------- */
.cw-promo__box { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; background: var(--promo-bg); color: var(--promo-color); overflow: hidden; }
.cw-promo__box--right .cw-promo__media { order: 2; }
.cw-promo__media { height: 100%; min-height: 420px; }
.cw-promo__media img { width: 100%; height: 100%; object-fit: cover; }
.cw-promo__content { padding: 60px clamp(30px, 5vw, 80px); }
.cw-promo__sub { font-family: var(--cw-font-accent); font-style: italic; font-size: 17px; color: var(--cw-accent); margin-bottom: 10px; }
.cw-promo__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; color: inherit; margin-bottom: 18px; }
.cw-promo__text { opacity: .8; margin-bottom: 28px; max-width: 460px; }
.cw-countdown { display: flex; gap: 12px; margin-bottom: 34px; }
.cw-countdown > div {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 78px; height: 82px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}
.cw-countdown span { font-size: 28px; font-weight: 600; color: var(--cw-primary); line-height: 1.1; }
.cw-countdown small { font-size: 11px; color: var(--cw-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Story ---------- */
.cw-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.cw-story__grid--right .cw-story__media { order: 2; }
.cw-story__media { position: relative; }
.cw-story__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cw-story__media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1; border: 2px solid var(--cw-accent);
}
[dir="rtl"] .cw-story__media::before { inset: 24px 24px -24px -24px; }
.cw-story__stamp {
  position: absolute; bottom: 30px; inset-inline-end: -20px; padding: 14px 22px; background: var(--cw-primary); color: #fff;
  font-family: var(--cw-font-accent); font-style: italic; font-size: 16px;
}
.cw-story__sub { font-family: var(--cw-font-accent); font-style: italic; color: var(--cw-accent); font-size: 17px; margin-bottom: 10px; }
.cw-story__title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin-bottom: 22px; }
.cw-story__text { margin-bottom: 30px; font-size: 15.5px; }
.cw-story__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; padding: 24px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.cw-story__stats strong { display: block; font-size: 26px; color: var(--cw-primary); line-height: 1.2; }
.cw-story__stats span { font-size: 13px; color: var(--cw-muted); }

/* ---------- Testimonials ---------- */
.cw-testimonials { background: var(--testi-bg); }
.cw-testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cw-testimonial { margin: 0; padding: 36px 32px; background: #fff; transition: transform .35s ease, box-shadow .35s ease; }
.cw-testimonial:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .06); }
.cw-testimonial blockquote { margin: 18px 0 24px; font-family: var(--cw-font-accent); font-style: italic; font-size: 15.5px; line-height: 1.8; color: #444; }
.cw-testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.cw-testimonial figcaption strong { display: block; color: var(--cw-primary); line-height: 1.3; }
.cw-testimonial figcaption small { color: var(--cw-muted); }
.cw-testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cw-soft); color: var(--cw-accent); }
.cw-stars { display: inline-flex; gap: 2px; color: #ddd; }
.cw-stars .is-on { color: #f5a623; }
.cw-stars .cw-icon { width: 16px; height: 16px; }

/* ---------- Instagram ---------- */
.cw-insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.cw-insta__item { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.cw-insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.cw-insta__item::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .35s ease; }
.cw-insta__icon { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: #fff; opacity: 0; transform: scale(.6); transition: all .35s ease; }
.cw-insta__icon .cw-icon { width: 34px; height: 34px; }
.cw-insta__item:hover img { transform: scale(1.1); }
.cw-insta__item:hover::after, .cw-insta__item:hover .cw-insta__icon { opacity: 1; transform: none; }

/* ---------- WhatsApp CTA ---------- */
.cw-cta { background: var(--cta-bg); color: var(--cta-color); }
.cw-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 50px; }
.cw-cta__title { font-size: clamp(22px, 2.6vw, 30px); color: inherit; margin-bottom: 6px; }
.cw-cta__text { margin: 0; opacity: .85; }

/* ---------- Footer ---------- */
.cw-footer { background: var(--footer-bg); color: var(--footer-color); font-size: 14px; }
.cw-footer a { color: inherit; opacity: .75; }
.cw-footer a:hover { opacity: 1; color: inherit; }
.cw-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 80px 0 60px; }
.cw-footer__logo { display: inline-block; margin-bottom: 22px; opacity: 1 !important; }
.cw-footer__logo img { width: 150px; }
.cw-footer__about { opacity: .7; margin-bottom: 20px; max-width: 320px; }
.cw-footer__contact { display: grid; gap: 10px; margin-bottom: 22px; }
.cw-footer__contact li { display: flex; align-items: center; gap: 10px; opacity: .8; }
.cw-footer__contact .cw-icon { width: 18px; height: 18px; color: var(--cw-accent); }
.cw-footer .cw-social a { opacity: 1; background: rgba(255, 255, 255, .08); }
.cw-footer .cw-social a:hover { background: var(--cw-accent); }
.cw-footer__details summary { list-style: none; }
.cw-footer__details summary::-webkit-details-marker { display: none; }
.cw-footer__heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 16px; font-weight: 600; cursor: default; }
.cw-footer__heading .cw-icon { display: none; width: 18px; height: 18px; }
.cw-footer__links { display: grid; gap: 10px; }
.cw-footer__links a { position: relative; transition: opacity .2s ease, padding .2s ease; }
.cw-footer__links a:hover { padding-inline-start: 6px; }
.cw-footer__text { opacity: .75; margin-bottom: 18px; }
.cw-footer .cw-btn { opacity: 1; }
.cw-footer .cw-btn--light { color: var(--cw-primary); }
.cw-footer .cw-btn--light:hover { color: #fff; }
.cw-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.cw-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; font-size: 13px; }
.cw-footer__bottom p { margin: 0; opacity: .6; }
.cw-footer__payments { display: flex; gap: 10px; flex-wrap: wrap; }
.cw-pay-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 30px; font-size: 12px; }
.cw-pay-badge .cw-icon { width: 18px; height: 18px; color: var(--cw-accent); }

/* ---------- Floating elements ---------- */
.cw-whatsapp {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 150; width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .3s ease;
}
.cw-whatsapp::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: cw-ping 2s ease-out infinite;
}
@keyframes cw-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.cw-whatsapp:hover { color: #fff; transform: scale(1.08); }
.cw-whatsapp .cw-icon { width: 30px; height: 30px; }
.cw-back-top {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 150; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%; background: var(--cw-primary); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s ease;
}
.cw-back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.cw-back-top:hover { background: var(--cw-accent); }

.yc-alert {
  position: fixed; top: 24px; inset-inline-start: 50%; z-index: 400; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 14px 22px; background: var(--cw-primary); color: #fff; font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2); border-radius: 4px;
  transform: translate(-50%, -150%); opacity: 0; transition: all .4s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
[dir="rtl"] .yc-alert { transform: translate(50%, -150%); }
.yc-alert.show { transform: translate(-50%, 0); opacity: 1; }
[dir="rtl"] .yc-alert.show { transform: translate(50%, 0); }
.yc-alert.success { background: #1e7d4f; }
.yc-alert.error { background: #c0392b; }
.yc-alert .icon { display: none; }
.yc-alert .cw-icon { width: 20px; height: 20px; }

/* ---------- Breadcrumb / page hero ---------- */
.cw-breadcrumb { padding: 18px 0; font-size: 13px; color: var(--cw-muted); }
.cw-breadcrumb .cw-container, .cw-breadcrumb--inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cw-breadcrumb a:hover { color: var(--cw-primary); }
.cw-breadcrumb [aria-current] { color: var(--cw-primary); }
.cw-breadcrumb--inline { justify-content: center; padding: 6px 0 0; }

.cw-page-hero { position: relative; overflow: hidden; background: var(--hero-bg); text-align: center; }
.cw-page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.cw-page-hero__inner { position: relative; padding-block: 70px; }
.cw-page-hero--small .cw-page-hero__inner { padding-block: 50px; }
.cw-page-hero__title { font-size: clamp(28px, 3.6vw, 42px); }
.cw-page-hero__desc { max-width: 640px; margin: 14px auto 0; }

/* ---------- Collection toolbar ---------- */
.cw-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.cw-toolbar__count { margin: 0; color: var(--cw-muted); font-size: 14px; }
.cw-toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cw-toolbar__sort select { padding: 9px 36px 9px 14px; border: 1px solid #ddd; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; cursor: pointer; }
[dir="rtl"] .cw-toolbar__sort select { background-position: left 12px center; padding: 9px 14px 9px 36px; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.cw-chip { padding: 8px 20px; border: 1px solid #ddd; border-radius: 30px; font-size: 14px; }
.cw-chip:hover { border-color: var(--cw-primary); color: var(--cw-primary); }
.cw-collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cw-collections-grid .cw-pagination { grid-column: 1 / -1; }

.cw-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.cw-pagination a, .cw-pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border: 1px solid #e3e3e3; font-size: 14px;
}
.cw-pagination a:hover { border-color: var(--cw-primary); color: var(--cw-primary); }
.cw-pagination .is-current { background: var(--cw-primary); border-color: var(--cw-primary); color: #fff; }
.cw-pagination .cw-icon { width: 16px; height: 16px; }

.cw-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 70px 20px; text-align: center; color: var(--cw-muted); }
.cw-empty .cw-icon { width: 70px; height: 70px; color: #d5d5d5; }
.cw-empty h2 { font-size: 24px; }

/* ---------- Product page ---------- */
.cw-product { padding-top: var(--pt); padding-bottom: var(--pb); }
.cw-product__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }

.cw-gallery { position: sticky; top: 100px; display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.cw-gallery__main { position: relative; grid-column: 2; grid-row: 1; overflow: hidden; background: var(--cw-soft); aspect-ratio: 1 / 1; }
.cw-gallery__main .main-image { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; }
.cw-gallery__badge { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; }
.cw-gallery__nav {
  position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .08); opacity: 0; transition: opacity .3s ease;
}
.cw-gallery__main:hover .cw-gallery__nav { opacity: 1; }
.cw-gallery__nav--prev { inset-inline-start: 14px; }
.cw-gallery__nav--next { inset-inline-end: 14px; }
[dir="rtl"] .cw-gallery__nav .cw-icon { transform: scaleX(-1); }
.cw-gallery__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
.cw-gallery__thumb { flex-shrink: 0; aspect-ratio: 1 / 1; cursor: pointer; border: 1px solid transparent; background: var(--cw-soft); opacity: .6; transition: all .25s ease; }
.cw-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cw-gallery__thumb.active, .cw-gallery__thumb:hover { border-color: var(--cw-primary); opacity: 1; }
.cw-gallery:not(:has(.cw-gallery__thumbs)) { grid-template-columns: 1fr; }
.cw-gallery:not(:has(.cw-gallery__thumbs)) .cw-gallery__main { grid-column: 1; }

.cw-product__block { margin-bottom: 22px; }
.cw-product__block:empty { display: none; }
.cw-product__vendor { margin-bottom: 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cw-accent); font-weight: 600; }
.cw-product__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.cw-product__rating { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--cw-muted); }
.cw-product__price { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cw-product__price .product-price { font-size: 28px; font-weight: 600; color: var(--cw-sale); }
.cw-product__price .compare-price { font-size: 18px; color: var(--cw-muted); }
.cw-product__price .compare-price:empty { display: none; }
.cw-product__note { margin: 10px 0 0; font-size: 13px; color: #1e7d4f; font-weight: 500; }
.cw-product__block--product_price { padding-bottom: 22px; border-bottom: 1px solid #eee; }

.cw-stock p { margin-bottom: 8px; font-size: 14px; }
.cw-stock strong { color: var(--cw-sale); }

/* Variant pickers (markup driven by _cod_product.js) */
.product-options { display: grid; gap: 18px; }
.product-option-title { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--cw-primary); text-transform: capitalize; }
.yc-options-list, .yc-colors-select, .yc-image-options-list { display: flex; flex-wrap: wrap; gap: 10px; }
.yc-options-item {
  min-width: 52px; height: 46px; padding: 0 14px; display: grid; place-items: center; border: 1px solid #ddd;
  border-radius: var(--cw-radius); cursor: pointer; font-size: 14px; font-weight: 500; transition: all .2s ease; user-select: none;
}
.yc-options-item:hover { border-color: var(--cw-primary); }
.yc-options-item.active { background: var(--cw-primary); border-color: var(--cw-primary); color: #fff; }
.color-item { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid #ddd; border-radius: 40px; cursor: pointer; font-size: 13px; transition: border-color .2s ease; }
.color-item .preview { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.color-item.active, .color-item:hover { border-color: var(--cw-primary); box-shadow: 0 0 0 1px var(--cw-primary); }
.yc-image-options-item { width: 70px; height: 70px; padding: 3px; border: 1px solid #ddd; cursor: pointer; }
.yc-image-options-item img { width: 100%; height: 100%; object-fit: cover; }
.yc-image-options-item.active { border-color: var(--cw-primary); box-shadow: 0 0 0 1px var(--cw-primary); }
.yc-radio { display: flex; flex-wrap: wrap; gap: 14px; }
.yc-radio-buttons { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.yc-radio-buttons input { accent-color: var(--cw-primary); width: 18px; height: 18px; }
.yc-radio-buttons .checkmark { display: none; }
.dropdown-input { position: relative; max-width: 320px; }
.dropbtn { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; border: 1px solid #ddd; cursor: pointer; }
.dropbtn .cw-icon { width: 16px; height: 16px; }
.dropdown-content { position: absolute; top: 100%; inset-inline: 0; z-index: 5; display: none; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid #ddd; border-top: 0; }
.dropdown-content.show { display: block; }
.dropdown-content li { padding: 10px 16px; cursor: pointer; }
.dropdown-content li:hover, .dropdown-content li.selected { background: var(--cw-soft); }
.yc-upload { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; border: 1px dashed #bbb; cursor: pointer; }
.yc-upload-preview { display: none; margin-top: 10px; }
.yc-upload-wrapper { display: flex; justify-content: space-between; align-items: center; }
.yc-image-preview { display: flex; gap: 10px; align-items: center; }
.yc-image-preview img { width: 50px; height: 50px; object-fit: cover; }
.progress-container { height: 4px; background: #eee; margin-top: 8px; }
.progress-container .progress-bar { height: 100%; width: 0; background: var(--cw-accent); }
.cw-size-guide-btn { margin-top: 12px; }

.cw-product__qty { display: flex; align-items: center; gap: 18px; }
.cw-product__qty .product-option-title { margin: 0; }

/* COD order form */
.cw-cod {
  padding: 24px; border: 2px dashed var(--cw-accent); border-radius: 6px; background: #fffaf5;
}
.cw-cod__title { margin: 0 0 4px; text-align: center; font-size: 16px; font-weight: 600; color: var(--cw-primary); }
.cw-cod__subtitle { margin: 0 0 18px; text-align: center; font-size: 13px; color: var(--cw-muted); }
.express-checkout-fields { display: grid; gap: 12px; }
.cw-field input {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid #d9d9d9; border-radius: var(--cw-radius);
  background: #fff; font-size: 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.cw-field input:focus { border-color: var(--cw-primary); box-shadow: 0 0 0 3px rgba(17, 17, 17, .06); }
.cw-field input.error { border-color: #c0392b; }
.validation-error { font-size: 12px; color: #c0392b; margin-top: 4px; }
.validation-error:empty { display: none; }
.cw-cod__btn { margin-top: 6px; background: var(--cod-btn-bg); border-color: var(--cod-btn-bg); color: var(--cod-btn-color); font-size: 15px; }
.cw-cod__btn:hover { background: var(--cw-accent); border-color: var(--cw-accent); }

.cw-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; background: var(--cw-soft); }
.cw-trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.cw-trust .cw-icon { width: 26px; height: 26px; color: var(--cw-accent); }
.cw-trust--compact { grid-template-columns: 1fr; margin-top: 18px; padding: 14px; }

.cw-accordion { border-top: 1px solid #eee; }
.cw-product__block--accordion + .cw-product__block--accordion { margin-top: -22px; }
.cw-product__block--product_description + .cw-product__block--accordion { margin-top: -22px; }
.cw-accordion:last-child { border-bottom: 1px solid #eee; }
.cw-accordion__head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 15px; font-weight: 600; color: var(--cw-primary); text-align: start; }
.cw-accordion__head .cw-icon { width: 18px; height: 18px; transition: transform .3s ease; }
.cw-accordion.is-open .cw-accordion__head .cw-icon { transform: rotate(45deg); }
.cw-accordion__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.cw-accordion__body > div { overflow: hidden; }
.cw-accordion.is-open .cw-accordion__body { grid-template-rows: 1fr; }
.cw-accordion.is-open .cw-accordion__body > div { padding-bottom: 18px; }

.cw-modal { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.cw-modal.is-open { visibility: visible; }
.cw-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s ease; }
.cw-modal.is-open .cw-modal__overlay { opacity: 1; }
.cw-modal__panel { position: relative; width: min(560px, 100%); max-height: 85vh; overflow-y: auto; padding: 36px; background: #fff; opacity: 0; transform: translateY(20px); transition: all .3s ease; }
.cw-modal.is-open .cw-modal__panel { opacity: 1; transform: none; }
.cw-modal__panel h3 { margin-bottom: 16px; font-size: 20px; }
.cw-modal__close { position: absolute; top: 10px; inset-inline-end: 10px; }

.cw-sticky-buy {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 140; background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
  transform: translateY(110%); transition: transform .35s ease;
}
.cw-sticky-buy.is-visible { transform: none; }
.cw-sticky-buy__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 10px; }
.cw-sticky-buy__info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cw-sticky-buy__info img { width: 48px; height: 48px; object-fit: cover; background: var(--cw-soft); }
.cw-sticky-buy__name { margin: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cw-primary); }
.cw-sticky-buy__price { margin: 0; font-size: 14px; font-weight: 600; color: var(--cw-sale); }
.cw-sticky-buy .cw-btn { flex-shrink: 0; }

/* ---------- Conversion elements (product page) ---------- */
a.cw-product__rating:hover { color: var(--cw-primary); }
a.cw-product__rating span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.cw-product__saving { margin: 8px 0 0; font-size: 14px; color: var(--cw-sale); }
.cw-product__saving strong { font-weight: 700; }

.cw-benefits { display: grid; gap: 10px; }
.cw-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #333; line-height: 1.5; }
.cw-benefits .cw-icon {
  width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%;
  background: var(--cw-accent); color: #fff; flex-shrink: 0;
}

.cw-delivery { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #e6dfd7; border-radius: 6px; background: #fff; }
.cw-delivery .cw-icon { width: 34px; height: 34px; color: var(--cw-accent); }
.cw-delivery p { margin: 0; font-size: 14px; line-height: 1.5; }
.cw-delivery strong { display: block; color: var(--cw-primary); }
.cw-delivery [data-delivery-range] { text-transform: none; }

.cw-product__block--express_checkout .cw-cod { box-shadow: 0 10px 30px rgba(168, 116, 63, .12); }
.cw-cod__btn { min-height: 58px; font-size: 14px; }
.cw-cod__reassure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 0; font-size: 12.5px; color: #1e7d4f; text-align: center; }
.cw-cod__reassure .cw-icon { width: 16px; height: 16px; }

.cw-or { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--cw-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.cw-or::before, .cw-or::after { content: ""; flex: 1; height: 1px; background: #e5e5e5; }

.cw-steps { padding: 18px; border: 1px solid #eee; border-radius: 6px; }
.cw-steps__title { margin-bottom: 12px; font-weight: 600; color: var(--cw-primary); }
.cw-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cw-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.cw-steps li span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--cw-primary); color: #fff; font-size: 13px; font-weight: 600;
}

/* Reviews */
.cw-reviews__summary { display: flex; align-items: center; justify-content: center; gap: 18px; margin: -10px 0 36px; }
.cw-reviews__summary > strong { font-size: 52px; line-height: 1; color: var(--cw-primary); }
.cw-reviews__summary p { margin: 4px 0 0; color: var(--cw-muted); font-size: 14px; }
.cw-stars--lg .cw-icon { width: 22px; height: 22px; }
.cw-reviews__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cw-review { padding: 26px; background: var(--cw-soft); }
.cw-review__text { margin: 14px 0; color: #444; line-height: 1.7; }
.cw-review__imgs { display: flex; gap: 8px; margin-bottom: 14px; }
.cw-review__imgs img { width: 72px; height: 72px; object-fit: cover; }
.cw-review__author { margin: 0; font-size: 13px; color: var(--cw-muted); }
.cw-review__author strong { color: var(--cw-primary); }

/* FAQ */
.cw-faq { background: var(--faq-bg); }
.cw-faq__list .cw-accordion__head { font-size: 16px; padding: 22px 0; }

/* ---------- Cart page ---------- */
.cw-cart__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 50px; align-items: start; }
.cw-cart__head, .cw-cart__row { display: grid; grid-template-columns: 1fr 150px 120px; gap: 20px; align-items: center; }
.cw-cart__head { padding-bottom: 14px; border-bottom: 1px solid #eee; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cw-muted); }
.cw-cart__head span:last-child, .cw-cart__line-total { text-align: end; }
.cw-cart__row { padding: 24px 0; border-bottom: 1px solid #eee; }
.cw-cart__product { display: flex; gap: 18px; align-items: center; }
.cw-cart__product img { width: 110px; height: 110px; object-fit: cover; background: var(--cw-soft); }
.cw-cart__name { margin: 0 0 4px; font-weight: 500; color: var(--cw-primary); }
.cw-cart__variant, .cw-cart__unit { margin: 0; font-size: 13px; color: var(--cw-muted); }
.cw-cart__unit { margin-bottom: 6px; }
.cw-cart__line-total { font-weight: 600; color: var(--cw-primary); }
.cw-cart__continue { margin-top: 24px; }
.cw-cart__summary { position: sticky; top: 100px; padding: 30px; background: var(--cw-soft); }
.cw-cart__summary h2 { margin-bottom: 20px; font-size: 20px; }
.cw-cart__line { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .07); font-size: 14px; }
.cw-cart__line--discount { color: #1e7d4f; }
.cw-cart__line--total { margin-bottom: 20px; border-bottom: 0; font-size: 17px; }
.cw-cart__line--total strong { font-size: 22px; color: var(--cw-primary); }
.cw-coupon { display: flex; gap: 8px; margin-bottom: 14px; }
.cw-coupon input { flex: 1; min-width: 0; padding: 0 14px; border: 1px solid #ddd; background: #fff; outline: none; }

/* ---------- Tables / thank you / 404 ---------- */
.cw-thankyou__head { text-align: center; margin-bottom: 40px; }
.cw-thankyou__check { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 22px; border-radius: 50%; background: #e7f6ee; color: #1e7d4f; }
.cw-thankyou__check .cw-icon { width: 42px; height: 42px; }
.cw-thankyou__img { max-width: 200px; margin: 0 auto 22px; }
.cw-thankyou__head h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.cw-thankyou__sub { font-size: 16px; color: #555; }
.cw-thankyou__box { margin-bottom: 40px; padding: 30px; background: var(--cw-soft); }
.cw-thankyou__box h2 { margin-bottom: 18px; font-size: 18px; }
.cw-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 14px; }
.cw-table th, .cw-table td { padding: 12px 8px; text-align: start; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.cw-table th:last-child, .cw-table td:last-child { text-align: end; }
.cw-404__code { font-size: clamp(90px, 16vw, 180px); font-weight: 700; line-height: 1; color: var(--cw-soft); -webkit-text-stroke: 2px var(--cw-accent); margin-bottom: 10px; }
.cw-404__title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.cw-404__text { color: var(--cw-muted); margin-bottom: 30px; }

/* ---------- Reveal animation ---------- */
.cw-animate .cw-reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.cw-animate .cw-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .cw-animate .cw-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .cw-nav__list { gap: 4px 22px; }
  .cw-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 989px) {
  .cw-container { padding-inline: 20px; }
  .cw-hide-mobile { display: none !important; }
  .cw-announcement__inner { grid-template-columns: 1fr; }
  .cw-announcement__social, .cw-announcement__contact { display: none; }
  .cw-announcement__slides { min-width: 0; }

  .cw-header__inner, .cw-header--logo-center .cw-header__inner { grid-template-columns: 1fr auto 1fr; min-height: 64px; gap: 10px; }
  .cw-header.is-scrolled .cw-header__inner { min-height: 60px; }
  .cw-header__burger { display: inline-flex; grid-column: 1; justify-self: start; margin-inline-start: -10px; }
  .cw-header__logo, .cw-header--logo-center .cw-header__logo { grid-column: 2; justify-self: center; }
  .cw-header__logo img { width: min(var(--cw-logo-width), 120px); }
  .cw-nav { display: none; }
  .cw-header__icons, .cw-header--logo-center .cw-header__icons { grid-column: 3; margin-inline-end: -10px; }

  .cw-slideshow--large, .cw-slideshow--medium, .cw-slideshow--full { --slide-h: auto; }
  .cw-slideshow__track { display: grid; }
  .cw-slide { position: relative; grid-area: 1 / 1; flex-direction: column; align-items: stretch; }
  .cw-slide__media, .cw-slide--right .cw-slide__media { position: relative; width: 100%; aspect-ratio: 4 / 3; inset: auto; }
  .cw-slide__media::before, .cw-slide--right .cw-slide__media::before { background: linear-gradient(0deg, var(--slide-bg) 0%, transparent 30%); }
  .cw-slide--center .cw-slide__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .cw-slide__content { padding-block: 10px 70px; text-align: center; }
  .cw-slide--center .cw-slide__content { padding-block: 120px; }
  .cw-slide--right .cw-slide__content { justify-content: center; }
  .cw-slide__text { margin-inline: auto; max-width: 480px; }
  .cw-slide__desc { margin-inline: auto; margin-bottom: 24px; }
  .cw-slide__sub { font-size: 15px; margin-bottom: 8px; }
  .cw-slideshow__arrow { display: none; }
  .cw-slideshow__dots { bottom: 24px; }

  .cw-features__grid { grid-template-columns: repeat(2, 1fr); }
  .cw-feature { padding: 22px 12px; }
  .cw-features--bordered .cw-feature + .cw-feature { border-inline-start: 0; }
  .cw-features--bordered .cw-feature:nth-child(even) { border-inline-start: 1px solid #eee; }
  .cw-features--bordered .cw-feature:nth-child(n + 3) { border-top: 1px solid #eee; }

  .cw-banners__grid, .cw-banners__grid--4, .cw-collections-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cw-banners__grid--5 { grid-template-columns: repeat(4, 1fr); }
  .cw-banners__grid--5 > .cw-banner:nth-child(4) { grid-column: auto / span 2; }
  .cw-banners__grid--5 > .cw-banner:nth-child(5) { grid-column: 2 / span 2; }
  .cw-grid { --cols: 3; gap: 30px 16px; }
  .cw-promo__box, .cw-story__grid, .cw-product__grid, .cw-cart__grid { grid-template-columns: 1fr; }
  .cw-promo__box--right .cw-promo__media, .cw-story__grid--right .cw-story__media { order: 0; }
  .cw-promo__media { min-height: 0; aspect-ratio: 4 / 3; }
  .cw-promo__content { padding: 40px 24px; text-align: center; }
  .cw-promo__text { margin-inline: auto; }
  .cw-countdown { justify-content: center; }
  .cw-story__media { margin: 0 24px 24px 0; }
  .cw-story__content { text-align: center; }
  .cw-testimonials__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .cw-reviews__list { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .cw-insta__grid { grid-template-columns: repeat(3, 1fr); }
  .cw-cta__inner { flex-direction: column; text-align: center; }
  .cw-gallery { position: static; }
  .cw-cart__summary { position: static; }
}

@media (max-width: 749px) {
  body { font-size: 14px; }
  .cw-container { padding-inline: 16px; }
  .cw-section { padding-top: calc(var(--pt, 60px) * .7); padding-bottom: calc(var(--pb, 60px) * .7); }
  .cw-title { margin-bottom: 26px; }
  .cw-title__heading::before, .cw-title__heading::after { width: 20px; }
  .cw-title__heading { gap: 12px; }
  .cw-btn--lg { min-height: 50px; padding-inline: 28px; }

  .cw-slide__title { font-size: 30px; }
  .cw-slide__desc { font-size: 14px; }

  .cw-feature { flex-direction: column; text-align: center; gap: 8px; }
  .cw-feature__icon .cw-icon { width: 36px; height: 36px; }
  .cw-feature__title { font-size: 13px; }
  .cw-feature__text { font-size: 12px; }

  .cw-banners__grid, .cw-banners__grid--2, .cw-banners__grid--4 { grid-template-columns: 1fr; }
  .cw-banner__media { aspect-ratio: 16 / 11; }
  .cw-banner__label { bottom: 18px; padding: 10px 22px; }
  .cw-collections-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cw-collections-grid .cw-banner__media { aspect-ratio: 1 / 1; }
  .cw-collections-grid .cw-banner__label { min-width: 0; width: calc(100% - 20px); bottom: 10px; padding: 8px; }
  .cw-collections-grid .cw-banner__title { font-size: 13px; }
  .cw-banners__grid--5 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cw-banners__grid--5 .cw-banner__media { aspect-ratio: 1 / 1; }
  .cw-banners__grid--5 .cw-banner__label { display: none; }

  .cw-grid { --cols: var(--cols-m, 2); gap: 26px 12px; }
  .cw-grid--scroll-mobile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .cw-grid--scroll-mobile::-webkit-scrollbar { display: none; }
  .cw-grid--scroll-mobile .cw-grid__item { flex: 0 0 66%; scroll-snap-align: start; }
  .cw-card__info { padding-top: 10px; }
  .cw-card__title { font-size: 13.5px; }
  .cw-card__price { font-size: 14px; gap: 6px; flex-wrap: wrap; }
  .cw-card__badges { top: 8px; inset-inline-start: 8px; }
  .cw-badge { min-width: 40px; padding: 2px 8px; font-size: 11px; }
  .cw-card__actions { display: none; }
  .cw-card__quick { opacity: 1; transform: none; inset-inline: 8px; bottom: 8px; min-height: 36px; font-size: 10.5px; padding: 6px 8px; background: rgba(255, 255, 255, .92); }

  .cw-countdown > div { width: 66px; height: 70px; }
  .cw-countdown span { font-size: 22px; }
  .cw-story__stats strong { font-size: 20px; }
  .cw-story__stamp { inset-inline-end: 10px; font-size: 14px; padding: 10px 16px; }
  .cw-testimonial { padding: 28px 22px; }

  .cw-footer__grid { grid-template-columns: 1fr; gap: 0; padding: 50px 0 20px; }
  .cw-footer__brand { margin-bottom: 30px; }
  .cw-footer__col { border-top: 1px solid rgba(255, 255, 255, .1); }
  .cw-footer__heading { margin: 0; padding: 18px 0; cursor: pointer; }
  .cw-footer__heading .cw-icon { display: block; transition: transform .3s ease; }
  .cw-footer__details[open] .cw-footer__heading .cw-icon { transform: rotate(45deg); }
  .cw-footer__details[open] > :not(summary) { padding-bottom: 20px; }
  .cw-footer__bottom-inner { flex-direction: column; text-align: center; }

  .cw-whatsapp { width: 50px; height: 50px; bottom: 18px; inset-inline-start: 16px; }
  .template-product .cw-whatsapp { display: none; }
  .template-product .cw-back-top { bottom: 86px; }
  .cw-back-top { bottom: 18px; inset-inline-end: 16px; width: 42px; height: 42px; }

  .cw-page-hero__inner { padding-block: 44px; }
  .cw-toolbar { flex-direction: column; align-items: stretch; }
  .cw-toolbar__sort { justify-content: space-between; }

  .cw-breadcrumb { padding: 12px 0; font-size: 12px; }
  .cw-gallery { grid-template-columns: 1fr; margin-inline: -16px; }
  .cw-gallery__main { grid-column: 1; }
  .cw-gallery__nav { opacity: 1; width: 36px; height: 36px; margin-top: -18px; }
  .cw-gallery__thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; padding-inline: 16px; gap: 8px; }
  .cw-gallery__thumb { width: 64px; }
  .cw-product__price .product-price { font-size: 24px; }
  .cw-trust { grid-template-columns: 1fr; }
  .cw-cod { padding: 18px 14px; }

  .cw-cart__head { display: none; }
  .cw-cart__row { grid-template-columns: 1fr auto; grid-template-areas: "product product" "qty total"; gap: 14px; }
  .cw-cart__product { grid-area: product; }
  .cw-cart__row .cw-qty { grid-area: qty; height: 42px; }
  .cw-cart__line-total { grid-area: total; }
  .cw-cart__product img { width: 84px; height: 84px; }
  .cw-cart__summary { padding: 22px 18px; }
}
