:root {
    --am-red: #c8102e;
    --am-red-2: #9b0c24;
    --am-red-dark: #9b0c24;
    --am-red-light: #fff1f3;
    --am-red-rgb: 200, 16, 46;
    --am-brand-fill: var(--am-red);
    --am-brand-fill-hover: var(--am-red-dark);
    --am-gray: #6c757d;
    --am-dark: #1a1a1a;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(var(--am-red-rgb), 0.08);
    --radius: 14px;
    --bs-danger: var(--am-red);
    --bs-danger-rgb: var(--am-red-rgb);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--am-dark);
    background: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1;
}

/* Navbar */
.navbar {
    box-shadow: var(--shadow-sm);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--am-brand-fill);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    font-size: 0.9rem;
}

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

.brand-text small {
    font-size: 0.68rem;
    color: var(--am-gray);
    font-weight: 500;
}

.nav-link {
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--am-brand-fill);
    color: #fff;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--am-red);
    --bs-btn-border-color: var(--am-red);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--am-red-dark);
    --bs-btn-hover-border-color: var(--am-red-dark);
    --bs-btn-focus-shadow-rgb: var(--am-red-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--am-red-dark);
    --bs-btn-active-border-color: var(--am-red-dark);
    --bs-btn-disabled-bg: var(--am-red);
    --bs-btn-disabled-border-color: var(--am-red);
    background: var(--am-brand-fill) !important;
    border-color: var(--am-red);
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:focus-visible {
    background: var(--am-brand-fill-hover) !important;
    border-color: var(--am-red-dark);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(var(--am-red-rgb), 0.35);
}

.btn-danger:active,
.btn-danger.active,
.btn-danger.show,
.btn-check:checked + .btn-danger,
.btn-check:active + .btn-danger,
:not(.btn-check) + .btn-danger:active {
    background: var(--am-brand-fill-hover) !important;
    border-color: var(--am-red-dark) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--am-red-rgb), 0.4) !important;
}

.btn-outline-danger {
    --bs-btn-color: var(--am-red);
    --bs-btn-border-color: var(--am-red);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--am-red);
    --bs-btn-hover-border-color: var(--am-red);
    --bs-btn-focus-shadow-rgb: var(--am-red-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--am-red);
    --bs-btn-active-border-color: var(--am-red);
    color: var(--am-red);
    border-color: var(--am-red);
    background: transparent;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:focus-visible {
    background: var(--am-brand-fill) !important;
    border-color: var(--am-red);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(var(--am-red-rgb), 0.35);
}

.btn-outline-danger:active,
.btn-outline-danger.active,
.btn-check:checked + .btn-outline-danger,
:not(.btn-check) + .btn-outline-danger:active {
    background: var(--am-brand-fill-hover) !important;
    border-color: var(--am-red-dark) !important;
    color: #fff !important;
}

.text-danger {
    color: var(--am-red) !important;
}

.link-danger {
    color: var(--am-red) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--am-red);
    box-shadow: 0 0 0 0.25rem rgba(var(--am-red-rgb), 0.2);
}

.form-check-input:checked {
    background-color: var(--am-red);
    border-color: var(--am-red);
}

/* Hero */
.hero-section {
    background: var(--am-brand-fill);
    padding: 3.5rem 0 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #fff;
}

.hero-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-cta .hero-btn-primary {
    color: var(--am-red);
    font-weight: 700;
}

.hero-cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.hero-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-location {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 480px;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    border: none;
}

.hero-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--am-text, #111);
}

.hero-steps {
    display: grid;
    gap: 0.85rem;
}

.hero-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.hero-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--am-red-light);
    color: var(--am-red);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-step strong {
    display: block;
    font-size: 0.92rem;
    color: #111;
    line-height: 1.2;
}

.hero-step small {
    display: block;
    color: var(--am-gray);
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

/* Sections */
.section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.filter-bar {
    border-radius: var(--radius) !important;
}

/* Categories */
.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--am-red);
}

.category-img {
    height: 90px;
    position: relative;
    overflow: hidden;
}

.product-img {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.catalog-tile-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff5f6 0%, #f3f4f6 100%);
    overflow: hidden;
    position: relative;
}

