/* ===== Trang sản phẩm ===== */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: 72px; }

/* Bộ ảnh: ảnh nhỏ dọc + ảnh lớn (như Manito) */
.gallery { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.thumbs { display: grid; gap: 12px; align-content: start; }
.thumbs button { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 2px; border: 1px solid transparent; opacity: .72; transition: opacity .25s, border-color .25s; padding: 0; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--navy); }
.thumbs img, .view img { width: 100%; height: 100%; object-fit: cover; }
.stage { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--cream); border-radius: 2px; }
.track { display: flex; height: 100%; transition: transform .6s var(--ease); }
.view { flex: 0 0 100%; height: 100%; overflow: hidden; }
.stage .card__tag { z-index: 2; }
.stage__count { position: absolute; right: 14px; bottom: 14px; background: rgba(253, 252, 246, .9); padding: 6px 10px; font: 500 11.5px/1 var(--f-display); letter-spacing: .10em; color: var(--navy); }
.dots { display: none; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 24px; height: 24px; display: grid; place-items: center; }
.dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--taupe); transition: background-color .25s, transform .25s; }
.dots button[aria-current="true"]::before { background: var(--navy); transform: scale(1.3); }

/* Thông tin */
.info { display: grid; gap: 22px; padding-top: 8px; }
.info__head { display: grid; gap: 10px; text-align: center; justify-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.info__head h1 { font: 400 clamp(32px, 3vw, 42px)/1.12 var(--f-brand); color: var(--navy); margin: 0; text-wrap: balance; }
.info__code { font: 500 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-ink); }
.info__price { font: 500 21px/1.2 var(--f-serif); color: var(--navy); }
.info__price.is-soon { font-size: 16.5px; font-style: italic; color: var(--muted); }
.info__desc { margin: 0; color: var(--ink); }
.opt { display: grid; gap: 12px; }
.opt__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 12.5px/1.4 var(--f-display); letter-spacing: .11em; text-transform: uppercase; color: var(--navy); }
.opt__label span { font: 400 14px/1.4 var(--f-serif); letter-spacing: 0; text-transform: none; color: var(--muted); }
.opt__label button { font: 500 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.opt__label button svg { width: 16px; height: 16px; }
.swatch { display: flex; gap: 12px; align-items: center; }
.swatch__img { width: 58px; height: 76px; border: 1px solid var(--navy); padding: 3px; background: var(--white); }
.swatch__img img { width: 100%; height: 100%; object-fit: cover; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.size { position: relative; min-height: 52px; border: 1px solid var(--line); background: var(--white); border-radius: 2px; display: grid; place-items: center; font: 400 15px/1 var(--f-display); letter-spacing: .07em; color: var(--navy); transition: border-color .2s, background-color .2s, color .2s; }
.size:hover { border-color: var(--navy); }
.size[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.size small { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); background: var(--ivory); padding: 0 5px; font: italic 400 10.5px/1.3 var(--f-serif); letter-spacing: 0; color: var(--sky-ink); white-space: nowrap; }
.sizes.is-error .size { border-color: var(--error); }
.size-err { color: var(--error); font-size: 13px; margin: 4px 0 0; display: none; }
.sizes.is-error + .size-err { display: block; }
@keyframes rung { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.sizes.is-shake { animation: rung .4s var(--ease); }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.buy .qty { height: 52px; }
.buy .btn--soft { grid-column: 1 / -1; }
.links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.links a, .links button { font: 500 12px/1 var(--f-display); letter-spacing: .10em; text-transform: uppercase; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; min-height: 36px; }
.links svg { width: 18px; height: 18px; }
.trust { list-style: none; margin: 0; padding: 18px 20px; background: var(--cream); border-radius: 2px; display: grid; gap: 12px; }
.trust li { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.trust svg { width: 20px; height: 20px; stroke: var(--sky-ink); }

/* Mục gập */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 58px; cursor: pointer; font: 400 13px/1.3 var(--f-display); letter-spacing: .13em; text-transform: uppercase; color: var(--navy); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.acc details[open] summary svg { transform: rotate(180deg); }
.acc .acc__body { padding: 0 0 22px; color: var(--ink); }
.acc .acc__body p { margin: 0 0 10px; }
.acc ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* Gợi ý + đã xem */
.reco .rail-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }

/* Bảng size (hộp thoại) */
.modal { border: 0; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--ivory); color: var(--ink); border-radius: 4px; box-shadow: 0 30px 80px rgba(29, 52, 82, .3); }
.modal::backdrop { background: rgba(29, 52, 82, .45); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 14px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--ivory); }
.modal__body { padding: 22px 26px 28px; display: grid; gap: 18px; }
.table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; min-width: 460px; }
.size-table th, .size-table td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.size-table th { font: 500 12px/1.2 var(--f-display); letter-spacing: .10em; text-transform: uppercase; color: var(--navy); }
.size-table th[scope="row"] { text-align: left; }
.size-table tr.is-hit td, .size-table tr.is-hit th { background: var(--mist); }
.fit { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; background: var(--cream); padding: 16px; border-radius: 2px; }
.fit output { font-size: 15px; color: var(--navy); grid-column: 1 / -1; min-height: 1.4em; }

/* Thanh mua dính đáy (điện thoại) */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ivory); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: none; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .35s var(--ease); box-shadow: 0 -8px 24px -18px rgba(41, 69, 106, .4); }
.sticky-buy.is-on { transform: none; }
.sticky-buy img { width: 44px; height: 60px; object-fit: cover; }
.sticky-buy b { display: block; font-weight: 400; color: var(--navy); font-size: 13px; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sticky-buy span { font-size: 13px; color: var(--muted); }
.sticky-buy .btn { min-height: 46px; padding: 0 18px; }

@media (max-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .buy .btn { white-space: normal; line-height: 1.35; padding: 8px 16px; }
  .gallery { position: static; grid-template-columns: 1fr; margin-inline: calc(var(--gutter) * -1); }
  .thumbs { display: none; }
  .stage { border-radius: 0; }
  .dots { display: flex; }
  .reco .rail-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .reco .rail-row > * { scroll-snap-align: start; }
  .sticky-buy { display: grid; }
}

/* Web thật */
.gallery--single { grid-template-columns: minmax(0, 1fr); }
.info__desc p { margin: 0 0 8px; }
.info__desc p:last-child { margin: 0; }
.size[disabled] { cursor: not-allowed; }
.acc .acc__body > p:last-child { margin-bottom: 0; }
.notify .input { text-align: center; }
/* Form thêm giỏ bọc khối size + khối nút: giữ khoảng cách như bản mẫu */
form.cart { display: grid; gap: 22px; }
