/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,sans-serif;
    background:#0f0f0f;
    color:white;
    overflow-x:hidden;
}

img{
    width:100%;
    display:block;
}

button{
    border:none;
    cursor:pointer;
}

/* =========================
   HEADER
========================= */

.header{
    width:100%;
    height:80px;

    padding:0 7%;

    display:flex;
    align-items:center;
    justify-content:space-between;

    position:fixed;
    top:0;
    left:0;

    z-index:999;

    background:rgba(0,0,0,.7);

    backdrop-filter:blur(10px);
}

.logo{
    font-size:22px;
    font-weight:bold;
}

.nav{
    display:flex;
    gap:35px;
}

.nav a{
    color:white;
    text-decoration:none;
    cursor:pointer;

    transition:.3s;

    font-size:15px;
}

.nav a:hover,
.nav a.active{
    color:#c08b5c;
}

.cart-icon{
    cursor:pointer;
    font-size:20px;
}

.menu-toggle{
    display:none;
    font-size:24px;
    cursor:pointer;
}

/* =========================
   BUTTON
========================= */

.btn-main{
    background:#c08b5c;
    color:white;

    padding:14px 28px;

    border-radius:999px;

    font-size:14px;
    font-weight:bold;

    transition:.3s;
}

.btn-main:hover{
    transform:translateY(-3px);
    background:#d69b67;
}

.btn-outline{
    background:transparent;

    border:1px solid rgba(255,255,255,.3);

    color:white;

    padding:14px 28px;

    border-radius:999px;
}

.btn-outline:hover{
    background:white;
    color:black;
}

/* =========================
   HERO
========================= */

.hero-roastery{
    width:100%;
    min-height:100vh;

    background:
    linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.75)),
    url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1400')
    center/cover;

    display:flex;
    align-items:center;

    padding:120px 7%;
}

.hero-content{
    max-width:700px;
}

.hero-badge{
    display:inline-block;

    background:rgba(255,255,255,.1);

    padding:10px 18px;

    border-radius:50px;

    font-size:13px;

    margin-bottom:25px;
}

.hero-content h1{
    font-size:72px;
    line-height:1.1;

    margin-bottom:25px;
}

.hero-content p{
    font-size:18px;

    line-height:1.8;

    color:#ccc;

    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    gap:20px;
}

/* =========================
   FEATURE
========================= */

.feature-strip{
    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    padding:40px 7%;
}

.feature-item{
    background:#161616;

    padding:25px;

    border-radius:20px;

    text-align:center;

    border:1px solid rgba(255,255,255,.05);
}

/* =========================
   SECTION HEAD
========================= */

.section-head{
    text-align:center;
    margin-bottom:60px;
}

.section-head span{
    color:#c08b5c;

    font-size:14px;

    letter-spacing:2px;
}

.section-head h2{
    font-size:42px;

    margin:15px 0;
}

.section-head p{
    color:#999;

    max-width:700px;

    margin:auto;

    line-height:1.7;
}

/* =========================
   ORIGIN
========================= */

.origin-section{
    padding:120px 7%;
}

.origin-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

.origin-card{
    background:#161616;

    border-radius:25px;

    overflow:hidden;

    transition:.3s;

    border:1px solid rgba(255,255,255,.05);
}

.origin-card:hover{
    transform:translateY(-8px);
}

.origin-card img{
    height:320px;

    object-fit:cover;
}

.origin-info{
    padding:25px;
}

.origin-info h3{
    font-size:24px;

    margin-bottom:12px;
}

.origin-info p{
    color:#aaa;

    line-height:1.7;

    margin-bottom:15px;
}

.origin-info small{
    color:#c08b5c;
}

/* =========================
   EXPERIENCE
========================= */

.coffee-experience{
    padding:120px 7%;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;
}

.experience-image{
    height:600px;

    border-radius:30px;

    background:
    url('https://images.unsplash.com/photo-1511920170033-f8396924c348?w=1400')
    center/cover;
}

.experience-content span{
    color:#c08b5c;

    letter-spacing:2px;

    font-size:14px;
}

.experience-content h2{
    font-size:52px;

    margin:20px 0;
}

.experience-content p{
    color:#aaa;

    line-height:1.9;

    margin-bottom:25px;
}

.experience-content li{
    margin-bottom:15px;

    color:#ddd;
}

/* =========================
   CTA
========================= */

.cta-roastery{
    padding:120px 7%;

    text-align:center;
}

.cta-roastery h2{
    font-size:56px;

    margin-bottom:20px;
}

.cta-roastery p{
    color:#999;

    margin-bottom:35px;
}

/* =========================
   PRODUCT GRID
========================= */

.grid{
    width:100%;

    padding:120px 7% 80px;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,320px));

    justify-content:center;

    gap:28px;

    background:#0b0b0b;
}

/* CARDd */

.card{
    background:#161616;
    color:white;
    border-radius:16px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 6px 18px rgba(0,0,0,0.4);
    transition:0.25s ease;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.45);
}

/* IMAGE */

.card-img{
    width:100%;
    height:220px;
    overflow:hidden;
}

.card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.3s ease;
}

