/* QQuack Product details page — loads after base.css (tyre card lives there) */
.pd-container { width: min(1280px, 92%); margin: 0 auto; }
.pd-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 28px 0 24px; color: #aab3bb; font-size: 14px; }
.pd-breadcrumb a:hover { color: var(--yellow); }
.pd-breadcrumb i { font-size: 10px; color: #5d676e; }
.pd-breadcrumb span { color: #fff; font-weight: 600; }
.stars { color: #f5b800; letter-spacing: 2px; }

/* Top: gallery + info */
.pd-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pd-gallery { position: sticky; top: 100px; }
.pd-stage { position: relative; aspect-ratio: 1 / .92; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: radial-gradient(ellipse at 50% 80%, #e7eaed, #fff 68%); box-shadow: 0 30px 60px -30px #000; cursor: zoom-in; }
.pd-stage img { width: 82%; height: 88%; object-fit: contain; filter: drop-shadow(0 18px 18px #0003); transition: transform .35s ease; }
.pd-stage.zooming img { transform: scale(2.1) !important; transition: transform .15s ease; }
.pd-discount { position: absolute; z-index: 2; top: 20px; right: 20px; padding: 8px 14px; border-radius: 10px; background: var(--yellow); color: #111; font-size: 15px; font-weight: 800; box-shadow: 0 6px 16px -6px #ffd900aa; }
.pd-wish { position: absolute; z-index: 2; top: 18px; left: 18px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #1b1d1f; font-size: 22px; box-shadow: 0 6px 18px -6px #0005; cursor: pointer; transition: transform .2s, color .2s; }
.pd-wish:hover { transform: scale(1.1); }
.pd-wish[aria-pressed="true"] { color: #e0283a; }
.pd-zoom-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: #111a; color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; transition: opacity .2s; }
.pd-stage.zooming .pd-zoom-hint { opacity: 0; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.pd-thumbs button { aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, transform .2s; }
.pd-thumbs button:hover { transform: translateY(-3px); }
.pd-thumbs button.active { border-color: var(--yellow); box-shadow: 0 0 0 3px #ffd90044; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
/* Close-up "views" of the same photo */
.view-tread { transform: scale(2.2); transform-origin: 18% 45%; }
.view-sidewall { transform: scale(2); transform-origin: 72% 18%; }
.view-wheel { transform: scale(1.9); transform-origin: 66% 58%; }

.pd-info { padding-top: 4px; }
.pd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd-brand { padding: 4px 12px; background: #1b3c96; color: #fff; font: 900 22px/1.1 var(--display); font-style: italic; letter-spacing: .5px; }
.pd-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid #2c363d; border-radius: 999px; background: #0e1418; color: #d3d9dd; font-size: 13px; font-weight: 600; }
.pd-tag i { color: var(--yellow); }
.pd-info h1 { margin: 0 0 12px; font: 900 clamp(42px, 4.6vw, 64px)/.95 var(--display); letter-spacing: .3px; }
.pd-rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #aab3bb; font-size: 15px; }
.pd-rating strong { color: #fff; }
.pd-rating:hover span:last-child { color: var(--yellow); text-decoration: underline; }
.pd-summary { margin: 0 0 24px; color: #c7ced3; font-size: 17px; line-height: 1.65; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.pd-price strong { font-size: 46px; font-weight: 800; letter-spacing: -1px; color: var(--yellow); }
.pd-price s { color: #7b848c; font-size: 20px; font-weight: 600; }
.pd-save { padding: 5px 12px; border-radius: 999px; background: #1fb24a22; border: 1px solid #1fb24a66; color: #5fe08a; font-size: 14px; font-weight: 700; }
.pd-price-note { margin: 6px 0 26px; color: #8d979e; font-size: 14px; }
.pd-option { padding: 22px 0; border-top: 1px solid #1f282e; }
.pd-option-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 15px; font-weight: 700; }
.pd-option-head a { color: var(--yellow); font-size: 14px; font-weight: 600; }
.pd-option-head a:hover { text-decoration: underline; }
.size-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.size-options input { position: absolute; opacity: 0; pointer-events: none; }
.size-options span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid #2c363d; border-radius: 12px; background: #0e1418; font-size: 15px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.size-options small { color: #8d979e; font-size: 12px; font-weight: 600; }
.size-options label:hover span { border-color: #ffd90088; }
.size-options input:checked + span { border-color: var(--yellow); background: #ffd90014; box-shadow: inset 0 0 0 1px var(--yellow); }
.size-options input:checked + span small { color: var(--yellow); }
.size-options input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.pd-stock { font-size: 14px; font-weight: 600; }
.pd-stock.in { color: #5fe08a; }
.pd-stock.low { color: #ffb84d; }
.pd-buy-row { display: flex; gap: 12px; }
.qty { display: flex; align-items: center; border: 1px solid #2c363d; border-radius: 12px; background: #0e1418; }
.qty button { width: 46px; height: 54px; border: 0; background: none; color: #fff; font-size: 14px; cursor: pointer; transition: color .2s; }
.qty button:hover { color: var(--yellow); }
.qty input { width: 48px; border: 0; background: none; color: #fff; font: 800 18px var(--body); text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 2px solid var(--yellow); outline-offset: -2px; border-radius: 6px; }
.pd-add { flex: 1; padding: 16px; font-size: 17px; }
.pd-total { margin: 14px 0 0; color: #aab3bb; font-size: 15px; }
.pd-total strong { color: #fff; font-size: 18px; }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 0; padding: 22px 0 0; border-top: 1px solid #1f282e; list-style: none; }
.pd-perks li { display: flex; gap: 12px; align-items: flex-start; }
.pd-perks i { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: #ffd90014; border: 1px solid #ffd90033; color: var(--yellow); font-size: 16px; }
.pd-perks div { display: flex; flex-direction: column; }
.pd-perks strong { font-size: 15px; }
.pd-perks span { color: #8d979e; font-size: 13px; }

/* Highlights */
.pd-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 40px; margin: 64px 0 0; padding: 28px 32px; border: 1px solid #1f2a31; border-radius: 18px; background: linear-gradient(160deg, #11181d, #080b0e); }
.hl { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 12px; font-size: 15px; }
.hl span { color: #c7ced3; }
.hl b { color: var(--yellow); text-align: right; }
.bar { height: 8px; border-radius: 999px; background: #1c252b; overflow: hidden; }
.bar i { display: block; width: var(--v); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e0a800, var(--yellow)); }

/* Tabs */
.pd-tabs { margin-top: 64px; scroll-margin-top: 100px; }
.tab-list { display: flex; gap: 8px; border-bottom: 1px solid #222c33; overflow-x: auto; scrollbar-width: none; }
.tab-list button { position: relative; flex: 0 0 auto; padding: 16px 22px; border: 0; background: none; color: #aab3bb; font: 700 17px var(--body); cursor: pointer; transition: color .2s; }
.tab-list button span { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #1c252b; font-size: 12px; }
.tab-list button:hover { color: #fff; }
.tab-list button.active { color: var(--yellow); }
.tab-list button.active:after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--yellow); }
.tab-panel { padding: 36px 0 0; animation: pd-fade .3s ease; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.overview-grid h2, .pd-similar h2 { margin: 0 0 16px; font: 900 clamp(34px, 3.4vw, 46px)/1 var(--display); font-style: italic; }
.overview-grid h2 em, .pd-similar h2 em { color: var(--yellow); font-style: inherit; }
.overview-grid p { margin: 0 0 14px; color: #c7ced3; font-size: 16px; line-height: 1.7; }
.feature-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid #1f2a31; border-radius: 14px; background: #0b1013; }
.feature-list i { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 12px; background: linear-gradient(180deg, #ffe94d, var(--yellow)); color: #111; font-size: 18px; }
.feature-list div { display: flex; flex-direction: column; gap: 2px; }
.feature-list strong { font-size: 16px; }
.feature-list span { color: #aab3bb; font-size: 14px; }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid #1f2a31; border-radius: 14px; overflow: hidden; font-size: 15px; }
.spec-table th, .spec-table td { padding: 16px 18px; border-bottom: 1px solid #182127; text-align: left; }
.spec-table th { width: 18%; background: #0e1418; color: #8d979e; font-weight: 600; }
.spec-table td { color: #e6e9ec; font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-note { margin: 18px 0 0; color: #aab3bb; font-size: 15px; }
.spec-note i { color: var(--yellow); margin-right: 6px; }
.spec-note a { color: var(--yellow); text-decoration: underline; }
.reviews-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.review-summary { padding: 28px; border: 1px solid #1f2a31; border-radius: 18px; background: #0b1013; text-align: center; }
.big-score { display: block; color: var(--yellow); font: 900 72px/1 var(--display); }
.review-summary .stars { font-size: 18px; }
.review-summary p { margin: 8px 0 20px; color: #aab3bb; }
.dist { display: grid; gap: 10px; }
.dist > div { display: grid; grid-template-columns: 30px 1fr 34px; align-items: center; gap: 10px; color: #c7ced3; font-size: 14px; }
.dist b { color: #8d979e; font-weight: 600; text-align: right; }
.review-items { display: grid; gap: 16px; }
.pd-review { padding: 22px 24px; border: 1px solid #1f2a31; border-radius: 16px; background: #0b1013; }
.pd-review header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pd-review img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--yellow); }
.pd-review h3 { margin: 0 0 2px; font-size: 16px; }
.pd-review .stars { font-size: 13px; }
.verified { margin-left: auto; color: #5fe08a; font-size: 13px; font-weight: 600; }
.pd-review p { margin: 0; color: #c7ced3; font-size: 15px; line-height: 1.65; }

/* Similar */
.pd-similar { margin: 80px 0 96px; }
.pd-similar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.pd-similar h2 { margin: 0; }
.view-all-link { color: var(--yellow); font-size: 15px; font-weight: 700; padding: 10px 18px; border: 1px solid #ffd90055; border-radius: 999px; transition: background .2s, color .2s; }
.view-all-link:hover { background: var(--yellow); color: #111; }
.similar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tyre-actions.single { grid-template-columns: 1fr; }

/* Sticky mobile bar */
.pd-sticky { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-top: 1px solid #ffd90055; background: #080b0ef2; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(100%); transition: transform .3s; }
.pd-sticky.show { transform: none; }
.pd-sticky div { display: flex; flex-direction: column; }
.pd-sticky strong { color: var(--yellow); font-size: 22px; }
.pd-sticky span { color: #aab3bb; font-size: 13px; }
.pd-sticky .button { padding: 13px 18px; }

@keyframes pd-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tab-panel { animation: none; } }

/* Responsive */
@media (max-width: 1100px) {
  .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-highlights { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-summary { max-width: 420px; }
}
@media (max-width: 900px) {
  .pd-top { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { position: static; }
  .overview-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-sticky { display: flex; }
  .cart-toast { bottom: 92px; }
  .pd-similar { margin-bottom: 120px; }
}
@media (max-width: 600px) {
  .pd-container { width: calc(100% - 32px); }
  .pd-breadcrumb { padding: 20px 0 16px; font-size: 13px; }
  .pd-stage { border-radius: 16px; }
  .pd-zoom-hint { display: none; }
  .pd-thumbs { gap: 8px; }
  .pd-summary { font-size: 16px; }
  .pd-price strong { font-size: 38px; }
  .size-options { grid-template-columns: 1fr 1fr; }
  .pd-perks { grid-template-columns: 1fr; }
  .pd-highlights { grid-template-columns: 1fr; padding: 22px 18px; margin-top: 44px; }
  .hl { grid-template-columns: 86px 1fr 30px; }
  .pd-tabs { margin-top: 44px; }
  .tab-list button { padding: 14px 14px; font-size: 15px; }
  .spec-table, .spec-table tbody, .spec-table tr { display: block; }
  .spec-table tr { display: grid; grid-template-columns: 42% 58%; }
  .spec-table th { width: auto; }
  .spec-table th, .spec-table td { padding: 12px 14px; font-size: 14px; }
  .pd-review { padding: 18px; }
  .pd-review header { flex-wrap: wrap; }
  .verified { margin-left: 60px; }
  .similar-grid { gap: 14px; }
  .pd-similar-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .similar-grid { grid-template-columns: 1fr; }
}
