/* ===================================================
   KATALOG DIGITAL WELDON
   Style v2.0
   Linktree + Saweria Edition
=================================================== */

:root{

    --bg:#f7f4ef;
    --white:#ffffff;
    --black:#1e1e1e;

    --blue:#2D5BFF;
    --yellow:#FFC43D;
    --green:#17b26a;
    --red:#ef4444;

    --border:#222;

    --shadow:6px 6px 0 #222;

    --radius:14px;

    --transition:.18s ease;

    --max-width:620px;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--bg);

    color:var(--black);

    font-family:'Space Grotesk',sans-serif;

    opacity:0;

    transition:.3s;

}

body.loaded{

    opacity:1;

}

img{

    max-width:100%;

    display:block;

}

a{

    color:inherit;

}

/* ===================================================
   TOP BAR
=================================================== */

.topbar{

    width:100%;

    background:var(--yellow);

    border-bottom:2px solid var(--border);

    overflow:hidden;

    white-space:nowrap;

}

.marquee{

    display:inline-block;

    padding:12px 0;

    font-size:14px;

    font-weight:700;

    animation:marquee 26s linear infinite;

}

@keyframes marquee{

    from{

        transform:translateX(100%);

    }

    to{

        transform:translateX(-100%);

    }

}

/* ===================================================
   CONTAINER
=================================================== */

.container{

    width:100%;

    max-width:var(--max-width);

    margin:auto;

    padding:42px 20px 70px;

}

/* ===================================================
   HEADER
=================================================== */

.logo{

    width:120px;

    margin:auto;

}

h1{

    margin-top:24px;

    text-align:center;

    font-size:38px;

    line-height:1.15;

    font-weight:700;

}

.tagline{

    margin-top:12px;

    text-align:center;

    font-size:15px;

    color:#555;

    font-weight:600;

}

.description{

    margin:28px 0;

    text-align:left;

    font-size:17px;

    line-height:1.8;

}

/* ===================================================
   SEARCH
=================================================== */

.search{

    width:100%;

    height:58px;

    border:2px solid var(--border);

    border-radius:14px;

    background:#fff;

    padding:0 18px;

    font-size:17px;

    font-family:inherit;

    outline:none;

    box-shadow:var(--shadow);

    transition:var(--transition);

    margin-bottom:28px;

}

.search:focus{

    border-color:var(--blue);

}

/* ===================================================
   MENU
=================================================== */

.menu{

    display:flex;

    flex-direction:column;

    gap:18px;

}

/* ===================================================
   BUTTON
=================================================== */

.btn{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    width:100%;

    height:64px;

    text-decoration:none;

    color:#111;

    background:#fff;

    border:2px solid var(--border);

    border-radius:14px;

    font-size:18px;

    font-weight:700;

    box-shadow:var(--shadow);

    transition:var(--transition);

    user-select:none;

    position:relative;

    overflow:hidden;

}

.btn:hover{

    transform:translateY(-2px);

}

.btn:active{

    transform:translate(6px,6px);

    box-shadow:none;

}

.btn-primary{

    background:var(--blue);

    color:#fff;

}

/* ===================================================
   ACCORDION
=================================================== */

.accordion{

    margin-bottom:18px;

}

.accordion-btn{

    width:100%;

    height:64px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 22px;

    background:#fff;

    border:2px solid var(--border);

    border-radius:14px;

    box-shadow:var(--shadow);

    cursor:pointer;

    font-size:20px;

    font-weight:700;

    transition:var(--transition);

}

.accordion-content{

    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;

    padding:0 10px;
}

.accordion-content.open{
    padding-top:14px;
}

.accordion-btn:hover{

    transform:translateY(-2px);

}

.accordion-btn:active{

    transform:translate(6px,6px);

    box-shadow:none;

}

.icon{

    font-size:28px;

    font-weight:bold;

}

.sub-btn{

    display:block;

    margin-bottom:12px;

    padding:15px 18px;

    background:#fff;

    border:2px solid #ddd;

    border-radius:12px;
}

/* Produk pertama turun */
.sub-btn:first-child{

    margin-top:16px;

}

.accordion-content h4{

    margin:22px 0 10px;

    text-align:left;

    color:var(--blue);

    font-size:15px;

    letter-spacing:.05em;

    text-transform:uppercase;

}