.card:hover .card-img img{
    transform:scale(1.08);
}

.card-overlay{
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.6),
        transparent
    );
}

/* CATEGORY */

.card-category{
    position:absolute;

    top:18px;
    left:18px;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(8px);

    color:white;

    padding:8px 14px;

    border-radius:999px;

    font-size:12px;

    text-transform:capitalize;
}

/* BODY */

.card-body{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:14px;
    flex:1;
}

.coffee-origin{
    display:inline-block;

    color:#c08b5c;

    font-size:12px;

    letter-spacing:1px;

    margin-bottom:12px;
}

.card-body h3{
    font-size:28px;

    margin-bottom:14px;

    line-height:1.3;
}

.coffee-notes{
    color:#aaa;

    line-height:1.7;

    font-size:14px;

    margin-bottom:18px;
}

.coffee-meta{
    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-bottom:20px;
}

.coffee-meta span{
    background:#222;

    padding:8px 14px;

    border-radius:999px;

    font-size:12px;

    color:#ddd;
}

.coffee-price{
    font-size:26px;

    font-weight:bold;

    margin-bottom:20px;
}

/* =========================
   MODAL
========================= */

.modal{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.75);

    display:none;

    justify-content:center;
    align-items:center;

    padding:20px;

    z-index:9999;

    opacity:0;

    transition:.3s;
}

.modal.show{
    opacity:1;
}

.modal-content{
    width:100%;
    max-width:520px;

    background:#161616;

    border-radius:30px;

    padding:24px;

    position:relative;

    max-height:90vh;

    overflow-y:auto;

    transform:translateY(30px);

    transition:.3s;
}

.modal.show .modal-content{
    transform:translateY(0);
}

.modal-content img{
    width:100%;
    height:300px;

    object-fit:cover;

    border-radius:20px;

    margin-bottom:20px;
}

.close{
    position:absolute;

    top:18px;
    right:20px;

    font-size:24px;

    cursor:pointer;
}

.modal-content label{
    display:block;

    margin-bottom:10px;

    color:#ccc;

    font-size:14px;
}

.modal-content select,
.modal-content input{
    width:100%;

    padding:14px;

    margin-bottom:20px;

    border:none;

    border-radius:14px;

    background:#222;

    color:white;
}

.detail-price{
    font-size:30px;

    font-weight:bold;

    margin:20px 0;
}

/* =========================
   CART
========================= */

.cart-modal{
    position:fixed;

    top:0;
    right:-100%;

    width:400px;
    height:100vh;

    background:#161616;

    z-index:9999;

    transition:.4s;

    padding:30px;
}

.cart-modal.active{
    right:0;
}

.cart-box{
    height:100%;
    display:flex;
    flex-direction:column;
}

.cart-box .btn-main{
    margin-top:auto;
    flex-shrink:0;
}

/* isi cart (list item) biar fleksibel */
#cartItems{
    flex:1;
    overflow-y:auto;

    margin-bottom:15px;
}

/* total harga */
#totalPrice{
    margin-top:auto;
    padding-top:10px;

    font-size:18px;
    font-weight:600;
}

/* tombol checkout */
.cart-box .btn-main{
    margin-top:20px;
    padding:14px;
    border-radius:12px;
}

.cart-header{
    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;
}

.cart-item{
    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 0;

    border-bottom:
    1px solid rgba(255,255,255,.05);
}

.cart-item button{
    background:red;

    color:white;

    width:28px;
    height:28px;

    border-radius:50%;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .header{
        padding:0 20px;
        height:70px;
    }

    .logo{
        font-size:16px;
    }

    .menu-toggle{
        display:block;
        font-size:24px;
    }

    .nav{
        position:fixed;

        top:70px;
        left:-100%;

        width:100%;
        height:calc(100vh - 70px);

        background:#111;

        flex-direction:column;

        padding:40px 30px;

        transition:.4s;
    }

    .nav.active{
        left:0;
    }

    .hero-roastery{
        padding:120px 20px 60px;
    }

    .hero-content h1{
        font-size:38px;
    }

    .hero-content p{
        font-size:15px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn-main,
    .btn-outline{
        width:100%;
    }

    .feature-strip{
        grid-template-columns:1fr;

        padding:20px;
    }

    .origin-section,
    .coffee-experience,
    .cta-roastery{
        padding:80px 20px;
    }

    .origin-grid{
        grid-template-columns:1fr;
    }

    .coffee-experience{
        grid-template-columns:1fr;
    }

    .experience-image{
        height:300px;
    }

    .experience-content h2{
        font-size:34px;
    }

    .cta-roastery h2{
        font-size:34px;
    }

    .grid{
    width:100%;
    padding:120px 7% 80px;
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:24px;
    background:#0b0b0b;
}


/* MOBILE */
@media (max-width:600px){
    .grid{
        grid-template-columns:1fr;
        padding:100px 16px 40px;
    }
}

    .card-img{
        height:220px;
    }

    .card-body{
        padding:20px;
    }

    .card-body h3{
        font-size:24px;
    }

    .coffee-price{
        font-size:22px;
    }

    .modal{
        align-items:flex-start;

        overflow:auto;
    }

    .modal-content{
        margin-top:40px;

        max-width:100%;
    }

    .modal-content img{
        height:220px;
    }

    .cart-modal{
        width:100%;
    }


    @media (max-width:768px){

    .cart-box{
        display:flex;
        flex-direction:column;
    }

    #cartItems{
        flex:1;
        overflow-y:auto;
    }

    #totalPrice{
        border-top:1px solid rgba(255,255,255,0.08);
        padding-top:10px;
        margin-top:10px;
    }

    .cart-box .btn-main{
        width:100%;
    }
}
    /* =========================
   SMOOTH SCROLL
========================= */

