:root {
    --bg-color: #2e1208;
    --bg-secondary: #4a1f0a;
    --accent-primary: #eab308;
    --accent-hover: #ca8a04;
    --text-primary: #fef3c7;
    --text-secondary: #fed7aa;
    --danger: #ef4444;
    --success: #22c55e;
    --border-color: rgba(234, 179, 8, .15);
    --glass-bg: rgba(46, 18, 8, .85);
    --font-family: "Outfit", sans-serif
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at center, #421c0b, #2e1208);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    outline: none
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px #0003, 0 2px 4px -1px #0000001a
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1
}

.brand-text span {
    color: var(--accent-primary);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 2px
}

.cart-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #eab3081a;
    transition: all .3s ease;
    border: 1px solid var(--border-color)
}

.cart-button:hover {
    background: #eab30833;
    transform: scale(1.05)
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--danger);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    box-shadow: 0 2px 4px #0000004d
}

.promotions-container {
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    width: 100%
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 25px -5px #0009;
    position: relative;
    aspect-ratio: 16/9
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform .6s cubic-bezier(.25, 1, .5, 1)
}

.carousel-slide-full {
    min-width: 100%;
    height: 100%;
    position: relative
}

.carousel-slide-full img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, #2e1208f2, #2e1208b3 40%, #0000)
}

.promo-overlay h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: .25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .9)
}

.promo-overlay p {
    font-size: 1rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .9);
    font-weight: 500
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #2e1208b3;
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    cursor: pointer
}

.carousel-control:hover {
    background: var(--accent-primary);
    color: var(--bg-color)
}

.carousel-control.prev {
    left: -15px
}

.carousel-control.next {
    right: -15px
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: all .3s ease;
    border: 1px solid var(--border-color)
}

.indicator.active {
    background: var(--accent-primary);
    transform: scale(1.2)
}

.tabs-container {
    display: flex;
    gap: 1rem;
    padding: .5rem 1.5rem 1rem;
    position: sticky;
    top: 79px;
    z-index: 40;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color)
}

.tab {
    flex: 1;
    padding: .85rem 0;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 4px 6px -1px #0003;
    border: 1px solid transparent
}

.tab.active {
    background: var(--accent-primary);
    color: var(--bg-color);
    border-color: #facc15
}

.delivery-info {
    margin: 1.5rem 1.5rem .5rem;
    padding: .75rem 1rem;
    background: #eab3081a;
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    color: var(--text-secondary)
}

.menu-section {
    padding: 1.5rem 1.5rem 3rem;
    animation: fadeIn .4s ease-out forwards
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px)
    }

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem
}

.product-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
    box-shadow: 0 4px 6px -1px #0000004d;
    border: 1px solid var(--border-color)
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px #00000080;
    border-color: var(--accent-primary)
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 2px solid var(--border-color)
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease
}

.product-card:hover .product-image {
    transform: scale(1.05)
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .5rem;
    gap: 1rem
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary)
}

.product-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-primary);
    white-space: nowrap
}

.product-description {
    font-size: .85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex: 1
}

.add-to-cart-btn {
    width: 100%;
    padding: .75rem;
    border-radius: 8px;
    background: #eab30826;
    color: var(--accent-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: all .3s ease;
    border: 1px solid transparent
}

.add-to-cart-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-color)
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: #000000b3;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto
}

.cart-sidebar {
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--bg-color);
    box-shadow: -5px 0 25px #00000080;
    transform: translate(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--accent-primary)
}

.cart-overlay.open .cart-sidebar {
    transform: translate(0)
}

.cart-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-secondary)
}

.cart-header h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--accent-primary);
    font-weight: 800
}

.close-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eab3081a;
    color: var(--accent-primary);
    transition: background .3s
}

.close-cart:hover {
    background: #eab30833
}

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: #eab3084d;
    border-radius: 10px
}

::-webkit-scrollbar-thumb:hover {
    background: #eab30880
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 179, 8, .4) transparent;
    -webkit-overflow-scrolling: touch
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    gap: 1rem
}

.cart-item {
    display: flex;
    gap: .5rem;
    background: var(--bg-secondary);
    padding: .5rem .75rem;
    border-radius: 8px;
    align-items: center;
    border: 1px solid var(--border-color);
    justify-content: space-between
}

.cart-item-img {
    display: none
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column
}

.cart-item-title {
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px
}

.cart-item-price {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: .8rem
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg-color);
    border-radius: 6px;
    padding: .15rem;
    border: 1px solid var(--border-color)
}

.qty-btn {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem
}

.qty-value {
    font-weight: 700;
    font-size: .8rem;
    min-width: 14px;
    text-align: center
}

.remove-item {
    color: var(--danger);
    padding: .35rem
}

.checkout-form {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.checkout-form h3 {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 800;
    margin-bottom: .25rem
}

.form-group {
    display: flex;
    flex-direction: column
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center
}

.input-icon svg {
    position: absolute;
    left: 12px;
    color: var(--text-secondary)
}

.input-icon input {
    width: 100%;
    padding: .85rem 1rem .85rem 2.5rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .3s
}

.input-icon input:focus {
    border-color: var(--accent-primary);
    outline: none
}

.input-icon input::placeholder {
    color: var(--text-secondary);
    opacity: .6
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.delivery-radio {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s
}

.delivery-radio:hover {
    background: #eab3080d
}

.delivery-radio.active {
    border-color: var(--accent-primary);
    background: #eab3081a
}

.delivery-radio input[type=radio] {
    accent-color: var(--accent-primary);
    width: 18px;
    height: 18px
}

.delivery-radio span {
    font-weight: 600;
    font-size: .95rem
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    background: var(--bg-secondary)
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    font-size: .95rem;
    color: var(--text-secondary)
}

.delivery-fee-line span:last-child {
    color: var(--accent-primary);
    font-weight: 700
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-primary);
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: var(--success);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all .3s ease;
    box-shadow: 0 4px 15px #22c55e4d;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem
}

.checkout-btn:hover {
    background: #16a34a;
    transform: translateY(-2px)
}

.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%) translateY(100px);
    background: var(--success);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px #22c55e66;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all .4s cubic-bezier(.68, -.55, .265, 1.55)
}

.toast-notification.show {
    transform: translate(-50%) translateY(0);
    opacity: 1;
    visibility: visible
}