/*
Theme Name: Alma Distribution Child
Template: astra
Version: 1.0
Description: Alma Distribution - официальный дистрибьютор GCC
Author: Alma Distribution
*/

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body, button, input, select, textarea {
    font-family: 'Inter', sans-serif !important;
}

/* ===== HEADER ===== */
.ast-site-header-wrap, .main-header-bar {
    border-bottom: 1px solid #e5e5e5 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.ast-masthead-custom-menu-items .widget,
#masthead .ast-masthead-custom-menu-items {
    display: flex;
    align-items: center;
}

/* Logo area */
.ast-site-identity {
    padding: 10px 0;
}

/* Nav links */
.main-header-menu .menu-item > a,
.main-navigation .main-header-menu .menu-item > a {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    padding: 8px 14px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.15s !important;
}

.main-header-menu .menu-item > a:hover,
.main-navigation .main-header-menu .menu-item > a:hover {
    color: #000 !important;
    border-bottom-color: #000 !important;
    background: transparent !important;
}

/* ===== BUTTONS ===== */
.ast-btn, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #place_order,
.woocommerce-page #place_order {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    transition: background 0.15s !important;
}

.ast-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
    background: #333 !important;
    color: #fff !important;
}

/* WhatsApp button */
.wa-header-btn {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* ===== HERO SECTION ===== */
.alma-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

.alma-hero-left {
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
}

.alma-hero-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 16px;
}

.alma-hero-left h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
    margin-bottom: 18px;
}

.alma-hero-left h1 span {
    color: #c8001e;
}

.alma-hero-left p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 400px;
}

.alma-hero-right {
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
}

.alma-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alma-hero-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
}

/* ===== SECTION LABELS ===== */
.alma-sec-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}

.alma-sec-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 32px;
}

/* ===== CATEGORY GRID ===== */
.alma-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
}

.alma-cat-item {
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.15s;
}

.alma-cat-item:hover {
    background: #f7f7f7;
}

.alma-cat-img {
    height: 140px;
    overflow: hidden;
}

.alma-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.alma-cat-item:hover .alma-cat-img img {
    transform: scale(1.05);
}

.alma-cat-body {
    padding: 20px;
}

.alma-cat-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.alma-cat-body p {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.alma-cat-arr {
    font-size: 12px;
    color: #c8001e;
    font-weight: 600;
    margin-top: 12px;
}

/* ===== WOOCOMMERCE PRODUCT CARDS ===== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #fff !important;
    border: none !important;
    border-right: 1px solid #e5e5e5 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    padding: 16px 20px 0 !important;
}

.woocommerce ul.products li.product .price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    padding: 0 20px !important;
}

.woocommerce ul.products li.product a.button {
    margin: 0 20px 20px !important;
    width: calc(100% - 40px) !important;
    text-align: center !important;
    background: #111 !important;
    border-radius: 0 !important;
}

.woocommerce ul.products li.product a img {
    border-radius: 0 !important;
    padding: 16px !important;
    background: #f2f2f2 !important;
    height: 200px !important;
    object-fit: contain !important;
}

/* ===== CTA BLOCK ===== */
.alma-cta {
    background: #111;
    padding: 56px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.alma-cta h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.alma-cta p {
    font-size: 15px;
    color: #aaa;
}

/* ===== FOOTER ===== */
.site-footer, .ast-small-footer {
    background: #f7f7f7 !important;
    border-top: 1px solid #e5e5e5 !important;
}

.ast-footer-copyright {
    font-size: 12px !important;
    color: #aaa !important;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.alma-wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

.alma-wa-float svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

/* ===== PRODUCT BADGES ===== */
.alma-badge {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    letter-spacing: 0.05em;
}

.alma-badge.red {
    background: #c8001e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .alma-hero {
        grid-template-columns: 1fr;
    }
    .alma-hero-right {
        height: 300px;
    }
    .alma-hero-left {
        padding: 40px 24px;
    }
    .alma-hero-left h1 {
        font-size: 30px;
    }
    .alma-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .alma-cta {
        grid-template-columns: 1fr;
    }
}