.sub-btn{

    display:block;

    margin-bottom:12px;

    padding:15px 18px;

    background:#fff;

    border:2px solid #ddd;

    border-radius:12px;

    text-decoration:none;

    color:#222;

    font-weight:600;

    text-align:left;

    transition:var(--transition);

}

.sub-btn:hover{

    background:var(--blue);

    color:#fff;

    border-color:var(--blue);

}

/* ===================================================
   CARD
=================================================== */

.card{

    background:#fff;

    border:2px solid var(--border);

    border-radius:20px;

    padding:24px;

    box-shadow:var(--shadow);

    margin-bottom:22px;

}

/* ===================================================
   PRODUCT PAGE
=================================================== */

.back-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    height:48px;

    padding:0 22px;

    margin-bottom:26px;

    background:#fff;

    color:#222;

    text-decoration:none;

    border:2px solid var(--border);

    border-radius:12px;

    font-weight:700;

    box-shadow:3px 3px 0 #222;

    transition:var(--transition);

}

.back-btn:hover{

    transform:translateY(-2px);

}

.back-btn:active{

    transform:translate(3px,3px);

    box-shadow:none;

}

/* ===================================================
   BADGE
=================================================== */

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:8px 18px;

    border-radius:999px;

    background:var(--blue);

    color:#fff;

    font-size:13px;

    font-weight:700;

    letter-spacing:.08em;

    text-transform:uppercase;

    margin-bottom:20px;

}

/* ===================================================
   PRODUCT IMAGE
=================================================== */

.product-image{

    width:100%;

    max-width:340px;

    aspect-ratio:1/1;

    object-fit:contain;

    margin:20px auto 30px;

    background:#fff;

    padding:18px;

    border:2px solid var(--border);

    border-radius:20px;

    box-shadow:var(--shadow);

}

/* ===================================================
   PRODUCT TITLE
=================================================== */

#productName{

    font-size:42px;

    line-height:1.1;

    margin-bottom:10px;

    text-align:center;

}

.subtitle{

    font-size:18px;

    color:#666;

    margin-bottom:28px;

    text-align:center;

}

/* ===================================================
   DESCRIPTION
=================================================== */

.product-description{

    font-size:17px;

    line-height:1.8;

    text-align:left;

    margin:25px 0;

}

/* ===================================================
   ADVANTAGES
=================================================== */

#productAdvantages{

    list-style:none;

    margin:25px 0;

    padding:0;

}

#productAdvantages li{

    display:flex;

    align-items:flex-start;

    gap:12px;

    margin-bottom:14px;

    font-size:17px;

    line-height:1.6;

}

#productAdvantages li::before{

    content:"✔";

    color:var(--green);

    font-weight:700;

    flex-shrink:0;

}

/* ===================================================
   SPECIFICATION
=================================================== */

.spec-table{

    width:100%;

    border-collapse:collapse;

    margin-top:25px;

}

.spec-table tr{

    border-bottom:1px solid #e8e8e8;

}

.spec-table td{

    padding:14px 8px;

    text-align:left;

    font-size:15px;

}

.spec-table td:first-child{

    width:40%;

    font-weight:700;

}

/* ===================================================
   CHIPS
=================================================== */

.chips{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-top:24px;

}

.chip{

    padding:10px 18px;

    background:#fff;

    border:2px solid var(--border);

    border-radius:999px;

    box-shadow:3px 3px 0 #222;

    font-weight:700;

    font-size:14px;

}

/* ===================================================
   BUTTON GROUP
=================================================== */

.button-group{

    display:flex;

    flex-direction:column;

    gap:16px;

    margin-top:35px;

}

/* ===================================================
   DOWNLOAD BUTTON
=================================================== */

.download-btn{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    width:100%;

    height:60px;

    text-decoration:none;

    background:var(--blue);

    color:#fff;

    border:2px solid var(--border);

    border-radius:14px;

    font-size:17px;

    font-weight:700;

    box-shadow:var(--shadow);

    transition:var(--transition);

    position:relative;

    overflow:hidden;

}

.download-btn:hover{

    transform:translateY(-2px);

}

.download-btn:active{

    transform:translate(6px,6px);

    box-shadow:none;

}

/* ===================================================
   SECONDARY BUTTON
=================================================== */

.btn-outline{

    background:#fff;

    color:#222;

}

/* ===================================================
   RIPPLE EFFECT
=================================================== */

