
/* ========================================
   RAFATHAR ORIGINAL
   DETAIL PRODUK PREMIUM
   ======================================== */

.detail-page {
    color: #30271f;
    background: #fbf9f5;
    overflow: hidden;
}

.detail-page *,
.detail-page *::before,
.detail-page *::after {
    box-sizing: border-box;
}

.detail-page a {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.detail-breadcrumb-section {
    padding: 20px 0 0;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    color: #8b8072;
    font-size: 12px;
    line-height: 1.7;
}

.detail-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #766756;
    text-decoration: none;

    transition: color 0.2s ease;
}

.detail-breadcrumb a:hover {
    color: #a97835;
}

.detail-breadcrumb a i {
    color: #a97835;
}

.detail-breadcrumb-separator {
    color: #c9bda9;
    font-size: 9px;
}

.detail-breadcrumb > span {
    color: #a97835;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ========================================
   AREA UTAMA
   ======================================== */

.detail-main {
    padding: 30px 0 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
}

/* ========================================
   GALERI PRODUK
   ======================================== */

.detail-gallery {
    min-width: 0;
    width: 100%;
}

.detail-image-frame {
    position: relative;
    overflow: hidden;

    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;

    margin: 0 auto;
    padding: 0;

    background: #f3f0eb;
    border: 1px solid #eee5d9;
    border-radius: 12px;
}

.detail-product-image {
    display: block;

    width: 100%;
    height: 100%;

    padding: 0;
    margin: 0;

    object-fit: cover;
    object-position: center;

    transition: opacity 0.2s ease;
}

.detail-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: #fff;
    background: rgba(35, 29, 22, 0.55);
    border: none;
    border-radius: 50%;

    cursor: pointer;
    transform: translateY(-50%);
}

.detail-gallery-prev {
    left: 12px;
}

.detail-gallery-next {
    right: 12px;
}

.detail-thumbnail-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 520px;
    margin: 12px auto 0;

    margin-top: 12px;
}

.detail-thumbnail-list {
    display: flex;
    flex: 1;
    gap: 8px;

    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.detail-thumbnail-list::-webkit-scrollbar {
    display: none;
}

.detail-thumbnail {
    position: relative;
    flex: 0 0 calc((100% - 40px) / 5);

    overflow: hidden;
    aspect-ratio: 1 / 1;

    padding: 0;

    background: #f3f0eb;
    border: 2px solid transparent;
    border-radius: 5px;

    cursor: pointer;
    transition: border-color 0.2s ease;
}

.detail-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumbnail.active {
    border-color: #b97840;
}

.detail-thumbnail-arrow {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 38px;

    color: #fff;
    background: rgba(48, 39, 31, 0.65);
    border: none;
    border-radius: 5px;

    cursor: pointer;
}

.detail-thumbnail-arrow:hover {
    background: #805222;
}

@media (max-width: 480px) {
    .detail-thumbnail-list {
        gap: 7px;
    }

    .detail-thumbnail {
        flex-basis: calc((100% - 21px) / 4);
    }

    .detail-thumbnail-arrow {
        flex-basis: 24px;
        width: 24px;
    }
}



/* ========================================
   INFORMASI PRODUK
   ======================================== */

.detail-information {
    min-width: 0;
    padding-top: 5px;

    animation: detailFadeUp 0.7s ease 0.12s both;
}

.detail-product-category {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 15px;

    color: #98703a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.detail-category-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    background: #b88b4a;
    border-radius: 50%;

    box-shadow: 0 0 0 4px rgba(184, 139, 74, 0.12);
}

.detail-product-title {
    margin: 0 0 16px;

    color: #30271f;
    font-size: clamp(29px, 3.1vw, 43px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.3px;

    overflow-wrap: anywhere;
}

.detail-product-description {
    margin: 0 0 25px;

    color: #786e62;
    font-size: 14px;
    line-height: 1.9;

    overflow-wrap: anywhere;
}

/* ========================================
   HARGA PRODUK
   ======================================== */


.detail-price-panel {
    margin-bottom: 28px;
    padding: 21px 23px;

    background: #8f3d50;
    border: 1px solid #8f3d50;
    color: #ffffff;
    border-radius: 15px;
}

.detail-price-label {
    display: block;
    margin-bottom: 8px;

    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.detail-price-value {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;

    color: #ffffff;
    font-size: clamp(27px, 3vw, 37px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.7px;

    overflow-wrap: anywhere;
}

.detail-price-value span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.detail-price-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-top: 13px;
    padding-top: 13px;

    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.7);

    font-size: 11px;
    line-height: 1.7;
}

.detail-price-note i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #ffffff;
}


/* ========================================
   SPESIFIKASI PRODUK
   ======================================== */

.detail-specification {
    margin-bottom: 25px;
}

.detail-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 16px;
}

