﻿/* ========================================
   SKRIPSEEK - Product Detail Page Styles
   ======================================== */

.product-detail-page {
    min-height: 100vh;
    background: var(--white);
}

.pd-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
}

.pd-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.pd-back-btn:hover {
    background: var(--gray-100);
    color: var(--black);
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.pd-breadcrumb a {
    color: var(--gray-500);
    font-weight: 500;
}

.pd-breadcrumb a:hover {
    color: var(--black);
}

.pd-breadcrumb .separator {
    color: var(--gray-300);
}

.pd-breadcrumb .current {
    color: var(--black);
    font-weight: 600;
}

.pd-hero {
    padding: 3rem 2rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pd-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.pd-hero-content {
    padding-top: 1rem;
}

.pd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.pd-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.pd-hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.pd-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.pd-hero-price {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pd-price-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
}

.pd-price-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.pd-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pd-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: var(--black);
    color: var(--white);
}

.pd-btn-primary:hover {
    background: var(--gray-800);
    transform: scale(1.02);
}

.pd-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--black);
}

.pd-btn-secondary:hover {
    border-color: var(--black);
    transform: scale(1.02);
}

.pd-hero-visual {
    background: var(--gray-50);
    border-radius: 24px;
    border: 1px solid var(--gray-100);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}

.pd-hero-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.pd-hero-visual-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.pd-hero-visual-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    max-width: 280px;
}

.pd-section {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    scroll-margin-top: 72px;
}

.pd-section-divider {
    border: none;
    border-top: 1px solid var(--gray-100);
    margin: 0 auto;
    max-width: 1100px;
}

.pd-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.pd-section-text {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 700px;
}

.pd-info-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.pd-info-table tr {
    border-bottom: 1px solid var(--gray-100);
}

.pd-info-table td {
    padding: 1rem 0;
    font-size: 0.9375rem;
    vertical-align: top;
}

.pd-info-table td:first-child {
    font-weight: 600;
    color: var(--gray-700);
    width: 160px;
}

.pd-info-table td:last-child {
    color: var(--gray-600);
}

.pd-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 4rem 2rem;
}

.pd-not-found-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.pd-not-found h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pd-not-found p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.pd-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--gray-100);
    padding: 0.875rem 2rem;
    z-index: 90;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pd-sticky-bar.visible {
    transform: translateY(0);
}

.pd-sticky-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-sticky-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-sticky-name {
    font-size: 0.9375rem;
    font-weight: 600;
}

.pd-sticky-price {
    font-size: 1.125rem;
    font-weight: 800;
}

.pd-sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: var(--black);
    color: var(--white);
}

.pd-sticky-btn:hover {
    background: var(--gray-800);
}

.pd-footer {
    background: var(--gray-50);
    padding: 60px 0 40px;
    border-top: 1px solid var(--gray-100);
}

/* Ruang untuk sticky bar supaya isi footer tidak tertutup */
.pd-detail .pd-footer {
    padding-bottom: 120px;
}

.pd-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-footer p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.pd-footer-links {
    display: flex;
    gap: 1.5rem;
}

.pd-footer-links a {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.pd-footer-links a:hover {
    color: var(--black);
}

/* Responsive */
@media (max-width: 768px) {
    .pd-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pd-hero-visual {
        order: -1;
        min-height: 200px;
    }

    .pd-hero {
        padding: 2rem 1.5rem 3rem;
    }

    .pd-section {
        padding: 2.5rem 1.5rem;
    }

    .pd-hero-actions {
        flex-direction: column;
    }

    .pd-hero-actions .pd-btn-primary,
    .pd-hero-actions .pd-btn-secondary {
        width: 100%;
    }

    .pd-sticky-bar-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pd-sticky-bar {
        padding: 0.75rem 1rem;
    }

    .pd-detail .pd-footer {
        padding-bottom: 160px;
    }

    .pd-footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pd-topbar-inner {
        padding: 0 1rem;
    }

    .pd-breadcrumb {
        display: none;
    }
}
