/* Build 92: UI brand-v1 product page (detail-brand.blade.php). Solid colours only; uses home.css tokens (.dh). */
.pdp { background: var(--paper); padding: 24px 0 72px; }
.pdp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 4px 0 20px; }
.pdp-crumbs a { color: var(--muted); text-decoration: none; }
.pdp-crumbs a:hover { color: var(--ink); text-decoration: underline; }

.pdp-main { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: start; }

/* gallery */
.pdp-gallery { position: relative; min-width: 0; }
.pdp-stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; background: var(--cream); aspect-ratio: 1 / 1; outline: none; }
.pdp-stage::-webkit-scrollbar { display: none; }
.pdp-stage:focus-visible { box-shadow: 0 0 0 3px rgb(196 81 28 / .35); }
.pdp-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: grid; place-items: center; padding: 7%; }
.pdp-slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-noimg { color: var(--muted); font-size: 14px; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb { flex: 0 0 76px; height: 76px; border-radius: 12px; border: 1.5px solid transparent; background: var(--cream); padding: 6px; cursor: pointer; transition: border-color .2s ease; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-thumb:hover { border-color: #CFC4B5; }
.pdp-thumb.is-on { border-color: var(--ink); }
.pdp-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-count { position: absolute; top: 14px; right: 14px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .85); font-size: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* buy box */
.pdp-info { min-width: 0; }
.pdp-sticky { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 22px; }
.pdp-kicker { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pdp-kicker a { color: var(--accent); text-decoration: none; }
.pdp-kicker a:hover { color: var(--accent-ink); text-decoration: underline; }
.pdp-sku { color: var(--muted); font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: 13px; }
.pdp-title { margin: -8px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.22; letter-spacing: -.015em; color: var(--ink); overflow-wrap: anywhere; hyphens: auto; max-width: 30ch; }
.pdp-price { padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.pdp-price-main { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.pdp-from { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.pdp-price-ask { font-size: 22px; }
.pdp-price-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.pdp-tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-tags li { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--cream); color: var(--ink); }
.pdp-tags li.is-ok { color: #1d6b3a; background: #E8F3EC; }
.pdp-tags li.is-ok::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2f8f4e; margin-right: 6px; vertical-align: 1px; }
.pdp-tags li.is-warn { color: #8a4b00; background: #FBEFDF; }

/* variations (shared partial, restyled) */
.pdp-variations:empty { display: none; }
.pdp .pdp-variations .heading-font { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pdp .product-radio-btn { list-style: none; padding: 0; margin: 8px 0 14px !important; display: flex; flex-wrap: wrap; gap: 8px !important; }
.pdp .product-radio-btn > div { display: contents; }
.pdp .product-radio-btn li { list-style: none; }
.pdp .product-radio-btn input { position: absolute; opacity: 0; pointer-events: none; }
.pdp .product-radio-btn label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 14px !important; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s ease; }
.pdp .product-radio-btn label span { width: 20px; height: 20px; padding: 0 !important; border-radius: 50% !important; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); display: inline-block; }
.pdp .product-radio-btn label:hover { border-color: #CFC4B5; }
.pdp .product-radio-btn input:checked + label { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pdp .product-radio-btn input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.pdp-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.pdp-buy { display: flex; align-items: flex-end; gap: 12px; }
.pdp-qty { display: flex; flex-direction: column; gap: 6px; }
.pdp-qty label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; }
.pdp .product-qty { display: flex; align-items: center; height: 52px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.pdp .product-qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }
.pdp .product-qty button:hover { background: var(--cream); }
.pdp .product-qty input { width: 64px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 600; font-size: 16px; color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; }
.pdp .product-qty input:focus { outline: 0; background: var(--paper); }
.pdp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, transform .15s ease; }
.pdp-btn:active { transform: scale(.98); }
.pdp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pdp-btn-accent { flex: 1; background: var(--accent); color: #fff; }
.pdp-btn-accent:hover { background: var(--accent-ink); }
.pdp-btn-accent:disabled { opacity: .6; cursor: progress; }
.pdp-btn-line { width: 100%; background: #fff; border-color: var(--line); color: var(--ink); }
.pdp-btn-line:hover { border-color: var(--ink); }

.pdp-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pdp-facts li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.pdp-facts b { font-weight: 600; color: var(--ink); }
.pdp-facts span { color: #4b443c; }

.pdp-share-top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.pdp-share-top:hover { border-color: var(--ink); }
.pdp-share-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-share.is-hl { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(196 81 28 / .15); }
.pdp-share { transition: border-color .3s ease, box-shadow .3s ease; }
.pdp-share { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.pdp-share-h { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pdp-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-sh { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink) !important; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.pdp-sh:hover { border-color: var(--ink); }
.pdp-sh:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-sh[hidden] { display: none; }
.pdp-sh-wa svg { color: #25D366; }
.pdp-sh-fb svg { color: #1877F2; }
.pdp-sh-in svg { color: #0A66C2; }
.pdp-sh-native { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.pdp-sh-native:hover { background: #2a251f; }
.pdp-sh.is-done { border-color: #2f8f4e; color: #1d6b3a !important; background: #E8F3EC; }
@media (max-width: 560px) { .pdp-sh { flex: 1 1 calc(50% - 4px); justify-content: center; } }

/* details */
.pdp-details { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.pdp-h { margin: 0 0 16px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.pdp-prose { font-size: 16px; line-height: 1.7; color: #3d3730; max-width: 68ch; overflow-wrap: anywhere; }
.pdp-prose p { margin: 0 0 1em; }
.pdp-prose ul, .pdp-prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.pdp-prose li { margin-bottom: .35em; }
.pdp-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.pdp-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pdp-prose td, .pdp-prose th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.pdp-video { margin-top: 24px; border-radius: 16px; overflow: hidden; }
.pdp-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.pdp-specs { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; align-self: start; }
.pdp-specs dl { margin: 0; }
.pdp-specs dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EFE8DD; font-size: 14px; line-height: 1.45; }
.pdp-specs dl > div:last-child { border-bottom: 0; }
.pdp-specs dt { font-weight: 600; color: var(--ink); }
.pdp-specs dd { margin: 0; color: #4b443c; overflow-wrap: anywhere; }

/* related */
.pdp-related { margin-top: 80px; }
.pdp-rel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pdp-rel-head .pdp-h { margin: 0; font-size: clamp(22px, 2.2vw, 30px); }

@media (max-width: 1100px) {
    .pdp-main { gap: 36px; }
    .pdp-details { gap: 36px; }
}
@media (max-width: 900px) {
    .pdp { padding-top: 12px; }
    .pdp-main, .pdp-details { grid-template-columns: 1fr; }
    .pdp-sticky { position: static; }
    .pdp-stage { border-radius: 18px; }
    .pdp-details { margin-top: 48px; padding-top: 32px; }
    .pdp-related { margin-top: 56px; }
}
@media (max-width: 560px) {
    .pdp-thumbs { display: none; }               /* swipe the photo; the counter shows where you are */
    .pdp-buy { flex-wrap: wrap; }
    .pdp-qty { width: 100%; }
    .pdp .product-qty { width: 100%; justify-content: space-between; }
    .pdp .product-qty input { flex: 1; }
    .pdp-btn-accent { width: 100%; flex: auto; }
    .pdp-facts li, .pdp-specs dl > div { grid-template-columns: 92px 1fr; }
    .pdp-price-main { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .pdp-stage { scroll-behavior: auto; }
    .pdp-btn, .pdp-thumb { transition: none; }
}

/* related cards: shown at once (the homepage reveal animation is not used on this page) */
.pdp [data-reveal] { opacity: 1 !important; transform: none !important; }
.pdp-prose ul { list-style: disc; }
.pdp-prose ol { list-style: decimal; }
.pdp-prose ul li, .pdp-prose ol li { display: list-item; }

/* ===== build 95: quick-view pop-up in the product page look ===== */
.pdp { --cream: #F5F0E8; --paper: #FBF8F3; --tile: #ECE6DC; --ink: #15120E; --muted: #6B6259; --line: #E2D9CC; --accent: #C4511C; --accent-ink: #9C3D12;
       --display: 'Inter Tight', Inter, system-ui, sans-serif; --body: Inter, system-ui, sans-serif; }
#quickview_modal .modal-dialog { max-width: min(1040px, calc(100vw - 32px)); }
#quickview_modal .modal-content { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -20px rgb(21 18 14 / .45); }
#quickview_modal .modal-body { padding: 0; background: var(--paper, #FBF8F3) !important; }
#quickview_modal .btn-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; padding: 0; border-radius: 50%; background-color: #fff; background-size: 12px; opacity: 1; box-shadow: 0 2px 10px rgb(21 18 14 / .12); }
#quickview_modal .btn-close:focus-visible { outline: 2px solid #C4511C; outline-offset: 2px; box-shadow: none; }
.pdp-qv { padding: 28px; background: transparent; font-family: var(--body); color: var(--ink); }
.pdp-qv .dh-wrap { max-width: none; padding: 0; margin: 0; }
.pdp-qv .pdp-main { gap: 36px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pdp-qv .pdp-sticky { position: static; gap: 18px; padding-right: 28px; }
.pdp-qv .pdp-count { right: 12px; top: 12px; }
.pdp-qv .pdp-title { font-size: clamp(20px, 1.8vw, 26px); margin: -6px 0 0; }
.pdp-qv .pdp-title a { color: inherit; text-decoration: none; }
.pdp-qv .pdp-title a:hover { color: var(--accent); }
.pdp-qv .pdp-price { padding: 14px 16px; }
.pdp-qv .pdp-price-main { font-size: 24px; }
.pdp-facts-qv li:last-child { border-bottom: 0; }
.pdp-full { align-self: flex-start; font-weight: 600; font-size: 14.5px; color: var(--ink) !important; text-decoration: none !important; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.pdp-full:hover { color: var(--accent) !important; }
#quickview_modal.fade .modal-dialog { transform: translateY(12px) scale(.98); transition: transform 240ms cubic-bezier(.165, .84, .44, 1); }
#quickview_modal.show .modal-dialog { transform: none; }
@media (max-width: 900px) {
    .pdp-qv { padding: 16px; }
    .pdp-qv .pdp-main { grid-template-columns: 1fr; gap: 20px; }
    .pdp-qv .pdp-sticky { padding-right: 0; }
    .pdp-qv .pdp-thumbs { display: none; }
    .pdp-qv .pdp-stage { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { #quickview_modal.fade .modal-dialog { transition: none; transform: none; } }

/* ===== build 96: item code, easy to find ===== */
.pdp-code { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: -6px; padding: 6px 6px 6px 12px; border: 1.5px dashed #CDBFAC; border-radius: 12px; background: #fff; max-width: 100%; }
.pdp-code-l { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pdp-code-v { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15.5px; font-weight: 700; color: var(--ink); letter-spacing: .02em; overflow-wrap: anywhere; user-select: all; }
.pdp-code-copy { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--cream); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background-color 150ms ease; }
.pdp-code-copy:hover { background: var(--tile); }
.pdp-code-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-code-copy.is-done { background: #E8F3EC; color: #1d6b3a; }
/* the code printed on the photo, so a screenshot always carries it */
.pdp-photo-code { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 5px 10px; border-radius: 8px; background: rgb(21 18 14 / .82); color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; pointer-events: none; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-gallery:has(.pdp-thumbs) .pdp-photo-code { bottom: calc(14px + 76px + 14px); }
@media (max-width: 560px) { .pdp-gallery:has(.pdp-thumbs) .pdp-photo-code { bottom: 14px; } }
.pdp-qv .pdp-gallery:has(.pdp-thumbs) .pdp-photo-code { bottom: calc(14px + 76px + 14px); }
@media (max-width: 900px) { .pdp-qv .pdp-gallery:has(.pdp-thumbs) .pdp-photo-code { bottom: 14px; } }
