/* ==========================================================
   Product page v2 — scoped under .pd-page (prefix pd-)
   Loaded only by resources/views/frontend/product_details/v2.blade.php
   Product cards use the shared card (product-card.css).
   ========================================================== */

.pd-page {
    --pd-navy: #000139;
    --pd-navy2: #000139;
    --pd-ink: #171b24;
    --pd-muted: #6b7280;
    --pd-line: #d9e1ea;
    --pd-line-soft: #edf0f3;
    --pd-band: #E9EEF2;
    --pd-orange: #f3af3d;
    --pd-link: #0b5cad;
    --pd-teal-bg: #e6f6f8;
    --pd-teal: #0f7f91;
    --pd-sale: #b3341f;
    --pd-green: #138a35;
    --pd-tag-blue: #25bcf1;

    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 22px 56px;
    color: var(--pd-ink);
    background: #fff;
}
.pd-page *,
.pd-page *::before,
.pd-page *::after { box-sizing: border-box; }

/* ---------- Top layout: media | main | side ---------- */
.pd-top {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 36%) minmax(220px, 20%);
    gap: 24px;
    align-items: start;
}
.pd-col--util { display: grid; gap: 14px; }

/* Digital page: two columns (photo | product info), no side column */
.pd-top--two { grid-template-columns: minmax(0, 44%) minmax(0, 36%); }
.pd-digital-info { display: grid; gap: 10px; margin: 0 0 14px; }
.pd-page .kdd-badge { border-radius: 0; }

/* ---------- Media ---------- */
.pd-media { position: relative; }
.pd-media > .row { margin-left: 0; margin-right: 0; }
.pd-media > .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.pd-media .product-gallery { border: 1px solid var(--pd-line); background: #fff; }
.pd-media .product-gallery-thumb { margin-top: 12px; }
.pd-media .product-gallery-thumb .slick-arrow,
.pd-media .product-gallery-thumb .slick-prev,
.pd-media .product-gallery-thumb .slick-next { display: none !important; }

.pd-media-acts {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    gap: 8px;
}
.pd-page .pd-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--pd-line);
    background: #fff;
    color: var(--pd-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .10);
}
.pd-page .pd-icon-btn svg { width: 18px; height: 18px; }
.pd-page .pd-icon-btn--flat { border: 0; background: transparent; box-shadow: none; }

