/* ========== RESET & VARIABLES ========== */
:root {
    --primary: #D32F2F;
    --primary-dark: #B71C1C;
    --accent: #FFC107;
    --text-main: #212121;
    --text-sec: #757575;
    --bg-body: #F5F5F5;
    --bg-card: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== HERO SECTION ========== */
.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 480px;
    background: linear-gradient(90deg, rgba(133, 33, 13, 1) 0%, rgba(122, 29, 13, 1) 100%),
        url('https://images.unsplash.com/photo-1563245372-f21720e32aa1?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 0 0 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideDown 0.6s ease-out 0.3s both;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 3px;
    animation: slideDown 0.6s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-style: italic;
    animation: slideDown 0.6s ease-out 0.4s both;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.8;
    animation: slideDown 0.6s ease-out 0.5s both;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideDown 0.6s ease-out 0.6s both;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========== CONTAINER ========== */
.main-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 120px;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-main);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* ========== MENU CARDS ========== */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-card {
    background: var(--bg-card);
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.5s ease-out both;
}

.menu-card:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-card:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-card:nth-child(3) {
    animation-delay: 0.3s;
}

.menu-card:nth-child(4) {
    animation-delay: 0.4s;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.menu-card:active {
    transform: scale(0.98);
}

.card-image-box {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;

    /* Optimasi untuk gambar tajam */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform;
}

.menu-card:hover .card-image-box img {
    transform: translateZ(0) scale(1.08);
}

.card-details {
    padding: 1.25rem;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-sec);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
}

.rating {
    font-size: 0.85rem;
    color: var(--text-sec);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-add {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.btn-add:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== ABOUT SECTION ========== */
.about-box {
    background: linear-gradient(135deg, #fff, #f9f9f9);
    padding: 2rem;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-box p {
    color: var(--text-sec);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-s);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.75rem;
    color: var(--text-sec);
    margin: 0;
}

/* ========== TESTIMONIALS ========== */
.testimonial-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.testimonial-slider::-webkit-scrollbar {
    height: 6px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.testimonial-card {
    min-width: 280px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    border-left: 4px solid var(--accent);
}

.testimonial-card .stars {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.testimonial-card p {
    font-size: 0.9rem;
    color: var(--text-sec);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
}

/* ========== INFO SECTION ========== */
.info-grid {
    display: grid;
    gap: 1rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.info-content p {
    font-size: 0.9rem;
    color: var(--text-sec);
    margin: 0;
    line-height: 1.5;
}

/* ========== FLOATING CART ========== */
.floating-cart {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    width: calc(100% - 40px);
    max-width: 500px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    padding: 16px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
}

.floating-cart.visible {
    transform: translateX(-50%) translateY(0);
}

.cart-icon-bg {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 16px;
    animation: pulse 2s infinite;
}

.cart-info h4 {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 2px;
    font-weight: 400;
}

.cart-info span {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cart-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

/* ========== FLOATING WA BUTTON ========== */
.wa-float {
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s;
    animation: bounceIn 1s ease-out 1s both;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}


/* ========== FOOTER ========== */
footer {
    background: var(--text-main);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ========== MODALS ========== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.sheet {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.overlay.active .sheet {
    transform: translateY(0);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.sheet-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 1.5rem;
    color: var(--text-sec);
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--primary);
    color: white;
}

/* Form Styles */
.opt-group {
    margin-bottom: 1.5rem;
}

.opt-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
}

.radio-pick {
    border: 2px solid #e0e0e0;
    padding: 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s;
    background: white;
}

.radio-pick:hover {
    border-color: var(--primary);
    background: #fff5f5;
}

.radio-pick:has(input:checked) {
    border-color: var(--primary);
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.radio-pick input[type="radio"],
.radio-pick input[type="checkbox"] {
    accent-color: var(--primary);
    transform: scale(1.3);
    cursor: pointer;
}

.radio-pick i {
    font-size: 1.3rem;
    color: var(--text-sec);
    width: 28px;
    text-align: center;
}

.radio-pick:has(input:checked) i {
    color: var(--primary);
}

.input-field {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.btn-block {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-block:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(211, 47, 47, 0.4);
}

.btn-block:active {
    transform: translateY(0);
}

.qty-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 1.5rem 0;
}

.qty-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
}

.qty-box:hover {
    border-color: var(--primary);
    background: #fff5f5;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ========== STATUS BADGE ========== */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.status-badge.out-of-stock {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-badge.open-po {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.status-badge.close-po {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Disabled button */
.btn-add.disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.btn-add.disabled:hover {
    background: #9ca3af !important;
    transform: none !important;
}

/* Card image box needs relative positioning */
.card-image-box {
    position: relative;
}


/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .overlay {
        align-items: center;
    }

    .sheet {
        border-radius: 24px;
    }
}