/* ==========================================================================
   MARTIAN STORE — UNIFIED STYLESHEET (main.css)
   Объединенный файл стилей: Base Theme + Global Design + Landing Catalog
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. СБРОС И БАЗОВЫЕ НАСТРОЙКИ (Theme Base & Resets)
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #ff4500;
    --text-color: #333333;
    --bg-color: #f7f7f7;
    --card-bg: #ffffff;
    --price-color: #e53935;
    --old-price-color: #888888;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   2. ГЛОБАЛЬНЫЕ СТИЛИ И СЕТКА (Global Design & Layout)
   -------------------------------------------------------------------------- */
.site-header {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.container-body {
    max-width: 480px;
    margin: 20px auto;
    padding: 0 10px;
}

/* --------------------------------------------------------------------------
   3. КАТАЛОГ И КАРТОЧКА ТОВАРА (Landing & Catalog Styles)
   -------------------------------------------------------------------------- */
.goods-catalog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px;
    width: 100%;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card a {
    display: block;
    text-decoration: none;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.card-title {
    margin: 12px 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.card-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 16px;
}

.card-price del {
    color: var(--old-price-color);
    font-size: 14px;
    text-decoration: line-through;
}

.card-price span {
    color: var(--price-color);
    font-weight: 700;
    font-size: 18px;
}