:root {
    --pink: #e84393;
    --red: #e84343;
    --green: #43e88d;
}

/* 🎨 Styling khusus swal */
.swal-custom-popup {
    border-color: var(--pink);
    box-shadow: 0 0 0 .2rem rgba(232, 67, 147, .25);
    font-size: 1.4rem;
    /* dasar lebih besar */
    border-radius: 1.2rem;
    padding: 3rem 2rem;
}

.swal-custom-title {
    font-size: 3rem !important;
    font-weight: bold;
    color: var(--pink);
    /* sesuai tema */
    margin-bottom: 1rem;
}

.swal-custom-text {
    font-size: 1.8rem;
    color: #555;
}

.swal-custom-btn {
    min-width: 12rem;
    font-size: 1.6rem !important;
    padding: 1rem 2.5rem;
    border-radius: 5rem;
    background-color: var(--pink) !important;
    color: #fff !important;
    transition: 0.3s;
}

.swal-custom-btn-cancel {
    min-width: 12rem;
    font-size: 1.6rem !important;
    padding: 1rem 2.5rem;
    border-radius: 5rem;
    background-color: var(--red) !important;
    color: #fff !important;
}

.swal-custom-btn:hover,
.swal-custom-btn-cancel:hover {
    background-color: #333 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    outline: none;
    border: none;
    text-decoration: none;
    transition: .2s linear;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 3rem;
    color: #333;
    font-weight: bolder;
}

header .logo span {
    color: var(--pink);
}

header .navbar {
    display: flex;
    gap: 1.5rem;
}

header .navbar a {
    font-size: 2rem;
    color: #666;
    padding: 0 1.5rem;
    transition: color .2s linear;
}

header .navbar a:hover {
    color: var(--pink);
}

header .icons {
    display: flex;
    align-items: center;
}

header .icons a {
    font-size: 2.5rem;
    color: #333;
    margin-left: 1.5rem;
    transition: color .2s linear;
}

header .icons a:hover {
    color: var(--pink);
}

header #toggler {
    display: none;
}

header .fa-bars {
    font-size: 3rem;
    color: #333;
    border-radius: .5rem;
    padding: .5rem 1.5rem;
    cursor: pointer;
    border: .1rem solid rgba(0, 0, 0, 0.3);
    display: none;
    transition: background .2s linear;
}

.container .card {
    margin: 12rem auto 5rem;
    /* kasih jarak dari header fixed */
    max-width: 80rem;
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    border: 0.1rem solid rgba(0, 0, 0, 0.1);
    background: #fff;
    overflow: hidden;
    padding: 2rem;
    margin-bottom: 9rem;
}

.container .card .title {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
}

.container .card .title::after {
    content: '';
    display: block;
    width: 6rem;
    height: 0.4rem;
    margin: 1rem auto 0;
    background: var(--pink);
    border-radius: 2rem;
}

/* Foto produk */
.container .card .photo {
    text-align: center;
    margin-bottom: 2rem;
}

.container .card .photo img {
    max-width: 100%;
    max-height: 30rem;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1);
}

.container .card .introduction {
    font-size: 1.3rem;
    padding: 1rem;
}

/* Deskripsi produk */
.container .card-body p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.6;
}

/* Info tanggal */
.container .card-body .text-muted {
    font-size: 1.4rem;
}

/* ====== Komentar ====== */
.comment {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin: 2rem 0 1.5rem;
    padding-bottom: .5rem;
    border-bottom: .2rem solid rgba(0, 0, 0, .1);
}

.comment-box {
    background: #fafafa;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .05);
}

.comment-username {
    font-size: 1.6rem;
    color: var(--pink);
}

.comment-box .text-muted {
    font-size: 1.2rem;
    color: #999;
}

.comment-content {
    font-size: 1.5rem;
    color: #444;
    margin-top: .8rem;
    line-height: 1.5;
}

/* Form komentar */
.comment-form-card {
    border-radius: 1rem;
    border: .1rem solid rgba(0, 0, 0, 0.1);
    background: #fff;
}

.comment-form textarea {
    font-size: 1.5rem;
    border-radius: 1rem;
    border: .1rem solid rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    resize: none;
    transition: border .2s, box-shadow .2s;
}

.comment-form textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 .2rem rgba(232, 67, 147, .25);
}

.comment-form button {
    font-size: 1.6rem;
    border-radius: 5rem;
    padding: 1rem 3rem;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.comment-form button:hover {
    background: var(--pink);
    color: #333;
}

/* ====== Avatar Komentar ====== */
.comment-box img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: .2rem solid rgba(232, 67, 147, 0.3);
    margin-right: 1rem;
    background: #fff;
}

