﻿/*
Theme Name: Bono Child
Theme URI: https://wpshop.ru/themes/bono
Author: WPShop.ru
Author URI: http://wpshop.ru/
Template: bono
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

/* Скрываем старую кнопку корзины */
.single_add_to_cart_button {
    display: none !important;
}

/* Стили для попапа */
/* ========== СТИЛИ ДЛЯ ПОПАПА ========== */

/* Затемнение фона */
#contactPopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

/* Контейнер попапа */
#contactPopupOverlay > div {
    background: #ffffff;
    padding: 30px 35px 35px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease;
}

/* Анимация появления */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Заголовок попапа */
#contactPopupOverlay h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #222;
}

/* Подзаголовок (можно добавить) */
#contactPopupOverlay h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #4CAF50;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Кнопка закрытия */
#popupCloseBtn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

#popupCloseBtn:hover {
    color: #333;
}

/* Поля ввода */
#contactPopupForm input {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #f9f9f9;
}

#contactPopupForm input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Кнопка отправки */
#contactPopupForm button[type="submit"] {
    background: #4CAF50;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    margin-top: 8px;
}

#contactPopupForm button[type="submit"]:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

#contactPopupForm button[type="submit"]:active {
    transform: translateY(0);
}

/* Сообщения об успехе/ошибке */
#popupMessage p {
    margin: 15px 0 0;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

#popupMessage p:first-child {
    margin-top: 15px;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    color: #aaa;
    transition: all 0.2s ease;
    line-height: 1;
    display: inline-block;
    width: 32px;
    height: 32px;
    text-align: center;
    border-radius: 50%;
    background: transparent;
}

/* Эффект при наведении */
.popup-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

/* Эффект при нажатии */
.popup-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Стиль для кнопки "Оставить заявку" на странице товара */
.custom-contact-btn {
    background: #4CAF50 !important;
    color: white !important;
    font-size: 16px !important;
    padding: 14px 28px !important;
    border-radius: 40px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 15px !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2) !important;
}

.custom-contact-btn:hover {
    background: #45a049 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(76, 175, 80, 0.3) !important;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    #contactPopupOverlay > div {
        padding: 25px 20px 30px;
        width: 92%;
    }
    
    #contactPopupOverlay h3 {
        font-size: 20px;
    }
    
    #contactPopupForm input,
    #contactPopupForm button[type="submit"] {
        padding: 12px 14px;
        font-size: 14px;
    }
}

.comment-form-email,
.comment-form-url {
    display: none !important;
}

.shop-item__buttons-cart {
    display: none !important;
}

.shop-grid {
    flex-wrap: wrap;
    justify-content: flex-start; /* Ключевое свойство: прижимает элементы к началу (влево) */
    align-items: stretch; /* Растягивает карточки по высоте для ровного вида */
}

/* Alfa Section */

