/* === ROOT === */
:root{
  --logo-gold: #C49732;
  --logo-dark: #231F20;
  --logo-white: #fff;
}
/*CSS Bricks UI editor*/
body:not(.bricks-is-frontend),
body:not(.bricks-is-frontend) html {
  overflow-x: hidden;
}

body:not(.bricks-is-frontend) .logo-all-pages {
  display:none;
}



/*Scrollbar*/

/* Works on Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-d-4) var(--primary-d-3);
}

/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--primary-d-3);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--primary-d-3);
    border-radius: 6px;
    border: 1px solid var(--primary-d-4);
}

/* Keyframe Animations */

@keyframes slideOut {
    from {
        transform: translate3d(0,0,0);
        opacity: 1;
    }

    to {
        transform: translate3d(100%,0,0);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translate3d(-100%,0,0);
        opacity: 0;
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1;
    }
}

/* Links style */

.element-visible-base::after {
    content: '';
    bottom: 0;
    width: 100%;
    opacity: 1;
    transition: transform 250ms ease-out,opacity 250ms ease-out;
}


.element-visible-slide-active::after {
    animation: slideOut 250ms forwards;
}

.element-visible-slide-in::after {
    animation: slideIn 250ms forwards;
}

.element-base::after,.element-visible-base::after {
    position: absolute;
    height: 1px;
    background-color: currentColor;
    left: 0;
}

                .btn-link {
                    padding-top: 0;
                    padding-right: 0;
                    padding-bottom: 0;
                    padding-left: 0;
                    overflow: hidden;
                    position: relative
                }

/* === HEADER === */


/* ======================================================
   NORMAL STATE
   Apply smooth transition without modifying offsets
====================================================== */

.header-row-bottom:not([data-x-sticky-active="true"])
.header__menu .brx-has-megamenu > .brx-megamenu {
    transition:
        transform 0.45s cubic-bezier(.22,.61,.36,1),
        opacity 0.3s ease;
}


/* ======================================================
   STICKY STATE – DEFAULT (Hidden)
   Adjust animation offset for reduced header height
====================================================== */

.header-row-bottom[data-x-sticky-active="true"]
.header__menu .brx-has-megamenu > .brx-megamenu {

    /* Reduced entry offset for smaller sticky header */
    transform: translateY(var(--space-s));

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Slightly faster closing animation */
    transition:
        transform 0.35s cubic-bezier(.22,.61,.36,1),
        opacity 0.2s ease;
}


/* ======================================================
   STICKY STATE – OPEN (Hover)
   Reveal megamenu with smoother entrance
====================================================== */

.header-row-bottom[data-x-sticky-active="true"]
.header__menu .brx-has-megamenu:hover > .brx-megamenu {

    transform: translateY(var(--space-s));

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    /* Slightly smoother opening animation */
    transition:
        transform 0.45s cubic-bezier(.22,.61,.36,1),
        opacity 0.3s ease;
}


/*Megamenu Backdrop*/

body:has(li.brx-has-megamenu.open)::after,
body:has(li.brx-has-megamenu.active)::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 997;
  pointer-events: auto;
}

/*Fix - not to hide megamenu when sticky*/
.header-row-bottom[data-x-sticky-active="true"] .header__menu .brx-has-megamenu.active > .brx-megamenu,
.header-row-bottom[data-x-sticky-active="true"] .header__menu .brx-has-megamenu.open > .brx-megamenu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.header-row-bottom[data-x-sticky-active="true"] .header__menu .brx-has-megamenu:not(.active):not(.open) > .brx-megamenu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Base (default) logo colors */
.header__logo .st0 { fill: var(--logo-gold); }
.header__logo .st1 { fill: var(--logo-dark); }

/*Sticky styles*/
.header-row-bottom[data-x-sticky-active*=true] {
    align-items: center;
    justify-content:center;

}

/* === Base logo state === */
.header__logo {
  position: relative;
  display: inline-block;
  overflow: visible;
  transform-origin: center center;
  transform-box: fill-box;
  will-change: transform, opacity;
}

