/* Bekr preview: header, product page, articles and the WhatsApp hand-off (the rest comes from the theme CSS). */

.demo-banner { background: var(--bekr-olive); color: var(--bekr-cream); text-align: center; font-size: 1.3rem; line-height: 1.5; padding: 0.8rem 1.6rem; }

/* Header */
.demo-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(var(--color-foreground), 0.1); background: rgb(var(--color-background)); }
.demo-header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.6rem; padding-block: 1.2rem; }
.demo-header__logo img { display: block; width: 11.6rem; height: auto; }
.demo-header__nav { display: none; }
.demo-header__nav ul { display: flex; gap: 0.4rem; justify-content: center; margin: 0; padding: 0; list-style: none; }
.demo-header__nav a { display: block; padding: 1rem 1.2rem; color: rgb(var(--color-foreground)); text-decoration: none; }
.demo-header__nav a:hover, .demo-header__nav a.is-current { color: var(--bekr-olive); text-decoration: underline; text-underline-offset: 0.6rem; }
.demo-header__tools { display: flex; align-items: center; gap: 0.8rem; justify-self: end; }
.demo-header__lang { color: rgb(var(--color-foreground)); font-size: 1.4rem; text-decoration: none; border: 1px solid rgba(var(--color-foreground), 0.3); border-radius: 4rem; padding: 0.5rem 1.4rem; }
.demo-header__lang:hover { border-color: var(--bekr-olive); color: var(--bekr-olive); }
.demo-header__cart { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; background: none; border: 0; color: rgb(var(--color-foreground)); cursor: pointer; padding: 0; }
.demo-header__cart svg { width: 4rem; height: 4rem; }
.demo-menu { position: relative; }
.demo-menu > summary { list-style: none; display: grid; gap: 0.5rem; width: 4.4rem; height: 4.4rem; align-content: center; justify-items: center; cursor: pointer; }
.demo-menu > summary::-webkit-details-marker { display: none; }
.demo-menu > summary span { display: block; width: 2.2rem; height: 0.15rem; background: rgb(var(--color-foreground)); transition: transform 0.2s, opacity 0.2s; }
.demo-menu[open] > summary span:nth-child(1) { transform: translateY(0.65rem) rotate(45deg); }
.demo-menu[open] > summary span:nth-child(2) { opacity: 0; }
.demo-menu[open] > summary span:nth-child(3) { transform: translateY(-0.65rem) rotate(-45deg); }
.demo-menu__panel { position: fixed; inset-inline: 0; top: auto; margin-top: 1.2rem; background: rgb(var(--color-background)); border-bottom: 1px solid rgba(var(--color-foreground), 0.1); box-shadow: 0 1.2rem 2.4rem rgba(47, 51, 22, 0.08); }
.demo-menu__panel ul { list-style: none; margin: 0; padding: 0.8rem 0; }
.demo-menu__panel a { display: block; padding: 1.3rem 2rem; color: rgb(var(--color-foreground)); text-decoration: none; font-size: 1.7rem; }
.demo-menu__panel li + li { border-top: 1px solid rgba(var(--color-foreground), 0.06); }
@media screen and (max-width: 989px) {
  .demo-header__lang { display: none; }
  .demo-header__logo { justify-self: center; }
}
@media screen and (min-width: 990px) {
  .demo-menu { display: none; }
  .demo-header__inner { grid-template-columns: auto 1fr auto; }
  .demo-header__nav { display: block; }
}

