/* css/productDetail.css */

.product-detail-page {
    background-color: #f7f8fa; /* Warna abu-abu muda premium latar belakang */
    height: 100%;
    width: 100%;
    position: absolute;
    padding-top: 100px; /* Di bawah header global */
    color: var(--text-primary);
    overflow: hidden;
    box-sizing: border-box;
}

.detail-container {
    display: flex;
    gap: 50px;
    height: calc(100% - 60px);
    width: 100%;
    max-width: 1800px;
    margin: 10px auto;
    padding: 0 50px;
    box-sizing: border-box;
}

/* --- Kolom Kiri --- */
.detail-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.detail-main-image-wrapper {
    width: 100%;
    height: 480px;
    background-color: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 30px;
    box-sizing: border-box;
}

#detail-main-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.detail-gallery {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
}

.detail-thumb {
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.detail-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-thumb:hover, .detail-thumb.focused {
    transform: scale(1.05);
    border-color: #cbd5e1;
}

.detail-thumb.active {
    border-color: var(--ariston-red, #c1122a);
    box-shadow: 0 4px 20px rgba(193, 18, 42, 0.15);
}

.detail-left-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.detail-left-actions .btn-secondary {
    flex: 1;
    height: 65px;
    border-radius: 32.5px;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.detail-left-actions .btn-secondary:hover, .detail-left-actions .btn-secondary.focused {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1a202c;
    transform: translateY(-2px);
}

/* --- Kolom Kanan --- */
.detail-right {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
    box-sizing: border-box;
}

.detail-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.detail-category-badge {
    font-size: 12px;
    font-weight: 800;
    color: #4b5563;
    background-color: #e5e7eb;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-title {
    font-size: 48px;
    font-weight: 900;
    color: #0b1a30; /* Biru tua premium khas ariston */
    line-height: 1.1;
    margin: 4px 0 0 0;
}

.detail-product-id {
    font-size: 16px;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.detail-section-label {
    font-size: 14px;
    font-weight: 800;
    color: #4b5563;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 12px;
}

/* Varian Kapasitas */
.detail-capacity-cards {
    display: flex;
    gap: 16px;
}

.detail-capacity-card {
    flex: 1;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    box-sizing: border-box;
    text-align: center;
}

.cap-card-title {
    font-size: 26px;
    font-weight: 900;
    color: #0b1a30;
}

.cap-card-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}

.detail-capacity-card:hover, .detail-capacity-card.focused {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.detail-capacity-card.active {
    background-color: var(--ariston-red, #c1122a);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(193, 18, 42, 0.2);
}

.detail-capacity-card.active .cap-card-title,
.detail-capacity-card.active .cap-card-subtitle {
    color: #ffffff;
}

/* Fitur Utama */
.detail-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.detail-feature-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(11, 26, 48, 0.04);
    text-align: center;
    box-sizing: border-box;
}

.detail-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ariston-red, #c1122a);
}

.detail-feature-icon svg {
    width: 100%;
    height: 100%;
}

.detail-feature-title {
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
}

/* Tombol Aksi Bawah */
.detail-bottom-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-bottom: 30px;
}

.btn-detail-action {
    flex: 1;
    height: 65px;
    border-radius: 32.5px;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-detail-action:hover, .btn-detail-action.focused {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0b1a30;
    transform: translateY(-2px);
}

.btn-qr-action {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--ariston-red, #c1122a);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(193, 18, 42, 0.25);
    transition: var(--transition-smooth);
}

.btn-qr-action:hover, .btn-qr-action.focused {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(193, 18, 42, 0.35);
}

/* --- Modal Global Style --- */
.detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 26, 48, 0.6); /* Backdrop semi-transparan biru tua */
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.detail-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.detail-modal-content {
    background-color: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(11, 26, 48, 0.15);
    position: relative;
    width: 90%;
    max-width: 1000px;
    padding: 40px;
    box-sizing: border-box;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.detail-modal-overlay.active .detail-modal-content {
    transform: scale(1);
}

.detail-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: none;
    font-size: 28px;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.detail-modal-close:hover, .detail-modal-close.focused {
    background-color: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.detail-modal-title {
    font-size: 32px;
    font-weight: 900;
    color: #0b1a30;
    margin: 0 0 30px 0;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
}

/* Modal Spesifikasi Grid */
.spec-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.spec-modal-card {
    background-color: #f9fafb;
    border-radius: 24px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    border: 1px solid #edf2f7;
    box-sizing: border-box;
    height: 230px;
}

.spec-modal-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ariston-red, #c1122a);
}

.spec-modal-icon svg {
    width: 100%;
    height: 100%;
}

.spec-modal-label {
    font-size: 13px;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-modal-value {
    font-size: 18px;
    font-weight: 900;
    color: #0b1a30;
    line-height: 1.3;
}

/* Modal Dimensi */
.dimension-modal-image-wrapper {
    width: 100%;
    height: 500px;
    background-color: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #edf2f7;
}

#detail-dimension-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Modal Video (Cara Kerja) */
.how-modal-video-wrapper {
    width: 100%;
    height: 500px;
    background-color: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.how-modal-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
