/* =========================================
GLOBAL
========================================= */

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
--primary: #000000;
--primary-text: #ffffff;

--button: #ffd503;
--button-text: #000000;

--background: #f8f9fa;
--card: #ffffff;

--text: #24282b;
--muted: #575756;

--danger: #ed1c24;

--border: #eeeeee;

--radius: 14px;


}

html {
scroll-behavior: smooth;
}

body {
background: var(--background);
color: var(--text);

font-family:
    Arial,
    Helvetica,
    sans-serif;

line-height: 1.5;


}

button,
input {
font: inherit;
}

button {
border: 0;
cursor: pointer;
}

/* =========================================
HEADER
========================================= */

.site-header {
background: #ffffff;

position: sticky;
top: 0;
z-index: 1000;

border-bottom: 1px solid var(--border);


}

.header-inner {
max-width: 1400px;

margin: auto;

min-height: 76px;

padding: 10px 24px;

display: flex;
align-items: center;
justify-content: space-between;

gap: 20px;


}

.logo {
display: flex;
align-items: center;

text-decoration: none;


}

.logo img {
width: 130px;
max-height: 58px;

object-fit: contain;


}

.header-actions {
display: flex;
align-items: center;

gap: 10px;


}

.header-button,
.cart-button {
min-height: 44px;

padding: 0 14px;

border-radius: 10px;

background: #ffffff;

color: #000000;

display: flex;
align-items: center;
gap: 8px;

transition: 0.2s ease;


}

.header-button:hover {
background: #f5f5f5;
}

.icon {
font-size: 18px;
}

.cart-button {
background: var(--button);
font-weight: 700;

position: relative;


}

.cart-button:hover {
background: #edc500;
}

.cart-count {
min-width: 20px;
height: 20px;

padding: 0 5px;

display: flex;
align-items: center;
justify-content: center;

background: var(--danger);

color: white;

border-radius: 50%;

font-size: 11px;


}

/* =========================================
HERO
========================================= */

/* =========================================
   HERO CAROUSEL
========================================= */

.hero {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.hero-slider {
    position: relative;

    width: 100%;
    height: 390px;

    overflow: hidden;

    border-radius: 14px;

    background: #ddd;
}

.hero-slide {
    position: absolute;

    inset: 0;

    opacity: 0;

    transform: scale(1.03);

    transition:
        opacity 0.6s ease,
        transform 1.2s ease;

    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;

    transform: scale(1);

    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* Arrows */

.hero-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);

    color: #fff;

    font-size: 32px;

    line-height: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 5;

    transition: 0.2s ease;
}

.hero-arrow:hover {
    background: #000;
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}


/* Dots */

.hero-dots {
    position: absolute;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    display: flex;

    gap: 7px;

    z-index: 5;
}

.hero-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: rgba(255,255,255,0.65);

    cursor: pointer;

    transition: 0.2s ease;
}

.hero-dot.active {
    width: 24px;

    border-radius: 20px;

    background: #ffd503;
}

/* =========================================
MENU CONTAINER
========================================= */

.menu-container {
max-width: 1400px;

margin: auto;

padding: 20px;


}

/* =========================================
CATEGORIES
========================================= */

.category-wrapper {
position: relative;

display: flex;
align-items: center;


}

.categories {
width: 100%;

display: flex;

gap: 10px;

overflow-x: auto;

scrollbar-width: none;

padding: 5px 0;


}

.categories::-webkit-scrollbar {
display: none;
}

.category {
flex: 0 0 auto;

padding: 10px 20px;

border-radius: 30px;

background: #ffffff;

border: 1px solid #e5e5e5;

color: #222;

font-weight: 600;

transition: 0.2s ease;


}

.category:hover {
border-color: #000;
}

.category.active {
background: var(--primary);
color: #ffffff;

border-color: var(--primary);


}

.category-scroll {
width: 36px;
height: 36px;

flex-shrink: 0;

border-radius: 50%;

background: #000000;

color: #ffffff;

z-index: 2;

font-size: 24px;

display: flex;
align-items: center;
justify-content: center;


}

