/* BV VENTURES storefront — implemented from "BV Phones Storefront.dc.html" */

*, *::before, *::after { box-sizing: border-box; }

/* The 1120px shell leaves a 27" monitor mostly empty margin, so the shell and
   the cards inside it both grow on wide screens — widening alone would just
   add more small cards. */
:root { --shell: 1120px; }
@media (min-width: 1440px) { :root { --shell: 1320px; } }
@media (min-width: 1760px) { :root { --shell: 1500px; } }

body {
  margin: 0;
  background: #faf9f7;
  font-family: "Archivo", system-ui, sans-serif;
  color: #16140f;
}
a { color: #157a42; text-decoration: none; }
a:hover { color: #1fa855; }
::placeholder { color: #a49d8f; }
button { font-family: inherit; }
body.no-scroll { overflow: hidden; }

:focus-visible { outline: 2px solid #16140f; outline-offset: 2px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 249, 247, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece8e1;
}
.site-header__inner {
  max-width: var(--shell); margin: 0 auto; padding: 14px 20px 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand__row { display: flex; align-items: center; gap: 9px; }
.brand__name { font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: #16140f; }
/* The full stacked lockup turns to mush at header height, so the header pairs
   the monogram with the wordmark type instead. */
.brand__mark { height: 34px; width: auto; display: block; flex: none; }
@media (max-width: 560px) { .brand__mark { height: 28px; } }
.brand__badge {
  background: #e8f6ee; color: #157a42;
  font-weight: 600; font-size: 10.5px;
  padding: 3px 9px; border-radius: 99px;
}
.brand__tagline { font-size: 12.5px; color: #7a756c; }

.wa-btn {
  display: flex; align-items: center; gap: 8px;
  background: #25d366; border-radius: 99px; padding: 10px 16px;
  transition: background .15s;
}
.wa-btn:hover { background: #1fbd5a; }
.wa-btn__label { font-weight: 700; font-size: 13px; color: #fff; }

/* ---------- Trust bar ---------- */

.trust { background: #eef8f0; border-bottom: 1px solid #d8ecdf; }
.trust__inner {
  max-width: var(--shell); margin: 0 auto; padding: 11px 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 26px;
}
.trust__item { display: flex; align-items: center; gap: 8px; }
.trust__check {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: #157a42; color: #fff; font-weight: 700; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.trust__text { display: flex; flex-direction: column; gap: 1px; }
.trust__title { font-weight: 700; font-size: 12.5px; color: #1a5c37; }
.trust__sub { font-size: 11.5px; color: #5d9273; }

/* ---------- Promo banner ---------- */

.main {
  flex: 1; width: 100%; max-width: var(--shell); margin: 0 auto;
  padding: 18px 20px 60px;
}
.promo {
  position: relative; isolation: isolate; overflow: hidden;
  background: #16140f url("https://images.pexels.com/photos/28902919/pexels-photo-28902919.jpeg?auto=compress&cs=tinysrgb&w=1800") 68% center / cover no-repeat;
  border-radius: 16px; padding: 26px 22px;
  display: flex; align-items: center; min-height: 190px; margin-bottom: 16px;
}
.promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(15,13,9,.95) 0%, rgba(15,13,9,.88) 40%, rgba(15,13,9,.55) 78%, rgba(15,13,9,.42) 100%);
}
.promo__content { display: flex; flex-direction: column; gap: 9px; }
.promo__eyebrow {
  align-self: flex-start; background: #e8b53a; color: #16140f;
  font-weight: 700; font-size: 10.5px; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 99px;
}
.promo__title {
  margin: 0; font-weight: 800; font-size: 27px; line-height: 1.15;
  color: #faf9f7; letter-spacing: -.02em; text-wrap: pretty;
}
.promo__sub {
  margin: 0; font-size: 13px; line-height: 1.55; color: #b3ada1; max-width: 340px;
}
.promo__actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.promo__actions .wa-btn { padding: 11px 17px; }

/* ---------- Controls ---------- */

.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid #e6e2da; border-radius: 11px;
  padding: 11px 14px; cursor: text;
}
.search svg { flex: none; }
.search input {
  border: none; outline: none; background: transparent;
  font-size: 13.5px; color: #16140f; width: 100%;
  font-family: inherit;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #e2ddd4; color: #4d483f;
  font-weight: 500; font-size: 12.5px; padding: 8px 14px;
  border-radius: 99px; cursor: pointer; transition: border-color .15s;
}
.chip:hover { border-color: #16140f; }
.chip--active {
  background: #16140f; border-color: #16140f; color: #fff; font-weight: 600;
}
.chip__count { font-weight: 600; font-size: 10.5px; color: #a49d8f; }
.chip--active .chip__count { color: #faf9f7; opacity: .65; }

/* ---------- Grid header ---------- */

.grid-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 22px 0 11px;
}
.grid-head__title { font-weight: 700; font-size: 15.5px; color: #16140f; }
.grid-head__count { font-weight: 500; font-size: 12px; color: #7a756c; }

/* ---------- Catalog grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px; margin-top: 18px;
}
/* two-up grid on narrow phones (335px of content at 375px viewport) */
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.card {
  /* flex column (not block): buttons center content vertically, which
     misaligns short cards in a stretched grid row */
  display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left;
  background: #fff; border: 1px solid #ece8e1; border-radius: 13px;
  overflow: hidden; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(35, 30, 20, .09); }
.card__media {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(45deg, #f0ede7 0 10px, #e7e3db 10px 20px);
}
.ph-label { font-size: 10.5px; font-family: ui-monospace, Menlo, monospace; color: #a49d8f; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge-cond {
  position: absolute; top: 9px; left: 9px;
  background: #fff; border: 1px solid #e5e0d7; border-radius: 99px;
  padding: 3px 9px; font-weight: 600; font-size: 10px; color: #4d483f;
}
.badge-save {
  position: absolute; top: 9px; right: 9px;
  background: #d4452c; color: #fff; border-radius: 99px;
  padding: 3px 8px; font-weight: 700; font-size: 10px;
}
.sold-overlay {
  position: absolute; inset: 0; background: rgba(22, 20, 15, .5);
  display: flex; align-items: center; justify-content: center;
}
.sold-tag {
  background: #fff; color: #16140f;
  font-weight: 800; font-size: 11.5px; letter-spacing: .14em;
  padding: 5px 13px; border-radius: 5px;
}
.card__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.card__name { font-weight: 500; font-size: 13px; line-height: 1.3; color: #211f1a; }
.card__prices { display: flex; align-items: baseline; gap: 7px; }
.card__price { font-weight: 700; font-size: 15px; color: #0f0d09; }
.card__old { font-size: 11.5px; color: #a49d8f; text-decoration: line-through; }

/* ---------- Pagination ---------- */

.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 20px;
}
.pager__range { font-weight: 500; font-size: 12px; color: #7a756c; }
.pager__nav { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pager__btn {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  background: #fff; border: 1px solid #e2ddd4; color: #16140f;
  font-weight: 600; font-size: 12.5px; border-radius: 9px; cursor: pointer;
}
.pager__btn:disabled {
  background: #f4f2ee; border-color: #ece8e1; color: #c2bcb1; cursor: default;
}
.pager__num {
  min-width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e2ddd4; color: #4d483f;
  font-weight: 500; font-size: 12.5px; border-radius: 9px; cursor: pointer;
}
.pager__num--active {
  background: #16140f; border-color: #16140f; color: #fff; font-weight: 600;
}

/* ---------- Loading skeletons ---------- */

.skel-card { background: #fff; border: 1px solid #ece8e1; border-radius: 13px; overflow: hidden; }
.skel-card__media { aspect-ratio: 1 / 1; background: #efece6; }
.skel-card__body { padding: 10px 12px 13px; display: flex; flex-direction: column; gap: 7px; }
.skel-bar { display: block; height: 10px; border-radius: 99px; background: #efece6; }
.skel-bar--name { width: 75%; }
.skel-bar--price { width: 45%; height: 13px; }
.skel-card { animation: skel-pulse 1.4s ease-in-out infinite; }
@keyframes skel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Empty state ---------- */

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  padding: 70px 24px; text-align: center;
}
.empty__icon {
  width: 76px; height: 76px; border-radius: 50%; background: #f0ede7;
  display: flex; align-items: center; justify-content: center;
}
.empty__title { font-weight: 700; font-size: 17px; color: #16140f; }
.empty__sub { font-size: 13px; line-height: 1.55; color: #7a756c; max-width: 380px; }
.empty__actions { display: flex; gap: 9px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.btn-ghost {
  background: #fff; border: 1px solid #e2ddd4; border-radius: 99px;
  padding: 10px 17px; font-weight: 600; font-size: 12.5px; color: #16140f;
  cursor: pointer; transition: border-color .15s;
}
.btn-ghost:hover { border-color: #16140f; }
.wa-btn--sm { padding: 10px 17px; }
.wa-btn--sm .wa-btn__label { font-size: 12.5px; }

/* ---------- Footer ---------- */

.site-footer { background: #fff; border-top: 1px solid #ece8e1; }
.site-footer__inner {
  max-width: var(--shell); margin: 0 auto; padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 2px; }
.site-footer__name { font-weight: 800; font-size: 14px; color: #16140f; }
.site-footer__sub { font-size: 11.5px; color: #7a756c; }
.site-footer__right { display: flex; align-items: center; gap: 14px; }
.site-footer__number { font-weight: 500; font-size: 12px; color: #4d483f; }
.site-footer__admin { font-weight: 500; font-size: 11.5px; color: #a49d8f; }
.site-footer__admin:hover { color: #16140f; }

/* ---------- Call buttons ---------- */

.site-header__actions { display: flex; align-items: center; gap: 8px; }
.call-btn {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #e2ddd4; border-radius: 99px;
  padding: 9px 15px; transition: border-color .15s, background .15s;
}
.call-btn:hover { border-color: #16140f; }
.call-btn__label { font-weight: 700; font-size: 13px; color: #16140f; }
/* on the dark promo banner the outline version has to invert */
.call-btn--onDark {
  background: rgba(250, 249, 247, .14); border-color: rgba(250, 249, 247, .4);
  padding: 10px 17px;
}
.call-btn--onDark:hover { background: rgba(250, 249, 247, .24); border-color: rgba(250, 249, 247, .55); }
.call-btn--onDark .call-btn__label { color: #faf9f7; }

/* ---------- Floating actions ---------- */

.fab-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.fab {
  width: 54px; height: 54px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(18, 140, 80, .4);
  transition: transform .15s;
}
.fab:hover { transform: scale(1.06); }
.fab--call {
  width: 48px; height: 48px; background: #16140f;
  box-shadow: 0 6px 16px rgba(22, 20, 15, .32);
}

/* ---------- Product page (/p/<id>) ---------- */

.brand--link { text-decoration: none; }
.brand--link:hover .brand__name { color: #16140f; }

.product { max-width: var(--shell); }

.crumbs {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 2px 0 14px; font-weight: 500; font-size: 12.5px; color: #7a756c;
}
.crumbs__link { font-weight: 600; color: #157a42; }
.crumbs__sep { color: #c2bcb1; }
.crumbs__here { color: #16140f; }

.product__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; align-items: start;
}

.gallery {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid #ece8e1;
  background: repeating-linear-gradient(45deg, #f0ede7 0 10px, #e7e3db 10px 20px);
  display: flex; align-items: center; justify-content: center;
}
/* The server marks the first photo --on, so with scripting off that one shows;
   no extra fallback rule, which would otherwise outrank the active class. */
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.gallery__img--on { display: block; }
.gallery__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.gallery__prev { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; font-size: 15px; }
.gallery__next { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; font-size: 15px; }
/* the discount badge moves to the left here, so it can't sit under the arrow */
.gallery .badge-save {
  top: 12px; left: 12px; right: auto;
  padding: 4px 11px; font-size: 11px;
}
.gallery .sold-tag { font-size: 13px; padding: 7px 16px; }
.product .thumb { width: 62px; height: 62px; border-radius: 10px; }
.product .thumbs { gap: 8px; flex-wrap: wrap; }

.product__info { display: flex; flex-direction: column; gap: 7px; }
.product__cat {
  align-self: flex-start; background: #f2efe9; border-radius: 99px;
  padding: 4px 11px; font-weight: 600; font-size: 11px; color: #4d483f;
}
.product__name {
  margin: 0; font-weight: 700; font-size: 24px; line-height: 1.2;
  color: #16140f; text-wrap: pretty;
}
.product__pricerow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.product__price { font-weight: 800; font-size: 29px; color: #0f0d09; }

/* secondary call action, sized to sit under the WhatsApp button */
.btn-call-lg {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #fff; border: 1.5px solid #d9d5cd; border-radius: 12px;
  padding: 13px 0; transition: border-color .15s;
}
.btn-call-lg:hover { border-color: #16140f; }
.btn-call-lg__label { font-weight: 700; font-size: 14px; color: #16140f; }
.btn-dark-lg {
  display: block; background: #16140f; border-radius: 12px;
  padding: 14px 0; text-align: center;
  font-weight: 700; font-size: 14px; color: #fff;
}
.btn-dark-lg:hover { color: #fff; background: #241f18; }

/* ---------- More in category ---------- */

.related { margin-top: 32px; }
.related__title {
  margin: 0 0 11px; font-weight: 700; font-size: 15.5px; color: #16140f;
}
.related .grid { margin-top: 0; }
.related .card__price { font-weight: 700; font-size: 15px; color: #0f0d09; }
/* Sharing is a tertiary action, so it reads as a quiet line under the notes
   rather than a third button competing with the two order CTAs. */
.share-row { display: flex; justify-content: center; margin-top: 4px; }
.share-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 6px 8px; border-radius: 8px;
  font-family: inherit; font-weight: 600; font-size: 12px;
  color: #7a756c; cursor: pointer; transition: color .15s, background .15s;
}
.share-link:hover { color: #16140f; background: #f2efe9; }
.share-link--done { color: #157a42; }
.wa-btn--block { justify-content: center; border-radius: 12px; padding: 14px 0; }

.product .prefill, .product .modal__cta, .product .modal__notes, .product .modal__sold-note { margin-left: 0; margin-right: 0; }
.product .thumbs { margin: 9px 0 0; }
.product .modal__desc { margin-top: 2px; font-size: 13.5px; line-height: 1.65; }

/* A long description used to push the order buttons off the screen, so it is
   capped at roughly six lines and opens on demand. */
.desc-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.desc-clamp { position: relative; max-height: 10em; overflow: hidden; }
.desc-clamp::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em;
  background: linear-gradient(to bottom, rgba(250,249,247,0), #faf9f7 85%);
  pointer-events: none;
}
.desc-clamp--open { max-height: none; }
.desc-clamp--open::after { display: none; }
.desc-more {
  background: none; border: none; padding: 4px 0;
  font-family: inherit; font-weight: 600; font-size: 12.5px;
  color: #157a42; cursor: pointer;
}
.desc-more:hover { color: #1fa855; text-decoration: underline; }
.product .modal__notes { margin: 2px 0 0; }
.product .modal__notes .modal__hint { line-height: 1.5; }

/* rich text saved from the admin editor */
.modal__desc p { margin: 0 0 .6em; }
.modal__desc p:last-child { margin-bottom: 0; }
.modal__desc ul, .modal__desc ol { margin: 0 0 .6em; padding-left: 1.25em; }
.modal__desc li { margin-bottom: .2em; }
.modal__desc a { color: #157a42; text-decoration: underline; }
.modal__desc strong, .modal__desc b { font-weight: 700; color: #16140f; }

/* ---------- Phone detail modal ---------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(22, 20, 15, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: overlay-in .18s ease-out;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  animation: modal-in .18s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

.carousel {
  position: relative; margin: 14px 16px 0; aspect-ratio: 4 / 3; border-radius: 12px;
  background: repeating-linear-gradient(45deg, #f0ede7 0 10px, #e7e3db 10px 20px);
  display: flex; align-items: center; justify-content: center;
}
.carousel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.carousel__count {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(22, 20, 15, .6); color: #fff;
  font-weight: 600; font-size: 11px; padding: 3px 9px; border-radius: 99px;
}
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
  font-weight: 600; font-size: 14px; color: #4d483f; cursor: pointer;
}
.carousel__close { position: absolute; top: 10px; right: 10px; font-size: 13px; }
.carousel__share { position: absolute; top: 10px; right: 48px; }
.share-toast {
  position: sticky; bottom: 12px; margin: 0 18px 12px; z-index: 2;
  background: #16140f; color: #fff; border-radius: 99px;
  padding: 8px 14px; text-align: center;
  font-weight: 600; font-size: 12px;
  animation: toast-in .16s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.carousel__prev { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.carousel__next { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }

.thumbs { display: flex; gap: 7px; margin: 9px 16px 0; }
.thumb {
  width: 46px; height: 46px; border-radius: 8px; padding: 0; cursor: pointer;
  background: repeating-linear-gradient(45deg, #f0ede7 0 8px, #e7e3db 8px 16px);
  background-size: cover; background-position: center;
  border: 2px solid transparent;
}
.thumb--active { border-color: #16140f; }

.modal__info { padding: 14px 18px 0; display: flex; flex-direction: column; gap: 6px; }
.modal__title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.modal__title { font-weight: 700; font-size: 18px; line-height: 1.25; color: #16140f; }
.modal__cond { background: #f2efe9; border-radius: 99px; padding: 3px 10px; font-weight: 600; font-size: 10.5px; color: #4d483f; }
.modal__price-row { display: flex; align-items: baseline; gap: 9px; }
.modal__price { font-weight: 800; font-size: 23px; color: #0f0d09; }
.modal__old { font-size: 13.5px; color: #a49d8f; text-decoration: line-through; }
.modal__desc { font-size: 13px; line-height: 1.6; color: #5c574d; white-space: pre-line; }
/* rich text brings its own block structure, so pre-line would double the gaps */
.modal__desc--rich { white-space: normal; }

.prefill {
  margin: 13px 18px 0; background: #eef8f0; border: 1px solid #cfe9d7;
  border-radius: 11px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.prefill__label {
  font-weight: 600; font-size: 9.5px; letter-spacing: .06em;
  font-family: ui-monospace, Menlo, monospace; color: #3e8a5c;
}
.prefill__text { font-size: 12px; line-height: 1.5; color: #2d5b40; }

.modal__cta {
  margin: 13px 18px 0;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #25d366; border-radius: 12px; padding: 14px 0;
  transition: background .15s;
}
.modal__cta:hover { background: #1fbd5a; }
.modal__cta-label { font-weight: 700; font-size: 15px; color: #fff; }
.modal__notes {
  margin: 9px 18px 16px; display: flex; flex-direction: column; gap: 3px; text-align: center;
}
.modal__promise { font-weight: 600; font-size: 11.5px; color: #2d5b40; }
.modal__hint { font-size: 11px; color: #a49d8f; }
.modal__sold-note {
  margin: 13px 18px 16px; background: #f4f1ec; border-radius: 12px;
  padding: 14px; text-align: center; font-weight: 600; font-size: 13px; color: #7a756c;
}

@media (prefers-reduced-motion: reduce) {
  .skel-card, .modal-overlay, .modal { animation: none; }
  .card, .fab, .wa-btn, .chip, .btn-ghost, .modal__cta { transition: none; }
}

/* ---------- Full-size photo viewer ---------- */

/* The inline gallery crops to 4:3, so this is where the whole photo is seen:
   contain, never crop, and sized to whichever edge runs out first. */
.gallery__img { cursor: zoom-in; }
.gallery__zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: none; color: #4d483f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16); cursor: pointer;
  transition: background .15s;
}
.gallery__zoom:hover { background: #fff; color: #16140f; }

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(12, 11, 8, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 16px;
  animation: overlay-in .16s ease-out;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;          /* the whole photo, never cropped */
  border-radius: 6px;
  user-select: none; -webkit-user-drag: none;
}
.lightbox__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: none; color: #faf9f7;
  font-size: 15px; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .24); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: none; color: #faf9f7;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }
.lightbox__count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, .14); color: #faf9f7;
  font-weight: 600; font-size: 12px; padding: 5px 12px; border-radius: 99px;
}

/* On a phone the arrows would sit under the thumbs, so move them to the
   bottom corners where they're reachable, and swiping works anyway. */
@media (max-width: 560px) {
  .lightbox { padding: 52px 10px 76px; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: 18px; }
  .lightbox__next { right: 18px; }
  .lightbox__count { bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }

/* Installment note on the product page — informative, not a competing CTA */
.pay-plan {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  background: #fbf6e9; border: 1px solid #f0e2c0; border-radius: 10px;
  padding: 9px 12px; margin-top: 2px;
}
.pay-plan__tag {
  flex: none; background: #e8b53a; color: #16140f;
  font-weight: 700; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px;
}
.pay-plan__text { font-size: 12px; line-height: 1.45; color: #6b5a2e; }


/* ---------- Wide screens ---------- */

@media (min-width: 1440px) {
  /* bigger cards, not merely more of them */
  .grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
  .card__name { font-size: 14px; }
  .card__price { font-size: 16.5px; }
  .card__old { font-size: 12.5px; }
  .grid-head__title { font-size: 17px; }
  .grid-head__count { font-size: 13px; }

  .promo { min-height: 220px; padding: 32px 28px; }
  .promo__title { font-size: 31px; }
  .promo__sub { font-size: 13.5px; max-width: 420px; }

  .brand__tagline { font-size: 13px; }
  .trust__title { font-size: 13px; }
  .trust__sub { font-size: 12px; }

  .product__name { font-size: 27px; }
  .product__price { font-size: 32px; }
  .product .modal__desc { font-size: 14.5px; }
}

@media (min-width: 1760px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  .promo { min-height: 250px; }
  .promo__title { font-size: 34px; }
  .search input { font-size: 14.5px; }
}

/* ---------- Stock remaining ---------- */

.card__stock {
  font-size: 11.5px; font-weight: 500; color: #6b655c; margin-top: 3px;
}
.card__stock--low { color: #a1402c; font-weight: 600; }



/* Stock now reads on the price line rather than as a badge beneath it. */
.stock-note { font-size: 11px; font-weight: 500; color: #7a756c; }
.stock-note--low { font-weight: 600; color: #c03a20; }
.stock-note--sold { font-weight: 600; color: #a49d8f; }

.about { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ece8e1; display: flex; flex-direction: column; gap: 5px; }
.about__title { margin: 0; font-size: 12.5px; font-weight: 700; color: #16140f; }
.about .modal__desc { text-wrap: pretty; }
