/*
Theme Name: Electronic Storefront
Template: best-shop
Author: gradientthemes
Author URI: https://gradientthemes.com/
Version: 1.0.5
Requires PHP: 5.6
Tested up to: 6.8.2
Description: Electronic Storefront is a modern WooCommerce WordPress theme designed for shops, storefronts, and eCommerce websites. Suitable for business owners and sellers, it helps create fast, responsive, and professional online stores with ease.
Tags: blog, one-column, two-columns, three-columns, right-sidebar, left-sidebar, grid-layout, sticky-post, footer-widgets,
custom-background, custom-header, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments,
translation-ready, full-width-template, rtl-language-support, theme-options, e-commerce, food-and-drink
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: electronic-storefront
*/

/* =========================================================
   Split: основните стилове са преместени в assests/css/
   Този файл запазва theme header (задължителен за WordPress)
   и импортира логическите части за по-добра поддръжка.
*/

/* ---------------------------------------------------------
  Внимание: логическите CSS файлове се регистрират и зареждат
  чрез `wp_enqueue_style` във `functions.php`. Оставяме този
  файл само като theme header (изискване от WordPress).
--------------------------------------------------------- */


/* =========================================================
   2. HEADER & TOP BAR
========================================================= */

#masthead {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.site-header .header-wrapper .header-left ul li.current_page_item::after {
  color: var(--gbl-secondary-color);
}

.site-header .top-bar-menu .right-menu ul li a:hover,
.site-header .top-bar-menu .right-menu ul li a:focus,
.site-header .top-bar-menu .left-menu ul li a:hover,
.site-header .top-bar-menu .left-menu ul li a:focus,
.breadcrumb-wrapper #crumbs a:hover,
.breadcrumb-wrapper #crumbs a:focus,
.site-branding .site-title a:hover,
.site-branding .site-title a:focus,
.site-main .entry-content ul li a:hover,
.site-main .entry-content ul li a:focus {
  color: var(--gbl-secondary-color);
}

/* =========================================================
   3. WOOCOMMERCE BAR & SEARCH
========================================================= */

.woocommerce-bar {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.woocommerce-bar .container {
  display: flex;
  justify-content: space-between !important;
}

.categories-menu-first {
  padding: 10px 20px 10px 4px !important;
}

div.product-search-form {
  border: 1px solid #e9e9e9;
}

/* =========================================================
   4. WOOCOMMERCE PRODUCT LISTING
========================================================= */

.custom_product_widget .woocommerce-ordering {
  display: none;
}

.custom_product_widget .woocommerce-result-count {
  font-size: 0.9em;
  margin: 0.5em 0 10px;
  font-style: italic;
}

.custom_product_widget .woocommerce nav.woocommerce-pagination .page-numbers li,
.custom_product_widget .woocommerce nav.woocommerce-pagination .page-numbers li a,
.custom_product_widget .woocommerce nav.woocommerce-pagination .page-numbers li span.page-numbers {
  line-height: 10px;
  height: 25px;
  width: 25px;
  border: initial;
  font-size: 14px;
}

/* Ensure pagination numbers are visible and centered (fix missing '2') */
nav.woocommerce-pagination .page-numbers,
nav.woocommerce-pagination .page-numbers li {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  list-style: none !important;
}

nav.woocommerce-pagination .page-numbers li a,
nav.woocommerce-pagination .page-numbers li span.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #222 !important;
  text-indent: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
}

/* Active/current page style (keeps existing look but ensures text appears) */
nav.woocommerce-pagination .page-numbers li .current,
nav.woocommerce-pagination .page-numbers li span.current {
  color: #fff !important;
}

.custom_product_widget .woocommerce a.added_to_cart {
  padding-top: 0;
  padding-bottom: 10px;
}

.hover-area .yith-wcwl-wishlistexistsbrowse {
  display: none;
}

/* Карти на продуктите с по-мек и модерен вид */
.woocommerce ul.products li.product,
.custom_product_widget li {
  background: var(--esf-card);
  border-radius: var(--esf-radius);
  box-shadow: var(--esf-soft-shadow);
  padding: 16px 16px 22px;
  border: 1px solid rgba(31, 36, 48, 0.06);
}

