
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #09090f;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.navbar {
    min-height: 75px;
    padding: 20px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #101019;
    border-bottom: 1px solid #292338;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 23px;
    font-weight: 900;
    color: white;
    text-decoration: none;
}

.logo span,
.hero h1 span {
    color: #a855f7;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #c6c3d0;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #b66aff;
}

.cart-button {
    padding: 11px 17px;
    border: 1px solid #8b42d8;
    border-radius: 8px;
    background: #20132e;
    color: white;
    cursor: pointer;
}

.hero {
    min-height: 510px;
    padding: 85px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background:
        radial-gradient(ellipse at 80% 50%, #32134f 0%, transparent 45%),
        #0c0b14;
}

.hero-content {
    max-width: 560px;
}

.tagline {
    color: #b66aff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 65px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    color: #aaa5b7;
    line-height: 1.8;
    margin-bottom: 30px;
}

.primary-button {
    display: inline-block;
    background: linear-gradient(120deg, #8b35d7, #bd5cff);
    padding: 15px 24px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px #963de655;
}

.hero-graphic {
    text-align: center;
    color: #a9a0b8;
    font-size: 11px;
    letter-spacing: 2px;
}

.software-icon {
    width: 220px;
    height: 220px;
    margin: auto auto 20px;
    border-radius: 45px;
    display: grid;
    place-items: center;
    font-size: 65px;
    font-weight: 900;
    color: white;
    background: linear-gradient(145deg, #4d167a, #a84aff);
    box-shadow: 0 0 75px #922ce866;
    transform: rotate(-5deg);
}

.categories,
.products {
    padding: 75px 8%;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.contact h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-heading > p:last-child {
    color: #aaa5b7;
}

.category-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category {
    padding: 12px 20px;
    border: 1px solid #332940;
    background: #15131d;
    color: #c6bfd2;
    border-radius: 7px;
    cursor: pointer;
}

.category.active,
.category:hover {
    background: #8236bd;
    color: white;
    border-color: #a855f7;
}

.search-box {
    width: 100%;
    padding: 16px;
    margin: 0 0 30px;
    border: 1px solid #393044;
    border-radius: 8px;
    background: #15131d;
    color: white;
    outline: none;
}

.search-box:focus {
    border-color: #a855f7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.empty-products {
    grid-column: 1 / -1;
    padding: 45px;
    text-align: center;
    color: #aaa5b7;
    border: 1px dashed #393044;
    border-radius: 12px;
}

.products-status {
    grid-column: 1 / -1;
    padding: 45px;
    text-align: center;
    color: #aaa5b7;
    border: 1px dashed #393044;
    border-radius: 12px;
}

.products-status button {
    margin-top: 16px;
    padding: 10px 18px;
    border: 1px solid #8b42d8;
    border-radius: 7px;
    background: #2b1636;
    color: #e3d4ff;
    cursor: pointer;
}

.products-status button:hover {
    background: #8236bd;
    color: #ffffff;
}

.product-card {
    overflow: hidden;
    background: #14121d;
    border: 1px solid #2b2536;
    border-radius: 12px;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: #9544d0;
}

.product-image {
    height: 185px;
    display: grid;
    place-items: center;
    font-size: 65px;
    font-weight: 900;
}

.purple {
    background: linear-gradient(135deg, #30104d, #8c35c9);
}

.blue {
    background: linear-gradient(135deg, #10294b, #315fba);
}

.pink {
    background: linear-gradient(135deg, #4a173e, #c13d8c);
}

.product-info {
    padding: 22px;
}

.product-type {
    font-size: 10px;
    letter-spacing: 2px;
    color: #b66aff;
}

.product-info h3 {
    margin: 12px 0;
}

.product-info p {
    min-height: 40px;
    color: #a9a4b3;
    font-size: 13px;
    line-height: 1.6;
}

.product-bottom {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-bottom strong {
    color: #c48bff;
}

.product-bottom button {
    padding: 10px 15px;
    background: #8236bd;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.contact {
    padding: 75px 20px;
    text-align: center;
    background: #15101f;
}

.contact p:not(.tagline) {
    color: #aaa5b7;
    margin: 15px 0 25px;
}

footer {
    padding: 30px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #928b9e;
    font-size: 12px;
}

@media (max-width: 800px) {
    .navbar {
        flex-wrap: wrap;
        gap: 18px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 17px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-graphic {
        margin-top: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .navbar {
        padding: 18px 5%;
    }

    nav a {
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .categories,
    .products {
        padding: 55px 6%;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .software-icon {
        width: 170px;
        height: 170px;
    }

    .cart-drawer {
        width: 100%;
    }
}

/* ======================================
   KERANJANG & CHECKOUT
   ====================================== */

body.no-scroll {
    overflow: hidden;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: #050408cc;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 40;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    background: #12101a;
    border-left: 1px solid #2b2536;
    transform: translateX(105%);
    transition: transform 0.28s ease;
    z-index: 50;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #292338;
}

.cart-header h2 {
    font-size: 20px;
}

.icon-button {
    width: 36px;
    height: 36px;
    border: 1px solid #393044;
    border-radius: 8px;
    background: #1a1724;
    color: #cfc7dc;
    cursor: pointer;
    font-size: 15px;
}

.icon-button:hover {
    border-color: #a855f7;
    color: #ffffff;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-empty {
    color: #aaa5b7;
    text-align: center;
    line-height: 1.8;
    padding: 50px 10px;
    font-size: 14px;
}

.cart-item {
    padding: 14px;
    border: 1px solid #2b2536;
    border-radius: 10px;
    background: #16131f;
}

.cart-item-info h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.cart-item-info span {
    color: #b66aff;
    font-size: 13px;
}

.cart-item-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #393044;
    border-radius: 7px;
    overflow: hidden;
}

.qty-control button {
    width: 34px;
    height: 32px;
    border: none;
    background: #211a2e;
    color: #d8ccff;
    cursor: pointer;
    font-size: 16px;
}

.qty-control button:hover {
    background: #38244d;
}

.qty-control span {
    min-width: 32px;
    text-align: center;
    font-size: 13px;
}

.remove-button {
    border: none;
    background: none;
    color: #ff8799;
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
}

.remove-button:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 18px 22px 24px;
    border-top: 1px solid #292338;
}

.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    color: #c6bfd2;
}

.cart-total-row strong {
    font-size: 22px;
    color: #ffffff;
}

.cart-checkout-button {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(120deg, #8b35d7, #bd5cff);
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.cart-checkout-button:hover {
    box-shadow: 0 8px 30px #963de655;
}

.cart-back {
    align-self: flex-start;
    border: none;
    background: none;
    color: #b66aff;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.checkout-form {
    display: flex;
    flex-direction: column;
}

.checkout-form label {
    margin: 16px 0 7px;
    font-size: 13px;
    color: #ddd4e8;
}

.checkout-form label:first-of-type {
    margin-top: 4px;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 13px;
    background: #0c0b13;
    border: 1px solid #393044;
    border-radius: 7px;
    color: #ffffff;
    outline: none;
    font: inherit;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: #a855f7;
}

.checkout-form textarea {
    min-height: 80px;
    resize: vertical;
}

.checkout-form .cart-checkout-button {
    margin-top: 22px;
}

.checkout-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-error {
    margin-top: 14px;
    color: #ff8799;
    font-size: 13px;
    line-height: 1.5;
}

.order-success {
    text-align: center;
    padding-top: 20px;
}

.order-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: #06120c;
    background: #57d69a;
}

.order-success h3 {
    margin-bottom: 10px;
}

.order-success p {
    color: #aaa5b7;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.order-code-box {
    border: 1px dashed #6b3f8f;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-code-box span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #b66aff;
}

.order-code-box strong {
    font-size: 22px;
    letter-spacing: 1px;
}

.order-success .cart-checkout-button,
.order-success .cart-secondary-button {
    margin-top: 14px;
}

.cart-secondary-button {
    display: block;
    width: 100%;
    padding: 13px;
    background: transparent;
    border: 1px solid #554464;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
}

.cart-secondary-button:hover {
    border-color: #a855f7;
}
