:root {
    --brand: #0f9f56;
    --ink: #18212f;
    --muted: #6b7280;
    --soft: #f4f8f5;
}

body {
    background: #f7f9fb;
    color: var(--ink);
    min-height: 100vh;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.hero {
    background: linear-gradient(120deg, #effaf3, #fff7e8);
}

.delivery-panel {
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.delivery-panel span {
    display: block;
    color: var(--muted);
    margin-top: 8px;
}

.sticky-shop-bar {
    position: sticky;
    top: 58px;
    z-index: 1020;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.category-pill {
    border: 1px solid #d6dde4;
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-size: 14px;
    padding: 8px 14px;
    text-decoration: none;
}

.category-pill.active,
.category-pill:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.product-card,
.summary-box,
.auth-card,
.address-card,
.cart-row,
.empty-state {
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
}

.product-card {
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.product-card img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.qty-control {
    align-items: center;
    display: inline-flex;
    gap: 1px;
}

.qty-value {
    min-width: 18px;
    text-align: center;
}

.cart-row {
    margin-bottom: 12px;
    padding: 14px;
}

.cart-item-main {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 92px 1fr auto;
}

.cart-item-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: 108px;
    margin-top: 8px;
}

.cart-row img {
    border-radius: 8px;
    height: 92px;
    object-fit: cover;
    width: 92px;
}

.summary-box {
    padding: 20px;
}

.empty-state {
    color: var(--muted);
    padding: 32px;
    text-align: center;
}

.auth-bg {
    align-items: center;
    background: var(--soft);
    display: flex;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    margin: auto;
    max-width: 420px;
    padding: 28px;
    width: 100%;
}

.address-card {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 18px;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e4e8ee;
    color: var(--muted);
    margin-top: 32px;
    padding: 18px 0;
    text-align: center;
}

.auth-bg {
    flex-direction: column;
}

.auth-bg .site-footer {
    background: transparent;
    border-top: 0;
    margin-top: 18px;
    width: 100%;
}

@media (max-width: 767px) {
    .sticky-shop-bar {
        top: 56px;
    }

    .address-card {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-item-main {
        gap: 10px;
        grid-template-columns: 68px minmax(0, 1fr) auto;
    }

    .cart-row img {
        height: 68px;
        width: 68px;
    }

    .cart-item-info {
        min-width: 0;
    }

    .cart-item-info h2,
    .cart-item-info p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cart-row .line-total {
        font-size: 14px;
        text-align: right;
        white-space: nowrap;
    }

    .cart-item-actions {
        justify-content: space-between;
        margin-left: 78px;
        margin-top: 12px;
    }
}
