﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: hsl(30, 20%, 98%);
    --foreground: hsl(25, 25%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(25, 25%, 15%);
    --primary: hsl(142, 76%, 36%);
    --primary-foreground: hsl(0, 0%, 100%);
    --muted-foreground: hsl(25, 10%, 45%);
    --border: hsl(35, 20%, 88%);
    --warm-primary: hsl(20, 85%, 55%);
    --warm-accent: hsl(15, 75%, 50%);
    --shadow-card: 0 2px 12px -2px hsl(0, 0%, 0%, 0.1);
    --radius: 1rem;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-family: "Cairo", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "slnt" 0;
}
.rtl,
input, button {
    direction: rtl;
    text-align: right;
    font-family: "Cairo", sans-serif;
}
.ltr {
    direction: ltr;
}
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

img,a {
    user-select: none; /* no text selection */
    -webkit-user-drag: none; /* disable default drag on Safari */
    -webkit-user-select: none;
}
.disack {
    pointer-events: none; /* prevents image being “grabbed” */
}

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #d1d1d1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Logo Image */
    .logo-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Search */
.search-container {
    position: relative;
    width: 100%;
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
}

    .search-input:focus {
        border-color: var(--primary);
    }

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--muted-foreground);
    pointer-events: none;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

    .search-dropdown.show {
        display: block;
    }

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .search-item:hover {
        background: var(--muted);
    }

.search-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius);
}

.search-item-info {
    flex: 1;
}