/* Smooth transitions for all parts */
.header__logo [class^="logo-"] {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* === Sticky state (shrink + focus on wordmark) === */
.header-row-bottom[data-x-sticky-active*="true"] .header__logo .logo-sun,
.header-row-bottom[data-x-sticky-active*="true"] .header__logo .logo-crest,
.header-row-bottom[data-x-sticky-active*="true"] .header__logo .logo-line,
.header-row-bottom[data-x-sticky-active*="true"] .header__logo .logo-line-dark {
  opacity: 0;
  transform: translateY(15px);
}

/* Wordmark enlarges and centers vertically */
.header-row-bottom[data-x-sticky-active*="true"] .header__logo .logo-wordmark {
  transform: scale(1.1) translateY(-55px);
  transform-origin: left center;
  transition: transform 0.4s ease;
}


/* === Reveal (return to normal) === */

/* Lines appear bottom→top using stagger via transition-delay */
.header-row-bottom:not([data-x-sticky-active*="true"]) .header__logo .logo-line-dark {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.header-row-bottom:not([data-x-sticky-active*="true"]) .header__logo .logo-line:nth-of-type(6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}
.header-row-bottom:not([data-x-sticky-active*="true"]) .header__logo .logo-line:nth-of-type(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}
.header-row-bottom:not([data-x-sticky-active*="true"]) .header__logo .logo-line:nth-of-type(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Crest and sun come last */
.header-row-bottom:not([data-x-sticky-active*="true"]) .header__logo .logo-crest {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}
.header-row-bottom:not([data-x-sticky-active*="true"]) .header__logo .logo-sun {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* Reset transition delays on sticky */
.header-row-bottom[data-x-sticky-active*="true"] .header__logo [class^="logo-"] {
  transition-delay: 0s !important;
}


@media (min-width: 991px) {


    /* White color logo on overlay */
body:not(.x-header-search-open):not(:has(li.brx-has-megamenu.active)) #brx-header:not([data-x-overlay="none"]):not(.scrolling):not(.x-header_sticky-active) > .header-row-bottom:not([data-x-sticky-active*=true]):not(:hover) .st0,
body:not(.x-header-search-open):not(:has(li.brx-has-megamenu.active)) #brx-header:not([data-x-overlay="none"]):not(.scrolling):not(.x-header_sticky-active) > .header-row-bottom:not([data-x-sticky-active*=true]):not(:hover) .st1 {
  fill: var(--logo-white);
}
body:not(.x-header-search-open):not(:has(li.brx-has-megamenu.active)) #brx-header:not([data-x-overlay="none"]):not(.scrolling):not(.x-header_sticky-active) > .header-row-bottom:not([data-x-sticky-active*=true]):not(:hover) {
  color: var(--light);
}
    /* Apply styles only if header does NOT have data-x-overlay="none" */
    body #brx-header:not([data-x-overlay="none"]):not(.scrolling):not(.x-header_sticky-active) > .header-row-bottom:not([data-x-sticky-active*=true]):hover,
  body.x-header-search-open #brx-header:not([data-x-overlay="none"]):not(.scrolling):not(.x-header_sticky-active) > .header-row-bottom:not([data-x-sticky-active*=true]),
  body:has(li.brx-has-megamenu.active) #brx-header:not([data-x-overlay="none"]):not(.scrolling):not(.x-header_sticky-active) > .header-row-bottom:not([data-x-sticky-active*=true]) {
    background-color: var(--light) !important;
    }



}


/* === Megamenu intro animation === */

@keyframes sveMmDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The dropdown container drops in — pure CSS. The inner elements
   (links, headings, carousel) are staggered by GSAP instead, so
   any number of links animates without hard-coded nth-child rules. */
#brx-header .brx-dropdown-content.sve-mm-intro {
  animation: sveMmDrop 0.3s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@media (prefers-reduced-motion: reduce) {
  #brx-header .brx-dropdown-content.sve-mm-intro {
    animation: none;
  }
}

/* ============================================================
   Burgozone — Megamenu thumbnail carousel
   Scoped to #brx-header (the megamenu renders inside the header).
   Targets only custom sve-* classes, never the third-party
   megamenu-5__* module classes.
   ============================================================ */

/* Carousel root — positioning context for the floating arrows.
   --sve-card-width sets a FIXED card size. With wide cards, the
   four of them overflow the column, so the track always scrolls
   and the arrows appear on hover — the Taylors behaviour. */
#brx-header .sve-carousel {
  --sve-card-width: clamp(290px, 24vw, 420px);
  position: relative;
}

/* Track — overrides the module's grid layout with a flex
   horizontal scroller. The #brx-header ID raises specificity
   above the module's single-class rule, so no !important. */