html{
    scroll-behavior:smooth;
}

/* =========================
   HEADER SCROLL EFFECT
========================= */

.header.scrolled{
    background:rgba(0,0,0,.92);

    backdrop-filter:blur(14px);

    box-shadow:
    0 10px 30px rgba(0,0,0,.4);
}

/* =========================
   BUTTON EFFECT
========================= */

.btn-main{
    position:relative;
    overflow:hidden;
}

.btn-main::after{

    content:"";

    position:absolute;

    top:0;
    left:-100%;

    width:100%;
    height:100%;

    background:
    linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.3),
        transparent
    );

    transition:.6s;
}

.btn-main:hover::after{
    left:100%;
}

/* =========================
   CARD ANIMATION
========================= */

.card{
    animation:fadeUp .5s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
   PREMIUM SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#c08b5c;
    border-radius:20px;
}

/* =========================
   FLOATING WHATSAPP
========================= */

.wa-float{

    position:fixed;

    right:24px;
    bottom:24px;

    width:65px;
    height:65px;

    border-radius:50%;

    background:#25d366;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:30px;

    z-index:9999;

    box-shadow:
    0 10px 25px rgba(0,0,0,.35);

    transition:.3s;
}

.wa-float:hover{
    transform:scale(1.1);
}

/* =========================
   WHATSAPP FLOAT BUTTON
========================= */

.wa-float{
    position:fixed;

    bottom:25px;
    right:25px;

    width:62px;
    height:62px;

    background:#25D366;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    font-size:30px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.35);

    z-index:99999;

    transition:
    transform .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}

/* HOVER */

.wa-float:hover{

    transform:
    translateY(-5px)
    scale(1.08);

    background:#20bd5a;

    box-shadow:
    0 18px 35px rgba(0,0,0,.45);
}

/* ACTIVE CLICK */

.wa-float:active{

    transform:scale(.96);
}

/* ICON */

.wa-float i{
    color:white;
    font-size:28px;
}

/* OPTIONAL PULSE EFFECT */

.wa-float::before{

    content:"";

    position:absolute;

    width:100%;
    height:100%;

    border-radius:50%;

    background:rgba(37,211,102,.35);

    animation:waPulse 2s infinite;

    z-index:-1;
}

@keyframes waPulse{

    0%{
        transform:scale(1);
        opacity:.7;
    }

    70%{
        transform:scale(1.6);
        opacity:0;
    }

    100%{
        opacity:0;
    }
}

/* MOBILE */

@media(max-width:768px){

    .wa-float{

        width:56px;
        height:56px;

        bottom:20px;
        right:20px;

        font-size:26px;
    }

    .wa-float i{
        font-size:24px;
    }
}

.detail-info{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.detail-origin{
    font-size:13px;
    color:#c08b5c;
    letter-spacing:1px;
}

#dName{
    font-size:22px;
    font-weight:700;
    margin:0;
}

.detail-notes{
    font-size:13px;
    color:#aaa;
}

.detail-meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.detail-meta span{
    background:#222;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
}

.detail-price{
    font-size:26px;
    font-weight:700;
    margin:10px 0;
    color:#fff;
}

.modal-content select,
.modal-content input{
    width:100%;
    padding:12px;
    margin-bottom:10px;

    border-radius:12px;
    border:1px solid rgba(255,255,255,.08);

    background:#1c1c1c;
    color:white;

    outline:none;
}

.modal-buttons{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:15px;
}

.modal-buttons .btn-main,
.modal-buttons .btn-outline{
    width:100%;
    padding:14px;
    border-radius:12px;
    font-weight:600;
}

@media(max-width:768px){

    .modal-content{
        padding:18px;
        border-radius:20px;
    }

    #dImage{
        height:200px;
        border-radius:14px;
    }

    #dName{
        font-size:20px;
    }

    .detail-price{
        font-size:22px;
    }
}


.price-main{
    font-size:16px;
    font-weight:700;
    color:#111;
    letter-spacing:0.3px;
}

.price-sub{
    font-size:11px;
    color:#9a9a9a;
    margin-top:2px;
}
.card{
    display:flex;
}

.card-body{
    display:flex;
    flex-direction:column;
    flex:1;
}

.coffee-price-wrapper{
    margin-top:auto;
    margin-bottom:12px;
}
}


/* =========================
   TABLET FIX (WA BUTTON)
========================= */

@media (min-width:768px) and (max-width:1024px){

    .wa-float{
    position: fixed;
    z-index: 999999;
    bottom: 24px;
    right: 24px;
    }
}