.catalog-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.catalog-tile-img.is-hidden {
    display: none;
}

.catalog-tile-initials {
    font-weight: 700;
    color: var(--am-red);
    letter-spacing: 0.06em;
    line-height: 1;
    user-select: none;
    z-index: 0;
}

.catalog-tile-media:not(.show-initials):has(.catalog-tile-img:not(.is-hidden)) .catalog-tile-initials {
    visibility: hidden;
}

.category-img .catalog-tile-initials {
    font-size: 1.2rem;
}

.product-img .catalog-tile-initials {
    font-size: 1.6rem;
}

.cart-thumb .catalog-tile-initials {
    font-size: 0.8rem;
}

.category-card span {
    display: block;
    padding: 0.65rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.category-grid.is-collapsed .category-tile:nth-child(n + 5) {
    display: none;
}

@media (min-width: 768px) {
    .category-grid.is-collapsed .category-tile:nth-child(n + 5) {
        display: block;
    }

    .category-grid.is-collapsed .category-tile:nth-child(n + 7) {
        display: none;
    }
}

@media (min-width: 992px) {
    .category-grid.is-collapsed .category-tile:nth-child(n + 7) {
        display: block;
    }

    .category-grid.is-collapsed .category-tile:nth-child(n + 13) {
        display: none;
    }
}

.category-see-more-btn {
    min-width: 8rem;
    font-weight: 600;
}

.products-see-more-btn {
    min-width: 8rem;
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(17, 17, 17, 0.78);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.featured-products-section {
    position: relative;
}

.featured-carousel-wrap {
    position: relative;
}

.featured-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.25rem 2.5rem 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
    display: none;
}

.featured-carousel-slide {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

.featured-product-card .product-img {
    height: 140px;
}

.featured-product-card .product-name {
    font-size: 0.88rem;
}

.featured-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid #e8eaed;
    border-radius: 50%;
    background: #fff;
    color: var(--am-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.featured-carousel-btn:hover {
    background: var(--am-red-light);
    color: var(--am-red);
}

.featured-carousel-prev {
    left: 0;
}

.featured-carousel-next {
    right: 0;
}

.shop-page .section-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

/* Shop app menu */
body.shop-app-page {
    background: #f3f4f6;
}

.shop-app {
    padding-bottom: 1.5rem;
}

.shop-app-hero {
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
    border-bottom: 1px solid #eceff3;
    padding: 1rem 0 0.75rem;
}

.shop-app-hero-card {
    margin-bottom: 0.85rem;
}

.shop-app-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--am-red);
    text-decoration: none;
    margin-bottom: 0.45rem;
}

.shop-app-title {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
}

.shop-app-subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: var(--am-gray);
    line-height: 1.45;
}

.shop-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.65rem;
    font-size: 0.78rem;
    color: #4b5563;
    font-weight: 600;
}

.shop-app-search {
    position: relative;
    margin-bottom: 0.75rem;
}

.shop-app-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.shop-app-search-input {
    width: 100%;
    border: none;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    padding: 0.85rem 2.75rem 0.85rem 2.65rem;
    font-size: 0.95rem;
}

.shop-app-search-input:focus {
    outline: 2px solid rgba(var(--am-red-rgb), 0.18);
    box-shadow: 0 8px 24px rgba(var(--am-red-rgb), 0.12);
}

.shop-app-search-clear {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    text-decoration: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.shop-app-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
}