.category-scroll.left {
margin-right: 8px;
}

.category-scroll.right {
margin-left: 8px;
}

/* =========================================
SEARCH
========================================= */

.search-box {
margin-top: 18px;

height: 52px;

background: #ffffff;

border: 1px solid var(--border);

border-radius: 12px;

display: flex;
align-items: center;

padding: 0 16px;

box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.03);


}

.search-icon {
margin-right: 10px;
}

.search-box input {
width: 100%;

border: 0;
outline: 0;

background: transparent;

font-size: 15px;


}

/* =========================================
SECTION HEADING
========================================= */

.menu-section {
margin-top: 30px;
}

.section-heading {
margin-bottom: 18px;
}

.section-heading h2 {
font-size: 25px;

font-weight: 700;

color: #000;


}

/* =========================================
PRODUCT GRID
========================================= */

.product-grid {
display: grid;

grid-template-columns:
    repeat(4, minmax(0, 1fr));

gap: 18px;


}

.product-card {
background: var(--card);

border-radius: var(--radius);

overflow: hidden;

border: 1px solid #eeeeee;

transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;


}

.product-card:hover {
transform: translateY(-3px);

box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.08);


}

/* =========================================
PRODUCT IMAGE
========================================= */

.product-image {
width: 100%;

height: 220px;

background: #eeeeee;

position: relative;

overflow: hidden;


}

.product-image img {
width: 100%;
height: 100%;

object-fit: cover;

display: block;

transition: transform 0.3s ease;


}

.product-card:hover .product-image img {
transform: scale(1.04);
}

/* =========================================
PRODUCT CONTENT
========================================= */

.product-content {
padding: 15px;
}

.product-name {
font-size: 17px;

font-weight: 700;

color: #000;

margin-bottom: 5px;


}

.product-description {
color: var(--muted);

font-size: 13px;

min-height: 40px;

margin-bottom: 12px;


}

.product-bottom {
display: flex;

align-items: center;
justify-content: space-between;

gap: 10px;


}

.product-price {
color: var(--danger);

font-size: 16px;

font-weight: 700;


}

.add-button {
background: var(--button);

color: var(--button-text);

border-radius: 8px;

padding: 9px 15px;

font-size: 13px;

font-weight: 700;

transition: 0.2s ease;


}

.add-button:hover {
background: #edc500;
}

/* =========================================
EMPTY SEARCH
========================================= */

.no-products {
grid-column: 1 / -1;

text-align: center;

padding: 60px 20px;

color: var(--muted);


}

/* =========================================
CART OVERLAY
========================================= */

.cart-overlay {
position: fixed;

inset: 0;

background: rgba(0, 0, 0, 0.45);

z-index: 1999;

opacity: 0;

visibility: hidden;

transition: 0.25s ease;


}

.cart-overlay.active {
opacity: 1;

visibility: visible;


}

/* =========================================
CART DRAWER
========================================= */

.cart-drawer {
position: fixed;

top: 0;
right: 0;

width: 420px;
max-width: 100%;

height: 100vh;

background: #ffffff;

z-index: 2000;

display: flex;

flex-direction: column;

transform: translateX(100%);

transition: transform 0.3s ease;

box-shadow:
    -5px 0 25px rgba(0, 0, 0, 0.1);


}

.cart-drawer.active {
transform: translateX(0);
}

.cart-header {
min-height: 70px;

padding: 15px 20px;

display: flex;

align-items: center;

justify-content: space-between;

border-bottom: 1px solid var(--border);


}

.cart-header h2 {
font-size: 20px;
}

.close-cart {
width: 38px;
height: 38px;

border-radius: 50%;

background: #f3f3f3;

font-size: 25px;


}

.cart-items {
flex: 1;

overflow-y: auto;

padding: 15px;


}

.empty-cart {
text-align: center;

padding: 50px 20px;

color: var(--muted);


}

.cart-item {
display: flex;

gap: 12px;

padding: 12px 0;

border-bottom: 1px solid #eeeeee;


}

