/* =========================================
   КНОПКИ И ВИДЖЕТЫ
   ========================================= */
.btn { display: inline-block; text-decoration: none; padding: 14px 35px; border-radius: 30px; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--primary-color); color: white; box-shadow: 0 8px 25px rgba(194, 120, 3, 0.2); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary-outline { border: 2px solid white; color: white; background: transparent; }
.btn-secondary-outline:hover { background: white; color: var(--dark-bg); transform: translateY(-2px); }
.filter-btn { background: #ffffff; border: 1px solid #eaddd3; color: var(--text-muted); padding: 10px 24px; border-radius: 30px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--dark-bg); color: white; border-color: var(--dark-bg); box-shadow: 0 8px 20px rgba(61, 23, 2, 0.15); }

.fav-widget, .cart-widget { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: transform 0.2s ease; }
.fav-widget.bump, .cart-widget.bump { transform: scale(1.15); }

/* =========================================
   КАРТОЧКА ТОВАРА
   ========================================= */
.product-card { background: var(--bg-card); border-radius: 16px; border: 1px solid #f3ebe3; padding: 25px; box-shadow: var(--card-shadow); position: relative; display: flex; flex-direction: column; transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(120, 72, 22, 0.08); }
.product-image-area { width: 100%; height: 200px; background-color: #fcfaf7; border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img { transform: scale(1.04); }
.product-card h3 { font-size: 1.4rem; margin-bottom: 8px; line-height: 1.3; }
.product-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 15px; flex-grow: 1; line-height: 1.5; }
.about-honey-link { display: inline-block; color: var(--primary-color); font-size: 0.85rem; font-weight: 700; margin-bottom: 20px; text-decoration: none; border-bottom: 1px dashed var(--primary-color); width: fit-content; transition: var(--transition); }
.about-honey-link:hover { color: var(--primary-hover); border-color: var(--primary-hover); }
.weight-selector { background: #fffcf9; padding: 6px; border-radius: 10px; border: 1px solid #f3ebe3; margin-bottom: 20px; }
.format-select { width: 100%; padding: 10px; border-radius: 8px; border: none; background: transparent; font-weight: 600; color: var(--text-main); outline: none; }
.price-block { margin-bottom: 20px; }
.price { font-size: 1.7rem; font-weight: 800; color: var(--text-main); }
.product-actions { display: flex; flex-direction: column; gap: 10px; }
.product-actions-bottom { display: flex; gap: 10px; }
.btn-buy { background: var(--dark-bg); color: white; border: none; font-size: 1rem; font-weight: 700; padding: 14px 20px; border-radius: 25px; cursor: pointer; transition: var(--transition); width: 100%; }
.btn-buy:hover { background: var(--primary-color); }
.btn-buy.in-cart { background: #2e7d32; }
.btn-one-click, .btn-favorite { flex: 1; background: transparent; border: 1px solid #d1cedc; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; padding: 12px 10px; border-radius: 25px; cursor: pointer; transition: var(--transition); text-align: center; }
.btn-one-click:hover, .btn-favorite:hover { color: var(--primary-color); border-color: var(--primary-color); background: #fdfbf7; }
.btn-favorite.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

.premium-buy-card { background: #ffffff; border: 1px solid #f3ebe3; border-radius: 24px; padding: 35px; box-shadow: var(--card-shadow); position: relative; }
.card-honey-badge { position: absolute; top: 30px; right: 35px; background: #e8f5e9; color: #2e7d32; font-size: 0.75rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.premium-buy-card h3 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 8px; }
.card-meta { font-size: 0.85rem; color: #a8a29e; margin-bottom: 30px; }
.card-price-block { background: #fffbf7; border-radius: 14px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border: 1px solid #fbf4ec; }
.price-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.price-amount { font-size: 2.1rem; font-weight: 800; color: var(--text-main); }
.card-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 35px; }
.feat-item { font-size: 0.9rem; color: #57534e; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.btn-card-buy { display: block; background: var(--primary-color); color: white; text-align: center; text-decoration: none; padding: 16px 25px; border-radius: 30px; font-weight: 700; font-size: 1.05rem; box-shadow: 0 10px 25px rgba(194, 120, 3, 0.2); transition: var(--transition); }
.btn-card-buy:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(194, 120, 3, 0.3); }

/* =========================================
   МИНИ-ЭЛЕМЕНТЫ (КОРЗИНА, ДОСТАВКА)
   ========================================= */
.cart-line-item { display: flex; gap: 15px; padding: 15px; background: #fff; border: 1px solid #eae4de; border-radius: 8px; margin-bottom: 15px; }
.cart-line-thumb img { width: 65px; height: 65px; object-fit: cover; border-radius: 6px; }
.cart-line-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.cart-line-info h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--dark-bg); margin-bottom: 2px; }
.cart-line-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-line-qty { display: inline-flex !important; align-items: center; justify-content: space-between; width: 90px; background: #fdfbf7; border: 1px solid #eae4de; border-radius: 30px; padding: 2px 8px; margin-top: 8px; }
.cart-line-qty button { background: transparent; border: none; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; padding: 0 5px; transition: color 0.2s; }
.cart-line-qty button:hover { color: var(--primary-color); }
.cart-line-qty span { font-size: 0.95rem; font-weight: 600; color: var(--dark-bg); }
.cart-line-right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-line-remove { background: none; border: none; cursor: pointer; color: #a8a29e; transition: color 0.2s; }
.cart-line-remove:hover { color: #dc2626; }
.cart-line-remove svg { width: 20px; height: 20px; }
.cart-line-price { font-weight: 700; font-size: 1rem; color: var(--dark-bg); }

.delivery-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.delivery-label { border: 1px solid #eae4de; padding: 14px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.delivery-label:hover { border-color: var(--primary-color); }
.post-label { grid-column: 1 / -1; }

/* =========================================
   ФОРМЫ И АВТОРИЗАЦИЯ
   ========================================= */
.auth-card { background: white; padding: 45px; border-radius: 12px; border: 1px solid #eae4de; box-shadow: var(--card-shadow); width: 100%; max-width: 420px; }
.auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 2px solid #f3ebe3; }
.auth-tab { flex: 1; text-align: center; padding: 12px; background: none; border: none; font-size: 1.2rem; font-family: 'Cormorant Garamond', serif; font-weight: 700; color: #a8a29e; cursor: pointer; transition: 0.3s; outline: none; }
.auth-tab.active { color: var(--dark-bg); border-bottom: 2px solid var(--primary-color); margin-bottom: -2px; }
.auth-form { display: none; flex-direction: column; }
.auth-form.active { display: flex; }
.auth-form .form-group { margin-bottom: 20px; }
.auth-form label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: block; color: var(--dark-bg); }
.form-control { width: 100%; padding: 15px; border: 1px solid #eae4de; border-radius: 8px; font-family: inherit; font-size: 15px; }

/* =========================================
   МОДАЛЬНЫЕ ОКНА И УВЕДОМЛЕНИЯ
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-overlay.open, .modal-overlay.active { display: flex !important; opacity: 1 !important; pointer-events: auto !important; }
.modal-content { background: white; padding: 30px; border-radius: 12px; width: 90%; max-width: 400px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; background: none; border: none; color: #aaa; transition: 0.2s; }
.modal-close:hover { color: #333; }

#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 99999; display: flex; flex-direction: column; gap: 15px; }
.toast { padding: 15px 25px; border-radius: 8px; color: white; font-size: 15px; font-weight: 500; box-shadow: 0 5px 15px rgba(0,0,0,0.2); opacity: 0; transform: translateX(100%); transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { background-color: #4caf50; }
.toast.error { background-color: #f44336; }
.toast.info { background-color: #2196f3; }

/* =========================================
   АККОРДЕОН (FAQ)
   ========================================= */
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: white; border: 1px solid #eae4de; border-radius: 6px; overflow: hidden; }
.faq-question { padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--dark-bg); user-select: none; transition: background 0.2s ease; }
.faq-question:hover { background: #fdfcfb; }
.faq-toggle { font-size: 18px; color: var(--primary-color); transition: transform 0.3s ease; flex-shrink: 0; margin-left: 15px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #fdfcfb; }
.faq-answer p { padding: 0 20px 20px 20px; margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 1000px; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* =========================================
   ПЛАВАЮЩИЕ МЕССЕНДЖЕРЫ
   ========================================= */
.floating-messengers { position: fixed; bottom: 35px; right: 35px; display: flex; flex-direction: column; gap: 14px; z-index: 1000; }
.messenger-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 8px 25px rgba(0,0,0,0.1); transition: var(--transition); text-decoration: none; }
.messenger-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.messenger-btn svg { width: 24px; height: 24px; }
.messenger-btn.whatsapp { background: #25D366; }
.messenger-btn.telegram { background: #0088cc; }

/* =========================================
   БЛОК: ОТЗЫВЫ (REVIEWS)
   ========================================= */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f3ebe3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.review-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
}
.review-author strong {
    display: block;
    color: var(--dark-bg);
    font-size: 16px;
}
.review-author span {
    font-size: 13px;
    color: #888;
}
.review-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   БЛОК: СЕРТИФИКАТЫ (CERTIFICATES)
   ========================================= */
.certificates-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.cert-placeholder {
    text-align: center;
}
.cert-doc {
    width: 130px;
    height: 180px;
    background: #fdfaf6;
    border: 2px dashed #dcb27b;
    border-radius: 8px;
    margin: 0 auto 15px auto;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.cert-placeholder:hover .cert-doc {
    opacity: 1;
}
/* Рисуем иконку документа средствами CSS */
.cert-doc::after {
    content: "📄";
    font-size: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.cert-placeholder span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}