/*
Theme Name: Ethereal Shop WooCommerce
Theme URI: https://etherealshopbg.com/
Author: Ethereal Shop
Description: Персонализирана WooCommerce тема по одобрения Ethereal HTML дизайн. Използва стандартния WooCommerce checkout, за да запази Speedy и платежните интеграции.
Version: 1.10.30
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ethereal-shop
WC requires at least: 8.0
WC tested up to: 10.2
License: GPL-2.0-or-later
*/

/* Основните стилове са в assets/css/theme.css. */

/* Homepage first-screen composition, matched to the approved HTML reference. */
@media (min-width: 981px) {
  body.home .hero {
    min-height: clamp(660px, 42vw, 800px);
    padding: 0;
  }

  body.home main#primary .hero-copy {
    width: min(760px, 59vw);
    max-width: 760px;
  }

  body.home main#primary .hero-copy h1 {
    max-width: 760px;
    font-size: clamp(58px, 4.8vw, 78px) !important;
    line-height: .96;
  }

  body.home main#primary .hero-copy p {
    max-width: 640px;
    margin-top: 18px;
    margin-bottom: 22px;
  }

  body.home .hero-content {
    width: min(2200px, calc(100% - 72px));
    padding-left: clamp(34px, 3vw, 68px);
    box-sizing: border-box;
  }

  body.home .info-strip-inner {
    width: 100%;
    max-width: none;
  }

  body.home .info-item {
    min-height: 96px;
    padding: 22px clamp(22px, 2.4vw, 48px) 18px;
  }
}

body.postid-1348 .apo-field[data-apo-field="fld_1_qbyoi"] .apo-opt { display:inline-flex !important; align-items:center; gap:8px; margin:8px 22px 0 0; width:auto !important; white-space:nowrap; }
body.postid-1348 .apo-field[data-apo-field="fld_1_qbyoi"] input[type="radio"] { appearance:auto !important; width:18px !important; height:18px !important; min-height:0 !important; padding:0 !important; min-width:18px !important; margin:0 !important; flex:0 0 18px; }

/* Center the product description below the details heading. */
.single-product .ethereal-main-product-description,
.single-product .ethereal-main-product-description .product-description { text-align: center; }


/* Align the cart summary with the product table. */
body.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100%;
  max-width: none;
  flex: 1 1 100%;
  float: none;
  box-sizing: border-box;
}


/* Add-to-cart confirmation on product pages. */
body.single-product .woocommerce-notices-wrapper .woocommerce-message {
  background-color: #f3dce2 !important;
  border-top-color: #b77e8d;
  margin-top: 24px;
}
@media (max-width: 767px) {
  body.single-product .woocommerce-notices-wrapper .woocommerce-message { margin-top: 16px; }
}


/* Hide help icons beside product personalization fields. */
body.single-product .apo-tip-toggle { display: none !important; }


/* Christmas collection on the homepage. */
body.home .christmas-gifts .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.home .christmas-gifts-button { display: inline-block; margin-top: 24px; }
@media (max-width: 767px) { body.home .christmas-gifts .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Match the popular product cards with square images. */
body.home .christmas-gifts-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
body.home .christmas-gifts .product-image { aspect-ratio: 1 / 1; overflow: hidden; }
body.home .christmas-gifts .product-image img { width: 100%; height: 100%; object-fit: cover; }

/* Match the size and spacing of the popular gifts section. */
body.home #christmas-gifts .container { width: min(calc(100% - 64px), 1600px); max-width: 1600px; }
body.home #christmas-gifts .product-grid { width: 100%; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 30px 24px !important; }
body.home #christmas-gifts .product-card { display: flex !important; flex-direction: column; align-self: stretch; min-width: 0; }
body.home #christmas-gifts .product-info { display: flex; flex-direction: column; flex: 1 0 auto; }
body.home #christmas-gifts .product-info > p { margin-top: auto; padding-top: 6px; }
@media (max-width: 980px) { body.home #christmas-gifts .container { width: min(calc(100% - 40px), 900px); } }
@media (max-width: 900px) { body.home #christmas-gifts .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 12px !important; } }
@media (max-width: 640px) { body.home #christmas-gifts .container { width: calc(100% - 32px); } }
