/* Brand logo, icons, prefooter, footer */

.icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.2em;
    flex-shrink: 0;
}

.icon--sm {
    width: 18px;
    height: 18px;
}

.icon--lg {
    width: 32px;
    height: 32px;
}

/* Logo */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: inherit;
}

.brand__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
    color: #1f2937;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.brand__accent {
    color: #f59e0b;
}

.brand__tagline {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    max-width: 180px;
}

.brand--compact .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
}

.brand--compact .brand__name {
    font-size: 17px;
}

.brand--footer .brand__name {
    color: #fff;
}

.brand--footer .brand__tagline {
    color: #9ca3af;
}

.brand--footer .brand__mark {
    width: 44px;
    height: 44px;
}

/* Header overrides */
.shop-header__logo img {
    display: none;
}

.shop-header__cart img {
    display: none;
}

.shop-header__cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
}

.shop-header__cart:hover .shop-header__cart-icon {
    background: #fef3c7;
    color: #b45309;
}

.shop-header__cart-icon .icon {
    width: 22px;
    height: 22px;
}

.shop-header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: #374151;
    text-decoration: none !important;
    background: #fff;
}

.shop-header__icon-btn .icon {
    width: 20px;
    height: 20px;
}

.shop-header__icon-btn:hover {
    border-color: #f59e0b;
    color: #b45309;
}

.shop-header__mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: #374151;
}

.shop-header__mobile-toggle .icon {
    width: 22px;
    height: 22px;
}

.shop-header__mobile-toggle .icon-bar {
    display: none;
}

.shop-search {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.shop-search .form-group {
    flex: 1;
    margin: 0;
}

.shop-search__input {
    width: 100%;
    height: 42px;
    border-right: none !important;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
}

.shop-search-form--mobile {
    margin: 0;
}

.shop-search-form--mobile .shop-search__input {
    height: 44px;
}

/* Search button */
.shop-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 42px;
    padding: 0;
    border: 2px solid var(--color-border);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #111827;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.shop-search__btn:hover {
    background: #374151;
    color: #fff;
}

.shop-search__btn .icon {
    width: 20px;
    height: 20px;
}

.shop-header__search form,
#search-form-mobile-top .main-search-input-div.mobile {
    display: flex;
    align-items: stretch;
}

#search-form-mobile-top .shop-search__btn {
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Catalog dropdown button */
.shop-header__catalog .main-button-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shop-header__catalog .main-button-category .icon {
    width: 18px;
    height: 18px;
    color: #fff;
}

/* Prefooter */
.site-prefooter {
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 48px 0 40px;
    margin-top: 24px;
}

.site-prefooter__title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.site-prefooter__lead {
    margin: 0 0 32px;
    text-align: center;
    color: #6b7280;
    font-size: 15px;
}

.site-prefooter__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.site-prefooter__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.site-prefooter__card:hover {
    border-color: #fbbf24;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.site-prefooter__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    border: 1px solid var(--color-border);
    margin-bottom: 4px;
}

.site-prefooter__icon .icon {
    width: 24px;
    height: 24px;
}

.site-prefooter__icon--tg {
    color: #0088cc;
    border-color: #bae6fd;
    background: #f0f9ff;
}

.site-prefooter__card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.site-prefooter__card-text {
    font-size: 13px;
    color: #6b7280;
}

.site-prefooter__card-action {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb;
    margin-top: auto;
}

.site-prefooter__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
}

.site-prefooter__fact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    text-align: center;
}

.site-prefooter__fact + .site-prefooter__fact {
    border-left: 1px solid var(--color-border);
}

.site-prefooter__fact-value {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.site-prefooter__fact-label {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

/* Footer */
.site-footer {
    background: #111827;
    color: #9ca3af;
    font-size: 14px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 48px 0 32px;
}

.site-footer__col {
    min-width: 0;
}

.site-footer__col--brand {
    padding-right: 8px;
}

.site-footer__heading,
.site-footer__title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-footer__legal {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-word;
}

.site-footer__legal a {
    color: #9ca3af;
    text-decoration: underline;
}

.site-footer__links,
.site-footer__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links li,
.site-footer__contacts li {
    margin-bottom: 10px;
}

.site-footer__links a {
    color: #d1d5db;
    text-decoration: none;
}

.site-footer__links a:hover {
    color: #fbbf24;
}

.site-footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.site-footer__contacts a {
    color: #d1d5db;
}

.site-footer__contacts a:hover {
    color: #fff;
}

.site-footer__social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    color: #fff !important;
    transition: opacity 0.15s;
}

.site-footer__social-link:hover {
    opacity: 0.85;
}

.site-footer__social-link--vk { background: #0077ff; }
.site-footer__social-link--tg { background: #0088cc; }
.site-footer__social-link--ok { background: #ee8208; }

.site-footer__bottom {
    border-top: 1px solid #374151;
    padding: 20px 0;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__disclaimer {
    max-width: 480px;
    text-align: right;
    color: #6b7280;
}

@media (max-width: 991px) {
    .site-prefooter__grid {
        grid-template-columns: 1fr;
    }
    .site-prefooter__facts {
        grid-template-columns: 1fr;
    }
    .site-prefooter__fact + .site-prefooter__fact {
        border-left: none;
        border-top: 1px solid var(--color-border);
    }
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .brand__tagline {
        display: none;
    }
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
    .site-footer__disclaimer {
        text-align: left;
    }
    .site-footer__bottom-inner {
        flex-direction: column;
    }
}
