* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;

    background: #f5f5f5;

    color: #111;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    width: 100%;

    height: 75px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #fff;

    border-bottom: 1px solid #ddd;

    position: sticky;

    top: 0;

    z-index: 1000;
}

.logo {
    color: #111;

    text-decoration: none;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: 3px;
}

.logo span {
    color: #888;
}

.nav-links {
    display: flex;

    align-items: center;

    gap: 30px;
}

.nav-links > a,
.product-button {
    color: #111;

    text-decoration: none;

    font-family: inherit;

    font-size: 10px;

    font-weight: 600;

    background: none;

    border: none;

    cursor: pointer;
}

.product-button {
    display: flex;

    align-items: center;

    gap: 7px;
}

.product-button i {
    font-size: 8px;
}


/* =========================================
   DROPDOWN
========================================= */

.product-menu {
    position: relative;
}

.product-dropdown {
    position: absolute;

    top: calc(100% + 22px);

    right: 0;

    min-width: 170px;

    padding: 8px 0;

    background: white;

    border: 1px solid #ddd;

    box-shadow:
        0 15px 35px rgba(0,0,0,.08);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-8px);

    transition: .25s;
}

.product-menu:hover
.product-dropdown {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.product-dropdown a {
    display: block;

    padding: 12px 18px;

    color: #333;

    text-decoration: none;

    font-size: 9px;
}

.product-dropdown a:hover {
    background: #f1f1f1;
}


/* =========================================
   HERO
========================================= */

.product-hero {
    padding: 75px 20px 60px;

    text-align: center;

    background: white;

    border-bottom: 1px solid #ddd;
}

.product-hero span {
    font-size: 8px;

    letter-spacing: 4px;

    color: #999;
}

.product-hero h1 {
    margin-top: 12px;

    font-size: clamp(32px, 6vw, 55px);

    font-weight: 800;

    letter-spacing: -2px;
}

.product-hero p {
    margin-top: 12px;

    font-size: 11px;

    color: #888;
}


/* =========================================
   CONTAINER
========================================= */

.product-container {
    width: 90%;

    max-width: 1250px;

    margin: auto;

    padding: 55px 0 80px;
}


/* =========================================
   GRID
========================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}


/* =========================================
   CARD
========================================= */

.product-card {
    background: white;

    border: 1px solid #e2e2e2;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.08);
}


/* =========================================
   IMAGE
========================================= */

.product-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    background: #eee;

    overflow: hidden;
}

.product-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.product-card:hover
.product-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #bbb;

    font-size: 35px;
}


/* =========================================
   INFO
========================================= */

.product-info {
    padding: 20px;
}

.category {
    font-size: 8px;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #999;
}

.product-info h2 {
    margin-top: 8px;

    font-size: 15px;

    line-height: 1.4;
}

.description {
    margin-top: 8px;

    height: 35px;

    overflow: hidden;

    color: #888;

    font-size: 9px;

    line-height: 1.6;
}

.price {
    display: block;

    margin-top: 15px;

    font-size: 13px;
}


/* =========================================
   EMPTY
========================================= */

.empty-product {
    padding: 90px 20px;

    text-align: center;

    background: white;

    border: 1px solid #ddd;
}

.empty-product i {
    font-size: 45px;

    color: #ccc;
}

.empty-product h2 {
    margin-top: 18px;

    font-size: 20px;
}

.empty-product p {
    margin-top: 8px;

    color: #999;

    font-size: 10px;
}

.back-button {
    margin-top: 25px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    background: #111;

    color: white;

    text-decoration: none;

    font-size: 9px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 35px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-left: 6%;

    padding-right: 6%;

    background: #111;

    color: white;
}

footer strong {
    font-size: 14px;

    letter-spacing: 3px;
}

footer span {
    font-size: 8px;

    color: #888;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .product-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .navbar {
        height: 65px;

        padding: 0 20px;
    }

    .logo {
        font-size: 17px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links > a {
        display: none;
    }

    .product-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .product-info {
        padding: 14px;
    }

    .product-info h2 {
        font-size: 12px;
    }

    .description {
        font-size: 8px;
    }

    .price {
        font-size: 11px;
    }

    footer {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-container {
        width: 94%;
        padding: 35px 0 60px;
    }

    .product-hero {
        padding: 45px 15px 40px;
    }

    .product-hero h1 {
        font-size: 30px;
    }

    .product-info {
        padding: 10px;
    }

    .category {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .product-info h2 {
        font-size: 11px;
        margin-top: 6px;
    }

    .description {
        font-size: 7px;
        height: 30px;
    }

    .price-area {
        margin-top: 10px;
        gap: 2px;
    }

    .normal-price {
        font-size: 7px;
    }

    .discount-price,
    .price {
        font-size: 11px;
    }

    .discount-badge {
        top: 8px;
        left: 8px;
        padding: 5px 6px;
        font-size: 7px;
    }

    .btn-order-wa {
        margin-top: 10px;
        padding: 9px 4px;
        font-size: 8px;
        letter-spacing: 0;
    }

}

/* =========================================
   SEARCH
========================================= */

.search-form {
    width: 100%;
    max-width: 600px;

    margin: 30px auto 0;

    display: flex;

    gap: 8px;
}

.search-box {
    position: relative;

    flex: 1;
}

.search-box > i {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    color: #999;

    font-size: 12px;
}

.search-box input {
    width: 100%;

    height: 48px;

    padding:
        0 42px
        0 45px;

    border: 1px solid #ddd;

    outline: none;

    background: #f8f8f8;

    font-family: inherit;

    font-size: 10px;
}

.search-box input:focus {
    border-color: #111;

    background: #fff;
}

.search-button {
    height: 48px;

    padding: 0 22px;

    border: 1px solid #111;

    background: #111;

    color: #fff;

    font-family: inherit;

    font-size: 9px;

    font-weight: 600;

    cursor: pointer;
}

.clear-search {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #999;

    text-decoration: none;

    font-size: 12px;
}

.clear-search:hover {
    color: #111;
}


/* =========================================
   DISCOUNT BADGE
========================================= */

.product-image {
    position: relative;
}

.discount-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 5;

    padding: 7px 9px;

    background: #e53935;

    color: white;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .5px;
}


/* =========================================
   PRICE
========================================= */

.price-area {
    margin-top: 15px;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.normal-price {
    color: #999;

    font-size: 9px;
}

.discount-price {
    color: #111;

    font-size: 14px;

    font-weight: 700;
}

.price {
    color: #111;

    font-size: 13px;

    font-weight: 700;
}

.btn-order-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;

    background: #111;
    color: #fff;

    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;

    border-radius: 4px;
    transition: 0.2s ease;
}

.btn-order-wa:hover {
    background: #333;
}

/* =========================================
   SLIDER FOTO PRODUK
========================================= */

.product-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.product-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-slide-indicator {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 5;

    padding: 4px 7px;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 11px;
    line-height: 1;
    border-radius: 4px;

    pointer-events: none;
}

/* =========================================
   TOMBOL LIHAT FOTO PRODUK
========================================= */

.product-image {
    position: relative;
}
