/* Product detail page (PDP) */
.pdp-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.pdp-breadcrumb {
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
}

.pdp-breadcrumb .breadcrumb {
    margin-bottom: 0;
    flex-wrap: wrap;
}

.pdp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .pdp-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }
}

@media (min-width: 992px) {
    .pdp-layout {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2rem;
    }
}

/* Gallery */
.pdp-gallery {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .pdp-gallery {
        position: sticky;
        top: calc(var(--checkout-sticky-top, 56px) + 12px);
    }
}

.pdp-gallery__stage {
    aspect-ratio: 1 / 1;
    background: #fafafa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.65rem;
}

.pdp-gallery__main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pdp-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
}

.pdp-gallery__thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    object-fit: cover;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.pdp-gallery__thumb:hover,
.pdp-gallery__thumb.is-active {
    border-color: var(--primary-color);
    transform: scale(1.03);
}

/* Buy box */
.pdp-buybox {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pdp-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0 0 0.65rem;
}

.pdp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    margin-bottom: 0.85rem;
}

.pdp-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #555;
    background: #f5f5f5;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.pdp-meta-chip a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.pdp-meta-chip a:hover {
    text-decoration: underline;
}

.pdp-rating {
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
}

.pdp-rating .bi-star-fill {
    color: #f59e0b;
}

.pdp-price-block {
    margin-bottom: 0.75rem;
}

.pdp-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
}

.pdp-price-old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.35rem;
    font-weight: 500;
}

.pdp-discount-badge {
    font-size: 0.78rem;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.pdp-stock {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.pdp-stock--in {
    color: var(--success-color);
}

.pdp-stock--out {
    color: var(--danger-color);
}

.pdp-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 1rem;
}

.pdp-actions-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pdp-add-btn {
    flex: 1;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.7rem 1rem;
}

.pdp-wishlist-btn {
    width: 3rem;
    flex-shrink: 0;
    border-radius: 10px;
    border-width: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdp-wishlist-btn.active,
.pdp-wishlist-btn.active i {
    color: #dc3545;
}

.pdp-qty-row {
    max-width: 140px;
    margin-bottom: 0.85rem;
}

.pdp-qty-row .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pdp-qty-row .quantity-input {
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
}

/* Sections below fold */
.pdp-section {
    margin-top: 1.25rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pdp-section__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    color: #1a1a1a;
}

.pdp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.pdp-section__head .pdp-section__title {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .pdp-gallery.product-detail-image-wrapper {
        position: static;
    }
}

.pdp-description {
    color: #444;
    line-height: 1.65;
    font-size: 0.92rem;
}


.pdp-products-row {
    --bs-gutter-x: 0.5rem;
}

.pdp-products-row > [class*="col-"] {
    margin-bottom: 0.5rem;
}

.pdp-products-row .product-card img {
    height: 140px;
}

@media (min-width: 768px) {
    .pdp-products-row .product-card img {
        height: 180px;
    }
}

/* Mobile sticky buy bar */
.pdp-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.pdp-mobile-bar__price {
    flex: 1;
    min-width: 0;
}

.pdp-mobile-bar__label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #777;
    font-weight: 600;
}

.pdp-mobile-bar__amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.pdp-mobile-bar__btn {
    flex-shrink: 0;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
}

/* Trust & Delivery Guarantee Box */
.pdp-trust-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.pdp-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

@media (max-width: 480px) {
    .pdp-trust-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}

.pdp-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.pdp-trust-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(11, 27, 60, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FE6A07;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pdp-trust-text {
    flex: 1;
    min-width: 0;
}

.pdp-trust-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.pdp-trust-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.2;
    margin: 0;
}

/* Reviews Breakdown Summary */
.pdp-review-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.pdp-rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    padding-right: 1.25rem;
}

@media (max-width: 767.98px) {
    .pdp-rating-overview {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

.pdp-rating-big {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.pdp-rating-big-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.pdp-rating-big-count {
    font-size: 0.78rem;
    color: #64748b;
}

.pdp-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pdp-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
}

.pdp-rating-bar-star {
    width: 2.4rem;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.pdp-rating-bar-track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.pdp-rating-bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.pdp-rating-bar-count {
    width: 2rem;
    text-align: right;
    color: #64748b;
    font-weight: 500;
}

/* Swatches & Variation Options */
.color-swatches,
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.color-swatch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.18s ease;
}

.color-swatch-circle {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--swatch-color, #cbd5e1);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.size-option-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    min-width: 2.75rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.18s ease;
}

.color-swatch-btn:hover,
.size-option-btn:hover {
    border-color: #FE6A07;
    background: #fff8f3;
}

.color-swatch-btn.is-selected,
.size-option-btn.is-selected {
    border-color: #FE6A07;
    background: #fff4ec;
    color: #FE6A07;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(254, 106, 7, 0.25);
}

.option-price-tag {
    font-size: 0.72rem;
    color: #FE6A07;
    font-weight: 700;
    background: rgba(254, 106, 7, 0.1);
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 2px;
}



/* Reviews in PDP */
.pdp-reviews-list .review-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.pdp-reviews-list .review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .pdp-page {
        padding-bottom: 2rem;
    }

    .pdp-title {
        font-size: 1.5rem;
    }

    .pdp-price {
        font-size: 2rem;
    }

    .pdp-section {
        padding: 1.25rem 1.35rem;
    }
}

@media (min-width: 992px) {
    .pdp-title {
        font-size: 1.65rem;
    }
}

/* Modern Stepper */
.pdp-stepper-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.pdp-stepper-group .btn {
    border: none;
    background: #f8fafc;
    color: #334155;
    padding: 0.45rem 0.75rem;
    border-radius: 0;
    transition: all 0.15s ease;
}

.pdp-stepper-group .btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.pdp-stepper-group .quantity-input {
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 0.4rem;
    box-shadow: none;
}

.pdp-stepper-group .quantity-input:focus {
    box-shadow: none;
    background: #ffffff;
}