.pd-media-nav { display: none; }
.pd-dots { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1; flex-wrap: wrap; }
.pd-page .pd-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c8cbd0;
    cursor: pointer;
}
.pd-page .pd-dot.is-active { background: #000; }
.pd-media-nav-acts { display: none; gap: 8px; }

.pd-under { margin-top: 18px; border-top: 1px solid var(--pd-line); padding-top: 16px; }
.pd-badges { display: flex; gap: 9px; flex-wrap: wrap; }
.pd-badge-img {
    width: 78px;
    height: 58px;
    border: 1px solid var(--pd-line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-badge-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Ask about this product */
.pd-ask { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pd-line); }
.pd-badges + .pd-ask { margin-top: 14px; }
.pd-under > .pd-ask:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pd-ask-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--pd-navy2); margin-bottom: 9px; }
.pd-ask-head svg { width: 17px; height: 17px; flex: none; }
.pd-ask-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.pd-page .pd-ask-chip { border: 1px solid #cfe3f5; background: #eef7ff; color: #195e9b; padding: 7px 10px; font-size: 12px; border-radius: 999px; cursor: pointer; line-height: 1.2; }
.pd-page .pd-ask-chip:hover { background: #dfefff; }
.pd-page .pd-ask-chip--primary { background: #000139; color: #fff; border-color: #000139; }
.pd-page .pd-ask-chip--primary:hover { background: #000139; }

/* Text stars */
.pd-stars { color: #d1d5db; letter-spacing: 1px; }
.pd-stars .is-on { color: #f1b33a; }

/* ---------- Head ---------- */
.pd-pick { margin-bottom: 8px; }
.pd-title-row { display: flex; align-items: flex-start; gap: 10px; }
.pd-page .pd-title {
    flex: 1;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    margin: 8px 0 10px;
    color: var(--pd-navy2);
}
.pd-meta { font-size: 13px; margin: 8px 0; color: var(--pd-muted); }
.pd-meta a { color: var(--pd-navy2); font-weight: 700; text-decoration: none; }
.pd-meta a:hover { text-decoration: underline; }
.pd-meta .rating { margin-right: 4px; }
.pd-inline-acts { display: inline-flex; gap: 12px; margin-left: 10px; vertical-align: middle; }
.pd-page .pd-inline-act {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pd-navy2);
}
.pd-inline-act svg { width: 15px; height: 15px; flex: 0 0 15px; }
.pd-divider { height: 1px; background: var(--pd-line); margin: 14px 0; }

/* ---------- Share dropdown (existing share plugin inside) ---------- */
.pd-share { position: relative; flex: 0 0 auto; }
.pd-share--title { margin-top: 4px; }
.pd-share--title .pd-icon-btn { width: 38px; height: 38px; box-shadow: none; }
.pd-share--title .pd-icon-btn svg { width: 20px; height: 20px; }
.pd-share-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    width: 190px;
    background: #fff;
    border: 1px solid #cfd6de;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    z-index: 30;
}
.pd-share.is-open .pd-share-menu { display: block; }
.pd-share-menu .jssocials-shares { display: flex; flex-direction: column; margin: 0; }
.pd-share-menu .jssocials-share { display: block; margin: 0; border-bottom: 1px solid #e7ebef; }
.pd-share-menu .jssocials-share:last-child { border-bottom: 0; }
.pd-share-menu .jssocials-share-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px !important;
    background: #fff !important;
    color: var(--pd-ink) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 13px;
    text-decoration: none;
}
.pd-share-menu .jssocials-share-link:hover { background: #f6f9fc !important; }
.pd-share-menu .jssocials-share-logo {
    width: 22px;
    font-size: 16px;
    text-align: center;
    color: var(--pd-navy);
}
.pd-share-menu .jssocials-share-label { display: none; }
.pd-share-menu .jssocials-share-email .jssocials-share-link::after { content: "Email"; }
.pd-share-menu .jssocials-share-twitter .jssocials-share-link::after { content: "X"; }
.pd-share-menu .jssocials-share-facebook .jssocials-share-link::after { content: "Facebook"; }
.pd-share-menu .jssocials-share-linkedin .jssocials-share-link::after { content: "LinkedIn"; }
.pd-share-menu .jssocials-share-whatsapp .jssocials-share-link::after { content: "WhatsApp"; }
.pd-share-menu .jssocials-share-pinterest .jssocials-share-link::after { content: "Pinterest"; }
.pd-share-menu .jssocials-share-telegram .jssocials-share-link::after { content: "Telegram"; }
.pd-share-menu .jssocials-share-messenger .jssocials-share-link::after { content: "Messenger"; }
.pd-share-menu .jssocials-share-viber .jssocials-share-link::after { content: "Viber"; }
.pd-share-menu .jssocials-share-line .jssocials-share-link::after { content: "LINE"; }
.pd-share-menu .jssocials-share-pocket .jssocials-share-link::after { content: "Pocket"; }
.pd-share-menu .jssocials-share-vkontakte .jssocials-share-link::after { content: "VK"; }

/* ---------- Price ---------- */
.pd-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pd-label { width: 76px; color: var(--pd-muted); font-size: 13px; flex: 0 0 76px; }
.pd-price { font-size: 22px; font-weight: 700; color: var(--pd-navy); }
.pd-was { font-size: 14px; color: var(--pd-muted); }
.pd-unit { font-size: 13px; color: var(--pd-muted); }
.pd-off { font-size: 11px; font-weight: 700; color: #fff; background: var(--pd-sale); padding: 3px 6px; }
.pd-club { font-size: 11px; background: var(--pd-orange); color: #fff; padding: 4px 7px; font-weight: 700; }

/* ---------- Options ---------- */
.pd-block-title { font-size: 14px; font-weight: 700; color: var(--pd-navy2); margin: 16px 0 10px; }
.pd-field { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; margin-bottom: 12px; }
.pd-field-label { font-size: 13px; color: #4b5563; padding-top: 7px; }
.pd-field-body { min-width: 0; }
.pd-page .pd-options { display: flex; gap: 7px; flex-wrap: wrap; }
.pd-page .pd-options + .d-none,
.pd-page .d-none > .pd-options { margin-top: 7px; }
.pd-page .aiz-megabox.pd-opt { margin: 0; padding: 0; position: relative; cursor: pointer; }
.pd-page .aiz-megabox.pd-opt > input { position: absolute; opacity: 0; width: 0; height: 0; }
.pd-page .aiz-megabox .pd-choice {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pd-line);
    border-radius: 0;
    background: #fff;
    color: var(--pd-ink);
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}
.pd-page .aiz-megabox > input:checked ~ .pd-choice {
    border: 2px solid var(--pd-navy2);
    padding: 6px 10px;
    background: #fff;
    color: var(--pd-ink);
}
.pd-page .aiz-megabox .pd-swatch {
    display: block;
    width: 30px;
    height: 30px;
    padding: 3px;
    border: 1px solid var(--pd-line);
    border-radius: 0;
    background: #fff;
}
.pd-page .aiz-megabox .pd-swatch > span { display: block; width: 100%; height: 100%; }
.pd-page .aiz-megabox > input:checked ~ .pd-swatch { border: 2px solid var(--pd-navy2); padding: 2px; }
.pd-page .pd-viewall {
    font-size: 12px;
    color: var(--pd-link);
    text-decoration: underline;
    margin-top: 5px;
    display: inline-block;
}

/* ---------- Personalize ---------- */
.pd-personal { border-top: 1px solid var(--pd-line); margin-top: 14px; padding-top: 4px; }
.pd-personal-row {
    display: grid;
    grid-template-columns: 110px 1fr 70px;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid var(--pd-line-soft);
}
.pd-personal-name strong { display: block; font-size: 12px; color: var(--pd-ink); }
.pd-optional { display: inline-block; font-size: 10px; background: var(--pd-tag-blue); color: #fff; padding: 2px 5px; margin-top: 3px; }
.pd-personal-input { min-width: 0; display: grid; gap: 6px; }
.pd-personal-price { font-size: 12px; font-weight: 700; padding-top: 8px; }
.pd-page .pd-input {
    width: 100%;
    border: 1px solid var(--pd-line);
    border-radius: 0;
    background: #fff;
    padding: 9px 10px;
    font-size: 12px;
    color: #4b5563;
}
.pd-page .pd-textarea { height: 58px; resize: none; }
.pd-personal-pills { display: none; }
.pd-page .pd-pill { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--pd-line); background: #fff; color: var(--pd-ink); padding: 7px 11px; font-size: 12px; min-height: 38px; cursor: pointer; }
.pd-page .pd-pill.is-active { border: 2px solid var(--pd-navy2); padding: 6px 10px; }

/* ---------- Quantity / total / buttons ---------- */
.pd-qty-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.pd-page .pd-qty { width: auto; flex-wrap: nowrap; border: 1px solid var(--pd-line); }
.pd-page .pd-qty .btn {
    width: 36px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f7f8fa;
    color: var(--pd-ink);
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-page .pd-qty .input-number { width: 36px; height: 34px; font-size: 14px; padding: 0; background: #fff; -moz-appearance: textfield; }
.pd-page .pd-qty .input-number::-webkit-outer-spin-button,
.pd-page .pd-qty .input-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-availability { font-size: 12px; color: var(--pd-muted); }
.pd-total-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.pd-total-row #chosen_price { font-size: 20px; color: var(--pd-navy); }

.pd-buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-page .pd-btn {
    border: 0;
    border-radius: 0;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
}
.pd-page .pd-btn--outline { background: #fff; color: var(--pd-navy2); border: 1px solid var(--pd-navy2); }
.pd-page .pd-btn--outline:hover { color: var(--pd-navy2); }

.pd-promote { margin-top: 12px; }

/* Secure Checkout + Purchase protection, under the buy buttons */
.pd-trust-inline { display: flex; align-items: stretch; gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pd-line); }
.pd-trust-inline .pd-trust-item { flex: 1; min-width: 0; gap: 8px; }
.pd-trust-inline .pd-trust-act { font-size: 12px; }
.pd-trust-inline .pd-trust-icon { width: 24px; height: 24px; }
.pd-trust-inline .pd-trust-icon svg { width: 22px; height: 22px; }

/* Buttons in the site's primary colour (website setting) with no hover change */
.pd-page .btn-primary.pd-nohover,
.pd-page .btn-primary.pd-nohover:hover,
.pd-page .btn-primary.pd-nohover:focus,
.pd-page .btn-primary.pd-nohover:active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: none;
    opacity: 1;
}

/* ---------- Side cards ---------- */
.pd-card { border: 1px solid var(--pd-line); background: #fff; padding: 14px; }
.pd-card--ship { padding: 12px; display: grid; gap: 10px; }
.pd-page .pd-card-title { font-size: 13px; font-weight: 700; margin: 0 0 7px; color: var(--pd-navy2); }
.pd-card-sep { height: 1px; background: var(--pd-line-soft); }
.pd-detail { display: grid; grid-template-columns: 84px 1fr; gap: 7px; font-size: 12px; line-height: 1.4; }
.pd-detail > span { color: var(--pd-muted); }
.pd-detail > strong { font-weight: 600; color: #17150f; }
.pd-detail > a { color: var(--pd-link); text-decoration: none; }
.pd-detail > a:hover { text-decoration: underline; }
.pd-stock { color: var(--pd-green); font-weight: 700; font-size: 14px; }
.pd-deliver { font-size: 12px; line-height: 1.45; color: #171b24; }
.pd-no-address { font-size: 12px; line-height: 1.45; color: var(--pd-muted); }
.pd-cost-line { font-size: 12px; color: #17150f; }
.pd-cost-line strong { font-weight: 600; }
.pd-ship-status.is-yes { color: var(--pd-green); font-weight: 600; }
.pd-ship-status.is-no { color: var(--pd-muted); }
.pd-page .pd-info-link { color: var(--pd-link); text-decoration: none; }
.pd-page .pd-info-link:hover { text-decoration: underline; }
.pd-stock--out { color: var(--pd-sale); }

.pd-ship-info { display: grid; gap: 6px; }
.pd-ship-info-title { font-size: 13px; font-weight: 700; color: #17150f; }
.pd-ship-line { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 9px; font-size: 12px; line-height: 1.35; color: #263244; }
.pd-ship-line svg { width: 16px; height: 16px; color: var(--pd-navy); }
.pd-ship-note { font-size: 12px; color: var(--pd-muted); line-height: 1.45; padding-left: 29px; }

.pd-ship-check-title { font-size: 12px; font-weight: 700; color: #17150f; margin: 6px 0 8px; }
.pd-ship-field { margin-bottom: 8px; }
.pd-ship-field label { display: block; font-size: 10px; font-weight: 600; color: #4b5563; margin-bottom: 3px; }
.pd-card .pd-ship-field .pd-input { padding: 8px 9px; font-size: 11px; border-color: #cfd6de; }
.pd-page .pd-btn-sm:not(.btn-primary) {
    display: inline-block;
    border: 0;
    border-radius: 0;
    background: #000139;
    color: #fff;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}
.pd-page .pd-btn-sm:not(.btn-primary):hover { color: #fff; opacity: .92; }
.pd-page .pd-btn-sm--primary:not(.btn-primary) { background: var(--pd-navy2); }
/* Small buttons using the site's btn-primary (colour + hover as Buy Now): size and shape only */
.pd-page .btn-primary.pd-btn-sm {
    border-radius: 0;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}
.pd-page .pd-btn-sm--outline:not(.btn-primary) { background: #fff; color: var(--pd-navy2); border: 1px solid var(--pd-navy2); }
.pd-page .pd-btn-sm--outline:not(.btn-primary):hover { color: var(--pd-navy2); }
.pd-ship-result { margin-top: 10px; border: 1px solid #d5dae0; background: #fff; padding: 10px; font-size: 12px; }
.pd-ship-result .pd-ok { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #17150f; margin-bottom: 4px; }
.pd-ship-result .pd-ok::before { content: "✓"; color: var(--pd-green); font-weight: 700; }
.pd-ship-result .pd-make-happen { display: inline-block; background: #ee3f86; color: #fff; font-size: 10px; font-weight: 700; padding: 4px 7px; margin-bottom: 7px; }
.pd-ship-result strong { display: block; font-size: 11px; color: #17150f; margin-bottom: 4px; }
.pd-ship-result .pd-cost-line { margin-bottom: 4px; }
.pd-ship-result .pd-cost-line strong { display: inline; font-size: 12px; margin: 0; }
.pd-ship-result p { font-size: 11px; line-height: 1.45; color: var(--pd-muted); margin: 0 0 8px; }
.pd-ship-login { border: 1px solid var(--pd-line); padding: 12px; text-align: center; }
.pd-ship-login p { font-size: 12px; color: var(--pd-muted); margin: 0 0 8px; }
.pd-delivery { margin-top: 2px; }
.pd-page .kd-badge { border-radius: 0; }

.pd-trust-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; font-size: 12px; color: var(--pd-navy2); }
.pd-trust-icon { width: 26px; height: 26px; color: var(--pd-navy2); display: flex; align-items: center; justify-content: center; }
.pd-trust-icon svg { width: 24px; height: 24px; }
.pd-page .pd-trust-act { font-size: 11px; color: var(--pd-link); text-decoration: none; white-space: nowrap; }
.pd-page .pd-trust-act:hover { text-decoration: underline; }

.pd-seller { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }

/* Seller: page-wide section (patch 15) */
.pd-seller-wide .pd-seller { border: 1px solid var(--pd-line); padding: 18px; grid-template-columns: auto minmax(220px, 1fr) auto; gap: 14px; }
.pd-seller-wide .pd-seller-logo { width: 64px; height: 64px; font-size: 18px; }
.pd-seller-wide .pd-seller-acts { grid-column: auto; display: flex; align-items: center; gap: 8px; }
.pd-seller-wide .pd-seller-acts .pd-btn-sm { min-width: 110px; padding: 9px 12px; }
.pd-seller-wide .pd-seller-acts .pd-btn-sm--primary { min-width: 140px; grid-column: auto; }
.pd-seller-logo {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pd-navy2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
.pd-page a.pd-seller-logo { color: #fff; }
.pd-seller-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pd-seller-body { min-width: 0; }
.pd-page .pd-seller-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pd-navy2); font-size: 15px; text-decoration: none; }
.pd-verified { width: 15px; height: 15px; flex: none; }
.pd-seller-meta { font-size: 12px; color: var(--pd-muted); margin-top: 3px; }
.pd-seller-acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pd-seller-acts .pd-btn-sm { padding: 8px 7px; font-size: 12px; }
.pd-seller-acts .pd-btn-sm--primary { grid-column: 1 / -1; }

/* ---------- Lower sections ---------- */
.pd-section { border-top: 1px solid var(--pd-line); padding-top: 22px; margin-top: 26px; }
.pd-page .pd-h2 { font-size: 20px; font-weight: 700; color: var(--pd-navy2); margin: 0 0 14px; }
.pd-muted { font-size: 12px; color: var(--pd-muted); }

.pd-tabs { display: flex; flex-wrap: nowrap; gap: 28px; border-bottom: 1px solid var(--pd-line); margin-bottom: 16px; }
.pd-page .pd-tab {
    padding: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.pd-page .pd-tab.active { color: #000139; border-bottom-color: #000139; }
.pd-content { font-size: 13px; line-height: 1.65; color: #374151; overflow: hidden; max-width: 100%; }
.pd-download { text-align: center; padding: 28px 0; }
.pd-ship-tab { display: grid; gap: 16px; }
.pd-ship-tab [data-pd-ship] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.pd-ship-tab [data-pd-ship] .pd-ship-field { margin: 0; }
.pd-ship-tab [data-pd-ship] .pd-ship-field.d-none { display: none; }
.pd-ship-tab [data-pd-ship] [data-pd-ship-check],
.pd-ship-tab [data-pd-ship] [data-pd-ship-result] { grid-column: 1 / -1; justify-self: start; }
.pd-ship-tab [data-pd-ship] [data-pd-ship-result] { justify-self: stretch; }
.pd-ship-tab .pd-ship-field label { font-size: 12px; font-weight: 700; color: #263244; }

.pd-review-box { border: 1px solid var(--pd-line); padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pd-review-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-review-score { font-size: 28px; color: var(--pd-navy2); }
.pd-reviews .reviews-area { padding-top: 8px; }
.pd-reviews .list-group-item { padding: 14px 0 !important; border-bottom: 1px solid var(--pd-line-soft) !important; }

.pd-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pd-rail::-webkit-scrollbar { display: none; }
.pd-rail-item { flex: 0 0 220px; width: 220px; scroll-snap-align: start; }
.pd-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pd-page .pd-rail-head .pd-h2 { margin: 0; }
.pd-rail-nav { display: flex; align-items: center; gap: 4px; }
.pd-page .pd-rail-btn { background: none; border: 0; padding: 2px; margin: 0; color: var(--pd-navy2); cursor: pointer; line-height: 0; }
.pd-page .pd-rail-btn svg { width: 22px; height: 22px; }
.pd-page .pd-rail-btn:disabled { opacity: .3; cursor: default; }

.pd-qa { border: 1px solid var(--pd-line); padding: 16px; }
.pd-qa-login { font-size: 13px; margin: 0 0 12px; }
.pd-qa-login a { color: var(--pd-link); font-weight: 600; }
.pd-qa-form { margin-bottom: 14px; }
.pd-page .pd-qa-text { height: 70px; resize: none; margin-bottom: 8px; }
.pd-qa-form .pd-btn-sm { padding: 9px 18px; font-size: 12px; background: var(--pd-navy); }
.pd-page .pd-qa-h3 { font-size: 14px; font-weight: 700; color: var(--pd-navy2); margin: 4px 0 10px; }
.pd-qa-item { padding: 10px 0; border-bottom: 1px solid var(--pd-line-soft); font-size: 13px; }
.pd-qa-q,
.pd-qa-a { display: flex; gap: 10px; margin: 4px 0; }
.pd-qa-tag {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--pd-navy2);
}
.pd-qa-tag--a { background: var(--pd-orange); }
.pd-qa-others { margin-top: 8px; font-size: 13px; }

/* ---------- Info popover (appended to body) ---------- */
.pd-popover {
    position: fixed;
    display: none;
    max-width: 310px;
    background: #fff;
    border: 1px solid #bfc7d0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
    padding: 14px;
    z-index: 1050;
    font-size: 12px;
    line-height: 1.5;
    color: #222;
}
.pd-popover.is-open { display: block; }
.pd-popover strong { display: block; font-size: 13px; margin-bottom: 5px; }
.pd-popover a { display: inline-block; margin-top: 10px; color: #0b63b6; font-weight: 700; text-decoration: none; }
.pd-popover a:hover { text-decoration: underline; }

/* ---------- Focus ---------- */
.pd-page button:focus-visible,
.pd-page a:focus-visible,
.pd-page .aiz-megabox > input:focus-visible ~ span { outline: 2px solid #000139; outline-offset: 2px; }

/* ==========================================================
   Tablet (no gallery thumbnails below 992px: show dots)
   ========================================================== */
@media (max-width: 991px) {
    .pd-media-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
}

@media (max-width: 1000px) {
    .pd-top { grid-template-columns: 1fr; }
    .pd-col--util { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ==========================================================
   Phone
   ========================================================== */
@media (max-width: 700px) {
    .pd-page { padding: 16px 12px 36px; }

    /* One column, design order; Product Details moves up under the buy box */
    .pd-page { display: flex; flex-direction: column; }
    .pd-top { display: contents; }
    .pd-page > .pd-section { order: 20; }
    .pd-page > .pd-section--details { order: 5; }
    .pd-col { display: contents; }
    .pd-head { order: 1; }
    .pd-media { order: 2; }
    .pd-media-nav { order: 3; }
    .pd-buy { order: 4; margin-top: 16px; }
    .pd-card--ship { order: 6; margin-top: 14px; }
    .pd-under { order: 7; margin-top: 14px; }

    .pd-media-acts { display: none; }
    .pd-share--title { display: none; }
    .pd-media-nav-acts { display: flex; }
    .pd-page .pd-title { font-size: 19px; }

    /* Options scroll sideways */
    .pd-field { grid-template-columns: 1fr; gap: 5px; margin-bottom: 16px; }
    .pd-field-label { padding-top: 0; font-weight: 600; color: var(--pd-navy2); }
    .pd-page .pd-options { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .pd-page .pd-options::-webkit-scrollbar { display: none; }
    .pd-page .pd-options .pd-opt { flex: 0 0 auto; }
    .pd-page .aiz-megabox .pd-choice { min-height: 38px; }
    .pd-page .aiz-megabox .pd-swatch { width: 34px; height: 34px; }

    .pd-personal-row { grid-template-columns: 1fr auto; }
    .pd-personal-input select.pd-input { display: none; }
    .pd-personal-pills { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .pd-personal-pills::-webkit-scrollbar { display: none; }
    .pd-personal-input { grid-column: 1 / -1; grid-row: 2; }
    .pd-personal-price { padding-top: 0; text-align: right; }

    .pd-qty-row .pd-label,
    .pd-total-row .pd-label { display: none; }
    /* Add to cart + Buy Now side by side; a single button fills the row */
    .pd-buy-row { flex-direction: row; flex-wrap: nowrap; }
    .pd-page .pd-buy-row .pd-btn { flex: 1 1 0; width: auto; min-width: 0; }

    /* No arrows on the main photo (swipe + dots) */
    .pd-media .product-gallery .slick-arrow,
    .pd-media .product-gallery .slick-prev,
    .pd-media .product-gallery .slick-next { display: none !important; }

    .pd-tabs { gap: 16px; overflow-x: auto; scrollbar-width: none; }
    .pd-tabs::-webkit-scrollbar { display: none; }
    .pd-ship-tab [data-pd-ship] { grid-template-columns: 1fr; }
    .pd-trust-inline { gap: 10px; flex-wrap: wrap; }
    .pd-trust-inline .pd-trust-item { flex: 1 1 160px; }

    .pd-rail { gap: 12px; padding-bottom: 10px; }
    .pd-rail-nav { display: none; }

    /* No text below 12px on phones */
    .pd-optional,
    .pd-ship-field label,
    .pd-ship-result .pd-make-happen,
    .pd-off,
    .pd-club,
    .pd-qa-tag,
    .pd-ship-result p,
    .pd-ship-result strong { font-size: 12px; }
    .pd-page .pd-trust-act,
    .pd-card .pd-ship-field .pd-input,
    .pd-page .pd-btn-sm:not(.btn-primary),
    .pd-page .btn-primary.pd-btn-sm,
    .pd-page .korners-pick-badge,
    .pd-page .pc-flag { font-size: 12px; }
    .pd-rail-item { flex: 0 0 168px; width: 168px; }

    .pd-seller-wide .pd-seller { grid-template-columns: auto 1fr; }
    .pd-seller-wide .pd-seller-acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .pd-seller-wide .pd-seller-acts .pd-btn-sm,
    .pd-seller-wide .pd-seller-acts .pd-btn-sm--primary { min-width: 0; }
    .pd-seller-wide .pd-seller-acts .pd-btn-sm--primary { grid-column: 1 / -1; }
}