.cart-item-image {
width: 65px;
height: 65px;

border-radius: 8px;

object-fit: cover;


}

.cart-item-info {
flex: 1;
}

.cart-item-name {
font-weight: 700;

font-size: 14px;


}

.cart-item-price {
color: var(--danger);

font-size: 13px;

margin-top: 4px;


}

.cart-controls {
display: flex;

align-items: center;

gap: 8px;

margin-top: 8px;


}

.quantity-button {
width: 27px;
height: 27px;

border-radius: 6px;

background: #eeeeee;


}

.cart-footer {
padding: 20px;

border-top: 1px solid var(--border);

background: #ffffff;


}

.cart-total {
display: flex;

align-items: center;
justify-content: space-between;

margin-bottom: 15px;

font-size: 17px;


}

.cart-total strong {
color: var(--danger);
}

.checkout-button {
width: 100%;

padding: 14px;

border-radius: 10px;

background: var(--button);

color: #000000;

font-weight: 700;


}

/* =========================================
FOOTER
========================================= */

.site-footer {
margin-top: 50px;

background: #ffffff;

border-top: 1px solid var(--border);


}

.footer-inner {
max-width: 1400px;

margin: auto;

padding: 35px 20px;

display: flex;

justify-content: space-between;

gap: 30px;


}

.footer-brand img {
width: 120px;

max-height: 55px;

object-fit: contain;


}

.footer-brand p {
max-width: 350px;

margin-top: 10px;

color: var(--muted);

font-size: 13px;


}

.footer-links {
display: flex;

gap: 20px;

flex-wrap: wrap;

align-items: center;


}

.footer-links a {
color: #222;

text-decoration: none;

font-size: 14px;


}

.footer-links a:hover {
color: var(--danger);
}

.copyright {
text-align: center;

padding: 15px 20px;

border-top: 1px solid var(--border);

color: var(--muted);

font-size: 12px;


}

/* =========================================
TABLET
========================================= */

@media (max-width: 1100px) {

.product-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.hero-image {
    height: 320px;
}


}

/* =========================================
MOBILE
========================================= */

@media (max-width: 768px) {

.header-inner {
    min-height: 64px;

    padding: 8px 14px;
}

.logo img {
    width: 105px;
}

.header-actions {
    gap: 5px;
}

.header-button,
.cart-button {
    width: 42px;
    height: 42px;

    min-height: 42px;

    padding: 0;

    justify-content: center;

    border-radius: 10px;
}

.desktop-only {
    display: none;
}

.hero {
        margin-top: 10px;
        padding: 0 10px;
    }

    .hero-slider {
        height: 190px;
        border-radius: 10px;
    }

    .hero-arrow {
        width: 34px;
        height: 34px;

        font-size: 24px;
    }

    .hero-prev {
        left: 8px;
    }

    .hero-next {
        right: 8px;
    }

    .hero-dots {
        bottom: 10px;
    }

.hero-image {
    height: 190px;

    border-radius: 10px;
}

.menu-container {
    padding: 12px 10px;
}

.category-scroll {
    display: none;
}

.categories {
    gap: 8px;
}

.category {
    padding: 8px 15px;

    font-size: 13px;
}

.search-box {
    height: 48px;

    margin-top: 12px;
}

.menu-section {
    margin-top: 22px;
}

.section-heading h2 {
    font-size: 21px;
}

.product-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.product-image {
    height: 155px;
}

.product-content {
    padding: 11px;
}

.product-name {
    font-size: 14px;
}

.product-description {
    font-size: 11px;

    min-height: 34px;

    margin-bottom: 8px;
}

.product-price {
    font-size: 14px;
}

.add-button {
    padding: 7px 10px;

    font-size: 11px;
}

.footer-inner {
    flex-direction: column;
}


}

/* =========================================
SMALL PHONES
========================================= */

@media (max-width: 420px) {

.product-image {
    height: 135px;
}

.product-name {
    font-size: 13px;
}

.product-description {
    font-size: 10px;
}

.product-bottom {
    align-items: flex-end;

    flex-direction: column;
}

.add-button {
    width: 100%;
}


}