.detail-section-eyebrow {
    display: block;
    margin-bottom: 6px;

    color: #a97835;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.detail-section-heading h2 {
    margin: 0;

    color: #30271f;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.detail-section-heading > i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: #a97835;
    background: #f3eadc;
    border: 1px solid #ebddc8;
    border-radius: 12px;

    font-size: 16px;
}

.detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    min-width: 0;
    padding: 15px 13px;

    background: #ffffff;
    border: 1px solid #eee6db;
    border-radius: 12px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.detail-spec-item:hover {
    transform: translateY(-2px);

    border-color: #ddc6a4;
    box-shadow: 0 8px 20px rgba(54, 39, 21, 0.05);
}

.detail-spec-icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: #9c6d30;
    background: #f8f0e4;
    border-radius: 10px;

    font-size: 14px;
}

.detail-spec-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;

    min-width: 0;
}

.detail-spec-content > span {
    color: #8c8174;
    font-size: 10px;
    line-height: 1.5;
}

.detail-spec-content > strong {
    color: #403328;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.detail-spec-content > strong.detail-stock-available,
.detail-spec-content > strong.detail-stock-empty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-stock-available {
    color: #267b4c !important;
}

.detail-stock-empty {
    color: #b34d42 !important;
}

.detail-stock-dot {
    display: inline-block;
    flex: 0 0 7px;

    width: 7px;
    height: 7px;

    background: currentColor;
    border-radius: 50%;
}

/* ========================================
   TOMBOL DAN AKSI
   ======================================== */

.detail-action-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 59px;
    padding: 14px 18px;

    border: 1px solid transparent;
    border-radius: 12px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.detail-button-whatsapp {
    color: #ffffff;
    background: #247c4b;
    box-shadow: 0 8px 20px rgba(36, 124, 75, 0.15);
}

.detail-button-whatsapp:hover {
    color: #ffffff;
    background: #1d693e;
    box-shadow: 0 12px 26px rgba(36, 124, 75, 0.22);
    transform: translateY(-2px);
}

.detail-button-whatsapp > i:first-child {
    flex: 0 0 auto;
    font-size: 25px;
}

.detail-button-whatsapp > span {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
}

.detail-button-whatsapp strong {
    font-size: 13px;
    font-weight: 800;
}

.detail-button-whatsapp small {
    color: rgba(255, 255, 255, 0.83);
    font-size: 10px;
    font-weight: 500;
}

.detail-button-whatsapp .detail-button-arrow {
    flex: 0 0 auto;
    font-size: 13px;
    opacity: 0.85;
}

.detail-button-primary {
    color: #ffffff;
    background: #966629;
    box-shadow: 0 8px 20px rgba(150, 102, 41, 0.13);
}

.detail-button-primary:hover {
    color: #ffffff;
    background: #795020;
    box-shadow: 0 12px 26px rgba(150, 102, 41, 0.2);
    transform: translateY(-2px);
}

.detail-button-primary > i {
    flex: 0 0 auto;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    align-self: center;
    padding: 7px 10px;

    color: #817466;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition: color 0.2s ease;
}

.detail-back-link:hover {
    color: #9b6b30;
}

.detail-back-link i {
    font-size: 11px;
}

.detail-stock-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 14px;

    color: #8f5144;
    background: #fff1ec;
    border: 1px solid #f0d3c9;
    border-radius: 10px;

    font-size: 12px;
    line-height: 1.7;
}

.detail-stock-notice i {
    flex: 0 0 auto;
    margin-top: 3px;
}

/* ========================================
   KEUNGGULAN / INFORMASI TAMBAHAN
   ======================================== */

.detail-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    margin-top: 55px;
    padding: 25px;

    background: #ffffff;
    border: 1px solid #eee6db;
    border-radius: 17px;

    box-shadow: 0 7px 25px rgba(54, 39, 21, 0.035);
}

.detail-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    min-width: 0;
    padding: 4px;
}

.detail-benefit-icon {
    display: flex;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    color: #9b6b30;
    background: #f7efe3;
    border: 1px solid #efe1cc;
    border-radius: 12px;

    font-size: 17px;
}

.detail-benefit-item > div:last-child {
    min-width: 0;
}

.detail-benefit-item strong {
    display: block;
    margin: 2px 0 6px;

    color: #433629;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.detail-benefit-item p {
    margin: 0;

    color: #8b8072;
    font-size: 11px;
    line-height: 1.7;
}

/* ========================================
   PRODUK TIDAK DITEMUKAN
   ======================================== */

.detail-not-found {
    display: flex;
    align-items: center;

    min-height: 65vh;
    padding: 60px 0;
}