.shop-app-sort {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shop-app-sort::-webkit-scrollbar {
    display: none;
}

.shop-app-sort-chip {
    flex: 0 0 auto;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.shop-app-sort-chip.is-active {
    background: var(--am-brand-fill);
    border-color: var(--am-red);
    color: #fff;
}

.shop-category-carousel-wrap {
    position: sticky;
    top: 72px;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eceff3;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

.shop-category-carousel-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shop-category-nav {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.shop-category-nav-track {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.7rem 0.35rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shop-category-nav-track::-webkit-scrollbar {
    display: none;
}

.shop-cat-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 72px;
    max-width: 84px;
    text-decoration: none;
    color: #4b5563;
    scroll-snap-align: start;
}

.shop-cat-chip-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-cat-chip-icon.all {
    background: linear-gradient(145deg, #fff5f6, #fff);
    color: var(--am-red);
    font-size: 1.2rem;
}

.shop-cat-chip-icon .catalog-tile-img {
    border-radius: 14px;
}

.shop-cat-chip-icon .catalog-tile-initials {
    font-size: 0.85rem;
}

.shop-cat-chip-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.shop-cat-chip.is-active .shop-cat-chip-icon {
    border-color: var(--am-red);
    box-shadow: 0 6px 18px rgba(var(--am-red-rgb), 0.18);
}

.shop-cat-chip.is-active .shop-cat-chip-label {
    color: var(--am-red);
}

.shop-category-carousel-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid #e8eaed;
    border-radius: 50%;
    background: #fff;
    color: var(--am-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.shop-category-carousel-btn:hover {
    background: var(--am-red-light);
}

.shop-category-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.shop-app-content {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.shop-product-grid {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.shop-product-grid .product-card {
    height: 100%;
}

.shop-product-grid .product-img {
    height: 140px;
}

@media (min-width: 992px) {
    .shop-product-grid .product-img {
        height: 155px;
    }
}

.shop-menu-section + .shop-menu-section {
    margin-top: 1.35rem;
}

.shop-menu-section-head,
.shop-search-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.shop-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.shop-section-count {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

.shop-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-menu-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
    border: 1px solid rgba(17, 24, 39, 0.04);
}

.shop-menu-item-thumb {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.shop-menu-item-body {
    min-width: 0;
}

.shop-menu-item-top {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.shop-menu-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.shop-menu-item-badge {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--am-red);
    background: var(--am-red-light);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}

.shop-menu-item-desc {
    margin: 0.2rem 0 0;
    font-size: 0.76rem;
    color: #6b7280;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-menu-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
}

.shop-menu-item-price {
    font-size: 0.92rem;
    color: var(--am-dark);
}

.shop-menu-item-stock {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--am-red);
}

.shop-menu-item-stock-out {
    color: #6b7280;
}

.shop-menu-add-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--am-brand-fill);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(var(--am-red-rgb), 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-menu-add-btn:hover {
    color: #fff;
    transform: scale(1.05);
}

.shop-menu-add-btn.is-disabled,
.shop-menu-add-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
}

.shop-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.shop-empty i {
    font-size: 2rem;
    color: var(--am-red);
    margin-bottom: 0.75rem;
}

.shop-empty h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.shop-empty p {
    color: #6b7280;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .shop-category-carousel-wrap {
        top: 64px;
    }

    .shop-category-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .shop-cat-chip {
        min-width: 68px;
    }

    .shop-cat-chip-icon {
        width: 52px;
        height: 52px;
    }
}

/* Products */
.product-card {
    border-radius: var(--radius) !important;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
}

.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--am-brand-fill);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.stock-badge.stock-out {
    background: #6b7280;
}

.shop-pagination .page-link {
    color: var(--am-red);
    border-color: #e8eaed;
}

.shop-pagination .page-item.active .page-link {
    background: var(--am-brand-fill);
    border-color: var(--am-red);
    color: #fff;
}

.shop-pagination .page-item.active .page-link:hover,
.shop-pagination .page-item.active .page-link:focus {
    color: #fff;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--am-red);
    font-weight: 600;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.25rem 0;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.78rem;
    color: var(--am-gray);
    margin-bottom: 0.75rem;
}

.product-price {
    color: var(--am-dark);
    font-size: 1rem;
}

/* Cart */
.cart-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.qty-input {
    width: 52px !important;
}

.summary-card {
    top: 90px;
    border-radius: var(--radius) !important;
}

/* Auth */
.auth-card {
    border-radius: var(--radius) !important;
}

/* Orders */
.im-here-panel {
    background: linear-gradient(135deg, var(--am-red-light), #fff);
    border: 2px solid rgba(var(--am-red-rgb), 0.15);
}

.im-here-btn {
    animation: pulse-soft 2s infinite;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--am-red-rgb), 0.35); }
    50% { box-shadow: 0 0 0 12px rgba(var(--am-red-rgb), 0); }
}

.success-icon i {
    font-size: 4rem;
}

.order-detail-card {
    border-radius: var(--radius) !important;
}

.order-items-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

@media (min-width: 768px) {
    .order-items-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

.order-item-row {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
    background: #fafafa;
    border: 1px solid #eceff2;
    border-radius: 12px;
}

.order-item-qty {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    background: var(--am-red-light);
    color: var(--am-red);
    font-weight: 800;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-item-copy {
    min-width: 0;
}

.order-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--am-dark);
    word-break: break-word;
}

.order-item-meta {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--am-gray);
}

.order-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--am-red);
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 575.98px) {
    .order-item-row {
        gap: 0.65rem;
        padding: 0.7rem 0.75rem;
    }

    .order-item-name {
        font-size: 0.9rem;
    }

    .order-item-price {
        font-size: 0.9rem;
    }
}

