/*
Theme Name: CFA Carbon
Theme URI: https://cfa-carbon.ru
Author: CFA Carbon
Author URI: https://cfa-carbon.ru
Description: Профессиональная тема для магазина карбоновых деталей CFA Carbon
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cfa-carbon
Tags: woocommerce, e-commerce, automotive, carbon
*/

/* ====================
   RESET AND BASE STYLES
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* ====================
   HEADER STYLES
   ==================== */
.site-header {
    position: relative;
    background: #1e1e1e;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    width: 50px;
    height: 40px;
}

/* Скрываем текстовый логотип на всех разрешениях */
.site-branding .site-title-text {
    display: none !important;
}

/* Скрываем логотип в хедере на мобильных (до 1024px) */
@media (max-width: 1024px) {
    .site-branding {
        display: none !important;
    }
}

/* Логотип в мобильном меню - показываем только там */
.mobile-menu-logo {
    display: none !important; /* По умолчанию скрыт */
}

@media (max-width: 1024px) {
    .nav-menu.active .mobile-menu-logo {
        display: block !important; /* Показываем в открытом мобильном меню */
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 10px;
    }
}

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

.site-title a {
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-title a:hover {
    opacity: 0.8;
}

/* Navigation Menu */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover {
    color: #ccc !important;
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1001;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu .sub-menu li:last-child {
    border-bottom: none;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon {
    width: 24px;
    height: 24px;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.header-icon:hover {
    color: #ccc !important;
}

.header-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Cart & Wishlist Count */
.cart-count,
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #666;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-toggle-icon span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Мобильное меню */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
    
    /* Анимация иконки гамбургера */
    .menu-toggle.active .menu-toggle-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .menu-toggle-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .menu-toggle-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .main-navigation .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000;
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
        z-index: 999;
    }
    
    .main-navigation .nav-menu.active {
        display: flex;
    }
    
    .main-navigation .nav-menu .menu-item {
        width: 100%;
        border-bottom: 1px solid #333;
    }
    
    .main-navigation .nav-menu .menu-item > a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }
    
    /* Подменю в мобильной версии */
    .main-navigation .nav-menu .menu-item-has-children > .sub-menu {
        position: static;
        display: none;
        background: #1a1a1a;
        padding-left: 20px;
        margin-top: 10px;
    }
    
    .main-navigation .nav-menu .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }
    
    .main-navigation .nav-menu .sub-menu .menu-item {
        border-bottom: 1px solid #2a2a2a;
    }
    
    .main-navigation .nav-menu .sub-menu .menu-item > a {
        padding: 12px 0;
        font-size: 16px;
    }
    
    
    /* Блокируем прокрутку когда меню открыто */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* ====================
   FOOTER STYLES
   ==================== */
.site-footer {
    background: #1e1e1e !important;
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 50px;
    height: 40px;
    margin-bottom: 15px;
}

.footer-description {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-menu-title,
.footer-contacts-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-contacts-text {
    font-size: 14px;
    line-height: 1.8;
}

.footer-contacts-text a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts-text a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ====================
   MAIN CONTENT
   ==================== */
.site-content {
    min-height: calc(100vh - 200px);
}

/* ====================
   WOOCOMMERCE PAGES
   ==================== */
.woocommerce-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

/* ====================
   PRODUCTS GRID/CATALOG
   ==================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* ====================
   PRODUCT CARD
   ==================== */
.woocommerce ul.products li.product,
.cfa-product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce ul.products li.product:hover,
.cfa-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product img,
.cfa-product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img,
.cfa-product-card:hover img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.cfa-product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 15px 0;
    line-height: 1.4;
    padding: 0 20px;
}

.woocommerce ul.products li.product .price,
.cfa-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #1e1e1e;
    padding: 0 20px;
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .button,
.cfa-product-card .button {
    background: #f2e93e !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 0 20px 20px;
    transition: all 0.2s ease-in-out;
    width: calc(100% - 40px);
    text-align: center;
}

.woocommerce ul.products li.product .button:hover,
.cfa-product-card .button:hover {
    background: #ffe84d !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ====================
   SINGLE PRODUCT PAGE
   ==================== */
.single-product .product {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-product .woocommerce-product-gallery {
    margin-bottom: 30px;
}

.single-product .summary {
    padding: 20px 0;
}

.single-product .product_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 20px;
}

.single-product .price {
    font-size: 28px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 20px;
}

.single-product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.single-product .cart .button {
    background: #f2e93e !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.single-product .cart .button:hover {
    background: #ffe84d !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ====================
   HERO SECTION (FRONT PAGE)
   ==================== */
.hero-section {
    background: #1e1e1e;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #ccc;
}

.hero-button {
    display: inline-block;
    background: #f2e93e !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
}

.hero-button:hover {
    background: #ffe84d !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

/* ====================
   PRODUCTS SECTION (FRONT PAGE)
   ==================== */
.products-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #1e1e1e;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.products-more {
    text-align: center;
}

/* ====================
   FEATURES SECTION
   ==================== */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.features-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #1e1e1e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    margin-bottom: 20px;
    color: #1e1e1e;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e1e1e;
}

.feature-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ====================
   WHATSAPP BUTTON
   ==================== */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #128C7E;
    color: white;
}

.whatsapp-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ====================
   UTILITIES
   ==================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ====================
   TILDA STORE PRODUCT CARDS (как на скриншоте)
   ==================== */
.cfa-tilda-store-item {
    list-style: none;
}

.cfa-tilda-store-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.cfa-tilda-store-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sale badge - Tilda style */
.cfa-sale-badge-tilda {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Image - Square format like Tilda Store */
.cfa-tilda-store-image {
    position: relative;
    padding-top: 100%; /* 1:1 square ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.cfa-tilda-store-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.cfa-tilda-store-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cfa-tilda-store-card:hover .cfa-tilda-store-image img {
    transform: scale(1.04);
}

/* Product Content */
.cfa-tilda-store-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.cfa-tilda-store-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    padding: 0;
    color: #000000;
    min-height: 40px;
}

.cfa-tilda-store-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cfa-tilda-store-title a:hover {
    color: #333333;
}

/* Red Price - точно как на Tilda */
.cfa-tilda-store-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff0000 !important;
    margin: 0 0 15px 0;
    padding: 0;
}

.cfa-tilda-store-price .amount,
.cfa-tilda-store-price ins,
.cfa-tilda-store-price .woocommerce-Price-amount {
    color: #ff0000 !important;
    text-decoration: none;
}

.cfa-tilda-store-price del {
    opacity: 0.6;
    margin-right: 8px;
    font-size: 16px;
}

/* Yellow Button - точно как на Tilda */
.cfa-tilda-store-actions {
    margin-top: auto;
}

.cfa-tilda-store-button {
    background: #f2e93e !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-transform: none;
}

.cfa-tilda-store-button:hover {
    background: #ffe84d !important;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* ====================
   TILDA-STYLE PRODUCT POPUP
   ==================== */
.cfa-product-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto; /* Скролл на всем оверлее */
}

.cfa-product-popup.active {
    display: flex;
}

.cfa-popup-content {
    background: #ffffff;
    border-radius: 0; /* Tilda style - без скругления */
    max-width: 1100px;
    width: 100%;
    max-height: none; /* Убрать ограничение высоты */
    min-height: auto;
    overflow: visible; /* Убрать скролл с контента */
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 40px auto; /* Центрирование и отступы сверху/снизу */
}

.cfa-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.cfa-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.cfa-popup-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.cfa-popup-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cfa-popup-main-image {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.cfa-popup-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tilda-style thumbnail gallery at the bottom */
.cfa-popup-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.cfa-popup-thumbnail {
    flex: 0 0 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cfa-popup-thumbnail:hover,
.cfa-popup-thumbnail.active {
    border-color: #000000;
}

.cfa-popup-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cfa-popup-info-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px 0;
}

.cfa-popup-info-section .price {
    font-size: 24px;
    font-weight: 700;
    color: #ff0000;
    margin: 0 0 25px 0;
}

.cfa-popup-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.cfa-popup-meta {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 20px 0;
    margin: 0 0 25px 0;
}

.cfa-popup-meta-item {
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
}

.cfa-popup-meta-item:last-child {
    margin-bottom: 0;
}

.cfa-popup-meta-item strong {
    color: #000000;
    margin-right: 8px;
}

.cfa-popup-add-to-cart {
    background: #f2e93e !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
    display: block;
    text-align: center;
}

.cfa-popup-add-to-cart:hover {
    background: #ffe84d !important;
    color: #000000 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Адаптивность попапа для планшетов */
@media (max-width: 1024px) {
    .cfa-popup-content {
        margin: 20px auto;
    }
    
    .cfa-popup-inner {
        padding: 35px;
        gap: 35px;
    }
}

/* Адаптивность попапа для мобильных */
@media (max-width: 768px) {
    .cfa-product-popup {
        padding: 10px;
        align-items: flex-start; /* Выравнивание по верху */
    }
    
    .cfa-popup-content {
        margin: 10px auto;
        border-radius: 0;
    }
    
    .cfa-popup-inner {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 20px;
    }
    
    .cfa-popup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .cfa-popup-info-section h1 {
        font-size: 22px !important;
    }
    
    .cfa-popup-info-section .price {
        font-size: 20px !important;
    }
    
    .cfa-popup-thumbnail {
        flex: 0 0 60px;
        height: 45px;
    }
    
    .cfa-popup-add-to-cart {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .cfa-popup-inner {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .cfa-popup-info-section h1 {
        font-size: 18px !important;
    }
    
    .cfa-popup-description,
    .cfa-popup-meta-item {
        font-size: 13px !important;
    }
}