/* =====================================================
   PRODUCT MODAL
===================================================== */

.modal-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}


.product-modal {
    position: relative;

    width: min(850px, 100%);

    max-height: 90vh;

    overflow: auto;

    background: #fff;

    border-radius: 18px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25);

    animation: modalIn 0.25s ease;
}


@keyframes modalIn {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,0.65);

    color: #fff;

    font-size: 25px;

    cursor: pointer;

    z-index: 10;
}


.product-modal-image {
    min-height: 420px;
}

.product-modal-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 18px 0 0 18px;
}


.product-modal-content {
    padding: 45px 35px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.product-modal-content h2 {
    margin: 0 0 12px;

    font-size: 30px;
}


.modal-product-description {
    color: #666;

    line-height: 1.7;

    margin-bottom: 20px;
}


.modal-product-price {
    color: #ed1c24;

    font-size: 25px;

    font-weight: 700;

    margin-bottom: 30px;
}


.modal-quantity {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}


.modal-quantity > span {
    font-weight: 600;
}


.quantity-control {
    display: flex;

    align-items: center;

    border: 1px solid #ddd;

    border-radius: 8px;

    overflow: hidden;
}


.quantity-control button {
    width: 42px;
    height: 42px;

    border: none;

    background: #f5f5f5;

    font-size: 22px;

    cursor: pointer;
}


.quantity-control span {
    min-width: 45px;

    text-align: center;

    font-weight: 600;
}


.add-to-cart-modal,
.checkout-button,
.place-order-button,
.success-button {
    width: 100%;

    border: none;

    border-radius: 8px;

    padding: 15px;

    background: #ffd503;

    color: #000;

    font-weight: 700;

    font-size: 16px;

    cursor: pointer;

    transition: 0.2s ease;
}


.add-to-cart-modal:hover,
.checkout-button:hover,
.place-order-button:hover,
.success-button:hover {
    background: #ed1c24;

    color: #fff;
}


/* =====================================================
   CART DRAWER
===================================================== */

.cart-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.5);

    display: none;

    z-index: 9997;
}


.cart-overlay.active {
    display: block;
}


.cart-drawer {
    position: fixed;

    top: 0;
    right: 0;

    width: min(450px, 100%);

    height: 100vh;

    background: #fff;

    z-index: 9998;

    display: flex;

    flex-direction: column;

    transform: translateX(100%);

    transition: transform 0.3s ease;

    box-shadow:
        -10px 0 40px rgba(0,0,0,0.15);
}


.cart-drawer.active {
    transform: translateX(0);
}


.cart-header {
    padding: 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid #eee;
}


.cart-header h2 {
    margin: 0;
}


.cart-header span {
    color: #777;

    font-size: 13px;
}


.cart-close {
    border: none;

    background: none;

    font-size: 30px;

    cursor: pointer;
}


.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 15px;
}


.cart-item {
    display: grid;

    grid-template-columns: 75px 1fr;

    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid #eee;
}


.cart-item-image {
    width: 75px;
    height: 75px;

    border-radius: 8px;

    object-fit: cover;
}


.cart-item-info h4 {
    margin: 0 0 5px;

    font-size: 15px;
}


.cart-item-price {
    color: #ed1c24;

    font-weight: 600;

    margin-bottom: 8px;
}


