body {
    background-color: #000;
    background-image:
        url('/images/hero-premium.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    padding-top: 78px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--gray-800);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

footer {
    background: rgba(24, 24, 24, 0.68);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px) saturate(110%);
    -webkit-backdrop-filter: blur(6px) saturate(110%);
    padding: 1rem 1.25rem;
    margin-top: auto;
}

.product-detail-container {
    max-width: 1200px;
    margin: 2.75rem auto;
    padding: 0 2rem;
}

.breadcrumb,
.product-detail {
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.breadcrumb,
.product-title-price-card,
.product-description,
.product-meta {
    background: color-mix(in srgb, var(--bg-light) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--bg-light) 20%, transparent);
    backdrop-filter: blur(6px) saturate(125%);
    -webkit-backdrop-filter: blur(6px) saturate(125%);
}

.product-info {
    padding: 1.25rem 1.35rem 1.35rem 2rem;
}

.product-title-price-card {
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    color: var(--gray-100);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    position: sticky;
    top: 84px;
    z-index: 25;
}

.breadcrumb a {
    color: var(--primary-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

.breadcrumb-separator {
    display: inline-block;
    margin: 0 0.4rem;
    color: color-mix(in srgb, var(--gray-100) 80%, transparent);
}

.product-detail {
    color: var(--text-white);
    padding: 2rem;
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.product-image,
.product-info {
    min-width: 0;
}

.product-image {
    text-align: center;
    position: sticky;
    top: 176px;
    align-self: start;
}

.product-image-box {
    width: 100%;
    height: 460px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.product-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--gray-200) 70%, transparent);
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.product-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.product-info h1 {
    color: var(--text-white);
    font-size: 2.15rem;
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-category,
.product-description {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-category {
    color: var(--gray-200);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.product-price {
    color: var(--primary-light);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.product-price-label {
    color: var(--gray-200);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-price-old {
    opacity: 0.8;
}

.product-price-saving {
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.product-discount-info {
    color: var(--gray-100);
}

.product-price-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    list-style: none;
}

.product-price-summary::-webkit-details-marker {
    display: none;
}

.product-discount-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--gray-200);
    font-size: 1rem;
    font-weight: 800;
}

.product-discount-info-content {
    max-width: 34rem;
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-200);
    line-height: 1.65;
}

.product-extra-info {
    margin: 0 0 1.4rem;
    padding-left: 0.15rem;
    font-size: 0.96rem;
    color: var(--gray-100);
}

.product-extra-info p {
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--gray-100);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding: 1.3rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    white-space: pre-wrap;
}

.product-meta {
    padding: 0;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-actions .btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    flex: 1;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--bg-light) 86%, var(--gray-700) 14%);
    color: var(--text-white);
    border: 1px solid color-mix(in srgb, var(--gray-300) 34%, transparent);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.product-actions .btn-cta:hover {
    background: color-mix(in srgb, var(--bg-light) 78%, var(--gray-600) 22%);
    border-color: color-mix(in srgb, var(--gray-200) 52%, transparent);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-actions .btn-cta.js-add-to-favorites {
    position: relative;
}

.product-actions .btn-cta.js-add-to-favorites.is-favorite {
    background: color-mix(in srgb, #dc3545 24%, var(--bg-light) 76%);
    border-color: color-mix(in srgb, #dc3545 44%, transparent);
}

.product-actions .btn-cta.js-add-to-favorites.is-favorite:hover {
    background: color-mix(in srgb, #dc3545 32%, var(--bg-light) 68%);
    border-color: color-mix(in srgb, #dc3545 60%, transparent);
}

.product-actions .btn-cta.js-add-to-favorites .js-favorite-icon {
    font-size: 1.05rem;
}

.product-detail-notifications {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100vw - 2rem, 420px);
    pointer-events: none;
}

.product-detail-toast {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--gray-200) 28%, transparent);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--bg-darker) 82%, transparent), color-mix(in srgb, var(--bg-light) 72%, transparent));
    color: var(--text-white);
    box-shadow: var(--shadow-2xl);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    transform: translateY(-6px);
    opacity: 0;
    animation: productToastIn 180ms ease-out forwards;
}

.product-detail-toast.is-hiding {
    animation: productToastOut 180ms ease-in forwards;
}

.product-detail-toast-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--primary) 82%, transparent);
    color: var(--text-white);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 30%, transparent);
}

.product-detail-toast-danger .product-detail-toast-icon {
    background: color-mix(in srgb, #dc3545 82%, transparent);
    box-shadow: 0 10px 20px color-mix(in srgb, #dc3545 26%, transparent);
}

.product-detail-toast-text {
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.35;
}

@keyframes productToastIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes productToastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.meta-item {
    text-align: center;
}

.meta-label {
    color: var(--gray-300);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.meta-value {
    color: var(--gray-100);
    font-weight: 700;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .product-detail-container {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
        padding: 1.4rem;
        border-radius: 14px;
    }

    .breadcrumb {
        position: static;
        top: auto;
    }

    .product-image {
        position: static;
        top: auto;
        align-self: stretch;
    }

    .product-info h1 {
        font-size: 1.65rem;
    }

    .product-title-price-card {
        padding: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .product-info {
        padding: 1.25rem 1.1rem 1.2rem;
    }

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

    .product-image-box {
        height: 320px;
        border-radius: 12px;
    }

    .product-image-box img {
        border-radius: 12px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn-cta {
        width: 100%;
    }

    .product-detail-notifications {
        bottom: 0.75rem;
        width: min(100vw - 1rem, 420px);
    }
}
