.detail { padding: 30px 0 70px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a:hover { color: var(--red); }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

/* gallery */
.gallery-main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.gallery-main .ph { height: 440px; background-size: cover; background-position: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumbs .ph, .thumbs img { height: 84px; border-radius: var(--r-sm); cursor: pointer; border: 2px solid transparent; width: 100%; object-fit: cover; }
.thumbs .active { border-color: var(--red); }

/* info */
.dinfo .cat { font-size: 13px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dinfo h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 8px 0 12px; }
.dinfo .rating { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
.dinfo .rating .star { color: var(--orange); font-size: 16px; }
.dinfo .rating .sold { color: var(--ink-3); }
.price-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 24px; }
.price-box .now { font-family: var(--font-head); font-weight: 900; font-size: 34px; color: var(--red); }
.price-box .unit { color: var(--ink-3); font-weight: 600; font-size: 15px; }
.price-box .note { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }

.opt-group { margin-bottom: 20px; }
.opt-label { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; margin-bottom: 10px; display: block; }
.opt-row { display: flex; gap: 9px; flex-wrap: wrap; }
.opt { font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.opt:hover { border-color: var(--red); }
.opt.active { background: var(--red-soft); border-color: var(--red); color: var(--red); }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden; background: #fff; }
.stepper button { width: 44px; height: 46px; border: 0; background: #fff; font-size: 20px; font-family: var(--font-head); color: var(--red); }
.stepper button:hover { background: var(--red-soft); }
.stepper input { width: 56px; height: 46px; border: 0; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); }
.qty-row .est { font-size: 14px; color: var(--ink-2); }
.qty-row .est b { font-family: var(--font-head); color: var(--ink); font-size: 18px; }

.dcta { display: flex; gap: 12px; }
.dcta .btn { flex: 1; }
.assure { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.assure .a { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.assure .a svg { width: 20px; height: 20px; color: var(--red); flex: none; }

/* tabs / description */
.dtabs { margin-top: 56px; }
.dtab-head { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 26px; }
.dtab-head button { font-family: var(--font-head); font-weight: 700; font-size: 16px; padding: 14px 20px; border: 0; background: none; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.dtab-head button.active { color: var(--red); border-color: var(--red); }
.dtab-panel { display: none; }
.dtab-panel.active { display: block; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; max-width: 720px; }
.spec-grid .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-grid .row span:first-child { color: var(--ink-2); }
.spec-grid .row span:last-child { font-weight: 600; }
.desc-body { max-width: 760px; color: var(--ink-2); }
.desc-body p { margin-bottom: 14px; }
.desc-body ul { padding-left: 20px; color: var(--ink-2); }
.desc-body li { margin-bottom: 8px; }

/* related */
.related { padding: 70px 0; }
.rgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rcard { overflow: hidden; }
.rcard .ph { height: 180px; }
.rcard .body { padding: 14px 16px 18px; }
.rcard .cat { font-size: 11.5px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; }
.rcard h3 { font-size: 16px; margin: 4px 0; }
.rcard .price { font-family: var(--font-head); font-weight: 800; color: var(--red); font-size: 16px; }

@media (max-width: 860px) {
  .dgrid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-main .ph { height: 320px; }
  .rgrid { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .rgrid { grid-template-columns: 1fr; } .dcta { flex-direction: column; } }