.ripple{

    position:absolute;

    width:20px;

    height:20px;

    background:rgba(255,255,255,.45);

    border-radius:50%;

    transform:translate(-50%,-50%);

    animation:ripple .5s linear;

    pointer-events:none;

}

@keyframes ripple{

    from{

        width:0;

        height:0;

        opacity:.6;

    }

    to{

        width:520px;

        height:520px;

        opacity:0;

    }

}

/* ===================================================
   UTILITIES
=================================================== */

.text-center{

    text-align:center;

}

.text-left{

    text-align:left;

}

.mt-20{

    margin-top:20px;

}

.mt-30{

    margin-top:30px;

}

.mt-40{

    margin-top:40px;

}

.mb-20{

    margin-bottom:20px;

}

.hidden{

    display:none;

}

/* ===================================================
   FOOTER
=================================================== */

.footer{

    margin-top:60px;

    text-align:center;

    color:#666;

    font-size:14px;

    line-height:1.8;

}

/* ===================================================
   EMPTY STATE
=================================================== */

.empty-state{

    display:none;

    padding:40px 20px;

    text-align:center;

    color:#777;

    font-size:16px;

}

.empty-state.show{

    display:block;

}

/* ===================================================
   LOADING
=================================================== */

.loading{

    display:flex;

    justify-content:center;

    align-items:center;

    padding:50px 0;

}

.spinner{

    width:46px;

    height:46px;

    border:4px solid #ddd;

    border-top-color:var(--blue);

    border-radius:50%;

    animation:spin .8s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* ===================================================
   SCROLLBAR
=================================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#ece8df;

}

::-webkit-scrollbar-thumb{

    background:#b7b2aa;

    border-radius:10px;

}

::-webkit-scrollbar-thumb:hover{

    background:#8f8a82;

}

/* ===================================================
   SELECTION
=================================================== */

::selection{

    background:var(--blue);

    color:#fff;

}

/* ===================================================
   FOCUS ACCESSIBILITY
=================================================== */

button:focus,
a:focus,
input:focus{

    outline:none;

}

/* ===================================================
   IMAGE
=================================================== */

img{

    user-select:none;

    -webkit-user-drag:none;

}

/* ===================================================
   RESPONSIVE
=================================================== */

@media(max-width:480px){

    .container{

        padding:30px 16px 50px;

    }

    .logo{

        width:100px;

    }

    h1{

        font-size:32px;

    }

    .tagline{

        font-size:14px;

    }

    .description{

        font-size:16px;

    }

    .search{

        height:54px;

        font-size:16px;

    }

    .accordion-btn{

        height:58px;

        font-size:18px;

        padding:0 18px;

    }

    .sub-btn{

        padding:14px 16px;

        font-size:15px;

    }

    #productName{

        font-size:34px;

    }

    .subtitle{

        font-size:16px;

    }

    .product-image{

        max-width:280px;

    }

    .download-btn{

        height:56px;

        font-size:16px;

    }

}

/* ===================================================
   TABLET
=================================================== */

@media(min-width:768px){

    .container{

        padding:60px 25px 80px;

    }

    h1{

        font-size:46px;

    }

    .description{

        font-size:18px;

    }

    .accordion-btn{

        height:68px;

        font-size:22px;

    }

    .sub-btn{

        font-size:17px;

    }

    #productName{

        font-size:54px;

    }

    .subtitle{

        font-size:20px;

    }

    .product-image{

        max-width:380px;

    }

}

/* ===================================================
   LARGE DESKTOP
=================================================== */

@media(min-width:1200px){

    .container{

        max-width:700px;

    }

}

/* ===================================================
   PRINT
=================================================== */

@media print{

    .topbar,

    .button-group,

    .back-btn{

        display:none;

    }

    body{

        background:#fff;

    }

    .card{

        border:1px solid #ccc;

        box-shadow:none;

    }

}

/* ===================================================
   ANIMATION
=================================================== */

.fade-up{

    animation:fadeUp .45s ease both;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(18px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/* ===================================================
   FINAL
=================================================== */

/*

Katalog Digital Weldon
Style v2.0

Concept :
✔ Linktree
✔ Saweria
✔ Neo Brutalism
✔ Mobile First
✔ Responsive
✔ Product Landing
✔ MySQL Ready
✔ PHP Ready

*/