@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-soft: #eef2f7;
    --green: #16a34a;
    --green-2: #22c55e;
    --green-soft: #ecfdf3;
    --dark: #0f172a;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 34px rgba(15, 23, 42, 0.14);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

body.drawer-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.site-header-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 16px;
    align-items: center;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text);
}

.brand-meta {
    min-width: 0;
}

.delivery-time {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
}

.delivery-location {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.header-search-box {
    height: 54px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f9fafb;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: 0.2s ease;
}

.header-search-box:focus-within {
    background: #fff;
    border-color: var(--green-2);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08);
}

.search-icon {
    font-size: 16px;
    margin-right: 10px;
    opacity: 0.8;
}

.header-search-input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.header-search-input::placeholder {
    color: #9ca3af;
}

.header-search-btn {
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 0 20px;
    transition: 0.2s ease;
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.18);
}

.header-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(34, 197, 94, 0.22);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-login-btn,
.cart-toggle-btn {
    height: 46px;
    border-radius: 14px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid #dbe1e8;
    transition: 0.2s ease;
}

.header-login-btn {
    background: #fff;
    color: var(--text);
}

.header-login-btn:hover {
    background: #f9fafb;
    transform: translateY(-1px);
}

.cart-toggle-btn {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.cart-toggle-btn:hover {
    transform: translateY(-1px);
}

#cart-count-badge {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    padding: 0 6px;
}

.header-category-strip {
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.header-category-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.header-cat-pill {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.header-cat-pill.active,
.header-cat-pill:hover {
    border-color: var(--green);
    background: var(--green-soft);
    color: #15803d;
    transform: translateY(-1px);
}

/* =========================
   MAIN
========================= */
.page-main {
    min-height: 100vh;
}

.page-shell {
    max-width: 1380px;
    margin: 0 auto;
    padding: 14px 18px 120px;
}

/* =========================
   HERO
========================= */
.hero-section {
    margin-bottom: 16px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 12px;
}

.hero-card {
    border-radius: var(--radius-xl);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.hero-main {
    min-height: 265px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #111827 50%, #1f2937 100%);
    box-shadow: var(--shadow-lg);
}

.hero-main::after {
    content: "⚡ Delivery in 10 mins";
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 12px;
    font-weight: 800;
    background: var(--green-2);
    color: #fff;
    padding: 7px 11px;
    border-radius: 999px;
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.22);
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-main h1 {
    margin: 0 0 12px;
    max-width: 620px;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-main p {
    margin: 0 0 16px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255,255,255,0.86);
}

.hero-offer-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-offer-points span {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-btn {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-btn-primary {
    background: var(--green-2);
    color: #fff;
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.2);
}

.hero-btn-secondary {
    background: #fff;
    color: var(--text);
}

.hero-side {
    min-height: 265px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.22s ease;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.hero-side:hover {
    transform: translateY(-2px);
}

.mini-label {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17,24,39,0.09);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-side h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.2;
    color: var(--text);
}

.hero-side p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
}

.hero-yellow {
    background: linear-gradient(180deg, #fde68a 0%, #fef3c7 100%);
}

.hero-green {
    background: linear-gradient(180deg, #bbf7d0 0%, #dcfce7 100%);
}

/* =========================
   CATEGORY
========================= */
.category-showcase {
    margin-bottom: 14px;
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-title-row p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    min-height: 108px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: 0.22s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.category-card:hover,
.category-card.active {
    border-color: var(--green);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
    transform: translateY(-3px) scale(1.02);
}

.category-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.category-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

/* =========================
   RESULT STRIP
========================= */
.result-strip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.result-strip-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#result-text {
    font-size: 16px;
}

#result-subtext {
    font-size: 13px;
    color: var(--muted);
}

.soft-link {
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
}

/* =========================
   PRODUCT SECTIONS
========================= */
.products-sections {
    display: block;
}

.product-section {
    margin-bottom: 24px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.section-head h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-head span {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.products-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(172px, 190px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 12px;
}

/* =========================
   PRODUCT CARD
========================= */
.product-card {
    background: #fff;
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 332px;
    border: 1px solid var(--line-soft);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #dbe6de;
}

/* old fast-delivery pseudo removed */
.product-card::after {
    display: none !important;
    content: none !important;
}

.product-image-wrap {
    position: relative;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.04);
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 7px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.2);
}

.out-badge {
    background: #dc2626;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 38px;
}

.product-delivery,
.fast-delivery-tag,
.delivery-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    background: var(--green-soft);
    border-radius: 999px;
    padding: 5px 8px;
    margin: 0 0 6px;
    line-height: 1;
    white-space: nowrap;
}

.product-unit {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    min-height: 18px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 6px;
}

.price {
    font-size: 17px;
    font-weight: 800;
    color: #111;
}

.mrp {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    font-size: 11px;
    color: var(--green);
    font-weight: 700;
    background: var(--green-soft);
    padding: 2px 6px;
    border-radius: 999px;
}

.card-bottom-row {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
}

.add-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
    color: #fff;
    border: none;
    padding: 10px 12px;
    min-height: 42px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.16);
}

.add-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, var(--green) 100%);
    transform: translateY(-1px);
}