.alfaSection {
      width: 100%;
      background-color: #9df2f5;
    }

    .alfaSection__container {
      width: 100%;
      max-width: 1300px;
      margin: 0 auto;
      padding: 0 38px 72px 38px;
    }

    .alfaSection__top {
      display: flex;
      gap: 30px;
      padding-top: 16px;
    }

    .alfaSection__top>* {
      flex: 1 1 50%;
    }

    .alfaSection__top-left {
      padding-top: 56px;
    }

    .alfaSection__header {
      margin-bottom: 24px;
      font-size: 48px;
      line-height: 1;
      font-weight: 700;
    }

    .alfaSection__text {
      margin-bottom: 40px;
      font-size: 18px;
      line-height: 1.3;
      max-width: 90%;
    }

    .alfaSection__btn-container {
      display: flex;
      justify-self: start;
    }

    .alfaSection__button {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0 27px;
      min-height: 56px;
      min-width: 128px;
      color: #fff;
      background-color: #ef3124;
      border-radius: 12px;
      font-weight: 500;
      font-size: 16px;
      text-decoration: none;
      transition: background 0.2s;
      white-space: nowrap;
    }

    .alfaSection__button:hover {
      background-color: #c9251a;
    }

    .alfaSection__top-right {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    .alfaSection__img-container {
      max-width: 276px;
    
      width: 100%;
    }

    .alfaSection__img {
      max-width: 100%;
      height: auto;
      display: block;
      object-fit: contain;
    }

    /* ===== BOTTOM CARDS ===== */
    .alfaSection__bottom {
      margin-top: 48px;
    }

    .alfaSection__list {
      display: flex;
      align-items: stretch;
      justify-content: start;
      gap: 24px;
      flex-wrap: wrap;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .card028 {
      width: 267px;
      min-height: 158px;
      flex-shrink: 0;
      padding: 24px;
      border-radius: 24px;
      background-color: #96e7ec;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: box-shadow 0.2s;
    }

    .card028__header {
      margin-bottom: 4px;
      font-size: 18px;
      line-height: 1.2;
      font-weight: 700;
    }

    .card028__text {
      margin-top: 4px;
      font-size: 14px;
      line-height: 1.2;
      font-weight: 400;
    }

    .card028__icon-container {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-top: 12px;
    }

    .card28__icon {
      width: 48px;
      height: auto;
      display: block;
    }


    @media (max-width: 1100px) {
      .alfaSection__container {
        padding: 0 30px 60px 30px;
      }

      .alfaSection__top {
        gap: 20px;
      }

      .alfaSection__header {
        font-size: 40px;
      }

      .alfaSection__text {
        font-size: 17px;
        max-width: 100%;
      }

      .card028 {
        width: calc(50% - 12px);
        flex-shrink: 1;
        min-width: 220px;
      }
    }


    @media (max-width: 870px) {
      .alfaSection__container {
        padding: 0 24px 48px 24px;
      }

      .alfaSection__top {
        flex-direction: column;
        gap: 16px;
      }

      .alfaSection__top-left {
        padding-top: 32px;
      }

      .alfaSection__top-right {
        justify-content: center;
      }

      .alfaSection__img-container {
        max-width: 480px;
        max-height: 380px;
        margin: 0 auto;
      }

      .alfaSection__header {
        font-size: 36px;
        margin-bottom: 16px;
      }

      .alfaSection__text {
        font-size: 16px;
        margin-bottom: 28px;
      }

      .alfaSection__button {
        min-height: 50px;
        min-width: 110px;
        font-size: 15px;
        padding: 0 22px;
      }

      .card028 {
        width: calc(50% - 12px);
        min-width: 200px;
        min-height: 150px;
        padding: 20px;
      }

      .card028__header {
        font-size: 17px;
      }

      .card028__text {
        font-size: 13px;
      }

      .card28__icon {
        width: 42px;
      }
    }


    @media (max-width: 630px) {
      .alfaSection__container {
        padding: 0 18px 40px 18px;
      }

  
      .alfaSection__top-right {
        display: none !important;
      }

      .alfaSection__top {
        flex-direction: column;
        gap: 0;
      }

      .alfaSection__top-left {
        padding-top: 24px;
        padding-bottom: 8px;
      }

      .alfaSection__header {
        font-size: 32px;
        margin-bottom: 14px;
      }

      .alfaSection__text {
        font-size: 15px;
        margin-bottom: 24px;
      }

      .alfaSection__btn-container {
        justify-content: flex-start;
      }

      .alfaSection__button {
        min-height: 48px;
        min-width: 100px;
        font-size: 14px;
        padding: 0 18px;
        white-space: normal;
        text-align: center;
      }

      .alfaSection__bottom {
        margin-top: 32px;
      }

      .alfaSection__list {
        gap: 16px;
        justify-content: center;
      }

      .card028 {
        width: 100%;
        max-width: 320px;
        flex-shrink: 1;
        min-height: 140px;
        padding: 20px;
        margin: 0 auto;
      }

      .card028__header {
        font-size: 16px;
      }

      .card028__text {
        font-size: 13px;
      }

      .card28__icon {
        width: 40px;
      }
    }

   
    @media (max-width: 480px) {
      .alfaSection__container {
        padding: 0 14px 32px 14px;
      }

      .alfaSection__header {
        font-size: 28px;
        margin-bottom: 12px;
      }

      .alfaSection__text {
        font-size: 14px;
        margin-bottom: 20px;
      }

      .alfaSection__button {
        min-height: 44px;
        min-width: 90px;
        font-size: 13px;
        padding: 0 14px;
        border-radius: 10px;
      }

      .card028 {
        padding: 16px;
        min-height: 120px;
        border-radius: 18px;
      }

      .card028__header {
        font-size: 15px;
      }

      .card028__text {
        font-size: 12px;
        margin-top: 2px;
      }

      .card28__icon {
        width: 36px;
      }
    }

   
    @media (max-width: 380px) {
      .alfaSection__header {
        font-size: 24px;
      }

      .alfaSection__text {
        font-size: 13px;
      }

      .alfaSection__button {
        min-height: 40px;
        min-width: 80px;
        font-size: 12px;
        padding: 0 12px;
      }

      .card028 {
        padding: 14px;
        min-height: 110px;
        border-radius: 16px;
      }

      .card028__header {
        font-size: 14px;
      }

      .card028__text {
        font-size: 11px;
      }

      .card28__icon {
        width: 32px;
      }
    }