/* =============================================
   Product Detail Page Styles
   ============================================= */

.product-detail {
    padding: 80px 0 60px;
    position: relative;
    z-index: 1;
    min-height: auto;
}

/* Breadcrumb */
.product-detail__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.product-detail__breadcrumb a {
    color: rgba(232, 228, 240, 0.5);
    transition: var(--transition);
}

.product-detail__breadcrumb a:hover {
    color: var(--cyan);
}

.breadcrumb-sep {
    color: rgba(232, 228, 240, 0.25);
}

.breadcrumb-current {
    color: rgba(232, 228, 240, 0.7);
}

/* Layout */
.product-detail__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Image */
.product-detail__image-wrap {
    position: relative;
}

.product-detail__image-container {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    cursor: pointer;
}

.product-detail__image-container:hover .product-detail__image {
    transform: scale(1.05);
}

/* ── Product Gallery Navigation ── */
.product-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--light);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.product-gallery__nav:hover {
    background: var(--gradient-accent);
    border-color: transparent;
}

.product-gallery__nav--prev { left: 12px; }
.product-gallery__nav--next { right: 12px; }

.product-gallery__counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--light);
    z-index: 10;
}

/* ── Gallery Thumbnails ── */
.product-gallery__thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-gallery__thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-gallery__thumbnails::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: var(--radius-full);
}

.product-gallery__thumbnails::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: var(--radius-full);
}

.product-gallery__thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    background: transparent;
}

.product-gallery__thumbnail:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.product-gallery__thumbnail.active {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

.product-gallery__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--gradient-accent);
    color: #fff;
}

.product-detail__badge--uv {
    background: var(--gradient-uv);
}

.product-detail__badge--sale {
    background: linear-gradient(135deg, #e91e63, #ff5252);
}

.product-detail__badge--custom {
    background: linear-gradient(135deg, #7b2ff7, #9c27b0);
}

/* Info */
.product-detail__info {
    padding-top: 16px;
}

.product-detail__category {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.product-detail__name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.product-detail__desc {
    font-size: 1.05rem;
    color: rgba(232, 228, 240, 0.65);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 500px;
}

.product-detail__price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
}

.product-detail__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.product-detail__qty-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 4px;
}

.product-detail__qty-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.product-detail__qty-btn:hover {
    background: rgba(0, 120, 150, 0.2);
    border-color: var(--cyan);
    color: var(--cyan);
}

.product-detail__qty-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 48px;
    text-align: center;
}

.product-detail__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.product-detail__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(232, 228, 240, 0.65);
}

.product-detail__feature svg {
    color: var(--cyan);
    flex-shrink: 0;
}

/* Customizer on product page */
.customizer--product {
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 900px) {
    .product-detail__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-detail {
        padding-top: 80px;
    }

    .product-detail__image-container {
        aspect-ratio: 1 / 1;
    }

    .customizer {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding-top: 70px;
    }

    .product-detail__name {
        font-size: 1.5rem;
    }

    .product-detail__price {
        font-size: 1.75rem;
    }

    .product-detail__image-container {
        aspect-ratio: 1 / 1;
    }

    .cfg-option {
        width: 40px;
        height: 40px;
    }

    .product-detail__add-cart {
        width: 100%;
        font-size: 1rem;
        padding: 16px;
    }

    .product-detail__qty-controls {
        width: 100%;
        justify-content: center;
    }
}

/* ── WhatsApp CTA on Product Detail ── */

.product-detail__whatsapp-cta {
    margin-top: 16px;
}

.product-detail__whatsapp-cta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.product-detail__whatsapp-cta .btn:hover {
    background: rgba(37, 211, 102, 0.25) !important;
    transform: translateY(-1px);
}

/* ── Related Products Section ── */

.related-products {
    padding: 60px 0;
    border-top: 1px solid rgba(232, 228, 240, 0.08);
}

.related-products__header {
    text-align: center;
    margin-bottom: 40px;
}

.related-products__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.related-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .related-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ── Mobile Sticky Add-to-Cart Bar ── */

.mobile-sticky-atc {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(232, 228, 240, 0.1);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 999;
    align-items: center;
    gap: 12px;
}

.mobile-sticky-atc__info {
    flex: 1;
    min-width: 0;
}

.mobile-sticky-atc__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e8e4f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sticky-atc__price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
}

.mobile-sticky-atc__btn {
    padding: 12px 24px;
    background: var(--cyan);
    color: #0a0a1a;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mobile-sticky-atc {
        display: flex;
    }
}
/* ── Bundle Includes ── */
.bundle-includes {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

.bundle-includes__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232,228,240,0.5);
    margin: 0 0 16px 0;
}

.bundle-includes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bundle-includes__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s;
}

.bundle-includes__item:hover {
    border-color: rgba(233,30,99,0.3);
}

.bundle-includes__img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
}

.bundle-includes__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(232,228,240,0.85);
    text-align: center;
}

@media (max-width: 480px) {
    .bundle-includes__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .bundle-includes__item {
        padding: 8px;
    }
    .bundle-includes__name {
        font-size: 0.75rem;
    }
}

/* ── Trust Badges ── */
.product-detail__trust-badges {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border, rgba(232,228,240,0.1));
    border-radius: 8px;
    font-size: 0.75rem;
    color: rgba(232,228,240,0.7);
    white-space: nowrap;
}
.trust-badge__icon {
    font-size: 1rem;
}

/* ── Product Detail Badges ── */
.product-detail__badge--bestseller {
    background: linear-gradient(135deg, #ffd700, #ff9500) !important;
    color: #1a1a2e !important;
}
.product-detail__badge--newbadge {
    background: linear-gradient(135deg, #00e676, #00b862) !important;
    color: #1a1a2e !important;
}