.mini-view-btn {
    border: 1px solid #dbe1e8;
    background: #fff;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    min-height: 40px;
    border-radius: 12px;
    transition: 0.2s ease;
    width: 100%;
}

.mini-view-btn:hover {
    background: #f9fafb;
}

.product-actions-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.qty-controller {
    width: 100%;
    border: 1.5px solid #ff2b6a;
    background: linear-gradient(135deg, #ff2b6a 0%, #ff4f83 100%);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    min-height: 42px;
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(255, 43, 106, 0.18);
}

.qty-btn {
    width: 38px;
    height: 42px;
    border: 0;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    transition: 0.2s ease;
}

.qty-btn:hover {
    background: rgba(255,255,255,0.25);
}

.qty-number {
    min-width: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.no-image-box {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
    background: #f8fafc;
}

/* =========================
   PANELS
========================= */
.loading-panel,
.empty-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 46px 20px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.empty-panel h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.empty-panel p {
    margin: 0 0 8px;
    color: var(--muted);
}

.empty-panel a {
    color: var(--green);
    font-weight: 800;
}

.load-more-wrap {
    text-align: center;
    margin-top: 8px;
}

.load-more-btn {
    border: 0;
    background: var(--dark);
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.load-more-btn:hover {
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* =========================
   CART DRAWER
========================= */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
}

.cart-drawer.active {
    pointer-events: auto;
}

.cart-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cart-drawer.active .cart-drawer-overlay {
    opacity: 1;
}

.cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(430px, 100%);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.12);
}

.cart-drawer.active .cart-drawer-panel {
    transform: translateX(0);
}

.drawer-head {
    padding: 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.drawer-head h3 {
    margin: 0 0 4px;
    font-size: 22px;
}

.drawer-head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.drawer-close-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    font-size: 28px;
    line-height: 1;
    transition: 0.2s ease;
}

.drawer-close-btn:hover {
    background: #e5e7eb;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-empty {
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    padding: 24px 14px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.drawer-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    background: #fff;
}

.drawer-item-image {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.drawer-item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.drawer-item-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}

.drawer-item-unit {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.drawer-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.drawer-foot {
    border-top: 1px solid var(--line);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
}

.drawer-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.drawer-btn {
    min-height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.drawer-btn:hover {
    transform: translateY(-1px);
}

.drawer-btn-light {
    background: #f3f4f6;
    color: var(--text);
}

.drawer-btn-primary {
    background: var(--green);
    color: #fff;
}

/* =========================
   STICKY BAR
========================= */
.sticky-checkout-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 110;
    transform: translateY(120%);
    transition: transform 0.25s ease;
}

.sticky-checkout-bar.show {
    transform: translateY(0);
}

.sticky-checkout-inner {
    max-width: 760px;
    margin: 0 auto;
    background: var(--dark);
    color: #fff;
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
    animation: pulseBar 2s infinite;
}

@keyframes pulseBar {
    0% {
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
    }
    50% {
        box-shadow: 0 16px 34px rgba(34, 197, 94, 0.25);
    }
    100% {
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
    }
}

.sticky-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sticky-meta strong {
    font-size: 15px;
}

.sticky-meta span {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.sticky-actions {
    display: flex;
    gap: 10px;
}

.sticky-cart-btn,
.sticky-checkout-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.sticky-cart-btn:hover,
.sticky-checkout-btn:hover {
    transform: translateY(-1px);
}

.sticky-cart-btn {
    border: 0;
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sticky-checkout-btn {
    background: var(--green-2);
    color: #fff;
}

/* =========================
   TOAST
========================= */
.site-toast {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 130;
    background: var(--green);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(12px);
    transition: 0.25s ease;
}

.site-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.site-toast.error {
    background: #dc2626;
}

/* =========================
   SMALL UTILITIES
========================= */
.hide {
    display: none !important;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1180px) {
    .site-header-inner {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-shell {
        padding: 12px 12px 120px;
    }

    .site-header-inner,
    .header-category-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-logo {
        font-size: 28px;
    }

    .header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .header-login-btn,
    .cart-toggle-btn {
        flex: 1;
    }

    .hero-main h1 {
        font-size: 26px;
    }

    .hero-card {
        padding: 18px;
    }

    .hero-main::after {
        top: 14px;
        right: 14px;
        font-size: 11px;
        padding: 6px 10px;
    }

    .hero-side {
        min-height: 165px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-row {
        grid-auto-columns: minmax(160px, 176px);
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .drawer-actions {
        grid-template-columns: 1fr;
    }

    .sticky-checkout-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .sticky-actions {
        width: 100%;
    }

    .sticky-cart-btn,
    .sticky-checkout-btn {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .header-search-wrap {
        grid-template-columns: 1fr;
    }

    .header-search-btn {
        width: 100%;
        height: 48px;
        border-radius: 14px;
    }

    .header-search-box {
        height: 50px;
        border-radius: 14px;
    }

    .product-card {
        min-height: 300px;
        padding: 9px;
    }

    .product-image-wrap {
        height: 118px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-delivery,
    .fast-delivery-tag,
    .delivery-tag {
        font-size: 10px;
        padding: 5px 7px;
    }

    .price {
        font-size: 16px;
    }

    .cart-drawer-panel {
        width: 100%;
    }
}