/* ============================================================
   PDP-NEW.CSS  –  Novazone Product Detail Page
   Scope: .pdp-new-wrap
   ============================================================ */

.pdp-new-wrap *, .pdp-new-wrap *::before, .pdp-new-wrap *::after {
    box-sizing: border-box;
}

/* ── Container ── */
.pdp-new-wrap {
    background: #f4f6fb;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    color: #222;
}
.pdp-new-wrap .container-2019 {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1600px;
    min-width: 728px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Breadcrumb ── */
.pdp-bc {
    padding: 10px 0 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}
.pdp-bc a { color: #64748b; text-decoration: none; }
.pdp-bc a:hover { color: #2563eb; }
.pdp-bc .sep { color: #cbd5e1; font-size: 10px; }
.pdp-bc .cur { color: #dc2626; }

/* ── Page layout ── */
.pdp-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

/* ── Hàng trên: gallery+info | sidebar — grid 2 cột, mỗi bên tự co theo nội dung ── */
.pdp-top-row {
    display: grid;
    grid-template-columns: 1fr 480px;
    grid-template-rows: auto auto;
    gap: 14px;
    align-items: start;
    min-width: 0;
}
.pdp-top-row .pdp-product-card {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    min-width: 0;
    overflow: hidden;
    align-self: start;
}
/* Detail tabs nằm sát dưới product-card, cùng cột trái */
.pdp-top-row .pdp-detail-in-grid {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    min-width: 0;
    align-self: start;
}
.pdp-top-row .pdp-col-right {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 70px;
    align-self: start;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: none;
}
.pdp-top-row .pdp-col-right::-webkit-scrollbar { display: none; }

/* Chính sách bán hàng trong sidebar */
.pdp-policy-hdr {
    font-size: 17px; font-weight: 700; color: #0f172a;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.pdp-policy-hdr i { color: #2563eb; }
.pdp-policy-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 0;
}
.pdp-policy-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.4;
}
.pdp-policy-list li:last-child { border-bottom: none; padding-bottom: 0; }
.pdp-policy-list li > i {
    font-size: 13px; color: #22c55e; flex-shrink: 0; margin-top: 2px;
}
.pdp-policy-list li > div { display: flex; flex-direction: column; gap: 1px; }
.pdp-policy-list li b    { font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.4; }
.pdp-policy-list li span { font-size: 13px; color: #64748b; line-height: 1.4; }

/* ── Hàng dưới: không còn dùng ── */
.pdp-bottom-row { display: contents; }
.pdp-bottom-row:empty { display: none; }

/* ── DETAIL TABS ── */
.pdp-detail-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.pdp-detail-card:empty { display: none; }
.pdp-side-bottom {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Legacy — giữ lại để không ảnh hưởng media queries */
.pdp-col-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pdp-col-right {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Product top card (gallery + info ngang nhau) ── */
.pdp-product-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    overflow: visible;
    min-width: 0;
}
/* Media tabs: full width, bên dưới gallery+info */
.pdp-product-card .pdp-media-tabs {
    width: 100%;
    flex-basis: 100%;
    order: 3;
    margin-top: 8px;
    align-self: flex-start;
    height: auto;
}

/* ── Gallery ── */
.pdp-gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 480px;
    flex-shrink: 0;
    min-width: 0;
}
.pdp-gallery {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.pdp-thumbs-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    flex-shrink: 0;
    width: 56px;
}
.pdp-thumbs-col::-webkit-scrollbar { width: 3px; }
.pdp-thumbs-col::-webkit-scrollbar-track { background: transparent; }
.pdp-thumbs-col::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
.pdp-thumb {
    width: 52px;
    height: 52px;
    border: 1.5px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb.active { border-color: #2563eb; }
.pdp-thumb:hover { border-color: #2563eb; }
.pdp-thumb-more {
    width: 64px;
    height: 64px;
    border: 1.5px solid #e2e8f0;
    border-radius: 5px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
}
.pdp-main-img {
    flex: 1;
    position: relative;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    height: 400px;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pdp-main-img img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: transform 0.4s ease;
    display: block;
    background: #fff;
}
.pdp-main-img:hover img { transform: scale(1.06); }

/* Shimmer sweep khi hover */
.pdp-main-img::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.45),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    pointer-events: none;
    z-index: 2;
}
.pdp-main-img:hover::after { left: 130%; }
.pdp-main-img video {
    width: 100%;
    height: 400px;
    object-fit: contain;
}
.pdp-badge-disc {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.pdp-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,.9);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #475569;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    z-index: 2;
}
.pdp-arr.l { left: 7px; }
.pdp-arr.r { right: 7px; }
.pdp-vid-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 2;
    border: none;
}

/* Media tabs */
.pdp-media-tabs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: center;
    height: auto;
}
.pdp-media-tabs::-webkit-scrollbar { display: none; }
.pdp-mtab {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 11px;
    cursor: pointer;
    background: #fff;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    height: 30px;
}
.pdp-mtab:hover { border-color: #2563eb; color: #2563eb; }
.pdp-mtab i { font-size: 13px; flex-shrink: 0; }

/* ── Product Info (cột phải của product-card) ── */
.pdp-pinfo {
    flex: 1 1 200px;
    min-width: 0;
    overflow: visible;
}
.pdp-brand-pill {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
    margin-bottom: 7px;
    text-decoration: none;
}
.pdp-brand-pill:hover { background: #dbeafe; color: #1d4ed8; }
.pdp-ptitle {
    font-size: 19px;
    font-weight: normal;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.pdp-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.pdp-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.pdp-rnum  { font-weight: 700; color: #f59e0b; font-size: 13px; }
.pdp-rcnt  { font-size: 12.5px; color: #64748b; }
.pdp-sold  { font-size: 12.5px; color: #64748b; border-left: 1px solid #e2e8f0; padding-left: 10px; }
.pdp-meta-row {
    display: flex;
    gap: 20px;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pdp-meta-row b { color: #0f172a; font-weight: normal; }

/* Spec highlight boxes */
.pdp-spec-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.pdp-spec-box {
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 8px 6px;
    text-align: center;
    background: #fff;
}
.pdp-spec-box i { font-size: 17px; color: #2563eb; margin-bottom: 3px; display: block; }
.pdp-spec-box .sv { font-size: 11px; /*font-weight: 600;*/ color: #0f172a; line-height: 1.3; }
.pdp-spec-box .sk { font-size: 10px; color: #94a3b8; line-height: 1.3; }

/* Variation / Color */
.pdp-sec-lbl { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 7px; display: block; }
.pdp-variation-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pdp-vopt {
    border: 2px solid #e2e8f0;
    border-radius: 7px;
    padding: 5px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .2s;
}
.pdp-vopt.active, .pdp-vopt:hover { border-color: #2563eb; }
.pdp-vopt img { width: 38px; height: 38px; object-fit: contain; }
.pdp-vopt span { font-size: 12px; color: #334155; }

/* Classification grid (existing JS) */
.pdp-new-wrap .product-classification {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.pdp-new-wrap .classification-title {
    font-size: 13px;
    font-weight: normal !important;
    color: #334155;
    margin-bottom: 8px;
}
.pdp-new-wrap .classification-item {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 7px !important;
    transition: border-color .2s, box-shadow .2s !important;
}
.pdp-new-wrap .classification-item:hover,
.pdp-new-wrap .classification-item.active {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37,99,235,.12) !important;
    background: #eff6ff !important;
    transform: none !important;
}
/* Ảnh trong classification item lớn hơn */
.pdp-new-wrap .classification-icon {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    overflow: hidden !important;
    margin-right: 0 !important;
    margin-bottom: 6px !important;
    flex-shrink: 0 !important;
    display: block !important;
}
/* Grid variation thu gọn */
.pdp-new-wrap .classification-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
}
.pdp-new-wrap .product-classification {
    max-width: 100% !important;
    width: 100% !important;
}
.pdp-new-wrap .classification-name {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    width: 100% !important;
}
.pdp-new-wrap .classification-price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ef4444 !important;
    margin-top: 4px !important;
    text-align: center !important;
    width: 100% !important;
}
.pdp-new-wrap .quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0 !important;
    border-top: 1px solid #e5e5e5;
    margin-top: 8px;
}
.pdp-new-wrap .quantity-controls {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 7px !important;
    overflow: hidden !important;
}
.pdp-new-wrap .quantity-btn {
    width: 34px !important;
    height: 34px !important;
    background: #f1f5f9 !important;
    border: none !important;
    font-size: 17px !important;
    color: #475569 !important;
    cursor: pointer !important;
}
.pdp-new-wrap .quantity-btn:hover { background: #e2e8f0 !important; }
.pdp-new-wrap .quantity-input {
    border-left: 1.5px solid #e2e8f0 !important;
    border-right: 1.5px solid #e2e8f0 !important;
    width: 44px !important;
    height: 34px !important;
    border-top: none !important;
    border-bottom: none !important;
}
/* Ẩn nút mua trong classification trên desktop (đã có ở sidebar) */
@media (min-width: 992px) {
    .pdp-new-wrap .high-button-section { display: none !important; }
}

/* ── DETAIL TABS ── */
.pdp-dtabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
}
.pdp-dtabs::-webkit-scrollbar { display: none; }
.pdp-dtab {
    padding: 12px 18px;
    font-size: 17px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}
.pdp-dtab.active { color: #2563eb; border-bottom-color: #2563eb; }
.pdp-dtab:hover  { color: #2563eb; }
.pdp-dtab-body { padding: 15px 20px; overflow-x: hidden; min-height: 0; }
.pdp-dtab-section { margin-bottom: 20px; }
.pdp-dtab-section h3 { font-size: 14.5px; font-weight: 700; color: #0f172a; margin-bottom: 9px; }
.pdp-dtab-section p { font-size: 13px; color: #475569; line-height: 1.7; margin-bottom: 6px; }
.pdp-feat-list { list-style: none; display: flex; flex-direction: column; gap: 5px; padding: 0; }
.pdp-feat-list li { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: #475569; }
.pdp-feat-list li i { color: #22c55e; font-size: 13px; margin-top: 2px; flex-shrink: 0; }
.pdp-show-more {
    color: #2563eb;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

/* Specs 2-column table */
.pdp-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pdp-specs-tbl { width: 100%; border-collapse: collapse; }
.pdp-specs-tbl tr:nth-child(odd) td { background: #f8fafc; }
.pdp-specs-tbl td { padding: 9px 12px; font-size: 12.5px; border: none; vertical-align: top; }
.pdp-specs-tbl td:first-child { color: #64748b; width: 130px; }
.pdp-specs-tbl td:last-child { font-weight: 500; color: #0f172a; }

/* ── Similar Products ── */
.pdp-similar-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}
.pdp-sim-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.pdp-sim-hdr h2 { font-size: 17px; font-weight: normal !important; color: #0f172a; margin: 0; }
.pdp-sim-hdr a  { color: #2563eb; font-size: 12.5px; text-decoration: none; }
.pdp-sim-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* ── Nút scroll cho grid liên quan ── */
.pdp-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px; height: 36px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #475569;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background .2s, border-color .2s, opacity .2s;
}
.pdp-scroll-btn:hover { background: #f1f5f9; border-color: #94a3b8; color: #0f172a; }
.pdp-scroll-btn--left  { left: -18px; }
.pdp-scroll-btn--right { right: -18px; }
.pdp-scroll-btn:disabled { opacity: .35; cursor: default; }

/* Wrapper bọc grid scroll để đặt nút hai bên */
.pdp-scroll-wrap {
    position: relative;
    padding: 0 4px;
}

/* ── Scroll ngang 2 hàng (dùng cho card Sản phẩm liên quan) ── */
.pdp-sim-grid--scroll {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: calc((100%) / 5 - 12px);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pdp-sim-grid--scroll::-webkit-scrollbar { display: none; }
.pdp-prd-card {
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: box-shadow .2s, border-color .2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.pdp-prd-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); border-color: #93c5fd; color: inherit; }
.pdp-prd-img {
    position: relative;
    background: #fff;
    padding: 0;
    text-align: center;
    overflow: hidden;
}
.pdp-prd-img img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}
.pdp-prd-card:hover .pdp-prd-img img { transform: scale(1.05); }
.pdp-prd-disc {
    position: absolute;
    top: 7px; left: 7px;
    background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 3px;
}
.pdp-prd-body { padding: 12px 14px; }
.pdp-prd-name {
    font-size: 13px; font-weight: 400; color: #0f172a; line-height: 1.5;
    margin-bottom: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 38px;
}
.pdp-prd-sub  { font-size: 11px; color: #94a3b8; margin-bottom: 5px; }
.pdp-prd-price-new { font-size: 14px; font-weight: 400; color: #ef4444; }
.pdp-prd-price-old { font-size: 11px; color: #94a3b8; text-decoration: line-through; margin-left: 4px; }
.pdp-prd-stars { color: #f59e0b; font-size: 10px; }
.pdp-prd-cnt  { font-size: 11px; color: #94a3b8; }
.pdp-prd-stock { font-size: 10.5px; margin-top: 3px; }

/* ── SIDEBAR ── */
.pdp-side-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
}

/* ── Flash Sale bar ── */
.pdp-flash-bar {
    background: linear-gradient(90deg, #fff7ed 0%, #fef3c7 100%);
    border: 1.5px solid #fcd34d;
    border-radius: 7px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}
.pdp-fl-label { font-size: 12px; font-weight: 700; color: #92400e; display: flex; align-items: center; gap: 5px; }
.pdp-fl-label i { color: #f59e0b; }
.pdp-fl-end { font-size: 11px; color: #78350f; display: flex; align-items: center; gap: 5px; }
.pdp-cd { display: flex; align-items: center; gap: 3px; }
.pdp-cd-box { background: #1e293b; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; min-width: 26px; text-align: center; }
.pdp-cd-sep { color: #ef4444; font-weight: 900; font-size: 13px; }

/* Price */
.pdp-price-row  { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.pdp-price-now  { font-size: 28px; font-weight: 800; color: #ef4444; line-height: 1; white-space: nowrap; }
.pdp-price-cur  { font-size: 15px; }
.pdp-price-old  { font-size: 12px; color: #94a3b8; text-decoration: line-through; white-space: nowrap; }
.pdp-price-pct  { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 5px; border-radius: 4px; white-space: nowrap; align-self: center; }

/* Tiết kiệm */
.pdp-price-save {
    font-size: 12px; color: #16a34a;
    display: flex; align-items: center; gap: 4px;
    margin-bottom: 11px; font-weight: 500;
}
.pdp-price-save i { font-size: 12px; }

/* Voucher */
.pdp-voucher {
    background: #eff6ff;
    border: 1.5px dashed #93c5fd;
    border-radius: 7px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.pdp-voucher i { color: #2563eb; font-size: 18px; flex-shrink: 0; }
.pdp-v-txt { flex: 1; }
.pdp-v-txt .vt { font-size: 12px; font-weight: 600; color: #1d4ed8; }
.pdp-v-txt .vd { font-size: 11px; color: #64748b; }
.pdp-copy-btn {
    font-size: 11px; font-weight: 600; color: #2563eb;
    border: 1px solid #93c5fd; border-radius: 4px;
    padding: 3px 9px; background: #fff; white-space: nowrap; cursor: pointer;
}
.pdp-copy-btn:hover { background: #dbeafe; }

/* Qty — hàng ngang: label | ctrl | stock */
.pdp-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    flex-wrap: wrap;
}
.pdp-qty-lbl  { font-size: 12.5px; color: #334155; white-space: nowrap; min-width: 62px; }
.pdp-qty-ctrl { display: flex; align-items: center; border: 1.5px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.pdp-qty-btn  { width: 32px; height: 32px; background: #f1f5f9; border: none; font-size: 16px; color: #475569; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pdp-qty-btn:hover { background: #e2e8f0; color: #0f172a; }
.pdp-qty-val  { width: 42px !important; height: 32px !important; border: none; border-left: 1.5px solid #e2e8f0; border-right: 1.5px solid #e2e8f0; text-align: center; font-size: 14px; font-weight: 700; outline: none; }
.pdp-qty-stk  { font-size: 11.5px; color: #16a34a; display: flex; align-items: center; gap: 4px; }
.pdp-qty-stk i { font-size: 11px; }

/* CTA — dọc (buy trên, cart dưới) */
.pdp-cta-col { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pdp-btn-buy {
    width: 100%; background: #2563eb; color: #fff;
    border: none; height: 46px; border-radius: 9px;
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    cursor: pointer; font-family: inherit; transition: background .2s;
}
.pdp-btn-buy:hover { background: #1d4ed8; }
.pdp-btn-cart {
    width: 100%; background: #fff; color: #2563eb;
    border: 2px solid #2563eb; height: 42px; border-radius: 9px;
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    cursor: pointer; font-family: inherit; transition: all .2s;
}
.pdp-btn-cart:hover { background: #eff6ff; }
.pdp-btn-order {
    width: 100%; background: #f97316; color: #fff;
    border: none; height: 46px; border-radius: 9px;
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    cursor: pointer; font-family: inherit; transition: background .2s;
}
.pdp-btn-order:hover { background: #ea6c08; }

/* Delivery section */
.pdp-delivery-section { padding-top: 12px; border-top: 1px solid #f1f5f9; }
.pdp-del-hdr { font-size: 12.5px; font-weight: 700; color: #0f172a; margin-bottom: 9px; }
.pdp-del-item { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; border-bottom: 1px solid #f8fafc; }
.pdp-del-item:last-child { border-bottom: none; }
.pdp-del-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.pdp-di-green  { background: #f0fdf4; color: #16a34a; }
.pdp-di-blue   { background: #eff6ff; color: #2563eb; }
.pdp-di-orange { background: #fff7ed; color: #f97316; }
.pdp-di-purple { background: #f5f3ff; color: #7c3aed; }
.pdp-del-info  { flex: 1; min-width: 0; }
.pdp-dt { font-size: 12px; font-weight: 600; color: #0f172a; }
.pdp-dd { font-size: 11px; color: #64748b; line-height: 1.4; }
.pdp-del-badge { background: #dbeafe; color: #2563eb; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; align-self: center; }

/* Seller card */
.pdp-seller-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pdp-seller-logo {
    width: 46px; height: 46px;
    background: transparent;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-size: 15px; flex-shrink: 0;
    overflow: hidden;
}
.pdp-seller-logo img { width: 100%; height: 100%; object-fit: contain; }
.pdp-seller-nm { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pdp-mall-tag { background: #fee2e2; color: #dc2626; font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 3px; border: 1px solid #fca5a5; }
.pdp-seller-meta { font-size: 11.5px; color: #64748b; margin-top: 2px; line-height: 1.5; }

/* Seller stats grid 3 cột */
.pdp-seller-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 11px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
}
.pdp-ss-item { text-align: center; padding: 8px 4px; background: #f8fafc; }
.pdp-ss-item:not(:last-child) { border-right: 1px solid #f1f5f9; }
.pdp-ss-v { font-size: 13px; font-weight: 700; color: #0f172a; }
.pdp-ss-k { font-size: 10px; color: #64748b; margin-top: 2px; }

.pdp-seller-btns { display: flex; gap: 7px; }
.pdp-btn-shop {
    flex: 1; background: #f1f5f9; border: none; height: 36px; border-radius: 7px;
    font-size: 14px; color: #334155;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    cursor: pointer; text-decoration: none; font-family: inherit; transition: background .2s;
}
.pdp-btn-shop:hover { background: #e2e8f0; color: #334155; }
.pdp-btn-chat {
    flex: 1; background: #2563eb; border: none; height: 36px; border-radius: 7px;
    font-size: 14px; color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    cursor: pointer; text-decoration: none; font-family: inherit; transition: background .2s;
}
.pdp-btn-chat:hover { background: #1d4ed8; color: #fff; }

/* Seller ad banner */
.pdp-seller-ad {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 10px;
    padding: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pdp-seller-ad::before {
    content: '';
    position: absolute; top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,.06); border-radius: 50%;
}
.pdp-seller-ad::after {
    content: '';
    position: absolute; bottom: -30px; left: 20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,.04); border-radius: 50%;
}
.pdp-sad-tag { font-size: 10px; font-weight: 700; background: rgba(255,255,255,.2); border-radius: 4px; padding: 2px 8px; display: inline-block; margin-bottom: 6px; }
.pdp-sad-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.pdp-sad-sub { font-size: 11px; opacity: .8; margin-bottom: 12px; }
.pdp-sad-btn {
    background: #fff; color: #2563eb; border: none;
    padding: 7px 16px; border-radius: 7px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    position: relative; z-index: 1; display: inline-block;
    text-decoration: none; font-family: inherit;
    transition: background .2s;
}
.pdp-sad-btn:hover { background: #eff6ff; color: #2563eb; }

/* Cam kết Novazone */
.pdp-commit-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
}
.pdp-commit-hdr { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 11px; display: flex; align-items: center; gap: 6px; }
.pdp-commit-hdr i { color: #2563eb; }
.pdp-commit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp-commit-item {
    display: flex; align-items: center; gap: 7px;
    padding: 8px; border: 1px solid #e2e8f0;
    border-radius: 8px; background: #f8fafc;
}
.pdp-commit-item i { font-size: 17px; color: #22c55e; flex-shrink: 0; }
.pdp-commit-item span { font-size: 11px; font-weight: 500; color: #0f172a; line-height: 1.4; }

/* Other sellers */
.pdp-os-hdr { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 9px; }
.pdp-os-hdr span { font-size: 12px; font-weight: 700; color: #0f172a; line-height: 1.4; }
.pdp-os-hdr a { font-size: 12px; color: #2563eb; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.pdp-os-item { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.pdp-os-item:last-child { border-bottom: none; padding-bottom: 0; }
.pdp-os-logo { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.pdp-os-info { flex: 1; min-width: 0; }
.pdp-os-name { font-size: 12px; font-weight: 600; color: #0f172a; }
.pdp-os-stars { font-size: 11px; color: #f59e0b; display: flex; align-items: center; gap: 3px; }
.pdp-os-ship { font-size: 10.5px; color: #22c55e; display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.pdp-os-price { font-size: 13px; font-weight: 700; color: #ef4444; white-space: nowrap; }
.pdp-os-price.orange { color: #f97316; }
.pdp-os-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pdp-btn-chon { background: #fff; border: 1.5px solid #e2e8f0; color: #334155; font-size: 11.5px; padding: 4px 12px; border-radius: 6px; font-weight: 500; cursor: pointer; transition: all .15s; }
.pdp-btn-chon:hover { border-color: #2563eb; color: #2563eb; }

/* ── Shop section full-width ── */
.pdp-shop-section {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
}
.pdp-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}
.pdp-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 48px; height: 2px;
    background: #2563eb;
    border-radius: 2px;
}
.pdp-shop-inner { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.pdp-shop-logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 120px; }
.pdp-shop-logo { width: 80px; height: 80px; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; background: #f8fafc; }
.pdp-shop-logo img { width: 100%; height: 100%; object-fit: contain; }
.pdp-shop-name { font-size: 15px; font-weight: 700; color: #0f172a; }
.pdp-shop-status { font-size: 12px; color: #64748b; }
.pdp-shop-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-shop-btn-chat {
    background: #2563eb; color: #fff; border: none;
    height: 36px; border-radius: 7px; font-size: 12.5px; font-weight: 600; padding: 0 16px;
    cursor: pointer; display: flex; align-items: center; gap: 5px; text-decoration: none;
}
.pdp-shop-btn-chat:hover { background: #1d4ed8; color: #fff; }
.pdp-shop-btn-view {
    background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0;
    height: 36px; border-radius: 7px; font-size: 12.5px; font-weight: 600; padding: 0 16px;
    cursor: pointer; display: flex; align-items: center; gap: 5px; text-decoration: none;
}
.pdp-shop-btn-view:hover { background: #e2e8f0; color: #334155; }
.pdp-shop-stats { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; flex: 1; }
.pdp-shop-stat { display: flex; flex-direction: column; gap: 2px; }
.pdp-shop-stat .sl { font-size: 11px; color: #94a3b8; }
.pdp-shop-stat .sv { font-size: 14px; font-weight: 700; color: #0f172a; }

/* ══════════════════════════════════════
   RESPONSIVE — Mọi thiết bị
   ══════════════════════════════════════ */

/* ── Large desktop (≤1400px) ── */
@media (max-width: 1400px) {
    .pdp-new-wrap { padding-left: 0; padding-right: 0; }
    .pdp-new-wrap .container-2019 { padding-left: 30px; padding-right: 30px; }
    .pdp-sim-grid { grid-template-columns: repeat(5,1fr); gap: 12px; }
    .pdp-sim-grid--scroll { grid-auto-columns: calc(100% / 5 - 11px); gap: 12px; }
}

/* ── Desktop nhỏ / laptop (≤1200px) ── */
@media (max-width: 1200px) {
    .pdp-new-wrap { padding-left: 0; padding-right: 0; }
    .pdp-new-wrap .container-2019 { padding-left: 20px; padding-right: 20px; }
    .pdp-top-row { grid-template-columns: 1fr 380px; }
    .pdp-side-bottom { width: auto; }
    .pdp-bottom-row .pdp-side-bottom { width: auto; }
    .pdp-gallery-wrap { width: 380px; }
    .pdp-main-img, .pdp-main-img img, .pdp-main-img video { height: 360px; }
    .pdp-thumbs-col { height: 360px; }
    .pdp-spec-row { grid-template-columns: repeat(2,1fr); }
    .pdp-sim-grid { grid-template-columns: repeat(5,1fr); gap: 10px; }
    .pdp-prd-img img { height: 170px; }
}

/* ── Tablet landscape (≤1024px) ── */
@media (max-width: 1024px) {
    .pdp-top-row { grid-template-columns: 1fr 300px; }
    .pdp-side-bottom { width: auto; }
    .pdp-main-img, .pdp-main-img img, .pdp-main-img video { height: 320px; }
    .pdp-thumbs-col { height: 320px; }
    .pdp-gallery-wrap { width: 300px; }
    .pdp-ptitle { font-size: 16px; }
    .pdp-spec-row { grid-template-columns: repeat(2,1fr); }
    .pdp-sim-grid { grid-template-columns: repeat(4,1fr); gap: 10px; }
    .pdp-prd-img img { height: 150px; }
}

/* ── Tablet portrait (≤900px) ── */
@media (max-width: 900px) {
    .pdp-new-wrap { padding-left: 0; padding-right: 0; }
    .pdp-new-wrap .container-2019 { padding-left: 16px; padding-right: 16px; }
    /* Layout chuyển sang 1 cột */
    .pdp-top-row { grid-template-columns: 1fr; }

    /* Variation grid: 3 cột trên tablet */
    .pdp-new-wrap .classification-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .pdp-new-wrap .classification-icon {
        width: 64px !important;
        height: 64px !important;
    }
    .pdp-top-row .pdp-product-card { grid-column: 1 / -1; grid-row: auto; }
    .pdp-top-row .pdp-detail-in-grid { grid-column: 1 / -1; grid-row: auto; }
    .pdp-top-row .pdp-col-right { grid-column: 1 / -1; grid-row: auto; }
    .pdp-page { gap: 12px; }
    .pdp-col-right { width: 100%; position: static; }
    .pdp-top-row .pdp-col-right,
    .pdp-side-bottom { width: 100%; position: static; }
    .pdp-col-left { gap: 12px; }

    /* Product card: gallery trên, info dưới */
    .pdp-product-card { flex-direction: column; gap: 14px; }
    .pdp-gallery-wrap { width: 100%; }
    .pdp-main-img img { height: 300px; }

    /* Spec boxes 2 cột */
    .pdp-spec-row { grid-template-columns: repeat(2,1fr); }

    /* CTA buttons hiện lại trên mobile */
    .pdp-new-wrap .high-button-section { display: flex !important; }

    /* Ẩn qty/CTA sidebar trên tablet */
    .pdp-qty-row { display: none; }
    .pdp-cta-row { display: none; }

    /* Similar products 3 cột */
    .pdp-sim-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
    .pdp-prd-img img { height: 160px; }

    /* Sidebar policies 1 hàng */
    .pdp-seller-stats-grid { grid-template-columns: repeat(3,1fr); }
    .pdp-commit-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile gallery: swipe + indicator ── */
@media (max-width: 900px) {
    /* Ẩn nút mũi tên điều hướng */
    .pdp-arr { display: none !important; }

    /* Main img container: scroll ngang */
    .pdp-main-img {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        cursor: grab;
        background: #fff;
        border-radius: 8px;
        min-height: 300px;
    }
    .pdp-main-img::-webkit-scrollbar { display: none; }
    .pdp-main-img img {
        flex-shrink: 0;
        width: 100%;
        height: 300px;
        scroll-snap-align: start;
        object-fit: cover;
        background: #fff;
    }

    /* Indicator "X/Y" */
    .pdp-img-indicator {
        display: flex !important;
    }
}
.pdp-img-indicator {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    align-items: center;
    gap: 5px;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}
.pdp-img-indicator i { font-size: 12px; }
@media (max-width: 640px) {
    .pdp-new-wrap { padding-left: 12px; padding-right: 12px; } /* mobile: icon ẩn, padding đều */
    /* Fix overflow — ngoại trừ scroll grid */
    .pdp-new-wrap, .pdp-product-card,

    /* Variation grid: 2 cột trên mobile */
    .pdp-new-wrap .classification-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .pdp-new-wrap .classification-icon {
        width: 56px !important;
        height: 56px !important;
    }
    .pdp-new-wrap .classification-item {
        min-width: unset !important;
        max-width: unset !important;
        padding: 8px 6px !important;
    }
    .pdp-detail-card, .pdp-similar-card,
    .pdp-side-card, .pdp-seller-card { overflow: hidden; }
    /* Card có scroll grid không được overflow hidden */
    .pdp-similar-card.pdp-similar-scroll { overflow: visible; }
    .pdp-sim-grid--scroll { grid-auto-columns: 150px; gap: 10px; }
    .pdp-scroll-btn--left  { left: -12px; }
    .pdp-scroll-btn--right { right: -12px; }
    /* Ẩn nút điều hướng trên mobile — dùng swipe tay */
    .pdp-scroll-btn { display: none !important; }

    /* Gallery */
    .pdp-main-img img { height: 240px; }
    .pdp-thumb { width: 56px; height: 56px; }
    .pdp-thumbs-col { height: 240px; }

    /* Toàn bộ content không vượt màn hình */
    .pdp-pinfo, .pdp-gallery-wrap,
    .pdp-product-card, .pdp-col-left,
    .pdp-col-right { max-width: 100%; width: 100%; }

    /* Title nhỏ lại */
    .pdp-ptitle { font-size: 15px; word-break: break-word; }

    /* Price */
    .pdp-price-now { font-size: 22px; }
    .pdp-price-old { font-size: 12px; }

    /* Spec row 2 cột */
    .pdp-spec-row { grid-template-columns: repeat(2,1fr); gap: 6px; }
    .pdp-spec-box { padding: 7px 4px; }
    .pdp-spec-box i { font-size: 14px; }

    /* Similar 2 cột */
    .pdp-sim-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .pdp-prd-img img { height: 130px; }
    .pdp-prd-body { padding: 8px 10px; }
    .pdp-prd-name { font-size: 12px; min-height: 32px; }
    .pdp-prd-price-new { font-size: 13px; }

    /* Policies 1 cột */
    .pdp-seller-stats-grid { grid-template-columns: repeat(3,1fr); }
    .pdp-commit-grid { grid-template-columns: 1fr 1fr; }

    /* Tabs scroll ngang */
    .pdp-dtabs { overflow-x: auto; }
    .pdp-dtab { padding: 10px 12px; font-size: 12px; }

    /* Media tabs */
    .pdp-media-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .pdp-mtab { font-size: 11px; padding: 5px 9px; }

    /* Meta row xuống dòng */
    .pdp-meta-row { flex-direction: column; gap: 4px; }

    /* Seller stats */
    .pdp-seller-stats-grid { grid-template-columns: repeat(3,1fr); }
}

/* ── Mobile small (≤480px) ── */
@media (max-width: 480px) {
    /* Variation grid: 2 cột nhỏ */
    .pdp-new-wrap .classification-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .pdp-new-wrap .classification-icon {
        width: 48px !important;
        height: 48px !important;
    }
    .pdp-new-wrap .classification-price {
        font-size: 11px !important;
    }

    /* Gallery */
    .pdp-main-img img { height: 260px; }
    .pdp-thumbs-col { display: none; }
    .pdp-gallery { gap: 0; }

    /* Giá lớn */
    .pdp-price-now { font-size: 20px; }

    /* Buttons full width */
    .pdp-cta-row { flex-direction: column; gap: 8px; }
    .pdp-btn-cart, .pdp-btn-buy, .pdp-btn-order { width: 100%; justify-content: center; }

    /* Similar 2 cột */
    .pdp-sim-grid { grid-template-columns: repeat(2,1fr); gap: 6px; }
    .pdp-prd-img img { height: 110px; }

    /* Seller stats mobile */
    .pdp-seller-stats-grid { grid-template-columns: repeat(3,1fr); }
    .pdp-commit-grid { grid-template-columns: 1fr 1fr; }
}


/* ── container-2019 responsive ── */
@media (max-width: 991px) {
    .pdp-new-wrap { padding-left: 0; padding-right: 0; }
    .pdp-new-wrap .container-2019 { min-width: unset; padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 767px) {
    .pdp-new-wrap { padding-left: 0; padding-right: 0; }
    .pdp-new-wrap .container-2019 { min-width: unset; padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 479px) {
    .pdp-new-wrap .container-2019 { padding-left: 8px; padding-right: 8px; }
}
