/* ================================================
   RIGHT: PRODUCT INFO
   ================================================ */

.pg-product-info {
    flex: 1;
    min-width: 0;
}

/* Breadcrumb */
.pg-product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 1.4;
    color: var(--pg-dark);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pg-product-breadcrumb a {
    color: var(--pg-grey);
    text-decoration: none;
    transition: color 0.2s;
}

.pg-product-breadcrumb a:hover {
    color: var(--pg-galaxy);
}

.pg-product-breadcrumb svg {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

/* Product Meta Line (Stock + Brand + Categories) */
.pg-product-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pg-border);
    flex-wrap: wrap;
}

.pg-product-meta-separator {
    width: 1px;
    height: 16px;
    background: var(--pg-border);
}

/* Brand Badge */
.pg-product-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--pg-light-grey);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-dark);
}

.pg-product-brand-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pg-product-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Categories in meta line */
.pg-product-categories {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pg-product-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--pg-galaxy-light-bg);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pg-galaxy);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.pg-product-cat-badge:hover {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.25);
}

/* Playing style badge */
.pg-product-style-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--pg-galaxy-light-bg);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pg-galaxy);
    white-space: nowrap;
}

.pg-product-breadcrumb strong {
    font-weight: 700;
    color: var(--pg-galaxy);
}

.pg-breadcrumb-separator {
    margin: 0 8px;
    color: var(--pg-grey);
    font-weight: 400;
}

@media (max-width: 768px) {
    .pg-product-breadcrumb {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .pg-breadcrumb-separator {
        margin: 0 6px;
    }
}

/* Product Title */
.pg-product-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--pg-dark);
    line-height: 1.2;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pg-border);
}

@media (min-width: 768px) {
    .pg-product-title {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .pg-product-title {
        margin-bottom: 16px;
    }
}

/* Price */
.pg-product-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pg-product-price .woocommerce-Price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--pg-dark);
    letter-spacing: -0.02em;
}

.pg-product-price .pg-price-suffix {
    font-size: 13px;
    font-weight: 700;
    color: var(--pg-grey);
    text-transform: uppercase;
}

.pg-product-price del {
    opacity: 0.5;
    font-size: 24px;
}

.pg-product-price ins {
    text-decoration: none;
    color: var(--pg-galaxy);
}

/* Product page prefix size override */
.pg-product-price .pg-price-prefix {
    font-size: 14px;
}

.pg-product-unavailable-callout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 32px;
    padding: 16px 18px;
    background: var(--pg-bg-light);
    border: 1px solid var(--pg-border-light);
    border-radius: 2px;
}

.pg-product-unavailable-callout strong {
    font-size: 14px;
    font-weight: 750;
    color: var(--pg-dark);
}

.pg-product-unavailable-callout p {
    margin: 0;
    max-width: 460px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pg-grey);
}

.pg-product-notify-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--pg-dark);
    border-radius: 2px;
    background: var(--pg-dark);
    color: var(--pg-white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pg-product-notify-inline:hover {
    background: var(--pg-galaxy);
    border-color: var(--pg-galaxy);
}

/* Product Variant Family */
.pg-product-variant-family {
    margin: 0 0 22px;
}

.pg-product-variant-heading {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--pg-dark);
    font-size: 15px;
    font-weight: 750;
}

.pg-product-variant-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}

.pg-product-variant-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(76px, 1fr);
    align-items: center;
    flex: 0 0 176px;
    min-height: 82px;
    border: 1px solid var(--pg-border-light);
    border-radius: 2px;
    background: var(--pg-white);
    color: var(--pg-dark);
    text-decoration: none;
    overflow: hidden;
    scroll-snap-align: start;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pg-product-variant-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
}

.pg-product-variant-card:hover {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
    transform: translateY(-1px);
}

.pg-product-variant-card.is-active {
    border-color: var(--pg-galaxy);
    box-shadow: none;
}

.pg-product-variant-card.is-active::after {
    border-color: var(--pg-galaxy);
}

.pg-product-variant-card.is-unavailable {
    color: var(--pg-grey);
}

.pg-product-variant-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 80px;
    padding: 7px 6px 7px 8px;
    background: var(--pg-bg-light);
    box-sizing: border-box;
}

.pg-product-variant-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pg-product-variant-placeholder {
    font-size: 14px;
    font-weight: 800;
    color: var(--pg-grey);
    text-transform: uppercase;
}

.pg-product-variant-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
}

.pg-product-variant-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
}

.pg-product-variant-price {
    color: var(--pg-grey);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.3;
}

.pg-product-variant-price .pg-price-prefix {
    display: block;
    margin-bottom: 1px;
}

.pg-product-variant-card.is-unavailable .pg-product-variant-price {
    color: var(--pg-error);
}

/* Stock Status */
.pg-product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
}

.pg-product-stock.in-stock {
    background: var(--pg-stock-in-bg);
    color: var(--pg-stock-in-text);
}

.pg-product-stock.out-of-stock {
    background: var(--pg-stock-out-bg);
    color: var(--pg-stock-out-text);
}

.pg-product-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.pg-product-stock.in-stock .pg-product-stock-dot {
    background: var(--pg-stock-in-text);
}

.pg-product-stock.out-of-stock .pg-product-stock-dot {
    background: var(--pg-stock-out-text);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Delivery Estimate */
.pg-delivery-estimate {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -8px;
    margin-bottom: 24px;
    padding: 10px 16px;
    background: var(--pg-bg-light);
    border: 1px solid var(--pg-border-light);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pg-grey-medium);
}

.pg-delivery-icon {
    flex-shrink: 0;
    color: var(--pg-grey-medium);
}

.pg-delivery-estimate-text {
    line-height: 1.4;
}

/* ================================================
   Mode embed (popup composant)
   ================================================ */
/* .pg-product-sticky-footer porte `display:flex !important` (sticky-footer.css)
   → on doit surcharger avec !important pour le masquer dans la popup embed. */
body.pg-embed .pg-product-sticky-footer,
body.pg-embed .pg-product-quantity {
    display: none !important;
}

.pg-embed-view-product {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 8px 14px;
    border: 1px solid var(--pg-border-light);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-grey-medium);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.pg-embed-view-product svg {
    flex-shrink: 0;
}

.pg-embed-view-product:hover {
    color: var(--pg-galaxy);
    border-color: var(--pg-galaxy);
}

/* Short Description */
.pg-product-short-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--pg-grey);
    margin-bottom: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
}
