/* ===== Product Detail Page Styles ===== */
.pdp-breadcrumb { background: transparent; border-bottom: none; }
.pdp-breadcrumb .breadcrumb { margin-bottom: 0; font-size: 0.85rem; }
.pdp-breadcrumb .breadcrumb a { color: #0d6efd; text-decoration: none; }
.pdp-breadcrumb .breadcrumb-item.active { color: #6c757d; }

/* Base (Mobile) Layout */
.pdp-gallery-wrapper { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pdp-gallery-main { order: 1; border: 1px solid #e9ecef; border-radius: 8px; overflow: hidden; background: #fff; position: relative; cursor: crosshair; }
.pdp-gallery-main img { width: 100%; height: auto; /* max-height: 550px; */ object-fit: contain; display: block; margin: auto; transition: transform 0.1s ease-out; }
.pdp-gallery-thumbs-container { order: 2; width: 100%; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.pdp-gallery-thumbs-container::-webkit-scrollbar { display: none; }
.pdp-gallery-thumbs { display: flex; flex-direction: row; gap: 8px; width: max-content; }
.pdp-gallery-thumbs img { width: 64px; height: 64px; object-fit: contain; border: 1px solid #e9ecef; border-radius: 4px; cursor: pointer; transition: all 0.2s ease-in-out; background: #fff; padding: 4px; flex-shrink: 0; }
.pdp-gallery-thumbs img:hover, .pdp-gallery-thumbs img.active-thumb { border-color: #0d6efd; border-width: 2px; padding: 3px; }
.pdp-zoom-icon { position: absolute; top: 16px; right: 16px; background: #fff; border: 1px solid #ddd; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s; }
.pdp-zoom-icon:hover { transform: scale(1.1); }
.pdp-zoom-icon i { color: #555; font-size: 1.1rem; }
.pdp-thumb-nav { color: #555; background: #f8f9fa; transition: background 0.2s; }
.pdp-thumb-nav:hover { background: #e2e6ea; }

/* Right Sidebar */
.pdp-sidebar { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); position: sticky; top: 20px; }
.pdp-title { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.3; color: #0f172a; margin-bottom: 12px; }
.pdp-sku { display: inline-flex; align-items: center; background: #f1f5f9; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: #475569; margin-bottom: 16px; border: 1px solid #e2e8f0; }

/* Short Description / Product Overview */
.pdp-short-desc { margin-bottom: 20px; background: #f8fafc; border-radius: 8px; padding: 16px; border: 1px solid #f1f5f9; }
.pdp-short-desc h2 { font-size: 0.85rem; font-weight: 800; margin-bottom: 10px; color: #0f172a; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; }
.pdp-short-desc ul { list-style: none; padding: 0; margin: 0; }
.pdp-short-desc li { padding: 8px 0; border-bottom: 1px dashed #cbd5e1; font-size: 0.85rem; color: #334155; line-height: 1.5; }
.pdp-short-desc li:last-child { border-bottom: none; padding-bottom: 0; }
.pdp-short-desc li strong { color: #0f172a; font-weight: 700; margin-right: 6px; }

/* Price and Stock */
.pdp-price-wrapper { background: #ffffff; padding: 12px 0; margin-bottom: 16px; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; flex-wrap: wrap; }
.pdp-price { font-size: 1.15rem; font-weight: 800; color: #0f172a; letter-spacing: -0.01em; }
.pdp-price-old { font-size: 1rem; color: #94a3b8; text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.pdp-stock { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; margin-left: auto; padding: 4px 10px; border-radius: 20px; }
.pdp-stock.in-stock { background: #dcfce7; color: #166534; }
.pdp-stock.out-of-stock { background: #fee2e2; color: #991b1b; }

/* CTA */
.pdp-cta-row { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; margin: 16px 0 0; }
.pdp-cta-btn { justify-content: center; flex: 1; min-width: 0; background: #0f172a; color: #fff; border: 2px solid #0f172a; padding: 8px 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 6px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; text-align: center; }
.pdp-cta-btn:hover { background: transparent; color: #0f172a; border-color: #0f172a; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(15, 23, 42, 0.1); }
.pdp-cta-btn.primary-btn { background: #2563eb; border-color: #2563eb; }
.pdp-cta-btn.primary-btn:hover { background: transparent; color: #2563eb; box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15); }
.pdp-cta-btn i { font-size: 0.9rem; }

/* Trust Badges Bar */
.pdp-trust-bar { order: 3; background-color: #f4f6fa; color: #3b4a6b; font-weight: 600; font-size: 0.85rem; }
.pdp-trust-bar i { color: #3b4a6b; font-size: 0.95rem; }

/* Desktop Gallery Layout */
@media (min-width: 992px) {
    .pdp-gallery-wrapper {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 16px;
        margin-bottom: 0;
    }
    .pdp-gallery-thumbs-container {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 80px;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 450px;
        padding-bottom: 0;
        order: unset;
    }
    .pdp-gallery-thumbs { flex-direction: column; width: auto; }
    .pdp-gallery-thumbs img { width: 72px; height: 72px; }
    .pdp-gallery-main {
        grid-column: 2;
        grid-row: 1;
        order: unset;
    }
    .pdp-trust-bar {
        grid-column: 2;
        grid-row: 2;
        order: unset;
        margin-top: 0 !important;
    }
}
.pdp-trust { border-top: 1px solid #e0e0e0; margin-top: 20px; padding-top: 20px; display: flex; justify-content: space-around; text-align: center; }
.pdp-trust-item i { font-size: 1.6rem; color: #555; display: block; margin-bottom: 6px; }
.pdp-trust-item span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #333; line-height: 1.3; display: block; }

/* Tabs Section */
.pdp-tabs { background: #f4f6f8; }
.pdp-tabs .nav-tabs { border-bottom: 2px solid #dee2e6; background: #fff; padding: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.pdp-tabs .nav-tabs::-webkit-scrollbar { display: none; }
.pdp-tabs .nav-tabs .nav-item { flex: 0 0 auto; white-space: nowrap; }
.pdp-tabs .nav-tabs .nav-link { border: none; border-bottom: 3px solid transparent; color: #555; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 14px 20px; margin-bottom: -2px; transition: all 0.2s; }
.pdp-tabs .nav-tabs .nav-link:hover { color: #1a1a2e; border-bottom-color: #ddd; }
.pdp-tabs .nav-tabs .nav-link.active { color: #0d6efd; border-bottom-color: #0d6efd; background: transparent; }
.pdp-tabs .tab-content { background: #fff; border: 1px solid #dee2e6; border-top: none; border-radius: 0 0 8px 8px; padding: 30px; }
.pdp-tabs .tab-content:empty { display: none; }
.pdp-tabs .tab-pane:empty { display: none; padding: 0; margin: 0; }
.pdp-tabs .tab-content .tab-pane.active:empty ~ .tab-content { border: none; padding: 0; }
.pdp-tabs .tab-content h2, .pdp-tabs .tab-content h3 { font-size: 1.2rem; font-weight: 700; margin-top: 20px; margin-bottom: 10px; }
.pdp-tabs .tab-content h2:first-child, .pdp-tabs .tab-content h3:first-child { margin-top: 0; }
.pdp-tabs .tab-content p { font-size: 0.92rem; line-height: 1.7; color: #444; }
.pdp-tabs .tab-content ul { padding-left: 20px; }
.pdp-tabs .tab-content li { font-size: 0.92rem; line-height: 1.7; color: #444; margin-bottom: 4px; }
.pdp-tabs .tab-content table { display: table; width: 100%; min-width: 550px; border-collapse: collapse; margin: 12px 0; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.pdp-tabs .tab-content table th, .pdp-tabs .tab-content table td { padding: 8px 12px; border: 1px solid #dee2e6; font-size: 0.88rem; vertical-align: top; }
.pdp-tabs .tab-content table th { background: transparent; font-weight: 600; }

/* Hide empty elements in product description (prevent empty bordered whitespace) */
.product-description p:empty,
.product-description div:empty,
.product-description span:empty,
.product-description h1:empty,
.product-description h2:empty,
.product-description h3:empty,
.product-description h4:empty,
.product-description h5:empty,
.product-description h6:empty { display: none; }
.product-description br:last-child { display: none; }
.product-description p:last-child:empty { display: none; }
.product-description > *:last-child { margin-bottom: 0; }

/* FAQ accordion in tab */
.pdp-faq-item { border: 1px solid #e9ecef; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.pdp-faq-q { padding: 14px 18px; background: transparent; font-weight: 600; font-size: 0.9rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.pdp-faq-q:hover { background: #eef1f5; }
.pdp-faq-a { padding: 14px 18px; font-size: 0.88rem; color: #555; line-height: 1.7; border-top: 1px solid #e9ecef; }

/* Reviews in tab */
.pdp-review { border-bottom: 1px solid #eee; padding: 16px 0; }
.pdp-review:last-child { border-bottom: none; }
.pdp-review-stars i { color: #f5a623; font-size: 0.85rem; }
.pdp-review-stars i.empty { color: #ddd; }

/* Specs table in tab */
.pdp-spec-table { width: 100%; }
.pdp-spec-table tr:nth-child(even) { background: transparent; }
.pdp-spec-table th { width: 35%; background: #f0f2f5; font-weight: 600; text-transform: capitalize; }

/* Related Products */
.pdp-related { background: transparent; }
.pdp-related-title { font-weight: 800; text-transform: uppercase; font-size: 1.2rem; letter-spacing: 0.03em; }
.pdp-related-card { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; text-decoration: none; color: inherit; display: block; }
.pdp-related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); color: inherit; }
.pdp-related-card img { width: 100%; height: 200px; object-fit: contain; background: transparent; }
.pdp-related-card .card-body { padding: 16px; }
.pdp-related-card .card-cat { font-size: 0.72rem; color: #0d6efd; text-transform: uppercase; font-weight: 600; }
.pdp-related-card .card-title { font-size: 0.88rem; font-weight: 600; margin: 6px 0; color: #1a1a2e; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdp-related-card .card-price { font-weight: 700; font-size: 1rem; color: #1a1a2e; }

/* Floating CTA */
.pdp-float-cta { position: fixed; bottom: 20px; left: 20px; z-index: 999; }
.pdp-float-cta a { display: flex; align-items: center; gap: 8px; background: #0d6efd; color: #fff; padding: 12px 20px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 20px rgba(13,110,253,0.4); transition: transform 0.2s, background 0.2s; }
.pdp-float-cta a:hover { background: #0b5ed7; transform: scale(1.05); color: #fff; }

/* ===== Extracted from Product Inline Styles ===== */
.pdp-call-price { color: #c0392b; }
.pdp-review-content { font-size: 0.9rem; color: #555; line-height: 1.6; }
.pdp-related-border { border-bottom: 1px solid #f3f4f6; }
.pdp-related-img { height: 200px; width: 100%; object-fit: cover; }
.pdp-related-title { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pdp-related-cat { font-size: 11px; min-height: 16.5px; }
.pdp-related-stars { font-size: 10px; }
.pdp-star-filled { color: #0d6efd; }
.pdp-star-empty { color: #e2e8f0; }
.pdp-related-price { font-size: 14px; }
.pdp-view-details { font-size: 11px; padding: 5px 12px; width: fit-content; }
.pdp-call-btn-icon { font-size: 11px; }
.pdp-call-btn { width: 31px; height: 31px; position: relative; z-index: 2; }