#brx-header .sve-carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--space-s);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
}
#brx-header .sve-carousel__track::-webkit-scrollbar {
  display: none;                    /* Chrome / Safari / Edge */
}

/* Keyboard focus indicator on the scroller itself */
#brx-header .sve-carousel__track:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 4px;
}

/* Items — fixed width so the track overflows and can scroll.
   Fixed width (not 1fr) is what makes the four cards exceed
   the column width. */
#brx-header .sve-carousel__item {
  flex: 0 0 var(--sve-card-width);
  width: var(--sve-card-width);
  max-width: var(--sve-card-width);
  scroll-snap-align: start;
}

/* --- Arrow buttons (injected by JS, not in the HTML) --- */
#brx-header .sve-carousel__arrow {
  position: absolute;
  /* Vertically centered on the square image
     (image height approximately equals the card width) */
  top: calc(var(--sve-card-width) / 2);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--dark);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
#brx-header .sve-carousel__arrow--prev {
  left: 0;
  transform: translate(-50%, -50%);
}
#brx-header .sve-carousel__arrow--next {
  right: 0;
  transform: translate(50%, -50%);
}
#brx-header .sve-carousel__arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}
#brx-header .sve-carousel__arrow:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

/* Reveal arrows only when the track actually overflows AND the
   user is hovering anywhere over the carousel or has keyboard
   focus inside it. Disabled edge arrows stay hidden via
   :not([disabled]) — no !important needed. */
#brx-header .sve-carousel.is-scrollable:is(:hover, :focus-within)
  .sve-carousel__arrow:not([disabled]) {
  opacity: 1;
  visibility: visible;
}



/* === WooCommerce === */

/* Mini Cart */

.fkcart-title {
font-size: var(--text-l) !important;
}

#fkcart-modal .fkcart-item-wrap .fkcart--item .fkcart-item-price {
  display:flex;
  flex-direction: row;
}
#fkcart-modal .fkcart-item-wrap .fkcart--item .fkcart-item-price del {
  order: 0;
}


#fkcart-modal .fkcart-quantity-selector {
    box-shadow: unset;
    border-radius: var(--radius-m);
    border: 1px solid var(--primary-d-1);
}
#fkcart-modal .fkcart-quantity-selector .fkcart-quantity-button.fkcart-quantity-down:hover,
#fkcart-modal .fkcart-quantity-selector .fkcart-quantity-button.fkcart-quantity-up:hover {
    background-color: unset;
}

#fkcart-modal .fkcart-quantity-selector .fkcart-quantity__input {
    height: 28px;
    max-height: 34px;
    box-shadow: unset;
}

.brgzn-discount-bar {
    margin: var(--space-xs) var(--space-4xs);
    padding: var(--space-s) 0;
    border-top: 1px solid rgba(0,0,0,.08);
}

.brgzn-discount-bar span {
    display: block;
    font-size: var(--text-s);
    font-weight: 600;
    color: var(--tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.brgzn-discount-bar span * {
    display: inline !important;
    white-space: nowrap !important;
}

.brgzn-discount-bar__track {
    height: 3px;
    background: rgba(0,0,0,.1);
    border-radius: 99px;
    overflow: hidden;
}

.brgzn-discount-bar__fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 99px;
    transition: width .4s ease;
}

.brgzn-discount-bar--achieved span {
    color: var(--secondary);
}



/*
	  .fkcart-toast-message {
			display:none;
			position: relative;
      padding: 0 16px;
		}
@keyframes fkcart-toast-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
}
*/ 
/* Apply pulse effect */ /*
.fkcart-toast-message__inner-wrapper {
  background: var(--tertiary);
  color: var(--light);
  padding: 12px 40px 12px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-m);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: fkcart-toast-pulse 1.6s ease-in-out infinite;
  transform-origin: center;
}
		.fkcart-toast-close {
			position:absolute;
			top:5px;
			right:5px;
			background:transparent;
			border:none;
			color:var(--light);
			cursor:pointer;
			padding:4px;
			line-height:1;
			border-radius:4px;
			opacity:0.8;
			transition:opacity 0.2s ease;
		}
		.fkcart-toast-close:hover {
			opacity:1;
		}
		.fkcart-toast-text {
			display:inline-block;
			margin-right:25px;
		}
*/



  /* =========================================================
   PhotoSwipe – Lightbox 
   ========================================================= */

.pswp__bg {
  background:
    radial-gradient(
      circle at center,
      #ffffff 0%,
      #f3f3f3 35%,
      #e1e1e1 60%,
      #cfcfcf 100%
    ) !important;

  opacity: 1 !important;
}


.pswp__bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0) 55%,
    rgba(0,0,0,0.18) 100%
  );

  pointer-events: none;
}