/* ====== Tombol Aksi Edit / Hapus ====== */
.comment-box .btn {
    font-size: 1.3rem;
    padding: .6rem 1.4rem;
    border-radius: 5rem;
    margin-left: .5rem;
    transition: transform .2s;
}

.comment-box .btn-warning {
    background: #ffc107;
    border: none;
    color: #333;
}

.comment-box .btn-warning:hover {
    background: #e0a800;
    transform: scale(1.05);
}

.comment-box .btn-danger {
    background: #dc3545;
    border: none;
    color: #fff;
}

.comment-box .btn-danger:hover {
    background: #bb2d3b;
    transform: scale(1.05);
}

/* ====== Form Edit Komentar ====== */
.comment-box form textarea {
    font-size: 1.4rem;
    border-radius: 1rem;
    padding: 1rem;
    border: .1rem solid rgba(0, 0, 0, .2);
    resize: none;
}

.comment-box form textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 .2rem rgba(232, 67, 147, .25);
}

/* ====== Status komentar diedit ====== */
.comment-box .edited-label {
    font-size: 1.2rem;
    color: #999;
    font-style: italic;
    margin-top: .5rem;
    display: block;
}

.text-responsive {
    font-size: 1.4rem;
}

.icon-link i {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.icon-link i:hover {
    transform: scale(1.2);
}

.icon-like,
.icon-dislike {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.icon-like:hover {
    color: #28a745;
    /* hijau */
    transform: scale(1.2);
}

.icon-dislike:hover {
    color: #e84343;
    /* merah */
    transform: scale(1.2);
}

/* ====== Alert / Notifikasi ====== */
.notification {
    font-size: 1.5rem;
    border-radius: 1rem;
    background: rgba(232, 67, 147, 0.05);
    border: 0.1rem solid rgba(232, 67, 147, 0.2);
    margin-top: 2rem;
}

.notification a {
    color: var(--pink);
}

.credit {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    font-size: 2rem;
    color: #333;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    z-index: 999;
}

.credit span {
    color: var(--pink);
}

.modal-dialog {
    max-width: 60rem;
}

.modal-content {
    border-radius: 1.5rem;
    font-size: 1.4rem;
}

.modal-header-checkout {
    display: flex;
    justify-content: space-between;
    text-align: center;
    border-bottom: none;
    padding: 1.5rem 2rem;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    background-color: var(--green) !important;
    color: #333 !important;
}

.modal-title-checkout {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.modal-header-checkout .btn-close {
    filter: invert(1) brightness(200%) contrast(200%);
}

.modal-body-checkout {
    padding: 2rem 2rem 0 2rem;
    font-size: 1.5rem;
    color: #444;
}

.modal-body-checkout p {
    margin-bottom: 1rem;
}

.modal-body-checkout .product-content-checkout {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #37c10093;
    padding-bottom: 1rem;
}

.modal-body-checkout .product-content-checkout .product-fill-checkout {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body-checkout .product-content-checkout .product-fill-checkout input {
    width: 15rem;
    font-size: 1.5rem;
}

.modal-body-checkout .product-content-checkout .product-fill-checkout input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 .2rem rgba(103, 232, 67, 0.25);
}

.modal-content .modal-footer-checkout {
    border-top: none;
    padding: 1.5rem 2rem;
}

.modal-content .modal-footer-checkout .btn {
    min-width: 10rem;
    font-size: 1.4rem;
    border-radius: 3rem;
    padding: 0.8rem 1.6rem;
}

.modal-content .modal-footer-checkout .btn-success {
    background-color: var(--green);
    border: none;
    color: #333;
}

.modal-content .modal-footer-checkout .btn-success:hover {
    background-color: #333;
    color: #fff;
}

.modal-content .modal-footer-checkout .btn-secondary {
    background-color: #ccc;
    color: #333;
    border: none;
}

.modal-content .modal-footer-checkout .btn-secondary:hover {
    background-color: #333;
    color: #fff;
}

@media (max-width: 911px) {
    html {
        font-size: 55%;
    }

    header {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    header .fa-bars {
        display: block;
    }

    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #eee;
        border-top: .1rem solid rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path .3s ease;
    }

    header #toggler:checked~.navbar {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    header .navbar a {
        margin: 1.5rem 0;
        padding: 1.5rem;
        background: #fff;
        border: 1rem solid rgba(0, 0, 0, 0.1);
        display: block;
        width: 100%;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .credit {
        font-size: 1.4rem;
        padding: 0.8rem;
    }
}