.search-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-item-price {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.search-empty {
    padding: 1rem;
    text-align: center;
    color: var(--muted-foreground);
}

.loading-dots {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

    .loading-dots span {
        width: 8px;
        height: 8px;
        margin: 0 3px;
        background: #999;
        border-radius: 50%;
        display: inline-block;
        animation: bounce 0.6s infinite alternate;
    }

        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes bounce {
    from {
        transform: translateY(0);
        opacity: 0.4;
    }

    to {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.cart-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

    .cart-button:hover {
        background: var(--muted);
    }

.cart-count {
    font-size: 0.75rem;
    font-weight: 700;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Main */

.hero-section {
    position: relative;
    height: 320px;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, hsl(-10, 1%, 22%, 0.8));
    border-bottom: 5px solid #f2f2f2;
}

.logo-container {
    position: absolute;
    bottom: -64px;
    left: 50%;
    transform: translateX(-50%);
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid var(--background);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    background-color: var(--card);
    z-index: 10;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Section */
.content-section {
    padding: 80px 24px 0;
    max-width: 672px;
    margin: 0 auto;
}

.restaurant-header {
    text-align: center;
    margin-bottom: 24px;
}

.restaurant-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.restaurant-tagline {
    color: var(--muted-foreground);
    margin-bottom: 24px;
}

/* Card Styles */
.card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: hsl(20, 85%, 55%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 6px;
}
.contact-details {
    flex: 1;
}

.contact-label {
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-text {
    color: var(--muted-foreground);
}

.contact-list {
    margin-top: 8px;
}

    .contact-list p {
        margin-bottom: 4px;
    }

/* Social Media Section */
.social-section {
    margin-bottom: 24px;
}

.social-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    flex: 1;
    max-width: 120px;
    min-width: 100px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background-color: var(--card);
    color: var(--foreground);
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

    .social-btn:hover {
        background-color: var(--background);
        border-color: var(--primary);
    }

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn {
    padding: 12px 24px;
    border-radius: calc(var(--radius) - 4px);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

    .btn-primary:hover {
        opacity: 0.9;
    }

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

    .btn-outline:hover {
        background-color: var(--primary);
        color: var(--primary-foreground);
    }


/* Responsive Design */
@media (min-width: 640px) {
    .hero-section {
        height: 360px;
    }
    .restaurant-name {
        font-size: 2.25rem;
    }

    .action-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-section {
        height: 400px;
    }
}
/* Section */
.section {
    padding: 1rem;
}
.sectioncat {
    padding: 0.8rem;
    margin: 0.5rem 0;
    background-color: #f7f7f7;
    border-radius: var(--radius);
}
.prosec {
    background-color:#f8f8f8;
    border-radius:1.5rem;
}
/* Categories */
.categories-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

    .categories-scroll::-webkit-scrollbar {
        display: none;
    }

.categories {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.category-card {
    flex: 0 0 110px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
}

    .category-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

.category-image {
    width: 90%;
    margin: 10px 5% -10px 5%;
    border-radius: 0.5rem;
    height: 90px;
    object-fit: cover;
}

.stitems span {
    color: var(--muted-foreground);
}

.staticon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}
    .staticon.green {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }
    .staticon.red {
        background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    }
    .staticon.orange {
        background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    }
    .staticon.blue {
        background: linear-gradient(135deg, #2b89fb -12% 0%, #3f83d5 100%);
    }
.category-name {
    padding: 0.5rem;
    font-weight: 650;
    text-align: center;
    font-size: 0.9rem;
}

.categories-scroll.dragging {
    cursor: grabbing;
    user-select: none;
}

/* Products */
.section-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    scroll-margin-top: 100px;
}

    .section-title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--border, #ccc);
        margin-right: 10px;
    }
.product-tags {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .5rem 0;
}

/*.tag {
    padding: .4rem .8rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: .2s;
}

    .tag:hover {
        background: var(--hover);
    }*/

/* FIRST TAG SELECTED BY DEFAULT */
/*.product-tags .tag:first-child {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}*/

/* Optional: selected class when clicking */
/*.tag.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}*/
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding-bottom: 15px;
}
.sales {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    padding-bottom: 15px;
}
.sale-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding:0.5rem;
    text-align:center;
}
.sale-image {
    width: 100%;
    height: 88px;
    object-fit: cover;
    border-radius: var(--radius);
}
/* Popup overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s;
}
    .popup-overlay.open {
        pointer-events: auto;
        display: flex;
    }
.delete-confirm-popup {
    display: none;
    gap: 6px;
    animation: slideIn 0.8s ease;
}

    .delete-confirm-popup.active {
        display: flex;
    }
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.confirm-btn {
    padding: 8px;
    border: none;
    border-radius: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.confirm-yes {
    background: #ef4444;
    color: white;
}

    .confirm-yes:hover {
        background: #dc2626;
        transform: scale(1.05);
    }

    .confirm-yes:active {
        transform: scale(0.95);
    }

.confirm-no {
    background: #f5f5f5;
    color: #333;
}

    .confirm-no:hover {
        background: #e8e8e8;
    }

    .confirm-no:active {
        transform: scale(0.95);
    }

.popup-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-width: 420px;
    width: 95%;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-close {
    position: absolute;
    top: -0.7rem;
    right: 0.8rem;
    font-size: 2rem;
    color: #f9f9f9;
    cursor: pointer;
}

.popup-image img {
    width: 100%;
    max-height: 180px;   /* smaller image */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.popup-content {
    padding: 0 1.2rem 1.2rem;
}
/* Flex row for name + price */
.popup-header {
    display: flex;
    justify-content: space-between; /* name on right, price on left */
    align-items: center;
}

    .popup-header h2 {
        font-size: 1.3rem;
        color: #222;
    }

    .popup-header p {
        font-size: 1.1rem;
        color: #27ae60;
        font-weight: bold;
    }
.popup-quantity {
    display: flex;
    align-items: center; /* vertical align center */
    gap: 0.8rem; /* spacing between label and control */
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    height:45px;
}

    .quantity-control input {
        width: 35%; /* center input */
        text-align: center;
        border: none;
        outline: none;
        font-size: 1rem;
    }

.qty-btn {
    flex: 1;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.4rem;
    transition: background 0.2s;
}

    .qty-btn:hover {
        background: #e0e0e0;
    }

    .qty-btn.minus {
        border-right: 1px solid #ccc;
    }

    .qty-btn.plus {
        border-left: 1px solid #ccc;
    }
#popup-price {
    font-size: 1.4rem;
    color: #27ae60;
    font-weight: bold;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 0.8rem 0;
}

/* Options styled as tags */
.option-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.options h3{
    font-size: 1rem;
    margin: 0.5rem 0;
}

.tag {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.tag input {
    display: none; /* hide checkbox */
}

.tag:hover {
    border-color: #27ae60;
    background: #f0fff5;
}

    .tag:has(input:checked) {
        border-color: #27ae60;
        background: #27ae60;
        color: #fff;
    }

.tag.disabled {
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
    background: #f9f9f9;
}

/* Add to cart button */
.pop-to-cart-button {
    display: block;
    width: 100%;
    padding: 0.4rem;
    margin-right:0.4rem;
    text-align: center;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
    .pop-to-cart-button:hover {
        background: #219150;
    }
.popup-hide {
    animation: fadeOut 0.25s forwards ease;
}
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}
@keyframes fadeOut {

    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.product-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

    .product-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

.review-product-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    margin: 6px 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: box-shadow 0.2s;
    text-decoration: none;
    position: relative;
}

.review-product-card:hover {
    box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.1);
}

.review-product-image {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 0.5rem;
}
.review-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding-top:1rem;
}
    .review-buttons .btn {
        padding: 6px 10px;
    }
.review-screen {
    padding-top: 1rem;
}
.review-screen h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    text-align: center;
}
.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-unit {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.25rem;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.add-to-cart-button {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 40%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    padding:13px;
}

    .add-to-cart-button:hover {
        opacity: 0.9;
    }

.product-card.unavailable {
    opacity: 0.6; /* faded look */
    background: #f5f5f5; /* light gray background */
    border: 1px solid #ccc; /* softer border */
    pointer-events: none; /* disable interactions */
    position: relative;
}

    .product-card.unavailable::after {
        content: "غير متوفر"; /* "Not Available" label */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0,0,0,0.7);
        color: #fff;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        font-size: 1rem;
    }

    .product-card.unavailable .add-to-cart-button {
        background: #aaa; /* gray button */
        cursor: not-allowed; /* disabled cursor */
    }

        .product-card.unavailable .add-to-cart-button svg {
            fill: #666; /* muted icon */
        }

/* Cart Panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

    .cart-panel.open {
        pointer-events: auto;
        opacity: 1;
    }

.cart-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: var(--background);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.cart-panel.open .cart-content {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-close {
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    text-align: center;
    color: var(--muted-foreground);
    padding: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    flex-wrap:wrap;
}
.cartopt {
    flex-basis: 100%;
}
    .cartopt span {
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 0.1rem 0.6rem;
        border-color: #27ae60;
        background: #27ae60;
        color: #fff;
        font-size: 0.95rem;
    }
.mopt {
    display: flex;
    align-items: center;
    gap: 5px;
}
.inputbut-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px; /* space between elements */
}

    .inputbut-row input {
        flex: 1; /* fills all space except button width */
        min-width: 0; /* prevents overflow */
    }
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary);
}
.cart-remove {
    color: hsl(0 84% 60%);
    border-radius: calc(var(--radius) - 7px);
    padding: 8px;
    align-items: center;
    height: 2rem;
    display: inline-flex;
    cursor: pointer;
    border: 0;
    background-color: #f6f6f6;
}
    .cart-remove svg{
        height:1rem;
    }
    .cart-remove:hover {
        background-color: #fff0f0;
    }
