/* ========================================= */
/* PALM ANGELS - DETAIL PAGE (FONT TIPIS & KECIL) */
/* ========================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    background: #ffffff; 
    color: #000; 
    line-height: 1.6;
    font-weight: 400;
    font-size: 0.875rem;
}

/* SPACING */
.detail-page { padding-top: 100px; }
@media (max-width: 768px) { .detail-page { padding-top: 80px; } }

.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* GRID */
.product-grid {
    display: grid;
    gap: 40px;
}
@media (min-width: 992px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
}

/* GALERI */
.gallery { position: relative; }

/* FULL WIDTH MOBILE - HILANGKAN PUTIH */
@media (max-width: 991px) {
    .gallery {
        margin-left: -40px;
        margin-right: -40px;
        width: calc(100% + 80px);
    }
    .zoom-wrapper,
    .slider,
    .slide,
    .product-img {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* Thumbnail (Desktop Only) */
.thumbnails {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 90px; display: flex; flex-direction: column;
    gap: 12px; z-index: 10; overflow-y: auto;
    padding: 10px 0; display: none;
}
@media (min-width: 992px) { .thumbnails { display: flex; } }

.thumb {
    width: 80px; height: 80px; border: 2px solid transparent;
    border-radius: 8px; overflow: hidden; cursor: pointer;
    transition: border 0.3s ease;
}
.thumb.active { border-color: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Zoom Wrapper */
.zoom-wrapper {
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
}
.slider {
    user-select: none;
    cursor: grab;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.slider:active { cursor: grabbing; }

.slider-track {
    display: flex;
    width: 100%;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider.swipe-area {
    user-select: none;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-drag: none;
}
.slider.swipe-area:active { cursor: grabbing; }

.slide { min-width: 100%; }

.product-img {
    width: 100%; 
    height: 460px; 
    object-fit: contain;
    display: block; 
    transition: transform 0.3s ease;
}
@media (min-width: 768px) { .product-img { height: 580px; } }
@media (min-width: 992px) { .product-img { height: 680px; } }

/* DOTS - Mobile Only */
.dots {
    display: none;
    justify-content: center; 
    gap: 10px; 
    margin-top: 16px;
}
.mobile-only { display: flex !important; }
@media (min-width: 992px) { .mobile-only { display: none !important; } }

.dot {
    width: 10px; 
    height: 10px; 
    border-radius: 50%;
    background: #b5b5b5; 
    cursor: pointer; 
    transition: 0.3s;
}
.dot.active { background: #000; transform: scale(1.4); }

/* INFO */
.info { padding: 0; }

/* JUDUL */
.title {
    font-family: 'Unica One', cursive;
    font-size: 1.8rem;           /* Lebih kecil dari sebelumnya */
    font-weight: 200;            /* Sangat tipis */
    margin: 0 0 8px;
    line-height: 1.1;            /* Ketat */
    letter-spacing: 0.5px;       /* Mewah */
    text-transform: uppercase;  /* Opsional: seperti brand luxury */
    color: #000;
}
@media (min-width: 768px) { 
    .title { 
        font-size: 2.2rem; 
        letter-spacing: 0.8px;
    } 
}
@media (min-width: 992px) { 
    .title { 
        font-size: 2.4rem; 
        letter-spacing: 1px;
    } 
}

/* HARGA - Harga Utama (Elegan & Tipis) */
.price .current {
    font-size: 1.3rem;
    font-weight: 300;            /* Tipis */
    letter-spacing: 0.8px;
    color: #000;
}
@media (min-width: 768px) { 
    .price .current { 
        font-size: 1.5rem; 
        letter-spacing: 1px;
    } 
}
@media (min-width: 992px) { 
    .price .current { 
        font-size: 1.6rem; 
        letter-spacing: 1.2px;
    } 
}

/* Harga lama (diskon) - tetap tipis & abu */
.price .old {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.6px;
}

/* KATEGORI */
.category {
    color: #777; 
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 16px;
    display: flex; 
    align-items: center; 
    gap: 5px;
}

/* HARGA */
.price { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-wrap: wrap; 
    margin-bottom: 24px; 
}
.old { 
    font-size: 0.85rem;
    color: #aaa; 
    text-decoration: line-through; 
    font-weight: 400;
}
.current { 
    font-size: 1.25rem;
    font-weight: 500;
}
@media (min-width: 768px) { .current { font-size: 1.6rem; } }
.badge {
    background: #000000; 
    color: #ffffff; 
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* LABEL */
.size-group label, 
.qty-group label {
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #444;
}

/* SIZE BUTTON */
.size-options { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
}
.size-btn {
    min-width: 36px;
    padding: 5px 9px;
    border: 1.4px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}
.size-btn:hover:not(.disabled) {
    border-color: #000;
    color: #000;
}
.size-btn.active {
    background: #000; 
    color: #fff; 
    border-color: #000;
    font-weight: 500;
}
.size-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-style: dashed;
}

/* QUANTITY */
.qty {
    display: flex;
    width: fit-content;
    border: 1.4px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.qty button {
    width: 34px;
    height: 34px;
    background: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #777;
}
.qty button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.qty input {
    width: 54px;
    height: 34px;
    text-align: center;
    border: none;
    font-weight: 400;
    background: transparent;
    font-size: 0.8rem;
    color: #000;
}

/* TOMBOL */
.btn {
    width: 100%; 
    padding: 14px; 
    background: #000; 
    color: #fff;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px; 
    border: none; 
    cursor: pointer; 
    transition: 0.3s; 
    margin: 18px 0;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}
.btn:hover:not(.disabled) {
    background: #222; 
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.btn.disabled {
    background: #ccc; 
    color: #888; 
    cursor: not-allowed;
}

.sold-out-text { 
    color: #000000; 
    font-weight: 500; 
    font-size: 0.8rem; 
    margin-top: 6px; 
}

/* ACCORDION */
.accordion { 
    border-top: 1px solid #eee; 
    margin-top: 36px; 
}
.accordion .item { 
    border-bottom: 1px solid #eee; 
}
.accordion .header {
    color: #000 !important;
    width: 100%; 
    text-align: left; 
    padding: 16px 0;
    background: none; 
    border: none; 
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.accordion .body {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease;
    padding: 0; 
    color: #666; 
    font-size: 0.8rem;
    font-weight: 400;
}
.accordion .body.open { 
    max-height: 600px; 
    padding: 0 0 16px; 
}
.accordion ul { 
    margin: 10px 0 0; 
    padding-left: 18px; 
}
.accordion ul li { 
    margin-bottom: 4px; 
    font-size: 0.78rem; 
    font-weight: 400;
}

/* ========================================= */
/* CUSTOM ALERT MODAL (Tengah Layar) */
/* ========================================= */

.custom-alert {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
}

.alert-content {
    background: #ffffff;
    padding: 20px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: alertPop 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.alert-content span {
    color: #000000;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.5;
    display: inline;
    margin-bottom: 0;
}

.custom-alert.success .alert-content::before {
    content: "Success";
    display: inline-block;
    margin-right: 8px;
    font-weight: 600;
    color: #000;
}

.custom-alert.error .alert-content::before {
    content: "Warning";
    display: inline-block;
    margin-right: 8px;
    font-weight: 600;
    color: #d32f2f;
}

.alert-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.alert-close:hover {
    background: #f0f0f0;
    color: #000;
}

@keyframes alertPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* CART BADGE - ANIMASI HALUS */
.cart-count {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}