/* ==========================================================================
   Flagship D2C Single Product Page (PDP) Styles - Fully Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Breadcrumbs Ribbon
   -------------------------------------------------------------------------- */
.pdp-breadcrumb-bar {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}
.pdp-breadcrumbs {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pdp-breadcrumbs a {
    color: #475569;
    font-weight: 500;
}
.pdp-breadcrumbs a:hover {
    color: var(--primary-color, #2563eb);
}
.bc-sep {
    color: #94a3b8;
}
.bc-current {
    color: #0f172a;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   2. Main Two-Column Layout
   -------------------------------------------------------------------------- */
.pdp-main-section {
    padding: 40px 0 50px;
    background-color: #ffffff;
}
.pdp-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 50px;
    align-items: flex-start;
}

/* --------------------------------------------------------------------------
   3. Interactive Image Gallery (Left Column)
   -------------------------------------------------------------------------- */
.pdp-gallery-column {
    position: sticky;
    top: 90px;
}
.pdp-main-image-wrap {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.pdp-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease, transform 0.3s ease;
}
.pdp-main-image-wrap:hover img {
    transform: scale(1.03);
}
.pdp-discount-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    z-index: 5;
    letter-spacing: 0.5px;
}

/* Thumbnails Track */
.pdp-thumbnails-track {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.pdp-thumb-item {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f8fafc;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.pdp-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdp-thumb-item:hover {
    border-color: #94a3b8;
}
.pdp-thumb-item.active {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* --------------------------------------------------------------------------
   4. Purchasing Summary (Right Column)
   -------------------------------------------------------------------------- */
.pdp-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.pdp-brand-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-color, #2563eb);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.pdp-review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.pdp-review-rating .stars {
    color: #f59e0b;
}
.pdp-review-rating strong {
    color: #0f172a;
}
.pdp-review-rating small {
    color: #64748b;
}

.pdp-title {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

/* Pricing Box */
.pdp-price-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
}
.price-figures {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 6px;
}
.sale-price {
    font-size: 30px;
    font-weight: 900;
    color: #0f172a;
}
.regular-mrp {
    font-size: 17px;
    color: #94a3b8;
}
.savings-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
}
.tax-shipping-note {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    display: block;
}

/* Short Description */
.pdp-short-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 20px;
}

/* Feature Bullets */
.pdp-feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f1f5f9;
}
.f-bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.f-bullet span {
    color: #10b981;
    font-weight: 900;
}

