/* =============================================================
   TechZone BD — Single Product Page
============================================================= */
.product-page { background: #f5f7fb; padding: 1rem 0 4rem; }

/* ---------------- Top section ---------------- */
.product-top { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 1.75rem; align-items: start; margin-bottom: 2.5rem; }

/* Gallery */
.product-gallery {
    position: sticky;
    top: 90px;
    min-width: 0;
    padding: .85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
    box-sizing: border-box;
}
.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 10px;
}
.gallery-visual {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .3s ease;
}
.gallery-main:hover .gallery-visual img { transform: scale(1.025); }
.gallery-discount {
    position: absolute;
    top: .85rem;
    left: .85rem;
    z-index: 2;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(220, 38, 38, .12);
}
.gallery-wish {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dbe3ee;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.gallery-wish:hover, .gallery-wish.active {
    color: #dc2626;
    border-color: #fca5a5;
    transform: translateY(-1px);
}
.gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72px;
    justify-content: start;
    gap: .65rem;
    margin-top: .8rem;
    padding: 2px 2px .3rem;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.gallery-thumb {
    width: 72px;
    height: 72px;
    padding: .35rem;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.gallery-thumb:hover {
    border-color: #93b4f5;
    transform: translateY(-1px);
}
.gallery-thumb.active {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, .14);
}

/* Info column */
.product-info { min-width: 0; }
.pd-brand-tag { display: inline-flex; align-items: center; gap: .35rem; background: #e9f0ff; color: #1d4ed8; font-size: .68rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: .3rem .6rem; margin-bottom: .6rem; text-decoration: none; }
.pd-brand-tag span { color: #64748b; font-weight: 600; text-transform: none; letter-spacing: 0; }
.product-info h1 { color: #0f172a; font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 800; line-height: 1.35; margin: 0 0 .75rem; letter-spacing: -.3px; }

.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: #64748b; font-size: .8rem; padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid #dfe5ee; }
.product-meta strong { color: #334155; }
.pd-meta-sep { color: #cbd5e1; }
.pd-rating { color: #f59e0b; display: inline-flex; align-items: center; gap: .12rem; font-size: .78rem; }
.pd-rating strong { color: #334155; margin: 0 .1rem 0 .3rem; }
.pd-rating a { color: #1d4ed8; font-weight: 600; }
.pd-stock { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .76rem; }
.pd-stock.in-stock { color: #15803d; }
.pd-stock.out-of-stock { color: #dc2626; }
.pd-add-cart:disabled, .pd-buy-now:disabled { opacity: .55; cursor: not-allowed; }

/* Key features box */
.pd-key-features { background: #fff; border: 1px solid #e1e7ef; border-left: 3px solid #1d4ed8; padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.pd-key-features h2 { color: #0f172a; font-size: .92rem; font-weight: 800; margin: 0 0 .65rem; display: flex; align-items: center; gap: .4rem; }
.pd-key-features h2 i { color: #1d4ed8; }
.pd-key-features ul { display: grid; gap: .45rem; }
.pd-key-features li { display: flex; align-items: flex-start; gap: .5rem; color: #334155; font-size: .82rem; line-height: 1.5; }
.pd-key-features li i { color: #16a34a; margin-top: .2rem; }
.pd-view-more { display: inline-flex; align-items: center; gap: .3rem; color: #1d4ed8; font-size: .78rem; font-weight: 700; margin-top: .75rem; }
.pd-view-more:hover { color: #1e3a8a; }

/* Price box */
.pd-price-box { background: linear-gradient(180deg, #eef4ff, #f5f9ff); border: 1px solid #d7e3fb; padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; }
.pd-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65rem; }
.pd-current-price { color: #1d4ed8; font-size: 1.9rem; font-weight: 800; letter-spacing: -.5px; }
.pd-old-price { color: #94a3b8; font-size: 1rem; text-decoration: line-through; }
.pd-save-tag { background: #fee2e2; color: #dc2626; font-size: .7rem; font-weight: 800; padding: .2rem .5rem; }
.pd-emi-row { color: #475569; font-size: .78rem; margin-top: .5rem; display: flex; align-items: center; gap: .4rem; }
.pd-emi-row i { color: #1d4ed8; }
.pd-emi-row strong { color: #0f172a; }

.pd-buy-actions { display: flex; align-items: stretch; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.pd-qty { display: flex; align-items: center; border: 1px solid #cbd5e1; background: #fff; }
.pd-qty button { width: 36px; background: none; border: 0; color: #334155; font-size: 1rem; cursor: pointer; }
.pd-qty button:hover { color: #1d4ed8; }
.pd-qty input { width: 42px; border: 0; border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; text-align: center; font-size: .85rem; font-weight: 700; color: #0f172a; }
.pd-add-cart.btn-add-cart { margin-top: 0; flex: 1; min-width: 150px; padding: .7rem 1rem; font-size: .85rem; }
.pd-buy-now { flex: 1; min-width: 150px; background: #f97316; border: 2px solid #f97316; color: #fff; font-size: .85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer; transition: all .2s ease; }
.pd-buy-now:hover { background: #ea580c; border-color: #ea580c; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(249,115,22,.35); }

.pd-secondary-actions { display: flex; align-items: center; gap: 1.1rem; margin-top: .9rem; flex-wrap: wrap; }
.pd-text-action { background: none; border: 0; color: #64748b; font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: .35rem; cursor: pointer; padding: 0; }
.pd-text-action:hover { color: #1d4ed8; }
.pd-text-action.active { color: #dc2626; }

/* Share dropdown */
.pd-share-wrap { position: relative; }
.pd-share-menu { display: none; position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #e1e7ef; box-shadow: 0 12px 28px rgba(15,23,42,.14); padding: .6rem; gap: .4rem; z-index: 20; white-space: nowrap; }
.pd-share-menu.open { display: flex; }
.pd-share-menu::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }
.pd-share-icon { width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; border: 0; color: #475569; display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; transition: all .2s ease; }
.pd-share-icon:hover { transform: translateY(-2px); color: #fff; }
.pd-share-fb:hover { background: #1877f2; }
.pd-share-x:hover { background: #000; }
.pd-share-whatsapp:hover { background: #25d366; }
.pd-share-messenger:hover { background: #00b2ff; }
.pd-share-linkedin:hover { background: #0a66c2; }
.pd-share-telegram:hover { background: #229ed9; }
.pd-share-email:hover { background: #ea580c; }
.pd-share-copy:hover { background: #1d4ed8; }
.pd-share-copy.copied { background: #16a34a; color: #fff; }
@media (max-width: 430px) { .pd-share-menu { left: 0; transform: none; } .pd-share-menu::after { left: 20px; } }

/* Trust badges */
.pd-trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.pd-trust-badges div { background: #fff; border: 1px solid #e1e7ef; padding: .7rem .5rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
.pd-trust-badges i { color: #1d4ed8; font-size: 1.25rem; }
.pd-trust-badges span { color: #334155; font-size: .7rem; font-weight: 700; line-height: 1.4; }
.pd-trust-badges small { color: #94a3b8; font-weight: 500; }

/* ---------------- Tabs ---------------- */
.pd-tabs-section { background: #fff; border: 1px solid #e1e7ef; margin-bottom: 2.5rem; }
.pd-tab-nav { display: flex; gap: .25rem; border-bottom: 1px solid #e8edf3; padding: 0 1rem; overflow-x: auto; }
.pd-tab-btn { background: none; border: 0; border-bottom: 3px solid transparent; color: #64748b; font-size: .85rem; font-weight: 700; padding: 1rem .75rem; cursor: pointer; white-space: nowrap; transition: all .2s ease; }
.pd-tab-btn:hover { color: #1d4ed8; }
.pd-tab-btn.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.pd-tab-panels { padding: 1.5rem; }
.pd-tab-panel { display: none; }
.pd-tab-panel.active { display: block; }

.pd-spec-table { max-width: 800px; }
.pd-spec-title { color: #1d4ed8; font-size: .78rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; background: #f5f8ff; padding: .55rem .8rem; margin-top: 1rem; }
.pd-spec-title:first-child { margin-top: 0; }
.pd-spec-row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid #edf1f5; font-size: .82rem; }
.pd-spec-row span:first-child { color: #64748b; font-weight: 600; padding: .6rem .8rem; background: #fafbfd; }
.pd-spec-row span:last-child { color: #1e293b; padding: .6rem .8rem; }

.pd-tab-panel h3 { color: #0f172a; font-size: 1.05rem; font-weight: 800; margin-bottom: .75rem; }
.pd-tab-panel p { color: #475569; font-size: .85rem; line-height: 1.85; max-width: 850px; margin-bottom: 1rem; }

.pd-review-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid #edf1f5; padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.pd-review-score { display: flex; align-items: center; gap: .7rem; }
.pd-review-score strong { color: #0f172a; font-size: 1.8rem; font-weight: 800; }
.pd-review-score .pd-rating { color: #f59e0b; font-size: .9rem; }
.pd-review-score span { color: #94a3b8; font-size: .78rem; display: block; }
.pd-write-review { background: #1d4ed8; border: 2px solid #1d4ed8; color: #fff; font-size: .8rem; font-weight: 700; padding: .55rem .9rem; display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.pd-write-review:hover { background: #1e3a8a; border-color: #1e3a8a; }
.pd-review-item { border-bottom: 1px solid #edf1f5; padding: 1rem 0; }
.pd-review-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pd-review-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .4rem; flex-wrap: wrap; }
.pd-review-head .pd-rating { color: #f59e0b; font-size: .75rem; }
.pd-review-head strong { color: #1e293b; font-size: .85rem; }
.pd-review-head span { color: #94a3b8; font-size: .74rem; }
.pd-review-item p { margin: 0; font-size: .82rem; color: #475569; }

/* ---------------- Related products ---------------- */
.related-products { border-top: 1px solid #dfe5ee; padding-top: 2rem; }
.related-products h2 { color: #0f172a; font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.related-products .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1199px) {
    .product-top { grid-template-columns: 360px minmax(0, 1fr); }
    .related-products .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .product-top { grid-template-columns: 1fr; }
    .product-gallery { position: static; width: 100%; max-width: 520px; margin-inline: auto; }
    .pd-trust-badges { grid-template-columns: repeat(2, 1fr); }
    .related-products .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .product-gallery { padding: .65rem; border-radius: 10px; }
    .gallery-main { padding: 1rem; border-radius: 8px; }
    .gallery-thumbs { grid-auto-columns: 64px; gap: .5rem; }
    .gallery-thumb { width: 64px; height: 64px; }
    .pd-current-price { font-size: 1.55rem; }
    .pd-spec-row { grid-template-columns: 160px 1fr; }
    .related-products .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
    .pd-trust-badges { grid-template-columns: repeat(2, 1fr); }
    .pd-buy-actions { flex-direction: column; }
    .pd-qty { align-self: flex-start; }
    .pd-spec-row { grid-template-columns: 1fr; }
    .pd-spec-row span:first-child { padding-bottom: .2rem; }
}