.cart-item-price {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.cart-item-controls {
    display: flex;
    align-items: center;
}

.quantity-button {
    width: 2rem;
    height: 2rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: end;
    justify-content: center;
    font-size: 1rem;
    padding-bottom:1px;
}

    .quantity-button:hover {
        background: var(--muted);
        background-color: #f7f7f7;
    }

.cart-item-quantity {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.checkout-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-align:center;
}

    .checkout-button:hover {
        opacity: 0.9;
    }

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-actions {
    display: flex;
    gap: 0.5rem;
}

.footer-icon-button {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
    color: var(--foreground);
    text-decoration: none;
}

    .footer-icon-button:hover {
        background: var(--muted);
    }


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section.order {
        height: 220px;
    }

    .stitems {
        flex-direction: column;
    }
    .products {
        grid-template-columns: 1fr;
    }

    .search-container {
        margin: 0 1rem;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
    }
}
.landing {
    text-align: center;
    max-width: 600px;
}

.landing-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: hsla(32, 95%, 44%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

    .landing-icon svg {
        width: 40px;
        height: 40px;
        color: var(--primary);
    }

.landing h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

    .landing h1 span {
        color: var(--primary);
    }

.landing p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Modal */
.modal {
    background: var(--card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px hsla(30, 20%, 20%, 0.2);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--muted-foreground);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

    .modal-close:hover {
        background: var(--secondary);
        color: var(--foreground);
    }

.modal-body {
    padding: 1.5rem;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .step.completed {
        background: var(--primary);
        color: var(--primary-foreground);
    }

    .step.active {
        background: var(--primary);
        color: var(--primary-foreground);
        transform: scale(1.1);
        box-shadow: 0 0 20px hsla(32, 95%, 44%, 0.4);
    }

    .step.inactive {
        background: var(--muted);
        color: var(--muted-foreground);
    }

.step-line {
    width: 48px;
    height: 2px;
    background: var(--muted);
    transition: all 0.3s ease;
}

    .step-line.completed {
        background: var(--primary);
    }

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

    .form-label svg {
        width: 16px;
        height: 16px;
        color: var(--primary);
    }

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    background: var(--card);
    color: var(--foreground);
    transition: all 0.2s ease;
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px hsla(32, 95%, 44%, 0.1);
    }

    .form-input::placeholder {
        color: var(--muted-foreground);
    }

    .form-input.error {
        border-color: var(--destructive);
    }

.form-error {
    font-size: 0.75rem;
    color: var(--destructive);
    margin-top: 0.25rem;
}

textarea.form-input {
    resize: none;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
}

/* Radio Group */
.radio-group {
    display: grid;
    gap: 0.5rem;
}

.radio-group-3 {
    grid-template-columns: repeat(3, 1fr);
}

.radio-group-2 {
    grid-template-columns: repeat(2, 1fr);
}

.radio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .radio-option:hover {
        border-color: hsla(142, 76%, 36%, 0.6);
        background: hsla(142, 20%, 50%, 0.05);
    }

    .radio-option.selected {
        border-color: var(--primary);
        background: hsla(142, 20%, 50%, 0.05);
    }

    .radio-option svg {
        width: 20px;
        height: 20px;
        color: var(--muted-foreground);
        transition: color 0.2s;
    }

    .radio-option.selected svg {
        color: var(--primary);
    }

    .radio-option span {
        font-size: 0.75rem;
        font-weight: 500;
        text-align: center;
    }

.radio-option-row {
    flex-direction: row;
    gap: 0.75rem;
    padding: 1rem;
}

    .radio-option-row span {
        font-size: 0.875rem;
    }

input[type="radio"] {
    display: none;
}

/* Verification Step */
.verification-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: hsla(32, 95%, 44%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .verification-icon svg {
        width: 32px;
        height: 32px;
        color: var(--primary);
    }

.verification-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .verification-text p {
        color: var(--muted-foreground);
        margin-bottom: 0.5rem;
    }

    .verification-text strong {
        font-size: 1.125rem;
        color: var(--foreground);
    }

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
    transition: all 0.2s ease;
}

    .code-input:focus {
        outline: none;
        border-color: var(--primary);
        background: hsla(32, 95%, 44%, 0.05);
    }

    .code-input.filled {
        border-color: var(--primary);
        background: hsla(32, 95%, 44%, 0.05);
    }

.resend-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

    .resend-text span {
        font-weight: 600;
        color: var(--foreground);
    }

.resend-btn {
    color: var(--primary);
}

.btn-row {
    display: flex;
    gap: 0.75rem;
}

    .btn-row .btn {
        flex: 1;
    }

/* Thank You Step */
.thankyou {
    text-align: center;
    padding: 1.5rem 0;
}

.thankyou-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
}

.thankyou-icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: hsla(142, 76%, 36%, 0.2);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.thankyou-icon-inner {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
}

    .thankyou-icon-inner svg {
        width: 48px;
        height: 48px;
        color: var(--success-foreground);
    }

.thankyou h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.thankyou p {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

    .thankyou p:last-of-type {
        font-size: 0.875rem;
        margin-bottom: 2rem;
    }

.thankyou .btn-row {
    flex-direction: column;
    gap: 0.75rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px hsla(142, 76%, 36%, 0.3);
    }

    50% {
        box-shadow: 0 0 40px hsla(142, 76%, 36%, 0.5);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .landing h1 {
        font-size: 2rem;
    }

    .radio-group-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .code-input {
        width: 40px;
        height: 48px;
    }
}
.stbar {
    padding: 0.5rem 1rem;
    background: #f9f9f9;
    border: 1px solid #e9e9e9;
    width:95%;
    margin:0.5rem auto 0;
    border-radius:1rem;
}
.stitems {
    gap: 0.5rem;
    align-items: center;
    display: flex;
}
    .stitems svg {
        width: 1rem;
        height: 1rem;
        color:#fafafa;
    }
    .stitems span {
        font-weight: 670;
        text-align: center;
    }
    .statcont {
        font-size: 0.875rem;
        line-height: 1.25rem;
        gap: 1rem;
        align-items: center;
        display: flex;
        justify-content: center;
        text-align: center;
    }
.stborder {
    background: var(--border);
    width:1px;
    height:2rem;
}
.salepercent {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: hsl(0 84% 60%);
    padding: 0 0.6rem;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 9999px;
}
.popbg {
    background: #f8f9fa;
}
.step-content{
    padding-top:1rem;
}
.step-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    text-align: center;
}

/* Food Cards */
.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.food-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, hsl(40 40% 98%), hsl(35 20% 90% / 0.3));
    border: 2px solid var(--border);
    box-shadow: 0 4px 6px -1px hsl(var(--foreground) / 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align:center;
}

    .food-card:hover {
        transform: scale(1.05);
        border-color: var(--primary);
    }

    .food-card.selected {
        border-color: var(--primary);
        box-shadow: 0 10px 40px -10px hsl(var(--primary) / 0.3);
    }

    .food-card .check {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 1.5rem;
        height: 1.5rem;
        background: var(--primary);
        z-index:999;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        animation: bounce-in 0.3s ease-out;
    }

    .food-card.selected .check {
        display: flex;
    }

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.food-card img {
    width: 100%;
    height: 5rem;
    object-fit: cover;
    margin: 0.25rem;
    transition: transform 0.3s ease;
    border-radius: 0.5rem;
}