/* Action Buttons & Stepper */
.pdp-action-form-wrap {
    margin-bottom: 28px;
}
.pdp-qty-btn-group {
    display: flex;
    gap: 14px;
    align-items: center;
}
.pdp-qty-stepper {
    display: flex;
    align-items: center;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    height: 52px;
}
.qty-btn {
    background: none;
    border: none;
    width: 44px;
    height: 100%;
    font-size: 18px;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: #f1f5f9;
}
.qty-field {
    width: 45px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    -moz-appearance: textfield;
}
.qty-field::-webkit-inner-spin-button,
.qty-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pdp-submit-add-btn {
    flex: 1;
    height: 52px;
    background: #0f172a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}
.pdp-submit-add-btn:hover {
    background: var(--primary-color, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* PIN Code Checker */
.pdp-pincode-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
}
.pincode-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 10px;
}
.pincode-input-group {
    display: flex;
    gap: 8px;
    max-width: 320px;
}
.pincode-input-group input {
    flex: 1;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.pincode-input-group input:focus {
    border-color: var(--primary-color, #2563eb);
}
.pincode-input-group button {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.pincode-result {
    font-size: 12px;
    margin-top: 8px;
}
.pincode-result.success {
    color: #059669;
    font-weight: 600;
}
.pincode-result.error {
    color: #dc2626;
}

/* 4 Guarantee Badges */
.pdp-guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    text-align: center;
}
.guarantee-cell {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px 8px;
    border-radius: 10px;
}
.g-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}
.guarantee-cell strong {
    display: block;
    font-size: 12px;
    color: #0f172a;
    line-height: 1.3;
}
.guarantee-cell small {
    font-size: 10px;
    color: #64748b;
    display: block;
}

/* Helpline Callout */
.pdp-support-callout {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.support-text strong {
    display: block;
    font-size: 13px;
    color: #1e3a8a;
}
.support-text span {
    font-size: 12px;
    color: #3b82f6;
}
.pdp-call-btn {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Frequently Bought Together (Amazon/Shopify Bundle Card)
   -------------------------------------------------------------------------- */
.pdp-bundle-section {
    padding: 20px 0 45px;
    background-color: #ffffff;
}
.pdp-bundle-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
.bundle-heading-row {
    margin-bottom: 24px;
}
.bundle-kicker {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-color, #2563eb);
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
}
.bundle-title {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

/* Three Columns: Visual + Checklist + Total */
.bundle-interactive-row {
    display: grid;
    grid-template-columns: 240px 1.4fr 1fr;
    gap: 30px;
    align-items: center;
}

/* Visual Plus Photos */
.bundle-thumbs-visual {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bundle-visual-item {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.bundle-visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bundle-plus-sign {
    font-size: 26px;
    font-weight: 900;
    color: #94a3b8;
}

/* Checklist */
.bundle-items-checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bundle-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
}
.bundle-check-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color, #2563eb);
    cursor: pointer;
}
.bundle-check-label .item-role {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.bundle-check-label strong {
    color: #0f172a;
    flex-grow: 1;
}
.bundle-check-label .item-cost {
    font-weight: 800;
    color: var(--primary-color, #2563eb);
}

/* Total Box */
.bundle-action-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.calc-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}
.calc-value {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin: 4px 0 6px;
}
.calc-perk {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 16px;
}
.btn-add-bundle {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-add-bundle:hover {
    background: var(--primary-color, #2563eb);
}

/* --------------------------------------------------------------------------
   6. Technical Specs & Reviews Tabs
   -------------------------------------------------------------------------- */
.pdp-tabs-section {
    padding: 60px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.pdp-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
}
.pdp-tabs-nav .tab-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.pdp-tabs-nav .tab-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.pdp-tab-pane {
    display: none;
    max-width: 860px;
    margin: 0 auto;
}
.pdp-tab-pane.active {
    display: block;
}

/* Specs Table */
.pdp-specs-table {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    border-collapse: collapse;
    overflow: hidden;
}
.pdp-specs-table th, 
.pdp-specs-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.pdp-specs-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    width: 35%;
    text-align: left;
}
.pdp-specs-table td {
    color: #0f172a;
    font-weight: 500;
}

/* Reviews Box */
.pdp-reviews-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 30px;
}
.review-breakdown-card {
    text-align: center;
    border-right: 1px solid #e2e8f0;
    padding-right: 20px;
}
.score-large {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}
.review-breakdown-card .stars {
    color: #f59e0b;
    font-size: 20px;
    margin: 8px 0;
}
.user-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.comment-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
}
.comment-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}
.comment-item p {
    font-size: 14px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Explore More (Related Products 4-Column Grid)
   -------------------------------------------------------------------------- */
.pdp-related-section {
    padding: 70px 0 90px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}
.section-title-wrap {
    text-align: center;
    margin-bottom: 45px;
}
.section-micro-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-color, #2563eb);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.section-title-large {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 12px;
}
.heading-line {
    width: 50px;
    height: 4px;
    background-color: var(--primary-color, #2563eb);
    margin: 0 auto;
    border-radius: 999px;
}

/* 4-Column Cards Grid */
.pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.pdp-rel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pdp-rel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}
.pdp-rel-thumb-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #f8fafc;
    overflow: hidden;
}
.pdp-rel-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.pdp-rel-card:hover .pdp-rel-thumb-wrap img {
    transform: scale(1.05);
}
.pdp-rel-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.pdp-rel-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pdp-rel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}
.pdp-rel-rating .stars {
    color: #f59e0b;
}
.pdp-rel-rating small {
    color: #64748b;
    font-weight: 700;
}
.pdp-rel-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px 0;
    flex-grow: 1;
}
.pdp-rel-title a {
    color: #0f172a;
}
.pdp-rel-title a:hover {
    color: var(--primary-color, #2563eb);
}
.pdp-rel-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}
.price-val {
    font-size: 17px;
    font-weight: 900;
    color: var(--primary-color, #2563eb);
}
.price-mrp {
    font-size: 13px;
    color: #94a3b8;
}
.btn-pdp-rel-action {
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s ease;
    display: block;
}
.btn-pdp-rel-action:hover {
    background: var(--primary-color, #2563eb);
}

/* --------------------------------------------------------------------------
   8. Mobile Sticky Bottom Purchase Bar (Shopify Style)
   -------------------------------------------------------------------------- */
.pdp-mobile-sticky-bottom {
    display: none;
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 998;
    align-items: center;
    gap: 12px;
}
.sticky-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
}
.sticky-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sticky-meta {
    flex: 1;
    overflow: hidden;
}
.sticky-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-price {
    font-size: 14px;
    font-weight: 900;
    color: var(--primary-color, #2563eb);
}
.sticky-cart-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   9. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .pdp-grid-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .pdp-gallery-column {
        position: static;
    }
    .pdp-main-image-wrap {
        height: 380px;
    }
    .bundle-interactive-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bundle-thumbs-visual {
        justify-content: center;
    }
    .pdp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .pdp-reviews-wrapper {
        grid-template-columns: 1fr;
    }
    .review-breakdown-card {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 20px;
    }
}

@media (max-width: 640px) {
    .pdp-main-image-wrap {
        height: 280px;
    }
    .pdp-title {
        font-size: 22px;
    }
    .sale-price {
        font-size: 24px;
    }
    .pdp-bundle-box {
        padding: 24px 18px;
    }
    .pdp-guarantee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pdp-support-callout {
        flex-direction: column;
        text-align: center;
    }
    .pdp-tabs-nav {
        flex-direction: column;
    }
    .pdp-mobile-sticky-bottom {
        display: flex;
    }
    .pdp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pdp-rel-thumb-wrap {
        height: 140px;
    }
    .pdp-rel-body {
        padding: 12px;
    }
    .pdp-rel-title {
        font-size: 13px;
    }
    .price-val {
        font-size: 15px;
    }
}