/* ========== GLOBAL STYLES ========== */
:root {
    --color-primary: #0D86E4;
    --color-primary-dark: #0a6bb8;
    --color-primary-light: #11D5F4;
    --color-bg-dark: #0d0d0d;
    --color-bg-card: #2f2f2f;
    --color-text-primary: #e5e5e5;
    --color-text-secondary: #a7a7a7;
    --border-color: #2a2a2a;
    --border-light: #3b3b3b;
    --border-radius-card: 16px;
    --border-radius-image: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1e1e1e;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    min-height: 500px;
    padding: 20px 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-light);
}

/* ========== HEADER ========== */
.gm-header {
    background: var(--color-bg-dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gm-header__top {
    padding: 12px 0;
}

.gm-header__top-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gm-header__logo {
    flex-shrink: 0;
}

.gm-header__logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.gm-header__search {
    flex: 1;
    position: relative;
}

.gm-search-form {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.gm-search-form__input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    background: #fff;
    color: #1e1e1e;
    height: 52px;
}

.gm-search-form__input::placeholder {
    color: #999;
}

.gm-search-form__button {
    background: var(--color-primary);
    border: none;
    padding: 0 28px;
    cursor: pointer;
    transition: background 0.2s;
}

.gm-search-form__button:hover {
    background: var(--color-primary-dark);
}

.gm-search-form__button svg {
    width: 22px;
    height: 22px;
}

.gm-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.gm-header__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: white;
    font-size: 11px;
    transition: color 0.2s;
}

.gm-header__action-icon {
    font-size: 20px;
    color: white;
}

.gm-header__action:hover,
.gm-header__action:hover .gm-header__action-icon {
    color: var(--color-primary-light);
}

.gm-header__nav {
    background: #181818;
    border-top: 1px solid var(--border-color);
}

.gm-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
    overflow-x: auto;
}

.gm-nav-menu li {
    padding: 12px 0;
}

.gm-nav-menu a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
}

.gm-nav-menu a:hover {
    color: var(--color-primary-light);
}

/* ========== SEARCH RESULTS ========== */
.gm-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.gm-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--color-text-primary);
}

.gm-search-result-item:hover {
    background: var(--border-light);
}

.gm-search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.gm-search-result-item__title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.gm-search-result-item__price {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 700;
}

/* ========== PRODUCT GRID (5 cards per row) ========== */
.gm-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.gm-product-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gm-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Только изображение увеличивается, карточка не меняет размер */
.gm-product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius-image);
    margin: 12px 12px 0 12px;
}

.gm-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gm-product-card:hover .gm-product-card__image img {
    transform: scale(1.05);
}

.gm-product-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-radius: var(--border-radius-image);
}

.gm-product-card__info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gm-product-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.gm-product-card__title a {
    color: var(--color-text-primary);
}

.gm-product-card__title a:hover {
    color: var(--color-primary-light);
}

.gm-product-card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 8px 0 12px;
}

.gm-product-card__btn {
    display: block;
    text-align: center;
    background: var(--color-primary);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.2s;
    margin-top: auto;
}

.gm-product-card__btn:hover {
    background: var(--color-primary-dark);
    color: white;
}

/* ========== FOOTER ========== */
.gm-footer {
    background: #181818;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 40px 0 20px;
}

.gm-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.gm-footer__logo a {
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: var(--color-primary);
    padding: 8px 16px;
    border-radius: 8px;
}

.gm-newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gm-newsletter-form__input {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    width: 280px;
}

.gm-newsletter-form__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.gm-newsletter-form__button {
    padding: 12px 24px;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.gm-newsletter-form__button:hover {
    background: var(--color-primary-dark);
}

.gm-footer__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gm-footer__col h5 {
    color: var(--color-text-primary);
    margin-bottom: 16px;
    font-size: 16px;
}

.gm-footer__col ul {
    list-style: none;
}

.gm-footer__col li {
    margin-bottom: 10px;
}

.gm-footer__col a {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.gm-footer__col a:hover {
    color: var(--color-primary-light);
}

.gm-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.gm-footer__legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.gm-footer__legal a {
    color: var(--color-text-secondary);
}

.gm-footer__legal a:hover {
    color: var(--color-primary-light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .gm-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .gm-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .gm-header__top-inner {
        flex-wrap: wrap;
    }
    .gm-header__search {
        order: 3;
        width: 100%;
    }
    .gm-header__actions {
        order: 2;
    }
    .gm-header__logo {
        order: 1;
    }
    .gm-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gm-banner-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    .gm-banner-button {
        margin-left: 0;
        margin-top: 10px;
    }
    .gm-footer__top {
        flex-direction: column;
        text-align: center;
    }
    .gm-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    .gm-footer__legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gm-products-grid {
        grid-template-columns: 1fr;
    }
    .gm-header__action-label {
        display: none;
    }
    .gm-nav-menu {
        gap: 16px;
    }
    .gm-nav-menu a {
        font-size: 11px;
    }
}