body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #f7f7f7;
    color: #222;
}

.app {
    max-width: 430px;
    margin: auto;
    min-height: 100vh;
    background: #fff;
        overflow: hidden;   /* ← ВАЖНО */
}

/* HEADER */
.header {
    position: relative;
    height: 160px;
    background: url(https://images.unsplash.com/photo-1520975916090-3105956dac38) center / cover no-repeat;
    padding: 20px;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.header-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.header-city{
        display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.city-wrapper {
    position: relative;
    margin-bottom: 14px;
}

.city-current {
    display: flex;
    align-items: center;
    gap: 10px;
    /* background: rgba(255, 255, 255, 0.95); */
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    cursor: pointer;
}

.city-current i:first-child {
    color: rgba(0, 0, 0, 0.5);
}

.city-current .arrow {
    font-size: 12px;
    transition: 0.3s;
}

.city-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    color: #333;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 10;
}

.city-dropdown div {
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.2s;
}

.city-dropdown div:hover {
    background: #f2f2f2;
}

.city-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* SEARCH */
.search-wrapper input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 14px;
    border: none;
    font-family: 'Montserrat';
    font-size: 14px;
    outline: none;
    background: rgba(255,255,255,0.95);
}

/* PROMO */
.promo {
    margin-top: 20px;
}

.promo .tag {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 1px;
}

.promo h2 {
    margin: 6px 0 4px;
    font-weight: 600;
    font-size: 22px;
}

.promo p {
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    opacity: 0.9;
}

/* CATEGORIES */    
.menu-icons {
position: relative;
    display: flex;
    gap: 14px;
    padding: 34px 8px;
    background: #fff;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0px -1px 12px 7px rgba(0, 0, 0, 0.08);
}

.menu-icons::-webkit-scrollbar {
    display: none;
}

.menu-item {
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
}


.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: 0.2s ease;
}

.icon-box i {
    font-size: 17px;
    color: #333;
}

.menu-item:hover .icon-box {
    background: #111;
}

.menu-item:hover i {
    color: #fff;
}

.section {
    padding: 0 16px;
    margin-top: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.brands {
    padding: 20px;
    display: flex;
    gap: 14px;
    overflow-x: auto;  
    overflow-y: hidden;
}

.brands::-webkit-scrollbar {
    display: none; 
}

.brand-card {
    min-width: 140px;  
    flex: 0 0 auto;  
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.brand-card img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: 0.25s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
}

.brand-card:hover img {
    filter: grayscale(0%);
}
.products {
    padding: 20px;
    /* background: #f2f2f2; */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 50px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #333;
}

.product-body {
    display: flex;
    padding: 10px;
    flex-direction: row-reverse;
    justify-content: space-between;
        margin-top: auto; /* вот это прижимает вниз */
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 2;  
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 10px;
}
.product-brand{
    display: flex;
    padding: 0px 10px;
    flex-direction: row-reverse;
}

.product-price {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.price-wrapper {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 3px;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 11px;
}

.new-price {
    color: #e53935;
    font-weight: 500;
    font-size: 14px;
}

.product-price {
    font-weight: 500;
    font-size: 14px;
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53935;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
    animation: glow 1.2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #ff4d4d,
                    0 0 10px #ff4d4d;
    }
    to {
        box-shadow: 0 0 15px #ff0000,
                    0 0 25px #ff0000;
    }
}

.product-rating {
    font-size: 12px;
    color: #ff9800;
}

.product-brand {
    font-size: 12px;
    color: #666;
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.bottom-nav a {
    text-decoration: none;
    color: #777;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bottom-nav a i {
    font-size: 18px;
}

.bottom-nav a.active {
    color: #000;
}