.brand-name {
    color: #0D0C0C;
    font-weight: bold;
    font-size: 1.25rem;
}

.share-toast {
    align-items: center;
    background: #A89E90;
    border-radius: 50px;
    bottom: 30px;
    box-shadow: 0 8px 24px rgba(168, 158, 144, 0.3);
    color: #FFFFFF;
    display: flex;
    font-size: 15px;
    font-weight: 500;
    gap: 10px;
    opacity: 0;
    padding: 14px 24px;
    pointer-events: none;
    position: fixed;
    right: 30px;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
}

.share-toast--show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.share-toast i {
    font-size: 18px;
}

.share-toast--error {
    background: #E53E3E;
    box-shadow: 0 8px 24px rgba(229, 62, 62, 0.3);
}

.share-toast--show i {
    animation: checkPop 0.5s ease;
}

@keyframes checkPop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
    .share-toast {
        bottom: 20px;
        justify-content: center;
        left: 20px;
        right: 20px;
    }
}

/* Photo counter overlay */
.photo-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 5;
    letter-spacing: 0.5px;
}

/* Gallery nav arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.gallery-main-wrap:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-nav.gallery-nav--hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.gallery-nav-prev {
    left: 12px;
}

.gallery-nav-next {
    right: 12px;
}

@media (max-width: 767px) {
    .gallery-nav {
        opacity: 1;
        width: 34px;
        height: 34px;
    }
}

/* Thumbnail strip with right fade hint */
.thumb-strip-wrap {
    position: relative;
}

.thumb-strip-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.85));
    pointer-events: none;
    z-index: 2;
}

/* Active thumbnail */
.thumb-swiper-lg .swiper-slide {
    opacity: 0.55;
    transition: opacity 0.2s ease;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}

.thumb-swiper-lg .swiper-slide.thumb-active {
    opacity: 1;
    border-color: #000;
}

/* PICTURE variation swatches */
.picture-variation-swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.picture-variation-swatch img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.picture-variation-swatch span {
    font-size: 11px;
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #555;
}

.picture-variation-swatch:hover img {
    border-color: #aaa;
}

.picture-variation-swatch--active img {
    border-color: #000;
    opacity: 1;
}

.picture-variation-swatch:not(.picture-variation-swatch--active) img {
    opacity: 0.7;
}

#variation-preview-popup {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 200px;
    height: 200px;
}

#variation-preview-popup.is-visible {
    opacity: 1;
}

#variation-preview-popup img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    opacity: 1;
}

.product-unavailable {
    --pu-ink: #0D0C0C;
    --pu-muted: #6F675D;
    --pu-accent: #A89E90;
    --pu-line: #E6E0D6;
    background: linear-gradient(180deg, #FCFBF9 0%, #F5F2ED 100%);
    border: 1px solid var(--pu-line);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 18px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 1px 2px rgba(13, 12, 12, 0.04);
}

.product-unavailable__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.product-unavailable__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--pu-line);
    color: var(--pu-accent);
}

.product-unavailable__body {
    min-width: 0;
}

.product-unavailable__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pu-ink);
}

.product-unavailable__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--pu-muted);
}

.product-unavailable__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-unavailable__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-unavailable__btn:hover,
.product-unavailable__btn:focus-visible {
    transform: translateY(-1px);
}

.product-unavailable__btn--primary {
    background: var(--pu-ink);
    border-color: var(--pu-ink);
    color: #FFFFFF;
}

.product-unavailable__btn--primary:hover,
.product-unavailable__btn--primary:focus-visible {
    background: #2B2724;
    border-color: #2B2724;
    color: #FFFFFF;
}

.product-unavailable__btn--ghost {
    background: #FFFFFF;
    border-color: var(--pu-line);
    color: var(--pu-ink);
}

.product-unavailable__btn--ghost:hover,
.product-unavailable__btn--ghost:focus-visible {
    border-color: var(--pu-accent);
    color: var(--pu-ink);
}

@media (max-width: 575px) {
    .product-unavailable__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-unavailable__btn {
        justify-content: center;
    }
}

/* Galerie d'un produit indisponible */
.product-media--unavailable img {
    filter: grayscale(0.45);
}

.gallery-unavailable-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(13, 12, 12, 0.78);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

#product-variations,
#product-variations-slide {
    scroll-margin-top: 100px;
}