.food-card:hover img {
    transform: scale(1.05);
}

/* Addon Options */
.addons-section {
    animation: slide-up 0.3s ease-out;
}

    .addons-section h3 {
        font-weight: 600;
        color: hsl(var(--foreground));
        margin-bottom: 0.75rem;
    }

.addon-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 2px solid hsl(var(--border));
    background: hsl(var(--card));
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

    .addon-option:hover {
        border-color: hsl(var(--accent) / 0.5);
    }

    .addon-option.selected {
        border-color: hsl(var(--accent));
        background: hsl(var(--accent) / 0.1);
    }

.addon-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.addon-check {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.addon-option .addon-check {
    background: hsl(var(--muted));
}

.addon-option.selected .addon-check {
    background: hsl(var(--accent));
}

.addon-option .addon-name {
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.addon-option.selected .addon-name {
    color: hsl(var(--foreground));
}

.addon-price {
    font-weight: 700;
    color: hsl(var(--muted-foreground));
}

.addon-option.selected .addon-price {
    color: hsl(var(--price));
}

/* Price Summary */
.price-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: hsl(var(--muted));
    border-radius: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--price));
}

.price-addons {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Order Complete */
.order-complete {
    text-align: center;
    animation: bounce-in 0.5s ease-out;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, hsl(var(--accent)), hsl(145 60% 35%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.order-complete h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.order-complete p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.total-paid {
    background: hsl(var(--muted));
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* SVG Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 2.5rem;
    height: 2.5rem;
}

.hidden {
    display: none !important;
}