/* Product page */
.demo-pdp { padding-block: 3.2rem 5.6rem; }
.demo-pdp__grid { display: grid; gap: 3.2rem; }
.demo-pdp__main { overflow: hidden; background: rgba(var(--color-foreground), 0.04); }
.demo-pdp__main img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.demo-pdp__thumbs { display: flex; gap: 0.8rem; list-style: none; padding: 0; margin: 1.2rem 0 0; overflow-x: auto; }
.demo-pdp__thumb { padding: 0; border: 1px solid rgba(var(--color-foreground), 0.15); background: none; cursor: pointer; width: 7.2rem; flex: none; border-radius: 0.6rem; overflow: hidden; }
.demo-pdp__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.demo-pdp__thumb.is-active { border-color: var(--bekr-olive); box-shadow: 0 0 0 1px var(--bekr-olive); }
.demo-pdp__title { color: var(--bekr-olive); margin: 0 0 1.2rem; }
.demo-pdp__price { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 2rem; font-weight: var(--font-body-weight-bold); color: var(--bekr-olive); margin: 0 0 2rem; }
.demo-pdp__price s { font-size: 1.5rem; font-weight: 400; opacity: 0.7; color: var(--bekr-olive-dark); }
.demo-pdp__save { position: static; }
.demo-pdp__sizes { border: 0; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.demo-pdp__sizes legend { margin-bottom: 0.8rem; padding: 0; }
.demo-pdp__sizes input { position: absolute; opacity: 0; pointer-events: none; }
.demo-pdp__sizes label { display: inline-block; padding: 1rem 2.2rem; border: 1px solid rgba(var(--color-foreground), 0.55); border-radius: 4rem; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.demo-pdp__sizes input:checked + label { background: var(--bekr-olive); border-color: var(--bekr-olive); color: var(--bekr-cream); }
.demo-pdp__sizes input:focus-visible + label { outline: 2px solid var(--bekr-olive); outline-offset: 2px; }
.demo-pdp__qty { margin-bottom: 2rem; }
.demo-pdp__qty .form__label { display: block; margin-bottom: 0.8rem; }
.demo-qty { display: inline-flex; border: 1px solid rgba(var(--color-foreground), 0.55); border-radius: 4rem; overflow: hidden; }
.demo-qty button { width: 4.4rem; height: 4.4rem; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: rgb(var(--color-foreground)); }
.demo-qty input { width: 5rem; text-align: center; border: 0; background: none; font: inherit; color: inherit; -moz-appearance: textfield; }
.demo-qty input::-webkit-inner-spin-button, .demo-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.demo-pdp__form { margin: 2rem 0 1rem; }
.demo-pdp__info .bekr-delivery { margin-top: 2.4rem; }
.demo-pdp__info .bekr-accordion { margin-top: 2.4rem; }
.demo-pdp__info .accordion summary { cursor: pointer; }
@media screen and (min-width: 750px) {
  .demo-pdp { padding-block: 4.8rem 7.2rem; }
  .demo-pdp__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 5.6rem; align-items: start; }
  .demo-pdp__gallery { position: sticky; top: 9rem; }
}

/* Learn */
.demo-article-card { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.demo-article-card__media { display: block; overflow: hidden; }
.demo-article-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 0.6s ease; }
.demo-article-card:hover .demo-article-card__media img { transform: scale(1.04); }
.demo-article-card__title { margin: 0.8rem 0 0; }
.demo-article-card__title a { color: rgb(var(--color-foreground)); text-decoration: none; }
.demo-article-card__title a:hover { color: var(--bekr-olive); }
.demo-article-card__excerpt p { margin: 0; }
.demo-article-card__more { margin-top: auto; color: var(--bekr-olive); font-weight: var(--font-body-weight-bold); }
.demo-article__title { margin: 0.4rem 0 2.4rem; color: var(--bekr-olive); }
.demo-article__media { overflow: hidden; margin-bottom: 3.2rem; }
.demo-article__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.demo-article__body { font-size: 1.7rem; }
.demo-article__back { margin-top: 4rem; }
.demo-article .bekr-eyebrow a { color: inherit; text-decoration: none; }
.demo-policy h2 { color: var(--bekr-olive); }

/* WhatsApp hand-off */
.demo-toast { position: fixed; inset-inline: 1.6rem; bottom: 1.6rem; z-index: 60; max-width: 44rem; margin-inline: auto; padding: 2rem 2.4rem; border-radius: 1.6rem; box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.25); background: var(--bekr-olive-dark); color: var(--bekr-cream); transform: translateY(1.2rem); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.demo-toast.is-open { transform: none; opacity: 1; }
.demo-toast p { margin: 0 0 1.4rem; padding-inline-end: 2.4rem; line-height: 1.6; }
.demo-toast .button { width: 100%; }
.demo-toast__close { position: absolute; top: 0.8rem; inset-inline-end: 0.8rem; width: 3.6rem; height: 3.6rem; background: none; border: 0; color: inherit; font-size: 2.4rem; cursor: pointer; }
