:root {
    --brand-red: #e01818;
    --brand-orange: #ff7a1a;
    --muted: #6b7280;
}

/*NAVBAR + CART*/

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff !important;
}

#cart-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
}

#cart-badge {
    font-size: 12px;
    min-width: 20px;
    padding: 2px 6px;
}

/* Modal Keranjang */
.modal-content {
    border-radius: 14px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-footer {
    border-top: 1px solid #eee;
}   

/*HEADER*/

.app-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.back-btn {
    text-decoration: none;
    color: #000;
    margin-right: 12px;
}
.header-title {
    margin: 0;
}

/*HERO SECTION*/

.hero {
    width: 100%;
    min-height: 380px;
    padding: 90px 0;
    color: #fff;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@keyframes heroZoom {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 110%;
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/5/5f/Noise_Texture.png");
    opacity: 0.07;
    mix-blend-mode: overlay;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-weight: 800;
    font-size: 48px;
    margin-bottom: 8px;
}
.lead {
    background: rgba(0, 0, 0, 0.12);
    padding: 8px 18px;
    border-radius: 20px;
    display: inline-block;
}

/*PAGE NOTE*/

.page-note {
    border-left: 4px solid #f6b21b;
    background: #fff9ec;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 25px;
}

/*PRODUCT CARDS*/

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    position: relative; 
}

.product-image {
    width: 340px;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.badge-limited {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--brand-red);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
}

/* TAGS */
.category-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff5eb;
    border: 1px solid #ffe3c4;
    margin-bottom: 8px;
}

.product-title {
    font-size: 26px;
    font-weight: 800;
}

.product-desc {
    color: var(--muted);
    margin-bottom: 12px;
}

/* PRICE + BUTTON */
.product-bottom {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: static;
}
.price {
    color: red;
    font-weight: bold;
    margin: 10px 0;
    font-size: 26px;
}

.price-label {
    font-size: 12px;
    color: #7a7a7a;
}

.btn-add {
    background: linear-gradient(90deg, #e41515, #ff7a1a);
    border: none;
    padding: 14px 26px;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 122, 26, 0.18);
    transition: 0.2s ease;
    position: absolute;
    right: 20px;
    bottom: 20px;

    margin-left: 0px !important;
}

.btn-add:active {
    transform: translateY(2px);
}

.btn-addm {
    background: linear-gradient(90deg, #e41515, #ff7a1a);
    border: none;
    padding: 14px 26px;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 122, 26, 0.18);
    transition: 0.2s ease;
    position: absolute;
    right: 20px;
    bottom: 20px;

    margin-left: 0px !important;
}

.btn-addm:active {
    transform: translateY(2px);
}

/* POPUP OPTION */
a {
    text-decoration: none;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-box {
    background: #fff;
    border-radius: 12px;
    width: 400px;
    max-width: 95%;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.popup-header {
    padding: 16px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.popup-body {
    padding: 16px;
}

.product-header {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 16px;
}

.product-header img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.product-header .badge {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #dc3545;
    color: white;
}

.option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.option .badge-yellow {
    background: #fcb53b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    display: inline-block;
}

.option:hover {
    background-color: #fdf3e6;
    border-color: #fcb53b;
    transform: scale(1.01);
}

.option.active {
    background-color: #fff7e0; /* kuning lembut */
    border-color: #fcb53b;
    box-shadow: 0 0 6px rgba(252, 181, 59, 0.5);
    transform: scale(1.02);
}

.option strong {
    font-size: 14px;
}

.harga {
    font-weight: bold;
    color: #dc3545;
}

.popup-footer {
    border-top: 1px solid #eee;
    padding: 12px;
    text-align: center;
}

@media (max-width: 992px) {
    .product-card {
        flex-direction: column;
    }
    .product-image {
        width: 100%;
        height: 220px;
    }
    .product-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease-out;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* BLACKPINK INTRO */
#bp-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    animation: fadeOut 1s ease forwards;
    animation-delay: 3.5s;
}

.bp-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,#000 0%,#ff1493 50%,#000 100%);
}

/* SHIMMER */
.bp-shimmer {
    position: absolute;
    top: 25%;
    height: 50%;
    width: 40%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    animation: shimmerMove 2s ease-in-out infinite;
}

/* ANIMATIONS */
@keyframes shimmerMove {
    0% { left: -50%; }
    100% { left: 120%; }
}


@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}


/* CONTENT */
.bp-content {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

.bp-title {
    font-size: 80px;
    font-weight: 900;
    background: linear-gradient(to right, #ff1493, #ffb6c1, #ff1493);
    background-clip: text;          
    -webkit-background-clip: text;  
    color: transparent;
}

.bp-sub {
    font-size: 48px;
    font-weight: 900;
    color: gold;
}

.limited-wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.line {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, #ff69b4, transparent);
}

.flame {
    color: #d1d5db;
    animation: flamePulse 1.2s infinite alternate;
}

@keyframes flamePulse {
    to { transform: scale(1.3); }
}

/* STARS */
.bp-star {
    position: absolute;
    font-size: 36px;
    color: rgba(245,245,245,.75);
    animation: starPulse 3.5s infinite;
}

.star-1 { top: 20%; left: 15%; }
.star-2 { bottom: 25%; right: 20%; }

@keyframes starPulse {
    0%,100% { transform: scale(1); opacity: .6; }
    50% { transform: scale(1.25); opacity: 1; }
}

/*FOOTER*/

.footer {
    text-align: center;
    background: #ffffff;
    padding-top: 1.5%;
    padding-bottom: 1%;
    border-top: 1px solid #ddd; /* GARIS ATAS */
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.08); /* SHADOW LEBIH JELAS */
    margin-top: 60px;
    font-family: "Poppins", sans-serif;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
        padding-bottom: 80px;
    }

    .btn-add {
        position: static;
        width: 100%;
        margin-top: 14px;
    }

    .hero {
        min-height: 280px;
        padding: 60px 0;
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 220px;
        padding: 40px 16px;
        background-attachment: scroll;
        animation: none; /* matikan zoom */
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero .lead {
        font-size: 14px;
        padding: 6px 14px;
    }
}

@media (max-width: 768px) {
    .product-card {
        padding: 14px;
        gap: 14px;
    }

    .product-image {
        width: 100%;
        height: 200px;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-title {
        font-size: 20px;
    }

    .product-desc {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .btn-add,
    .btn-addm {
        position: static;
        width: 100%;
        margin-top: 14px;
        padding: 14px;
        font-size: 15px;
    }

    .product-bottom {
        align-items: stretch;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 12px;
    }

    .option {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .harga {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .bp-title {
        font-size: 42px;
    }

    .bp-sub {
        font-size: 26px;
    }

    .limited-wrap {
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (min-width: 769px) {
    .hero {
        animation: heroZoom 12s ease-in-out infinite alternate;
    }
}

