/* ============================= */
/* TOP BAR                       */
/* ============================= */

.gd-topbar{
  background:#f4f4f4 !important;
  color:#fff !important;
  font-size:15px !important;     /* десктоп */
  line-height:1.5 !important;
  text-align:center;
  padding:.45rem .75rem;
  display:flex;
  align-items:center;            /* вертикално центриране */
  justify-content:center;
  width:100%;
}

.gd-topbar a{
  color:#000 !important;
  text-decoration:none;
  border-bottom:1px dotted rgba(255,255,255,.4);
}

/* ТОП бар на 1 ред - десктоп */
@media (min-width: 1025px) {
  .gd-topbar .gd-rot {
    overflow: visible !important;
    flex: 1 1 auto !important;
  }

  .gd-topbar .gd-rot .msg {
    white-space: nowrap !important;
  }
}
/* ТОП бар на 1 ред - мобилни */
@media (max-width: 1024px) {
  .gd-topbar .gd-rot {
    overflow: visible !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  .gd-topbar .gd-rot .msg {
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/* --- Ротация на съобщенията --- */
.gd-topbar .gd-rot{
  position:relative;
  display:block;
  overflow:hidden;
  /* предотвратява колапс при absolute .msg */
  min-height:1.5em;
}
.gd-topbar .gd-rot .msg{
  position:absolute;
  left:0; right:0;
  top:50%;                         /* вертикална референция */
  opacity:0;
  transform:translateY(-50%);      /* по подразбиране център */
  animation:gd-rot 12s infinite;
  white-space:normal;
  color:#000 !important;
}
/* Fallback: първото винаги видимо (и дава височина без анимация) */
.gd-topbar .gd-rot .msg:first-child{
  position:static;
  opacity:1;
  transform:none;
}
/* Забавяния */
.gd-topbar .gd-rot .msg:nth-child(1){ animation-delay:0s; }
.gd-topbar .gd-rot .msg:nth-child(2){ animation-delay:4s; }
.gd-topbar .gd-rot .msg:nth-child(3){ animation-delay:8s; }

@keyframes gd-rot{
  /* „диша“ около центъра (-50%) */
  0%{opacity:0; transform:translateY(-30%);}    /* влиза отдолу към центъра */
  5%,30%{opacity:1; transform:translateY(-50%);}/* идеално центрирано */
  35%,100%{opacity:0; transform:translateY(-70%);}/* излиза нагоре */
}

/* --- По-малък шрифт на мобилно --- */
@media (max-width:480px){
  .gd-topbar{
    font-size:13px !important;   /* мобилен размер */
    line-height:1.2 !important;
  }
  .gd-topbar .gd-rot{ min-height:1.2em; } /* съответства на mobile line-height */
}

/* --- Без анимация при reduced motion --- */
@media (prefers-reduced-motion: reduce){
  .gd-topbar .gd-rot .msg{
    animation:none;
    position:static;
    display:block;
    opacity:1;
    transform:none;
  }
}

.gd-topbar .gd-rot .msg a {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

/* ============================= */
/* SHOP / PRODUCT GRID / FILTERS */
/* ============================= */

/* ===== Продуктови карти ===== */
ul.products li.product{
  content-visibility:auto;
  /* ориентировъчна вътрешна височина за по-малко reflow при lazy paint */
  contain-intrinsic-size: 600px;
}
ul.products li.product:first-child{
  content-visibility:visible;
}

.woocommerce-result-count {
	display: none !important;
}

.berocket_ajax_filters_sidebar_toggle {
	color: #000;
	margin: 0;
}

.berocket_ajax_filters_sidebar_toggle {
	background: url('https://www.grandecor.bg/wp-content/uploads/2024/09/slider-1.png');
	background-size: 24px;
	background-repeat: no-repeat;
	background-position: center left;
	padding-left: 32px;
}

.berocket_ajax_filters_sidebar_toggle span {
	display: none;
}

.berocket_ajax_filters_toggle span {
	left: 0 !important;
}

.text-after-category {
	margin-top: 40px;
}

.text-after-category * {
	color: #000;
}

/* ============================= */
/* CHECKOUT / CART UI            */
/* ============================= */

.wd-checkout-prod-img img {
	min-width: 80px;
	max-width: 80px;
}

.woocommerce-checkout .wd-header-nav {
	display: none;
}

a.button.btn-cart.wc-forward {
	display: none;
}

/* ============================= */
/* BLOG / POST UI (HIDE PARTS)   */
/* ============================= */

.article-body-container .entry-meta {
	display: none;
}

.post-date {
	display: none !important;
}

.hovered-social-icons {
	display: none !important;
}

/* ============================= */
/* PRICES / SALE COLORS          */
/* ============================= */

ins bdi {
	color: #ffac99 !important;
}

/* ============================= */
/* CHECKOUT / BACK BUTTON        */
/* ============================= */

.wd-back-btn.wd-style-icon>a {
	display: none;
}

.wd-checkout-steps {
	display:none;
}

/* ============================= */
/* ARCHIVE / LAYOUT / STICKY UI  */
/* ============================= */

.archive-meta {
	margin-bottom: 3rem !important;
}

@media (min-width: 991px) {
	.content-layout-wrapper {
	align-items: unset !important;
}

.area-sidebar-1, .area-footer-1, .area-footer-2 {
	position: relative;
}

.area-sidebar-1 .widget-area, .area-footer-1 .widget-area, .area-footer-2 .widget-area {
	position: sticky;
	top: 100px;
}
}

.wd-grid-g {
	gap: 45px;
}

@media (max-width: 768px) {
	.wd-grid-g {
		gap: 40px;
	}
	.wd-shop-tools {
		justify-content: space-between;
		width: 100%;
	}
}

/* ============================= */
/* BLOG TEMPLATE LAYOUT          */
/* ============================= */

.post-template-default .page-title h3 {
	display: none;
}

.post-template-default .article-inner {
		display: flex;
    flex-direction: column;
    align-items: center;
}

.post-template-default .article-inner h1 {
	order: 0;
}

.post-template-default .meta-post-categories {
	order: 1;
}

.post-template-default .entry-header {
	order: 2;
}

.post-template-default .article-body-container {
	order: 3;
}

.post-single-page .wd-entry-meta {
	display: none;
}

.post-single-page p > a {
	color: #ffac99;
}

/* ============================= */
/* GALLERY / THUMBS              */
/* ============================= */

.wd-gallery-thumb .wd-carousel-item img {
	height: 80px;
	object-fit: cover;
}

/* ============================= */
/* CONTACT BLOCK                 */
/* ============================= */

.contact-icons {
		display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 1rem;
    color: #000;
}

/* ============================= */
/* CHECKOUT FIELDS / SUBCATEGORY */
/* ============================= */

.woocommerce-additional-fields {
	border-top: 1px solid #DCDCDC;
	padding-top: 1rem;
}

.subcategory-grid {
	border-bottom: 1px solid #DCDCDC;
	padding-bottom: 2.25rem;
}

/* ============================= */
/* LIGHTBOX (MFP)                */
/* ============================= */

.mfp-content {
	display: flex;
	justify-content: center;
	align-items: center;
}

.mfp-arrow {
  top: 50%;
  margin: 0;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  background-color: transparent;
  box-shadow: none;
  opacity: .65; }
  .mfp-arrow:hover {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    opacity: 1; }
  .mfp-arrow:before, .mfp-arrow:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    margin-top: 35px;
    margin-left: 35px;
    width: 0;
    height: 0;
    border: medium inset transparent; }
  .mfp-arrow:after {
    top: 8px;
    border-top-width: 13px;
    border-bottom-width: 13px; }
  .mfp-arrow:before {
    border-top-width: 21px;
    border-bottom-width: 21px;
    opacity: .7; }

.mfp-arrow-left {
  left: 0; }
  .mfp-arrow-left:after {
    margin-left: 31px;
    border-right: 17px solid #FFF; }
  .mfp-arrow-left:before {
    margin-left: 25px;
    border-right: 27px solid #555; }

.mfp-arrow-right {
  right: 0; }
  .mfp-arrow-right:after {
    margin-left: 39px;
    border-left: 17px solid #FFF; }
  .mfp-arrow-right:before {
    border-left: 27px solid #555; }

.mfp-figure:after {
	background: transparent;
}

.mfp-container {
	flex-direction: column;
}

.mfp-arrow {
	position: absolute;
	z-index: 1106;
}

form.cart {
	margin-top: 2rem !important;
	margin-bottom: 2rem;
}

/* ============================= */
/* FILTERS (MOBILE)              */
/* ============================= */

@media (max-width: 768px) {
	.bapf_lcontainer {
		left: 75%;
	}
}

/* ============================= */
/* NAV / ORDERING / ARCHIVE UI   */
/* ============================= */

.wd-nav>li:is(.wd-has-children,.menu-item-has-children)>a:after {
	color: #000 !important;
}

.woocommerce-ordering.wd-style-underline select {
	font-weight: 400 !important;
}

.archive.woocommerce-page .wd-sticky-loader {
	display: none !important;
}

.return-to-shop {
	display: none;
}

.out-of-stock.product-label {
	display: none !Important;
}

.stai-desktop {
	display: none !Important;
}

@media (max-width: 1024px) {
	.stai-mobile {
		display: none !important;
	}
	.stai-desktop {
		display: flex !important;
	}
}

.single-product .container-fluid {
	margin-bottom: 2rem;
}

/* ============================= */
/* SEARCH (FULL SCREEN)          */
/* ============================= */

.wd-display-full-screen-2 input[type="text"] {
	display: none;
}

.wd-display-full-screen-2 .searchform .searchsubmit {
	position: unset;width: auto;
	color: #000;
}

.search .wd-entities-title {
	margin-toP: 1rem;
}

/* ============================= */
/* GLOBAL WRAPPER / FORMS        */
/* ============================= */

body:not(.home) .main-page-wrapper {
	padding-top: 0;
}

.form-style-underlined :is(input[type='email'],input[type='date'],input[type='search'],input[type='number'],input[type='text'],input[type='tel'],input[type='url'],input[type='password'],select,textarea) {
	border-bottom-width: 2px;
	padding-bottom: 4px
}

.product-image-summary-wrap {
	margin-top: 2rem;
}

@media (max-width: 768px) {
	.product-image-summary-wrap {
		margin-top: 3rem;
	}
}

.term-description p {
	text-align: center;
}

.shop-loop-head .wd-shop-tools:first-of-type {
	display: none;
}

.shop-loop-head .wd-shop-tools {
	display: flex;
	width: 100%;
	justify-content: space-between;
}


	.archive .wd-entities-title {
		font-size: 20px !important;
	}

	.single-product .product_title {
		font-size: 32px !important;
	}

.woocommerce-ordering {
	margin-left: auto;
}

.archive.woocommerce .wd-action-btn {
	display: none;
}

.archive hr {
	max-width: unset;
	width: 100% !important;
}

@media (max-width: 768px) {
	.post-template-default .article-inner h1 {
		font-size: 24px;
	}
}

.page-id-119436 .page-title {
	margin-top: 0;
}

.wd-sub-menu li>a:hover {
	color: #FFAC99;
}

.wc-tab-inner a {
	color: #FFAC99;
}

.wd-search-full-screen-2 .wd-close-search {
   display: block !important;
}

.content-layout-wrapper.align-items-start {
	align-items: unset !important;
}

.sidebar-container.wd-inited .widget-area {
	padding-left: 20px;
}

.single-post .comments-area {
	display: none;
}

.post-template-default .wd-carousel-item .entry-header {
	height: 200px;
}

.post-template-default .wd-carousel-item .post-img-wrapp a {
	max-height: 200px;
}

@media (max-width: 768px) {
	.post-template-default .wd-carousel-item .entry-header {
		height: 150px;
	}
	
	.post-template-default .wd-carousel-item .post-img-wrapp a {
	max-height: 150px;
}
}

.widget-title {
	font-size: 24px;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #000;
}

.single-post .content-layout-wrapper {
	margin-top: -4rem;
}

/* ============================= */
/* SALE LABELS                   */
/* ============================= */

/* Размер/форма за SALE лейбъли */
.woocommerce ul.products li.product .product-labels .onsale,
.product-grid-item .product-labels .onsale,
.product-labels .onsale,
.product-labels .onsale.product-label,
.product-labels .sale-label,
.product-labels.labels-rounded .onsale,
.product-labels.labels-rounded .sale-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  transform: none !important;
}

/* SALE лейбъл винаги #ff4d4f (вкл. в търсене) */
.product-labels .onsale,
.product-labels .sale-label,
body.search .gd-onsale {
  background-color: #ffac99 !important;
  color: #fff !important;
}

/* SALE лейбъл на страница с резултати от търсене */
body.search .post-img-wrapp { position: relative; }
body.search article[id^="post-"] { position: relative; }

body.search .gd-onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 5 !important;
  pointer-events: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  padding: 0 !important;

  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  /* без цвят тук — зададен е от блока по-горе */
  transform: none !important;
}

/* ============================= */
/* PRICES / SALE (EUR+BGN)       */
/* ============================= */

.price ins .woocommerce-Price-amount,
.woocommerce ins .amount,
.woocommerce-page ins .amount {
  color:#ffac99 !important;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */

/* Фиксиране на иконите във футъра да не се раздуват */
footer .elementor-icon svg,
footer .elementor-icon-list-icon svg {
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
}

/* Без водещи точки само във футъра */
footer .elementor-widget-icon-list ul.elementor-icon-list-items,
footer .widget_nav_menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}
footer li::marker { content: ""; }

/* Колона „Информация“ – отстояния + разделители */
footer .widget_nav_menu .menu > li {
  margin: 0;
  padding: 6px 0; /* направи 4px ако искаш по-компактно */
  border-bottom: 1px solid var(--wd-divider-color, rgba(0,0,0,.08));
}
footer .widget_nav_menu .menu > li:last-child { border-bottom: 0; }

/* Колона „Контакти“ – вертикално */
footer .elementor-widget-icon-list .elementor-icon-list-items { row-gap: 6px; } /* 4–8px по избор */
footer .elementor-widget-icon-list .elementor-icon-list-item { margin: 0; }

/* Контакти: разстояние и подравняване между икона и текст */
footer .elementor-widget-icon-list .elementor-icon-list-item {
  display: flex;
  align-items: center;
}
footer .elementor-widget-icon-list .elementor-icon-list-icon + .elementor-icon-list-text {
  margin-left: 8px; /* направи 6–10px по вкус */
}

/* ============================= */
/* RELATED GRID                  */
/* ============================= */

/* Related grid: 4 колони за ≥768px, 1 колона за мобилно */
.single-product :is(section,div)[class*="related"] :is(ul.products, div.products) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 0 !important;
  list-style: none !important;
  padding: 0 !important;
}

/* Мобилно: 1 на ред */
@media (max-width: 767.98px) {
  .single-product :is(section,div)[class*="related"] :is(ul.products, div.products) {
    grid-template-columns: 1fr !important;
  }
}

/* Нулиране на чужди стилации от тема/JS (float/width/flex) */
.single-product :is(section,div)[class*="related"] :is(ul.products, div.products) :is(li.product, .product) {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  clear: none !important;
}

/* ============================= */
/* BREADCRUMBS (KILL SWITCH)     */
/* ============================= */

.wd-breadcrumbs,
.breadcrumbs,
.woocommerce-breadcrumb,
.rank-math-breadcrumb{
  display:none !important;
}

/* ============================= */
/* PRICES + CART / CHECKOUT / MINICART (FINAL) */
/* ============================= */

/* -------------------------------------------------
   A) ЦЕНИ: Категории / архив / grid
   (без основната цена на single product)
------------------------------------------------- */
body:not(.single-product) .wd-price,
body:not(.single-product) .price,
body:not(.single-product) .price .amount {
  font-size: 14px;
}

body:not(.single-product) .price del,
body:not(.single-product) .price del .amount {
  font-size: 12px;
}

/* -------------------------------------------------
   B) ЦЕНИ: Related / Upsells на single product
   (намалява рилейтед, без да пипа основната цена)
------------------------------------------------- */
.single-product :is(section,div)[class*="related"] .price,
.single-product :is(section,div)[class*="related"] .price .amount,
.single-product :is(section,div)[class*="up-sells"] .price,
.single-product :is(section,div)[class*="up-sells"] .price .amount {
  font-size: 14px;
}

.single-product :is(section,div)[class*="related"] .price del,
.single-product :is(section,div)[class*="related"] .price del .amount,
.single-product :is(section,div)[class*="up-sells"] .price del,
.single-product :is(section,div)[class*="up-sells"] .price del .amount {
  font-size: 12px;
}

/* -------------------------------------------------
   C) CHECKOUT: махаме Subtotal реда
------------------------------------------------- */
.woocommerce-checkout-review-order-table tr.cart-subtotal {
  display: none !important;
}

/* -------------------------------------------------
   D) CHECKOUT: Total = 16px, леко по-bold
------------------------------------------------- */
.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td,
.woocommerce-checkout-review-order-table tr.order-total .amount {
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* -------------------------------------------------
   E) CART: "Общо" = 16px, леко по-bold
------------------------------------------------- */
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td,
.woocommerce-cart .cart_totals .order-total .amount {
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* -------------------------------------------------
   F) MINI-CART / SIDEBAR CART (ФИНАЛНА ВЕРСИЯ)
------------------------------------------------- */

/* 1) Махаме "Покажи" надписа - РАБОТИ ✓ */
.wd-side-hidden .wd-cart-item-thumbnail a.wd-entities-title,
.widget_shopping_cart .wd-cart-item-thumbnail a.wd-entities-title {
  display: none !important;
}

/* 2) ПО-МАЛКИ ЗАГЛАВИЯ на продуктите */
.wd-side-hidden .wd-cart-item-info a.wd-entities-title,
.widget_shopping_cart .wd-cart-item-info a.wd-entities-title {
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  max-height: 2.6em !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

/* 3) Цени в количката */
.wd-side-hidden .woocommerce-mini-cart-item .amount,
.widget_shopping_cart .woocommerce-mini-cart-item .amount {
  font-size: 13px !important;
}

/* 4) Междинна сума (SUBTOTAL) - по-малка */
.wd-side-hidden .woocommerce-mini-cart__total,
.wd-side-hidden .woocommerce-mini-cart__total .amount,
.widget_shopping_cart .woocommerce-mini-cart__total,
.widget_shopping_cart .woocommerce-mini-cart__total .amount {
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* 5) Нормален размер на тъмбнейли */
.wd-side-hidden .wd-cart-item-thumbnail,
.widget_shopping_cart .wd-cart-item-thumbnail {
  width: auto !important;
  height: auto !important;
  max-width: 80px !important;
  overflow: visible !important;
}

.wd-side-hidden .wd-cart-item-thumbnail img,
.widget_shopping_cart .wd-cart-item-thumbnail img {
  width: 80px !important;
  height: auto !important;
  object-fit: cover !important;
}

/* ============================= */
/* ARCHIVE / CATEGORY TITLE SPACING */
/* ============================= */

body.archive .page-title,
body.archive.woocommerce-page .page-title,
body.tax-product_cat .page-title,
body.tax-product_tag .page-title{
  margin:0 !important;                 /* не разчитаме на margin */
  padding-top:30px !important;         /* това “мърда” винаги */
  padding-bottom:30px !important;
}

/* Реалното заглавие е h1.entry-title.title — зануляваме неговите margin-и */
body.archive .page-title h1.entry-title.title,
body.archive.woocommerce-page .page-title h1.entry-title.title,
body.tax-product_cat .page-title h1.entry-title.title,
body.tax-product_tag .page-title h1.entry-title.title{
  margin:0 !important;
}

@media (max-width:768px){
  body.archive .page-title,
  body.archive.woocommerce-page .page-title,
  body.tax-product_cat .page-title,
  body.tax-product_tag .page-title{
    padding-top:25px !important;
    padding-bottom:25px !important;
  }
}

