/* =========================================================
   Trang 1 — Sản phẩm Casio fx-880BTG Plus
   ========================================================= */

.p-breadcrumb {
  padding-block: 16px 8px;
  font-size: 13px;
  color: var(--ink-500);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.p-breadcrumb a { text-decoration: none; color: var(--ink-500); }
.p-breadcrumb a:hover { color: var(--teal-700); }
.p-breadcrumb__sep { color: var(--line-strong); }
.p-breadcrumb__current { color: var(--ink-900); font-weight: 600; }

.p-hero {
  display: grid;
  gap: 32px;
  padding-block: 12px 40px;
}
@media (min-width: 1024px) {
  .p-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
}

/* ---- Gallery ---- */
.p-gallery__stage {
  position: relative;
  background: linear-gradient(180deg, var(--cream-50), #f2efe9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 36px 20px;
  min-height: 320px;
}
.p-gallery__stage .calc-illust { width: min(260px, 72vw); filter: drop-shadow(0 18px 30px rgba(12,33,39,.14)); }
.p-gallery__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.p-gallery__badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.p-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.p-thumb {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 8px;
  display: grid;
  place-items: center;
  min-height: 72px;
  transition: border-color .15s var(--ease, ease), box-shadow .15s var(--ease, ease);
}
.p-thumb svg, .p-thumb img { max-height: 48px; width: auto; }
.p-thumb-mini { display: block; height: 48px; }
.p-thumb-mini svg { height: 48px; width: auto; display: block; }
.p-thumb:hover { border-color: var(--teal-500); }
.p-thumb[aria-pressed="true"] { border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100); }
.p-thumb--text { font-size: 11px; font-weight: 700; color: var(--ink-700); text-align: center; line-height: 1.25; }

/* ---- Info panel ---- */
.p-info__eyebrow { color: var(--teal-700); font-weight: 800; letter-spacing: .08em; font-size: 12.5px; text-transform: uppercase; }
.p-info__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.01em; margin-top: 6px; line-height: 1.2; }
.p-info__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--ink-500); }
.p-info__meta b { color: var(--ink-700); font-weight: 600; }

.p-info__price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.p-info__price-now { font-size: 30px; font-weight: 800; color: var(--coral-600); }
.p-info__price-note { font-size: 13px; color: var(--ink-500); }

.p-info__desc { margin-top: 14px; color: var(--ink-700); font-size: 14.5px; line-height: 1.65; max-width: 54ch; }

.p-section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; color: var(--ink-900);
  margin-top: 26px; margin-bottom: 10px;
}
.p-section-label__num {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--ink-900); color: var(--white);
  display: grid; place-items: center; font-size: 11px;
}

.p-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.p-color {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 6px;
  background: var(--white);
  font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  transition: border-color .15s ease, background-color .15s ease;
}
.p-color__dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(12,33,39,.12); flex-shrink: 0; }
.p-color:hover { border-color: var(--ink-300); }
.p-color[aria-pressed="true"] { border-color: var(--teal-600); background: var(--teal-50); color: var(--ink-900); }

.p-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.p-qty button { width: 40px; height: 40px; background: var(--white); border: 0; font-size: 18px; font-weight: 700; color: var(--ink-700); }
.p-qty button:hover { background: var(--cream-50); }
.p-qty input { width: 44px; height: 40px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.p-qty input::-webkit-outer-spin-button, .p-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.p-buy-row { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.p-buy-row .f1z-btn { flex: 1 1 160px; }

.p-studio-cta {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  padding: 20px;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.p-studio-cta__title { font-size: 17px; font-weight: 800; }
.p-studio-cta__text p { font-size: 13.5px; opacity: .88; margin-top: 4px; max-width: 42ch; }
.p-studio-cta .f1z-btn--coral { flex-shrink: 0; }

.p-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-top: 22px; }
.p-trust__item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-700); font-weight: 600; }
.p-trust__item svg { width: 20px; height: 20px; color: var(--teal-700); flex-shrink: 0; }
.p-payment-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-500); }

/* ---- Feature grid ---- */
.p-features { padding-block: 8px 48px; }
.p-features__head { max-width: 62ch; }
.p-features__head h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.01em; }
.p-features__head p { margin-top: 8px; color: var(--ink-500); font-size: 14.5px; line-height: 1.6; }
.p-features__grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .p-features__grid { grid-template-columns: repeat(3, 1fr); } }
.p-feature {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--white);
}
.p-feature__head { display: flex; align-items: center; gap: 8px; }
.p-feature__icon { width: 17px; height: 17px; color: var(--teal-700); flex-shrink: 0; }
.p-feature h3 { font-size: 14px; font-weight: 700; }
.p-feature p { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; line-height: 1.5; }

.p-exam {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.p-exam svg { width: 26px; height: 26px; color: var(--coral-600); flex-shrink: 0; margin-top: 2px; }
.p-exam h3 { font-size: 14.5px; font-weight: 800; }
.p-exam p { font-size: 13px; color: var(--ink-500); margin-top: 4px; line-height: 1.55; }

/* ---- Studio teaser section ---- */
.p-teaser { padding-block: 8px 56px; }
.p-teaser__card {
  border-radius: 28px;
  background: var(--ink-900);
  color: var(--white);
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 960px) { .p-teaser__card { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.p-teaser__eyebrow { color: var(--teal-500); font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.p-teaser__card h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-top: 8px; letter-spacing: -.01em; max-width: 18ch; }
.p-teaser__card p { margin-top: 10px; color: rgba(255,255,255,.78); font-size: 14.5px; max-width: 46ch; line-height: 1.6; }
.p-teaser__list { margin-top: 18px; display: grid; gap: 10px; }
.p-teaser__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.9); }
.p-teaser__list svg { width: 18px; height: 18px; color: var(--teal-500); flex-shrink: 0; margin-top: 1px; }
.p-teaser__actions { margin-top: 22px; }
.p-teaser__visual { position: relative; display: grid; place-items: center; }
.p-teaser__visual .calc-back-illust { width: min(220px, 60vw); filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.p-teaser__print-tag {
  position: absolute;
  bottom: 10%;
  right: 12%;
  background: rgba(255,255,255,.12);
  border: 1px dashed rgba(255,255,255,.5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

/* ---- Sticky mobile action bar ---- */
.p-stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
  box-shadow: 0 -8px 20px -14px rgba(12,33,39,.3);
}
.p-stickybar .f1z-btn { flex: 1; }
@media (min-width: 860px) { .p-stickybar { display: none; } }
.p-page-pad-bottom { padding-bottom: 86px; }
@media (min-width: 860px) { .p-page-pad-bottom { padding-bottom: 0; } }

@media (max-width: 420px) {
  .p-gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .p-trust { grid-template-columns: 1fr; }
}