/* Admin layout */
.admin-layout {
    background: linear-gradient(180deg, #f8f9fb 0%, #f3f4f6 100%);
    min-height: calc(100vh - 72px);
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #ececec;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 72px;
    z-index: 1020;
}

.admin-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
}

.admin-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-topbar-brand strong {
    display: block;
    line-height: 1.2;
    font-size: 0.95rem;
}

.admin-topbar-brand small {
    color: var(--am-gray);
    font-size: 0.72rem;
}

.admin-topbar-nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: var(--am-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.admin-nav-link:hover {
    background: var(--am-red-light);
    color: var(--am-red);
}

.admin-nav-link.active {
    background: var(--am-brand-fill);
    color: #fff;
}

.admin-content {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-eyebrow {
    color: var(--am-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-alert {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* Integration status cards */
.integration-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.15rem;
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.15s, box-shadow 0.15s;
}

.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.integration-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.integration-card.is-connected .integration-icon {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.integration-card.is-pending .integration-icon {
    background: var(--am-red-light);
    color: var(--am-red);
}

.integration-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.integration-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.integration-card.is-connected .integration-status {
    color: #198754;
}

.integration-card.is-pending .integration-status {
    color: var(--am-gray);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Settings tabs & panels */
.admin-settings-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    color: var(--am-dark);
    font-weight: 500;
    border: 1px solid transparent;
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
}

.admin-settings-tabs .nav-link:hover {
    color: var(--am-red);
    border-color: rgba(var(--am-red-rgb), 0.15);
}

.admin-settings-tabs .nav-link.active {
    background: var(--am-brand-fill);
    color: #fff;
    border-color: var(--am-red);
}

.settings-panel-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.settings-panel-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fff 0%, var(--am-red-light) 120%);
}

.settings-panel-header.compact {
    padding: 1rem 1.5rem;
}

.settings-panel-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.settings-panel-header p {
    margin: 0;
    color: var(--am-gray);
    font-size: 0.88rem;
}

.settings-panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--am-brand-fill);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.settings-panel-icon.small {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
}

.settings-panel-body {
    padding: 1.5rem;
}

.settings-hint-box {
    background: #f8f9fa;
    border: 1px solid #ececec;
    border-left: 4px solid var(--am-red);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    color: #444;
}

.settings-hint-box code {
    word-break: break-all;
    color: var(--am-red-dark);
}

.settings-save-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: sticky;
    bottom: 1rem;
    z-index: 10;
}

.admin-settings-page .admin-save-btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .admin-topbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-topbar-nav {
        justify-content: center;
    }

    .admin-store-link {
        width: 100%;
    }

    .admin-page-header {
        flex-direction: column;
    }

    .admin-save-btn {
        width: 100%;
    }

    .settings-save-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-save-bar .btn {
        width: 100%;
    }
}

/* Admin dashboard stats (existing) */
.admin-dashboard .stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--am-gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card.stat-alert .stat-value {
    color: var(--am-red);
}

.arrival-item {
    border-left: 4px solid var(--am-red) !important;
}

/* Auth */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
    color: var(--am-gray);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

/* Floating AJAX cart */
.floating-cart-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: var(--am-brand-fill);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 24px rgba(var(--am-red-rgb), 0.45);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cart-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(var(--am-red-rgb), 0.5);
}

