/* ========================================
   product-details.css - Alliance Global
   Product Detail Page Styles
   ======================================== */

/* ========================================
   PRODUCT BANNER
   ======================================== */
.detail-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 30px 0px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-banner-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(183, 147, 72, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.detail-banner::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(183, 147, 72, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: bannerFloat 8s ease-in-out infinite;
}

.detail-banner::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(183, 147, 72, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: bannerFloat 6s ease-in-out infinite 1s;
}

@keyframes bannerFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.detail-banner-content {
    position: relative;
    z-index: 2;
}

.detail-banner-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    padding: 8px 18px;
    background: rgba(183, 147, 72, 0.15);
    border-radius: 4px;
    border-left: 3px solid var(--accent);
}

.detail-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.detail-banner-title em {
    font-style: italic;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-breadcrumb-links {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.detail-breadcrumb-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.detail-breadcrumb-links a:hover {
    color: var(--accent);
}

.detail-breadcrumb-links .separator {
    margin: 0 8px;
}

.detail-breadcrumb-links .current {
    color: var(--accent);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   PRODUCT DETAIL SECTION
   ======================================== */
.product-detail-section {
    padding: 40px 0 60px;
    background: var(--bg-light);
}

.detail-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    align-items: start;
}

/* Product Image */
.detail-image {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail-image:hover img {
    transform: scale(1.03);
}

.detail-img-fallback {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(7, 41, 98, 0.12);
    background: linear-gradient(135deg, rgba(7, 41, 98, 0.03), rgba(183, 147, 72, 0.05));
}

/* Product Info */
.detail-info {
    padding: 10px 0;
}

.detail-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(183, 147, 72, 0.1);
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.detail-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.3;
}

.detail-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Product Specifications Section */
.detail-specs-section {
    margin-bottom: 25px;
}

.specs-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.specs-table {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.spec-row {
    display: flex;
    align-items: baseline;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background: rgba(183, 147, 72, 0.03);
}

.spec-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 180px;
    flex-shrink: 0;
}

.spec-separator {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin: 0 10px 0 4px;
}

.spec-value {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Action Buttons */
.detail-actions {
    display: flex;
    gap: 12px;
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.detail-btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.detail-btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.detail-btn-contact {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 6px 20px rgba(7, 41, 98, 0.3);
}

.detail-btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(7, 41, 98, 0.4);
}

.detail-btn i {
    font-size: 18px;
}

/* ========================================
   RELATED PRODUCTS
   ======================================== */
.related-section {
    padding: 50px 0;
    background: #ffffff;
}

.section-header {
    margin-bottom: 40px;
}

.section-header .section-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-header .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.related-img {
    height: 160px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-img img {
    transform: scale(1.08);
}

.related-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(7, 41, 98, 0.12);
    background: linear-gradient(135deg, rgba(7, 41, 98, 0.03), rgba(183, 147, 72, 0.05));
}

.related-info {
    padding: 18px;
}

.related-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.related-moq {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.related-btns {
    display: flex;
    gap: 8px;
}

.related-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-btn-details {
    background: var(--primary);
    color: white;
}

.related-btn-details:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 41, 98, 0.3);
}

.related-btn-inquiry {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.related-btn-inquiry:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 147, 72, 0.3);
}

.related-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-image {
        position: static;
    }

    .detail-image img {
        max-height: 400px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-banner {
        padding: 60px 0 25px;
    }
}

@media (max-width: 768px) {
    .detail-banner {
        padding: 30px 0px;
    }

    .detail-banner-title {
        font-size: clamp(36px, 5vw, 52px);
    }

    .spec-label {
        min-width: 140px;
        font-size: 12px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-name {
        font-size: 24px;
    }

    .detail-desc {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .detail-banner {
        padding: 25px 0px;
    }

    .detail-banner-title {
        font-size: 32px;
    }

    .detail-banner-eyebrow {
        font-size: 10px;
        padding: 6px 14px;
    }

    .detail-image img,
    .detail-img-fallback {
        height: 280px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .spec-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 14px;
    }

    .spec-label {
        min-width: auto;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .spec-separator {
        display: none;
    }

    .spec-value {
        font-size: 13px;
    }

    .detail-specs-section {
        margin-bottom: 20px;
    }

    .specs-title {
        font-size: 16px;
    }
}