.cart-item-controls {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.cart-quantity {
    display: flex;

    align-items: center;

    border: 1px solid #ddd;

    border-radius: 6px;

    overflow: hidden;
}


.cart-quantity button {
    width: 28px;
    height: 28px;

    border: none;

    background: #f5f5f5;

    cursor: pointer;
}


.cart-quantity span {
    width: 30px;

    text-align: center;

    font-size: 13px;
}


.remove-cart-item {
    border: none;

    background: none;

    color: #e30613;

    cursor: pointer;

    font-size: 13px;
}


.cart-empty {
    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 30px;

    text-align: center;
}


.cart-empty-icon {
    font-size: 50px;

    margin-bottom: 10px;
}


.cart-empty h3 {
    margin: 0 0 5px;
}


.cart-empty p {
    color: #777;
}


.cart-empty button {
    border: none;

    background: #ffd503;

    padding: 12px 20px;

    border-radius: 7px;

    font-weight: 600;

    cursor: pointer;
}


.cart-footer {
    border-top: 1px solid #eee;

    padding: 20px;
}


.cart-summary-row,
.cart-total-row {
    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;
}


.cart-total-row {
    font-size: 20px;

    padding-top: 10px;

    border-top: 1px solid #eee;

    margin-bottom: 20px;
}


/* =====================================================
   CHECKOUT
===================================================== */

.checkout-modal {
    position: relative;

    width: min(650px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    background: #fff;

    border-radius: 18px;

    padding: 35px;

    animation: modalIn 0.25s ease;
}


.checkout-header h2 {
    margin: 0 0 5px;
}


.checkout-header p {
    margin-top: 0;

    color: #777;
}


.checkout-section {
    padding: 20px 0;

    border-bottom: 1px solid #eee;
}


.checkout-section h3 {
    margin-top: 0;

    margin-bottom: 18px;

    font-size: 18px;
}


.form-group {
    margin-bottom: 16px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: 600;

    font-size: 14px;
}


.form-group label span {
    color: #888;

    font-weight: 400;
}


.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid #ddd;

    border-radius: 7px;

    padding: 12px 13px;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition: 0.2s ease;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: #000;

    box-shadow:
        0 0 0 3px rgba(0,0,0,0.05);
}


.order-type-options {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


.option-card {
    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 15px;

    cursor: pointer;

    display: flex;

    gap: 10px;

    align-items: flex-start;
}


.option-card:has(input:checked) {
    border-color: #000;

    background: #fffbea;
}


.option-card input {
    margin-top: 4px;
}


.option-card span {
    display: flex;

    flex-direction: column;
}


.option-card small,
.payment-option small {
    color: #777;

    margin-top: 3px;
}


.payment-option {
    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 15px;

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;
}


.payment-option:has(input:checked) {
    border-color: #000;

    background: #fffbea;
}


.payment-icon {
    font-size: 25px;
}


.checkout-final-summary {
    padding: 20px 0;
}


.checkout-final-summary > div {
    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;
}


.checkout-grand-total {
    border-top: 1px solid #ddd;

    margin-top: 10px;

    padding-top: 15px;

    font-size: 21px;
}


.place-order-button {
    margin-top: 10px;
}


/* =====================================================
   SUCCESS
===================================================== */

.success-modal {
    position: relative;

    width: min(450px, 100%);

    background: #fff;

    border-radius: 18px;

    padding: 40px 30px;

    text-align: center;

    animation: modalIn 0.25s ease;
}


.success-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #20a464;

    color: #fff;

    font-size: 40px;

    font-weight: 700;
}


.success-modal h2 {
    margin-bottom: 5px;
}


.success-modal > p {
    color: #777;
}


.order-number-box {
    background: #f6f6f6;

    border-radius: 10px;

    padding: 15px;

    margin: 20px 0;
}


.order-number-box span {
    display: block;

    color: #777;

    font-size: 13px;

    margin-bottom: 5px;
}


.order-number-box strong {
    font-size: 22px;
}


.success-details {
    text-align: left;

    background: #fafafa;

    padding: 15px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-size: 14px;

    line-height: 1.7;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .product-modal {
        grid-template-columns: 1fr;

        max-height: 92vh;
    }


    .product-modal-image {
        min-height: 240px;

        max-height: 280px;
    }


    .product-modal-image img {
        border-radius: 18px 18px 0 0;
    }


    .product-modal-content {
        padding: 25px 20px;
    }


    .product-modal-content h2 {
        font-size: 24px;
    }


    .checkout-modal {
        padding: 25px 18px;

        max-height: 95vh;

        border-radius: 14px;
    }


    .order-type-options {
        grid-template-columns: 1fr;
    }


    .cart-drawer {
        width: 100%;
    }

}
