/* Product Details — aligned with shop theme */

.pdp {
    background:
        linear-gradient(180deg, #f7fafc 0%, #ffffff 220px);
    color: #243447;
}

.pdp-breadcrumb {
    border-bottom: 1px solid var(--theme-border, #dce5ee);
    background: #fff;
    padding: 0.85rem 0;
}

.pdp-breadcrumb .container-fluid,
.pdp-container {
    padding-left: 40px;
    padding-right: 40px;
}

.pdp-breadcrumb .breadcrumb {
    background: transparent;
    font-size: 0.86rem;
}

.pdp-breadcrumb .breadcrumb-item a {
    color: var(--theme-secondary-color, #5c6670);
    text-decoration: none;
}

.pdp-breadcrumb .breadcrumb-item a:hover {
    color: var(--theme-nav, #0b3d7a);
}

.pdp-breadcrumb .breadcrumb-item.active {
    color: var(--theme-nav, #0b3d7a);
    font-weight: 600;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdp-container {
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
}

.pdp-main {
    margin-bottom: 2.5rem;
}

/* Gallery */
.pdp-gallery {
    position: sticky;
    top: 1rem;
}

.pdp-gallery__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--theme-border, #dce5ee);
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(11, 61, 122, 0.06);
}

.pdp-gallery__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--theme-primary-color, #c41e3a);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pdp-gallery__image {
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pdp-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.pdp-gallery__thumb {
    width: 74px;
    height: 74px;
    padding: 0.25rem;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.pdp-gallery__thumb:hover,
.pdp-gallery__thumb.is-active {
    border-color: var(--theme-accent-color, #0094d9);
    box-shadow: 0 6px 16px rgba(0, 148, 217, 0.15);
}

/* Buy box */
.pdp-buybox {
    background: #fff;
    border: 1px solid var(--theme-border, #dce5ee);
    border-radius: 1.15rem;
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: 0 12px 30px rgba(11, 61, 122, 0.05);
}

.pdp-buybox__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.85rem;
    margin-bottom: 0.65rem;
}

.pdp-buybox__brand {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-accent-color, #0094d9);
}

.pdp-buybox__category {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--theme-secondary-color, #5c6670);
    text-decoration: none;
}

.pdp-buybox__category:hover {
    color: var(--theme-nav, #0b3d7a);
}

.pdp-buybox__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--theme-nav, #0b3d7a);
}

.pdp-buybox__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
}

.pdp-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.pdp-stock i {
    font-size: 0.45rem;
}

.pdp-stock--in {
    color: #1b7a4a;
}

.pdp-stock--out {
    color: var(--theme-primary-color, #c41e3a);
}

.pdp-stock__qty {
    font-weight: 600;
    color: var(--theme-secondary-color, #5c6670);
}

.pdp-sku {
    font-size: 0.82rem;
    color: var(--theme-secondary-color, #5c6670);
}

.pdp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem 0.85rem;
    margin-bottom: 1rem;
}

.pdp-price__current {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--theme-primary-color, #c41e3a);
}

.pdp-price__compare {
    font-size: 1.05rem;
    color: #8a96a3;
    text-decoration: line-through;
}

.pdp-price__save {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(196, 30, 58, 0.1);
    color: var(--theme-primary-color, #c41e3a);
    font-size: 0.75rem;
    font-weight: 700;
}

.pdp-price__contact {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-nav, #0b3d7a);
}

.pdp-buybox__excerpt {
    margin: 0 0 1.15rem;
    color: #526274;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Options */
.pdp-options {
    margin-bottom: 1.15rem;
}

.pdp-options__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.pdp-options__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-nav, #0b3d7a);
}

.pdp-options__clear {
    border: 0;
    background: transparent;
    color: var(--theme-accent-color, #0094d9);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0;
}

.pdp-options__grid {
    display: grid;
    gap: 0.65rem;
}

.pdp-option {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.85rem;
    border: 1px solid var(--theme-border, #dce5ee);
    border-radius: 0.9rem;
    background: #fbfcfe;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pdp-option:hover {
    border-color: rgba(0, 148, 217, 0.45);
}

.pdp-option.is-selected {
    border-color: var(--theme-accent-color, #0094d9);
    background: rgba(0, 148, 217, 0.06);
    box-shadow: 0 0 0 1px rgba(0, 148, 217, 0.2);
}

.pdp-option.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pdp-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.pdp-option__image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.55rem;
    border: 1px solid var(--theme-border, #dce5ee);
}

.pdp-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.pdp-option__name {
    font-weight: 700;
    color: var(--theme-nav, #0b3d7a);
}

.pdp-option__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--theme-secondary-color, #5c6670);
}

.pdp-option__price {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--theme-primary-color, #c41e3a);
}

.pdp-option__oos {
    font-size: 0.78rem;
    font-weight: 600;
    color: #8a96a3;
}

/* Summary */
.pdp-summary {
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: #f4f8fb;
    border: 1px solid rgba(11, 61, 122, 0.08);
}

.pdp-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: #526274;
    padding: 0.25rem 0;
}

.pdp-summary__row--total {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(11, 61, 122, 0.18);
    font-weight: 800;
    color: var(--theme-nav, #0b3d7a);
}

/* Actions */
.pdp-actions {
    margin-bottom: 1.15rem;
}

.pdp-actions__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pdp-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--theme-border, #dce5ee);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.pdp-qty__btn {
    width: 2.5rem;
    border: 0;
    background: #f4f8fb;
    color: var(--theme-nav, #0b3d7a);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.pdp-qty__btn:hover {
    background: rgba(0, 148, 217, 0.1);
}

.pdp-qty__input {
    width: 3.25rem;
    border: 0;
    border-left: 1px solid var(--theme-border, #dce5ee);
    border-right: 1px solid var(--theme-border, #dce5ee);
    text-align: center;
    font-weight: 700;
    color: var(--theme-nav, #0b3d7a);
    -moz-appearance: textfield;
}

.pdp-qty__input::-webkit-outer-spin-button,
.pdp-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pdp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0.7rem 1.35rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pdp-btn--primary {
    flex: 1 1 12rem;
    background: linear-gradient(135deg, var(--theme-nav, #0b3d7a), #0f5aa8);
    color: #fff;
    box-shadow: 0 10px 22px rgba(11, 61, 122, 0.22);
}

.pdp-btn--primary:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(11, 61, 122, 0.28);
}

.pdp-btn--primary:disabled {
    background: #9aa8b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* Trust + share */
.pdp-trust {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--theme-border, #dce5ee);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1rem;
}

.pdp-trust li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #526274;
    line-height: 1.35;
}

.pdp-trust i {
    margin-top: 0.15rem;
    color: var(--theme-accent-color, #0094d9);
    width: 1rem;
    text-align: center;
}

.pdp-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pdp-share__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a96a3;
}

.pdp-share__actions {
    display: flex;
    gap: 0.45rem;
}

.pdp-share__btn {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--theme-border, #dce5ee);
    background: #fff;
    color: var(--theme-nav, #0b3d7a);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pdp-share__btn:hover {
    background: rgba(0, 148, 217, 0.08);
    border-color: rgba(0, 148, 217, 0.35);
    color: var(--theme-nav, #0b3d7a);
}

/* Panels / tabs */
.pdp-panels {
    background: #fff;
    border: 1px solid var(--theme-border, #dce5ee);
    border-radius: 1.15rem;
    padding: 0.35rem 1.35rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 24px rgba(11, 61, 122, 0.04);
}

.pdp-tabs {
    border-bottom: 1px solid var(--theme-border, #dce5ee);
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.pdp-tabs::-webkit-scrollbar {
    display: none;
}

.pdp-tabs .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--theme-secondary-color, #5c6670);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.95rem 0.85rem;
    white-space: nowrap;
    background: transparent;
}

.pdp-tabs .nav-link:hover {
    color: var(--theme-nav, #0b3d7a);
    border-color: transparent;
}

.pdp-tabs .nav-link.active {
    color: var(--theme-nav, #0b3d7a);
    border-bottom-color: var(--theme-accent-color, #0094d9);
    background: transparent;
}

.pdp-tab-content {
    padding-top: 1.25rem;
}

.pdp-panel__title {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--theme-nav, #0b3d7a);
}

.pdp-description {
    color: #425466;
    line-height: 1.7;
    font-size: 0.98rem;
}

.pdp-description p:last-child {
    margin-bottom: 0;
}

.pdp-empty {
    margin: 0;
    color: #8a96a3;
}

.pdp-brand-note {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border, #dce5ee);
    font-size: 0.92rem;
    color: #526274;
}

.pdp-specs {
    display: grid;
    gap: 0;
}

.pdp-specs__row {
    display: grid;
    grid-template-columns: minmax(120px, 220px) 1fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #eef2f6;
}

.pdp-specs__row:last-child {
    border-bottom: 0;
}

.pdp-specs__row dt {
    margin: 0;
    font-weight: 700;
    color: var(--theme-nav, #0b3d7a);
}

.pdp-specs__row dd {
    margin: 0;
    color: #526274;
}

.pdp-faq .accordion-item {
    border: 1px solid var(--theme-border, #dce5ee);
    border-radius: 0.75rem !important;
    overflow: hidden;
    margin-bottom: 0.65rem;
    background: #fff;
}

.pdp-faq .accordion-button {
    font-weight: 700;
    color: var(--theme-nav, #0b3d7a);
    background: #f8fbfd;
    box-shadow: none;
}

.pdp-faq .accordion-button:not(.collapsed) {
    background: rgba(0, 148, 217, 0.08);
    color: var(--theme-nav, #0b3d7a);
}

.pdp-faq .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.pdp-faq .accordion-body {
    color: #526274;
    line-height: 1.6;
}

/* Related */
.pdp-related__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pdp-related__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-accent-color, #0094d9);
}

.pdp-related__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--theme-nav, #0b3d7a);
}

.pdp-related__link {
    font-weight: 600;
    color: var(--theme-nav, #0b3d7a);
    text-decoration: none;
}

.pdp-related__link:hover {
    color: var(--theme-primary-color, #c41e3a);
}

@media (max-width: 991.98px) {
    .pdp-gallery {
        position: static;
    }

    .pdp-gallery__stage {
        min-height: 320px;
    }

    .pdp-buybox {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .pdp {
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }

    .pdp-breadcrumb {
        padding: 0.55rem 0;
    }

    .pdp-breadcrumb .container-fluid,
    .pdp-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pdp-breadcrumb .breadcrumb {
        flex-wrap: nowrap;
        overflow: hidden;
        font-size: 0.78rem;
    }

    .pdp-breadcrumb .breadcrumb-item {
        flex-shrink: 0;
    }

    .pdp-breadcrumb .breadcrumb-item:not(:first-child):not(.active) {
        display: none;
    }

    .pdp-breadcrumb .breadcrumb-item.active {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .pdp-container {
        padding-top: 0;
        padding-bottom: 2rem;
    }

    .pdp-main {
        margin-bottom: 1.5rem;
        --bs-gutter-y: 1rem;
    }

    /* Full-bleed product image */
    .pdp-gallery {
        margin-left: -16px;
        margin-right: -16px;
    }

    .pdp-gallery__stage {
        min-height: 0;
        aspect-ratio: 1 / 1;
        max-height: min(78vw, 420px);
        padding: 0.85rem;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    .pdp-gallery__image {
        max-height: min(70vw, 380px);
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .pdp-gallery__badge {
        top: 0.75rem;
        left: 0.75rem;
    }

    .pdp-gallery__thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0.75rem 0 0;
        padding: 0 16px 0.15rem;
        gap: 0.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pdp-gallery__thumbs::-webkit-scrollbar {
        display: none;
    }

    .pdp-gallery__thumb {
        flex: 0 0 auto;
        width: 64px;
        height: 64px;
    }

    /* Flatten buy box so mobile reads as one flow */
    .pdp-buybox {
        padding: 1rem 0 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .pdp-buybox__title {
        font-size: 1.35rem;
        margin-bottom: 0.65rem;
    }

    .pdp-buybox__status {
        margin-bottom: 0.75rem;
        gap: 0.45rem 0.75rem;
    }

    .pdp-price {
        margin-bottom: 0.75rem;
    }

    .pdp-price__current {
        font-size: 1.45rem;
    }

    .pdp-buybox__excerpt {
        font-size: 0.9rem;
        margin-bottom: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pdp-option {
        padding: 0.7rem;
        gap: 0.7rem;
    }

    .pdp-option__image {
        width: 48px;
        height: 48px;
    }

    .pdp-summary {
        padding: 0.7rem 0.85rem;
        margin-bottom: 0.9rem;
    }

    .pdp-trust {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        padding-top: 0.7rem;
        margin-bottom: 0.9rem;
    }

    .pdp-share {
        gap: 0.55rem;
    }

    /* Sticky purchase bar */
    .pdp-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        margin: 0;
        padding: 0.7rem 16px calc(0.7rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--theme-border, #dce5ee);
        box-shadow: 0 -10px 28px rgba(11, 61, 122, 0.12);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .pdp-actions__form {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.6rem;
    }

    .pdp-qty {
        width: auto;
        flex: 0 0 auto;
    }

    .pdp-qty__btn {
        width: 2.35rem;
        min-height: 2.75rem;
    }

    .pdp-qty__input {
        width: 2.6rem;
        flex: 0 0 2.6rem;
    }

    .pdp-btn--primary {
        flex: 1 1 auto;
        width: auto;
        min-height: 2.75rem;
        box-shadow: 0 8px 18px rgba(11, 61, 122, 0.2);
    }

    .pdp-actions > .pdp-btn--primary {
        width: 100%;
    }

    .pdp-btn--primary:hover:not(:disabled) {
        transform: none;
    }

    .pdp-panels {
        padding: 0.15rem 0.9rem 1.1rem;
        border-radius: 0.9rem;
        margin-bottom: 1.75rem;
    }

    .pdp-tabs .nav-link {
        padding: 0.8rem 0.65rem;
        font-size: 0.86rem;
    }

    .pdp-tab-content {
        padding-top: 1rem;
    }

    .pdp-panel__title {
        font-size: 1.05rem;
    }

    .pdp-description {
        font-size: 0.92rem;
        overflow-wrap: anywhere;
    }

    .pdp-description img,
    .pdp-description table,
    .pdp-description iframe,
    .pdp-description video {
        max-width: 100%;
        height: auto;
    }

    .pdp-specs__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        padding: 0.7rem 0;
    }

    .pdp-faq .accordion-button {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .pdp-related__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
        margin-bottom: 0.95rem;
    }

    .pdp-related__title {
        font-size: 1.2rem;
    }

    .pdp-related .product-card__body {
        padding: 0.75rem 0.65rem 0.85rem;
    }

    .pdp-related .product-card__title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .pdp-gallery__stage {
        max-height: min(88vw, 360px);
        padding: 0.65rem;
    }

    .pdp-gallery__image {
        max-height: min(80vw, 330px);
    }

    .pdp-buybox__title {
        font-size: 1.25rem;
    }

    .pdp-price__current {
        font-size: 1.35rem;
    }

    .pdp-actions .pdp-btn--primary {
        font-size: 0.9rem;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}