.pswp__img {
  filter:
    drop-shadow(0 0 32px rgba(0,0,0,0.22))
    drop-shadow(0 28px 44px rgba(0,0,0,0.22));

  transform: translateZ(0);
}

.pswp__button--close {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;

  padding: 12px 14px;
  opacity: 0.55;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pswp__button--close svg {
  width: 18px;
  height: 18px;
  fill: #1a1a1a !important;
}

.pswp__button--close:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.pswp__img,
.pswp__container {
  transition:
    opacity 0.28s ease,
    transform 0.28s ease !important;
}

.pswp--closing .pswp__img {
  opacity: 0;
  transform: scale(0.96);
}


.pswp--closing .pswp__container {
  transform: translateX(0) !important;
  opacity: 0;
}


.pswp__scroll-wrap,
.pswp__ui {
  position: relative;
  z-index: 2;
}



/*MEDALS*/

/**
 * Product Medal Badges - CSS Styles
 * Добави в темата или в Bricks Builder Custom CSS
 */

/* =====================
   BASE LAYOUT
===================== */
.medal-badges-wrapper {
  position:absolute;
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    top: var(--space-2xl);
    left: var(--space-m);
}

/* =====================
   MEDAL BADGE
===================== */
.medal-badge {
    position: relative;
    width: 100px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

/* Responsive размери */
@media (min-width: 768px) {
    .medal-badge {
        width: 120px;
    }
}

@media (min-width: 1200px) {
    .medal-badge {
        width: 140px;
    }
}

/* Background medal SVG */
.medal-badge__bg {
    position: absolute;
    inset: 0;
}

.medal-badge__bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Icon inside (wreath / star) */
.medal-badge__icon {
    position: absolute;
    inset: 8%;
    display: grid;
    place-items: center;
    opacity: 0.3;
}

.medal-badge__icon svg {
    width: 100%;
    height: 100%;
}

/* Text content */
.medal-badge__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    padding: 15%;
}

.medal-badge__value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.medal-badge__label {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 90%;
    font-weight:600;
}

/* Responsive typography */
@media (min-width: 768px) {
    .medal-badge__value {
        font-size: 2.2rem;
    }
    
    .medal-badge__label {
        font-size: 0.7rem;
    }
}

@media (min-width: 1200px) {
    .medal-badge__value {
        font-size: 2.6rem;
    }
    
    .medal-badge__label {
        font-size: calc(var(--text-xs) / 1.34);
    }
}

/* =====================
   SVG STYLING
===================== */
.medal__base {
    fill: var(--medal-bg);
}

.medal__ring {
    fill: none;
    stroke: var(--medal-text);
    stroke-width: 2;
    opacity: 0.3;
}

.medal-wreath__path path {
    fill: none;
    stroke: var(--medal-icon);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.medal-star polygon {
    fill: var(--medal-icon);
}

.medal-badge__value,
.medal-badge__label {
    color: var(--medal-text);
}

/* =====================
   THEMES BY SLUG
===================== */

.zlaten-medal {
    --medal-bg: #D6B36A;
    --medal-icon: #8F6F2F;
    --medal-text:var(--primary-d-1);
}

.srebaren-medal {
    --medal-bg: #CFCFCF;
    --medal-icon: #8A8A8A;
    --medal-text: var(--primary-d-1);
}

.bronzov-medal {
    --medal-bg: #C08A5A;
    --medal-icon: #7A4E2E;
    --medal-text: var(--primary-d-1);
}

.otlichie {
    --medal-bg: #2F5D50;
    --medal-icon: #E6C36A;
    --medal-text: var(--light);
}

/* =====================
   HOVER EFFECTS (optional)
===================== */
.medal-badge {
    transition: transform 0.3s ease;
}

.medal-badge:hover {
    transform: scale(1.05);
}

/* =====================
   GRADIENT OVERLAY (optional - за по-реалистичен вид)
===================== */
.medal-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 60%
    );
    pointer-events: none;
}