﻿/* ==========================================================================
   product-detail — Product detail page (PDP) styles
   ========================================================================== */

/* --- Breadcrumb --- */

.pdp-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: var(--brand-space-4);
    font-size: 0.75rem;
}

.pdp-breadcrumb .breadcrumb-item a {
    color: var(--brand-text-light-muted);
    text-decoration: none;
}

.pdp-breadcrumb .breadcrumb-item a:hover {
    color: var(--brand-accent);
}

.pdp-breadcrumb .breadcrumb-item.active {
    color: var(--brand-text-light);
}

.pdp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--brand-border-dark);
}

/* --- Gallery --- */

.pdp-gallery__main {
    border-radius: var(--brand-radius-lg);
    overflow: hidden;
    background-color: var(--brand-surface-dark-alt);
    aspect-ratio: 1 / 1;
    margin-bottom: var(--brand-space-3);
}

.pdp-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-gallery__thumbnails {
    display: flex;
    gap: var(--brand-space-2);
    overflow-x: auto;
}

.pdp-gallery__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: var(--brand-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--brand-surface-dark-alt);
    cursor: pointer;
    padding: 0;
    transition: border-color var(--brand-transition-fast);
}

.pdp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-gallery__thumb:hover,
.pdp-gallery__thumb--active {
    border-color: var(--brand-accent);
}

/* --- Info --- */

.pdp-info__title {
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-font-weight-bold);
    font-size: 1.5rem;
    color: var(--brand-text-light);
    margin-bottom: var(--brand-space-1);
}

.pdp-info__subtitle {
    color: var(--brand-text-light-muted);
    font-size: 0.9rem;
    margin-bottom: var(--brand-space-3);
}

.pdp-info__price-block {
    display: flex;
    align-items: baseline;
    gap: var(--brand-space-2);
    margin-bottom: var(--brand-space-4);
}

.pdp-info__price {
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-font-weight-bold);
    font-size: 1.5rem;
    color: var(--brand-text-light);
}

.pdp-info__price--sale {
    color: var(--brand-danger);
}

.pdp-info__price--original {
    text-decoration: line-through;
    color: var(--brand-text-light-muted);
    font-size: 1rem;
}

.pdp-info__promo-exclusion {
    font-size: 0.8rem;
    color: var(--brand-text-light-muted);
    margin-top: var(--brand-space-1);
    margin-bottom: 0;
}

/* --- Variants --- */

.pdp-info__variants {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--brand-space-3);
    margin-bottom: var(--brand-space-3);
}

@media (min-width: 992px) {
    .pdp-info__variants {
        grid-template-columns: 1fr 1fr;
    }
}

.pdp-info__variant-group {
}

.pdp-info__variant-label {
    display: block;
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-font-weight-medium);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: var(--brand-letter-spacing-caps);
    color: var(--brand-text-light-muted);
    margin-bottom: var(--brand-space-1);
}

.pdp-info__variant-select {
    background-color: var(--brand-surface-dark-alt);
    border-color: var(--brand-border-dark);
    color: var(--brand-text-light);
    width: 100%;
}

/* --- Actions --- */

.pdp-info__actions {
    display: flex;
    gap: var(--brand-space-2);
    align-items: stretch;
    margin-bottom: var(--brand-space-4);
}

.pdp-info__quantity {
    flex: 0 0 auto;
}

.pdp-info__quantity .form-control {
    background-color: var(--brand-surface-dark-alt);
    border-color: var(--brand-border-dark);
    color: var(--brand-text-light);
    text-align: center;
    height: 100%;
}

.pdp-info__add-to-basket {
    flex: 1;
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--brand-letter-spacing-caps);
    font-size: 0.85rem;
}

/* --- Delivery --- */

.pdp-info__delivery {
    padding: var(--brand-space-3);
    background-color: var(--brand-surface-dark-alt);
    border: 1px solid var(--brand-border-dark);
    border-radius: var(--brand-radius-lg);
    margin-bottom: var(--brand-space-4);
    font-size: 0.85rem;
    color: var(--brand-text-light-muted);
}

.pdp-delivery__list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--brand-space-1) var(--brand-space-3);
    margin: 0;
}

.pdp-delivery__label {
    font-weight: var(--brand-font-weight-semibold);
    color: var(--brand-text-light);
}

.pdp-delivery__cost {
    text-align: right;
    margin: 0;
}

/* --- Highlights --- */

.pdp-info__highlights {
    margin-bottom: var(--brand-space-4);
}

.pdp-info__highlights-heading,
.pdp-info__description-heading {
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-font-weight-semibold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: var(--brand-letter-spacing-caps);
    color: var(--brand-text-light);
    margin-bottom: var(--brand-space-2);
}

.pdp-info__highlights-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--brand-space-4) 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--brand-space-2) var(--brand-space-4);
}

@media (min-width: 576px) {
    .pdp-info__highlights-list {
        grid-template-columns: 1fr 1fr;
    }
}

.pdp-info__highlights-list li,
.pdp-info__highlights-item {
    position: relative;
    padding-left: var(--brand-space-4);
    color: var(--brand-text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.pdp-info__highlights-list li::before,
.pdp-info__highlights-item::before {
    content: "»";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-accent);
    font-weight: var(--brand-font-weight-bold);
    font-size: 1rem;
    line-height: 1.4;
}

/* --- Description --- */

.pdp-info__description {
    color: var(--brand-text-light-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