.floating-cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.floating-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: 1055;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.floating-cart-overlay:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.floating-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 25vw;
    min-width: 300px;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cart-panel.is-open {
    transform: translateX(0);
}

.floating-cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.floating-cart-panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.floating-cart-close {
    border: none;
    background: #f3f4f6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
}

.floating-cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

.floating-cart-panel-footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}

.fc-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.fc-item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, #fff5f6, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-item-initials {
    font-weight: 700;
    color: var(--am-red);
    font-size: 0.85rem;
}

.fc-item-info {
    flex: 1;
    min-width: 0;
}

.fc-item-name {
    display: block;
    font-size: 0.88rem;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.fc-item-price {
    font-size: 0.78rem;
    color: var(--am-gray);
}

.fc-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 2px;
}

.fc-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #fff;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    color: #374151;
}

.fc-qty-val {
    min-width: 20px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.fc-item-end {
    text-align: right;
    flex-shrink: 0;
}

.fc-item-line {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.fc-remove-btn {
    border: none;
    background: none;
    color: #9ca3af;
    padding: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.fc-remove-btn:hover {
    color: var(--am-red);
}

body.floating-cart-open {
    overflow: hidden;
}

/* Active order pickup banner */
.active-order-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    display: block;
    color: inherit;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    border-top: 3px solid var(--am-red);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.active-order-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    min-height: 58px;
}

.active-order-banner-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.active-order-banner-main:hover {
    color: #fff;
}

.active-order-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--am-red-rgb), 0.18);
    color: #ff8a9b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.active-order-banner-copy {
    flex: 1;
    min-width: 0;
    color: #fff;
}

.active-order-banner-title {
    display: block;
    font-size: 0.88rem;
    line-height: 1.2;
    font-weight: 700;
}

.active-order-banner-dot {
    opacity: 0.55;
    font-weight: 400;
}

.active-order-banner-meta {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-order-banner-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--am-brand-fill);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.active-order-banner-call {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--am-brand-fill);
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.active-order-banner-call:hover,
.active-order-banner-call:focus,
.active-order-banner-call:active {
    background: var(--am-brand-fill-hover);
    color: #fff !important;
}

.active-order-banner-call i {
    font-size: 1rem;
    line-height: 1;
}

body.has-active-order-banner {
    padding-bottom: 72px;
}

body.has-active-order-banner .floating-cart-fab {
    bottom: 84px;
}

/* Store closed banner */
.store-closed-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    border-top: 2px solid #f0c040;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.store-closed-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    min-height: 52px;
    color: #7a5b00;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
}

.store-closed-banner-inner i {
    color: #c99700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

body.has-store-closed-banner {
    padding-bottom: 58px;
}

body.has-store-closed-banner .floating-cart-fab {
    bottom: calc(1.25rem + 58px);
}

body.has-store-closed-banner.has-active-order-banner {
    padding-bottom: calc(72px + 58px);
}

body.has-store-closed-banner.has-active-order-banner .floating-cart-fab {
    bottom: calc(84px + 58px);
}

body.has-store-closed-banner.has-active-order-banner .store-closed-banner {
    bottom: 72px;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #202124;
}

.otp-input {
    letter-spacing: 0.5em;
    font-weight: 700;
    font-size: 1.5rem;
}

.admin-subnav .btn {
    border-radius: 999px;
}

/* Legacy - kept for compatibility */
.settings-card {
    border-radius: var(--radius) !important;
}

.settings-card .card-header {
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid #eee;
}

.site-footer a {
    color: var(--am-gray);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--am-red);
}

.order-map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.order-map-wrap iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .hero-section {
        padding: 2.25rem 0 1.75rem;
    }

    .hero-card {
        padding: 1.25rem;
    }

    .product-img {
        height: 130px;
    }

    .im-here-btn {
        width: 100%;
    }

    .floating-cart-panel {
        width: 88vw;
        min-width: 0;
        max-width: none;
    }

    .floating-cart-fab {
        bottom: 16px;
        right: 16px;
    }
}

@media (min-width: 992px) {
    .sticky-lg-top {
        position: sticky;
        top: 90px;
        z-index: 10;
    }
}
