/* === ГЛОБАЛЬНЫЕ НАСТРОЙКИ === */
body {
    background: #f6f6f6;
    color: #222;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3 {
    margin: 0;
}

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

.topbar {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.profile-btn {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}


/* === КОНТЕЙНЕР === */
.page {
    padding: 16px;
}

/* === ПОИСК === */
.search-box {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 14px;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}

/* === КАТАЛОГ === */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
}

.product-price {
    font-size: 14px;
    color: #e27f00;
    margin: 4px 0;
}

/* Кнопки + - */
.qty-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ececec;
    border: none;
    font-size: 20px;
    font-weight: bold;
}

.qty-value {
    font-size: 15px;
    font-weight: 600;
}

/* СЕРДЕЧКО */
.fav-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #ffffffdd;
    padding: 6px;
    border-radius: 50%;
    font-size: 18px;
}

/* === ПЛАВАЮЩАЯ КОРЗИНА === */
.floating-cart {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #ffb300;
    color: #000;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* === СТРАНИЦА ТОВАРА === */
.product-image {
    width: 100%;
    border-radius: 16px;
    max-height: 260px;
    object-fit: cover;
}

.product-title {
    margin-top: 14px;
    font-size: 22px;
    font-weight: 700;
}

.product-desc {
    font-size: 15px;
    margin: 10px 0 16px 0;
    color: #555;
}

.weight-select {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.add-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #ffb300;
    color: #000;
    font-size: 17px;
    font-weight: 700;
    margin-top: 12px;
}

/* === КОРЗИНА === */
.cart-item {
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-title {
    font-size: 16px;
    font-weight: 600;
}

.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 14px;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.08);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #ffb300;
    border-radius: 12px;
    border: none;
    font-size: 17px;
    font-weight: 700;
}

/* === ОФОРМЛЕНИЕ ЗАКАЗА === */
.form-field {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}

.summary-block {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    margin-top: 16px;
}