.woocommerce ul.products li.product img,
.custom_product_widget li img {
  border-radius: 14px;
  background: #f5f7fb;
}

/* Reserve space for product thumbnails to avoid layout shift when images load */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px; /* reserve approximate thumbnail height */
  overflow: hidden;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
}

.woocommerce ul.products li.product .price,
.custom_product_widget li .price {
  color: var(--esf-muted);
  font-weight: 600;
}

/* =========================================================
   5. PRODUCT HOVER EFFECTS
========================================================= */

.custom_product_widget li,
.woocommerce ul.products li {
  transition: transform 0.9s;
}

.custom_product_widget li:hover,
.woocommerce ul.products li:hover {
  -ms-transform: scale(1.04);
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

@media (prefers-reduced-motion: no-preference) {
  .woocommerce ul.products li.product,
  .custom_product_widget li {
    animation: esf-fade-up 0.6s ease both;
  }
}

@keyframes esf-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   6. PRELOADER
========================================================= */

.preloader-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 35%, #f7fbff 0%, #e7f0ff 55%, #ffffff 100%);
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.preloader-ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  animation: preloader-ring 1.2s linear infinite;
}

/* Mobile full-width overrides: make main content and mobile FAB span full viewport */
@media (max-width: 768px) {
  .container,
  .site,
  .site-main,
  .site-content,
  .woocommerce ul.products {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Ensure product cards use full width in single column list */
  .woocommerce ul.products li.product {
    display: block;
    width: calc(100% - 32px) !important;
    margin: 12px auto !important;
  }

  /* Make mobile FAB full-width across the screen */
  .esf-mobile-fab {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}



.preloader-ring:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 118, 255, 0.35);
  border: 4px solid rgba(0, 118, 255, 0.18);
  border-top-color: #ff9a00;
}

.preloader-center span {
  color: #1f2430;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  line-height: 72px;
  font-weight: 700;
  animation: text 1.8s ease-in-out infinite;
}

@keyframes preloader-ring {
  0%   { transform: rotate(0deg);   box-shadow: 0 6px 14px rgba(0, 118, 255, 0.25); }
  100% { transform: rotate(360deg); box-shadow: 0 6px 14px rgba(255, 154, 0, 0.25); }
}

@keyframes text {
  50% { color: #0076ff; }
}

/* =========================================================
   7. NEWSLETTER
========================================================= */

.container .footer-newsletter-section .blossomthemes-email-newsletter-wrapper {
  background: transparent;
  color: #ffffff;
  padding: 25px 0;
}

section.newsletter-section .dt-newsletter-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: transparent;
  margin: 0;
  border-radius: 0;
}

section.newsletter-section
.dt-newsletter-wrapper
.blossomthemes-email-newsletter-wrapper
.text-holder span,
section.newsletter-section
.dt-newsletter-wrapper
.blossomthemes-email-newsletter-wrapper > form > label .text {
  color: var(--footer-text-color);
}

/* =========================================================
   8. FOOTER
========================================================= */

.site-footer .footer-bottom .container.footer-info {
  border-top: 0 !important;
}

/* Footer с по-елегантен контраст и без празен credit блок */
.site-footer {
  background: radial-gradient(circle at top left, #1c1f2a 0%, #0f1116 60%);
  color: #e6ecf7;
}

.site-footer .footer-bottom-links a,
.site-footer a {
  color: #e6ecf7;
}

.site-footer .footer-bottom-links a:hover,
.site-footer a:hover {
  color: var(--esf-accent);
}

.site-footer .site-info:empty {
  display: none;
}

/* Бутони с по-изразен стил */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
button,
input[type="submit"] {
  background: linear-gradient(120deg, var(--esf-primary), #5b8bff);
  border-radius: 999px;
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px rgba(43, 110, 242, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(43, 110, 242, 0.35);
}


.entry-header .entry-title {
    word-wrap:break-word;
    -ms-word-wrap:break-word;
}

.woocommerce nav.woocommerce-pagination.esf-pagination-replaced {
  display: none;
}









