body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    height: 100%;
}

.hero-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.price-tag {
    transition: background-color 0.2s ease;
}

.price-tag:hover {
    opacity: 0.9;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
    opacity: 0;
    transform: translateY(20px);
    }

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

.product-image {
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

.checkout-container {
    max-width: 900px;
    margin: 0 auto;
}

input,
textarea,
select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.btn-primary {
    background: #495057;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #343a40;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: #6c757d;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

.feature-icon {
    font-size: 3rem;
    line-height: 1;
}

.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.stock-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.stock-available {
    background: #d4edda;
    color: #155724;
}

.stock-low {
    background: #fff3cd;
    color: #856404;
}

.stock-out {
    background: #f8d7da;
    color: #721c24;
}

.alert-box {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
    opacity: 0;
    transform: translateY(50px);
    }

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

.qris-container {
    text-align: center;
    padding: 20px;
}

.qris-code {
    width: 280px;
    height: 280px;
    margin: 20px auto;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #495057;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
    transform: rotate(0deg);
    }

    100% {
    transform: rotate(360deg);
    }
}

.payment-status {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    margin: 16px 0;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.mobile-menu-button {
    display: none;
    cursor: pointer;
    z-index: 60;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 80px 24px 24px 24px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu nav a {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.2s ease;
}

.mobile-menu nav a:hover {
    color: #111827;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 24px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #374151;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .desktop-nav {
    display: none !important;
    }

    .mobile-menu-button {
    display: block;
    }
}

.gallery-image {
    transition: transform 0.5s ease;
}

.gallery-image:hover {
    transform: scale(1.1);
}

.sweet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.sweet-modal.active {
    display: flex;
}

.sweet-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
    opacity: 0;
    transform: translateY(-50px);
    }

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

.sweet-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    animation: bounceIn 0.5s ease;
}

.sweet-modal-icon.warning {
    background: #fff3cd;
    color: #856404;
}

@keyframes bounceIn {
    0% {
    transform: scale(0);
    }

    50% {
    transform: scale(1.1);
    }

    100% {
    transform: scale(1);
    }
}

.sweet-modal-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.sweet-modal-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.sweet-modal-button {
    background: #495057;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sweet-modal-button:hover {
    background: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sweet-modal-button:active {
    transform: translateY(0);
}

/* Tombol utama hijau */
.btn-primary {
    background-color: #16a34a;
    transition: background-color 0.15s ease;
}
.btn-primary:hover {
    background-color: #15803d;
}

/* Card produk di landing */
.product-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
}

/* Tag harga (sekadar hook kalau mau styling tambahan) */
.price-tag {
    font-size: 0.9rem;
}

/* Ringkasan order / checkout */
.order-summary {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Alert box */
.alert-box {
    min-height: 0;
}

/* Sweet Modal (QRIS) */
.sweet-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 50;
}

.sweet-modal.active {
    display: block;
}

.sweet-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
}

.sweet-modal__container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 10vh;
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

/* ===================================================================
   FORM INPUT UNIFIED FONT (Onest)
   =================================================================== */

input,
textarea,
select {
    font-family: 'Onest', sans-serif !important;
    font-size: 0.95rem;
    color: #111827;
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
    font-family: 'Onest', sans-serif !important;
    color: #9ca3af; /* abu-abu lembut */
    opacity: 1;     /* pastikan terlihat */
}

/* Placeholder untuk cross-browser */
input::-webkit-input-placeholder { font-family: 'Onest', sans-serif !important; }
input:-ms-input-placeholder      { font-family: 'Onest', sans-serif !important; }
input::-ms-input-placeholder     { font-family: 'Onest', sans-serif !important; }

textarea::-webkit-input-placeholder { font-family: 'Onest', sans-serif !important; }
textarea:-ms-input-placeholder      { font-family: 'Onest', sans-serif !important; }
textarea::-ms-input-placeholder     { font-family: 'Onest', sans-serif !important; }
