:root {
    --primary: #0d6efd;
    --accent: #2563eb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #e5e7eb;
    font-family: Inter, Arial, sans-serif;
    color: #111827;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.app-shell {
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
    background: #f8fafc;
    padding-bottom: 86px;
    box-shadow: 0 0 30px rgba(15, 23, 42, .12);
}

.hero {
    padding: 12px;
}

.hero-banner {
    position: relative;
    height: 180px;
    border-radius: 24px;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero-banner-gradient {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .35), transparent 38%),
        linear-gradient(135deg, var(--primary), #0f172a 55%, #020617);
}

.floating-badge {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: white;
    font-size: 12px;
    backdrop-filter: blur(12px);
}

.shop-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: -38px;
    padding: 0 14px;
    position: relative;
    z-index: 2;
}

.shop-logo {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background: white;
    border: 5px solid #f8fafc;
    box-shadow: 0 12px 25px rgba(15, 23, 42, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-logo span {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent);
}

.shop-info {
    padding-top: 36px;
}

.shop-info h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.1;
}

.welcome {
    margin: 5px 0 0;
    color: var(--accent);
    font-weight: 900;
    letter-spacing: .5px;
    font-size: 13px;
}

.shop-description-card {
    margin-top: 18px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .06);
}

.shop-description-card p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.5;
    font-size: 14px;
}

.shop-description-card .welcome-message {
    color: #111827;
    font-weight: 700;
}

.shop-meta {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.shop-meta span {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 10px;
    color: #334155;
    font-size: 13px;
}

.quality-box {
    margin-top: 12px;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 900;
    font-size: 13px;
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.btn {
    border: 0;
    min-height: 44px;
    border-radius: 15px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .22);
}

.btn-light {
    background: white;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

.btn-detail {
    background: #eef2ff;
    color: #3730a3;
}

.btn-disabled {
    background: #e5e7eb;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-full {
    width: 100%;
}

.btn.small {
    min-height: 38px;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
}

.search-section {
    padding: 0 12px 6px;
}

.search-box {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 18px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.search-box input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 12px;
    font-size: 14px;
    min-width: 0;
}

.search-box button {
    width: 46px;
    border-radius: 14px;
    border: 0;
    background: var(--primary);
    color: white;
    cursor: pointer;
}

.section {
    padding: 12px;
}

.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
}

.section-title span,
.section-subtitle {
    color: #64748b;
    font-size: 13px;
    margin: 5px 0 0;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
}

.category-chip small {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
}

.category-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-chip.active small {
    background: rgba(255, 255, 255, .18);
    color: white;
}

.promo-slider {
    display: grid;
    gap: 12px;
}

.promo-card {
    display: grid;
    grid-template-columns: 125px 1fr;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(15, 23, 42, .06);
}

.promo-image {
    position: relative;
    min-height: 140px;
    background: #f1f5f9;
}

.promo-image img,
.product-image img,
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-content {
    padding: 13px;
}

.promo-content h3 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.3;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.product-image {
    height: 150px;
    display: block;
    position: relative;
    background: #f1f5f9;
}

.product-badges {
    position: absolute;
    left: 9px;
    top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    color: white;
}

.badge-promo {
    background: #ef4444;
}

.badge-out {
    background: #64748b;
}

.product-body {
    padding: 12px;
}

.product-category {
    margin: 0 0 4px;
    color: var(--accent);
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
}

.product-body h3 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.25;
    min-height: 35px;
}

.product-desc {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.price-row strong {
    color: #0f172a;
    font-size: 15px;
}

.price-row del {
    color: #94a3b8;
    font-size: 12px;
}

.product-actions {
    display: grid;
    grid-template-columns: .7fr 1fr;
    gap: 8px;
}

.product-actions .btn {
    min-height: 38px;
    padding: 8px;
    border-radius: 12px;
    font-size: 12px;
}

.empty-state {
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    text-align: center;
    padding: 35px 20px;
}

.empty-state div {
    font-size: 34px;
}

.empty-state h3 {
    margin: 10px 0 6px;
}

.empty-state p {
    margin: 0 0 15px;
    color: #64748b;
}

.shop-footer {
    padding: 24px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 536px);
    background: rgba(255, 255, 255, .94);
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
    border-radius: 22px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 50;
}

.bottom-nav-item {
    display: grid;
    place-items: center;
    gap: 2px;
    color: #64748b;
    font-size: 13px;
    padding: 7px 4px;
    border-radius: 16px;
}

.bottom-nav-item span {
    font-size: 18px;
    line-height: 1;
}

.bottom-nav-item small {
    font-size: 11px;
}

.bottom-nav-item.active {
    color: white;
    background: var(--primary);
}

.product-detail-page {
    padding: 12px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 12px;
    color: #334155;
    font-weight: 800;
}

.detail-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(15, 23, 42, .06);
}

.detail-image {
    height: 330px;
    background: #f1f5f9;
    position: relative;
}

.detail-body {
    padding: 16px;
}

.detail-body h1 {
    margin: 0 0 10px;
    font-size: 24px;
}

.detail-price strong {
    font-size: 22px;
}

.detail-description {
    color: #475569;
    line-height: 1.6;
    font-size: 15px;
}

.thumb-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    background: #f8fafc;
}

.thumb-list img {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

@media (min-width: 700px) {
    body {
        padding: 22px 0;
    }

    .app-shell {
        border-radius: 30px;
        overflow: hidden;
    }
}

@media (max-width: 380px) {
    .hero-actions {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .promo-card {
        grid-template-columns: 1fr;
    }

    .promo-image {
        height: 180px;
    }
}