.detail-not-found-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 620px;
    margin: 0 auto;
    padding: 55px 30px;

    background: #ffffff;
    border: 1px solid #eee5d9;
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(54, 39, 21, 0.05);
    text-align: center;

    animation: detailFadeUp 0.6s ease both;
}

.detail-not-found-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;
    height: 76px;
    margin-bottom: 23px;

    color: #a97835;
    background: #f7efe3;
    border: 1px solid #efe1cc;
    border-radius: 50%;

    font-size: 27px;
}

.detail-eyebrow {
    margin-bottom: 10px;

    color: #a97835;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.detail-not-found-card h1 {
    margin: 0 0 12px;

    color: #30271f;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    line-height: 1.3;
}

.detail-not-found-card p {
    max-width: 420px;
    margin: 0 0 25px;

    color: #817466;
    font-size: 13px;
    line-height: 1.8;
}

.detail-not-found-card .detail-button {
    width: auto;
}

/* ========================================
   ANIMASI
   ======================================== */

@keyframes detailFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   TABLET
   ======================================== */

@media (max-width: 1000px) {
    .detail-layout {
        gap: 28px;
    }

    .detail-product-title {
        font-size: clamp(27px, 3.5vw, 36px);
    }

    .detail-spec-grid {
        gap: 9px;
    }

    .detail-spec-item {
        gap: 9px;
        padding: 12px 10px;
    }

    .detail-benefits {
        gap: 12px;
        padding: 20px;
    }

    .detail-benefit-item {
        gap: 10px;
    }
}

/* ========================================
   TABLET KECIL DAN HP
   ======================================== */

@media (max-width: 768px) {
    .detail-breadcrumb-section {
        padding-top: 15px;
    }

    .detail-breadcrumb {
        gap: 7px;
        font-size: 10px;
    }

    .detail-main {
        padding-top: 22px;
        padding-bottom: 45px;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .detail-gallery {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }

    .detail-image-frame {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }

    .detail-image-badge {
        top: 13px;
        left: 13px;

        padding: 8px 11px;
        font-size: 10px;
    }

    .detail-image-caption {
        right: 15px;
        bottom: 15px;
        left: 15px;

        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .detail-gallery-note {
        margin-top: 12px;
        padding: 12px;
        font-size: 11px;
    }

    .detail-information {
        padding-top: 0;
    }

    .detail-product-category {
        margin-bottom: 11px;
        font-size: 10px;
    }

    .detail-product-title {
        margin-bottom: 12px;
        font-size: clamp(27px, 6vw, 36px);
        letter-spacing: -0.8px;
    }

    .detail-product-description {
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.8;
    }

    .detail-price-panel {
        margin-bottom: 24px;
        padding: 18px;
        border-radius: 13px;
    }

    .detail-price-value {
        font-size: clamp(27px, 6vw, 35px);
    }

    .detail-section-heading h2 {
        font-size: 18px;
    }

    .detail-spec-grid {
        gap: 10px;
    }

    .detail-spec-item {
        padding: 12px;
    }

    .detail-spec-content > span {
        font-size: 10px;
    }

    .detail-spec-content > strong {
        font-size: 11px;
    }

    .detail-benefits {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;

        margin-top: 32px;
        padding: 20px;
        border-radius: 14px;
    }

    .detail-benefit-item {
        align-items: center;
        gap: 13px;
    }

    .detail-benefit-item strong {
        font-size: 12px;
    }

    .detail-benefit-item p {
        font-size: 11px;
    }

    .detail-not-found {
        min-height: 55vh;
        padding: 40px 0;
    }

    .detail-not-found-card {
        padding: 40px 20px;
        border-radius: 16px;
    }
}

/* ========================================
   HP KECIL
   ======================================== */

@media (max-width: 420px) {
    .detail-breadcrumb {
        font-size: 9px;
    }

    .detail-layout {
        gap: 25px;
    }

    .detail-image-frame {
        max-width: 420px;
        aspect-ratio: 1 / 1;
    }

    .detail-spec-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .detail-spec-item {
        align-items: center;
        padding: 12px;
    }

    .detail-spec-content {
        gap: 4px;
    }

    .detail-button {
        gap: 9px;
        padding: 13px;
    }

    .detail-button-whatsapp strong {
        font-size: 12px;
    }

    .detail-button-whatsapp small {
        font-size: 9px;
    }

    .detail-benefits {
        padding: 16px;
    }

    .detail-not-found-card h1 {
        font-size: 24px;
    }

    .detail-not-found-card .detail-button {
        width: 100%;
    }
}

/* ========================================
   AKSESIBILITAS
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .detail-page *,
    .detail-page *::before,
    .detail-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
