* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    background: #f7f7f7;
    color: #222;
}

.header {
    background: #f65353;
    /* GAMMA red */
    padding: 16px;
    text-align: center;
}

.logo {
    height: 36px;
}

.container {
    padding: 16px;
}

.title {
    margin-bottom: 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.hidden {
    display: none;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-image {
    height: 120px;
    border-radius: 12px;
    background: #f2f2f2;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 600;
    color: #aaa;

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.product-title {
    font-size: 14px;
    font-weight: 600;
}

.product-price {
    font-size: 13px;
    color: #555;
}

.buy-btn {
    margin-top: auto;
    background: #f65353;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 14px;
    margin-bottom: 14px;

    background: #f65353;
    border: 1.5px solid #f65353;
    color: #ffffff;

    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #ff3b3b;
    color: #fff;
}

.back-btn:active {
    transform: scale(0.97);
}

.product-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-image {
    background: #f2f2f2;
    border-radius: 14px;
    height: 140px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.product-price {
    font-size: 14px;
    color: #666;
}

.buy-btn {
    margin-top: auto;
    background: #ff3b3b;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.buy-btn:active {
    transform: scale(0.98);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Карточка */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

/* Картинка */
.product-image {
    height: 180px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Заглушка */
.image-placeholder {
    color: #aaa;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Контент */
.product-info {
    padding: 14px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-price {
    font-size: 14px;
    margin-bottom: 12px;
}

/* Кнопка */
.buy-btn {
    width: 100%;
    border: none;
    background: #ff3b3b;
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
}

.buy-btn:hover {
    background: #e63232;
}

.top-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Лого */
.logo img {
    height: 48px;
    /* основной размер */
    width: auto;
    display: block;
}


/* Каталог */
.catalog-btn {
    background: #f65353;
    border: 1.5px solid #f65353;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-btn:hover {
    background: #ff3b3b;
    color: #fff;
}

.catalog-btn:active {
    transform: scale(0.97);
}

/* Поиск */
.search-box {
    flex: 1;
    display: flex;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    outline: none;
}

.search-btn {
    border: none;
    background: transparent;
    padding: 0 14px;
    cursor: pointer;
    font-size: 16px;
}

/* Иконки справа */
.header-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    background: #f3f3f3;
    border-radius: 12px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-weight: 600;
    margin-bottom: 10px;
}

.buy-btn {
    margin-top: auto;
    background: #ff3d3d;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease;
}

.buy-btn:hover {
    background: #e63636;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.product-price {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.header-categories {
    display: flex;
    gap: 12px;
    margin-left: 16px;
}

.header-category {
    padding: 8px 14px;
    background: #f3f3f3;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.header-category:hover {
    background: #ff4d4f;
    color: #fff;
}

.catalog-panel {
    position: absolute;
    top: 64px;
    /* высота header */
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    border-radius: 0 0 20px 20px;

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    transition: all .25s ease;
    z-index: 100;
}

.catalog-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.catalog-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 24px;
}

.catalog-category {
    padding: 16px;
    border-radius: 14px;
    background: #f6f6f6;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: .2s;
}

.catalog-category:hover {
    background: #ffeded;
}