/*
Theme Name: Hello Commerce Child
Template: hello-commerce
Author: srkdesign
Author URI: https://srkdesign.pro
*/

:root {
  --e-global-color-primary: #37a5d1 !important; /* Elementor global primary */
  --e-global-color-accent: #37a5d1 !important; /* Elementor global accent */
  --ehc-button-background-color: #37a5d1 !important;
  --ehc-button-background-color-hover: #37a5d1 !important;
}

/* More specific selectors */
body a {
  color: #37a5d1;
}

html,
body {
  overflow-x: hidden !important;
  min-width: 100% !important;
  min-height: 100% !important;
}

@font-face {
  font-family: "TildaSans";
  src: url("fonts/TildaSans-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

body {
  font-family: "TildaSans", sans-serif !important;
  font-size: 20px !important;
  overflow-x: hidden;
}

header,
footer {
  max-width: 1280px;
  margin: 0 auto;
}

.site-header {
  max-width: 1280px;
  margin: 0 auto;
}

.woocommerce-info,
.woocommerce-message {
  display: flex;
  flex-direction: column;
  align-items: start !important;
  justify-content: start;
  gap: 8px;
  padding-left: 16px;
}

.woocommerce-info::before {
  display: none;
  visibility: hidden;
  opacity: 0;
}

.woocommerce-cart table.shop_table a.remove {
  border: none !important;
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.woocommerce a.remove {
  font-weight: 300;
}

.woocommerce-cart table.shop_table a.remove:hover {
  background-color: unset !important;
  color: red !important;
}

#add_payment_method table.cart img,
.woocommerce-cart table.cart img,
.woocommerce-checkout table.cart img {
  width: 100%;
  max-width: 96px;
}

.rf-fancy-text::before {
  content: "//";
  color: #37a5d1;
}

.rf-bordered,
.rf-post__thumb {
  border: 1px solid #37a5d1 !important;
}

.rf-arrow-link {
  display: flex;
  width: min-content;
  white-space: nowrap;
  gap: 0.33em;
  align-items: center;
  border-bottom: 2px solid #37a5d1;
  position: relative;
  z-index: 10;
  transition: all 200ms ease-in-out;
}

.rf-arrow-link::after {
  content: url("icons/arrow.svg");
  display: flex;
  width: 0.75em;
  height: 0.75em;
  transform: translateX(0%);
  will-change: transform;
  transition: all 200ms ease-in-out;
}

.rf-button {
  position: relative;
  text-decoration: none !important;
  color: inherit;
  display: flex !important;
  width: min-content !important;
}

.rf-button:hover .rf-arrow-link::after {
  transform: translateX(50%);
}

.rf-button:hover .rf-arrow-link {
  border-bottom: 2px solid #ffffff;
}

/* .rf-button:has(.rf-arrow-link)::before {
  content: "";
  width: 116px;
  height: 116px;
  aspect-ratio: 1/1;
  border: 1px solid #000000;
  border-radius: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateX(160%) translateY(-50%);
  z-index: 0;
}

.rf-button:has(.rf-arrow-link)::after {
  content: "";
  width: 116px;
  height: 116px;
  aspect-ratio: 1/1;
  border: 1px solid #000000;
  border-radius: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateX(280%) translateY(-50%);
  z-index: 0;
} */

.rf-button__container {
  width: min-content;
  padding-bottom: 10px !important;
  background-color: #ffffff;
}

.rf-image {
  object-fit: cover;
}

.rf-circle svg {
  fill: transparent !important;
}

.rf-basic-button {
  /* max-height: 54px !important; */
  text-decoration: none !important;
  display: block !important;
  line-height: 1em;
  font-size: 16px !important;
  white-space: nowrap;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.rf-basic-button:hover {
  background-color: #37a5d1 !important;
  color: #ffffff !important;
}

/*.products .product {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center !important;
}*/

.woocommerce-loop-product__title {
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3em !important;
}

.woocommerce-loop-product__link .price {
  text-align: center;
  font-size: 20px;
}

.woocommerce-loop-product__link img {
  border: none !important;
}

.product .button {
  --ehc-button-background-color: white;
  --ehc-button-background-color-hover: #37a5d1;
  border: 2px solid #37a5d1 !important;
  color: #37a5d1 !important;
  font-weight: 600 !important;
  border-radius: 100px !important;
}

.product .button:hover {
  color: white !important;
}

/*.woof_redraw_zone {
  display: flex;
  flex-direction: column;
  gap: 40px;
}*/

.irs-bar {
  background-color: #37a5d1 !important;
}

.irs-handle {
  border: 4px solid #37a5d1 !important;
  box-shadow: none !important;
}

.irs-from,
.irs-to,
.irs-single,
.irs::after {
  background-color: #37a5d1 !important;
  font-family: "TildaSans", sans-serif;
}

.irs-grid-text {
  font-family: "TildaSans", sans-serif;
}

.irs-to::before,
.irs-from::before {
  border-top-color: #37a5d1 !important;
}

.orderby {
  background: white;
  border: 2px solid #37a5d1;
  border-radius: 100px;
  font-weight: 600;
  color: #37a5d1;
  max-width: min-content;
}

.rf-review {
  width: max-content;
  align-items: center;
  justify-content: center;
}

.rf-review__title::before {
  content: "@";
  margin-right: -5px;
  white-space: nowrap;
}

.rf-review__img img {
  border-radius: 100%;
  outline: 2px solid #37a5d1;
  outline-offset: 24px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.rf-review__img {
  position: relative;
  width: min-content;
}

.rf-review__img::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: #37a5d1;
  border-radius: 100%;
  z-index: 10;
  transform: translateX(33%);
}

.rf-text-cropped {
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.rf-desktop {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media screen and (min-width: 1200px) {
  .rf-desktop {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .rf_review-grid {
    max-height: 536px;
  }

  .rf_review-grid > *:nth-child(1) {
    grid-row: 2/4;
    grid-column: 1/1;
  }

  .rf_review-grid > *:nth-child(1) img {
    max-width: 202px;
  }

  .rf_review-grid > *:nth-child(2) {
    grid-row: 1/2;
    grid-column: 2/2;
  }

  .rf_review-grid > *:nth-child(2) img {
    max-width: 150px;
  }

  .rf_review-grid > *:nth-child(3) {
    grid-row: 2/4;
    grid-column: 3/3;
  }

  .rf_review-grid > *:nth-child(3) img {
    max-width: 170px;
  }

  .rf_review-grid > *:nth-child(4) {
    grid-row: 1/2;
    grid-column: 4/4;
  }

  .rf_review-grid > *:nth-child(5) {
    grid-row: 2/4;
    grid-column: 5/5;
  }
}

/* ЗАПИСЬ В БЛОГЕ */
.rf-post__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.rf-post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.rf-post__thumb {
  aspect-ratio: 16/9;
}

.rf-post__excerpt {
  margin-bottom: 40px;
  font-weight: 300;
}

.rf-post__button {
  width: min-content !important;
  color: #37a5d1;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #37a5d1;
  border-radius: 100px;
  padding: 10px 20px;
  text-decoration: none !important;
}

.rf-post__title {
  text-transform: uppercase;
  font-size: clamp(1.5rem, 1.2573rem + 1.0356vw, 2.5rem);
  color: #000;
}

.rf-post:hover .rf-post__title a {
  color: #37a5d1 !important;
}

.rf-post__title a {
  text-decoration: none !important;
  color: inherit;
}

@media screen and (min-width: 768px) {
  .rf-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .rf-post__thumb {
    order: 2;
  }
}

.rf-disclaimer {
  position: relative;
  font-family: inherit !important;
  font-size: clamp(1rem, 0.818rem + 0.7767vw, 1.75rem);
  font-weight: 500 !important;
  text-wrap: pretty;
  color: #000;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  padding-top: 24px;
  padding-bottom: 16px;
}

.rf-disclaimer a {
  color: #37a5d1;
}

.rf-disclaimer::after {
  content: url("icons/frame.svg");
  width: 42px;
  height: 38px;
  position: absolute;
  bottom: 1px;
  left: 56px;
  transform: translateY(100%);
  z-index: 10;
}

/* .rf-header {
  position: fixed !important;
  top: 0;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  z-index: 50;
  background-color: white;
} */

.rf-header__container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
  margin-top: 24px;
  /* margin-bottom: 8px; */
}

.rf-header__inner-container {
  display: flex;
  gap: 40px;
}

.rf-menu ul {
  display: flex;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rf-header .site-logo {
  max-width: 128px;
}

.rf-menu--secondary {
  display: flex !important;
  align-items: center;
}

.rf-menu--secondary ul {
  gap: 32px;
  text-transform: uppercase;
  color: #000;
  font-size: 16px;
}

.rf-menu--secondary ul li a {
  color: inherit;
  font-size: inherit;
}

.rf-menu--primary {
  display: block !important;
}

.rf-menu--primary ul {
  display: flex;
  gap: 16px;
}

.rf-menu--primary a {
  color: #37a5d1;
}

.rf-menu--primary ul li:last-child a {
  background-color: #37a5d1;
  color: white;
  padding: 10px 20px 12px 20px;
  border-radius: 100px;
  display: flex;
  font-size: 16px;
  font-weight: 500;
  align-items: center;
  gap: 4px;
}

.rf-menu--primary ul li:last-child a::before {
  content: url("icons/user.svg");
  width: 24px;
  height: 24px;
}

.rf-menu--primary ul li a {
  border: 2px solid #37a5d1;
  padding: 10px 20px 12px 20px;
  border-radius: 100px;
  display: flex;
  font-size: 16px;
  font-weight: 500;
  align-items: center;
  gap: 4px;
}

.rf-menu--primary ul li a::before {
  content: url("icons/cart.svg");
  width: 24px;
  height: 24px;
}

.rf-footer {
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}

.rf-footer .footer-copy {
  width: 100%;
  text-align: center;
  font-size: 16px;
}

.rf-footer__container {
  display: flex;
  justify-content: space-between !important;
  align-items: center;
}

@media (min-width: 1200px) {
  .page-header .entry-title,
  .site-footer .footer-inner,
  .site-header .header-inner,
  body:not([class*="elementor-page-"]) .site-main {
    max-width: 1280px !important;
  }
}

/* ── Burger button — hidden on desktop ───────────────────── */
.rf-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.rf-burger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

/* Burger → X animation when open */
.rf-burger.is-active .rf-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.rf-burger.is-active .rf-burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.rf-burger.is-active .rf-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ───────────────────────────────────────── */
.rf-mobile-menu {
  display: none; /* shown via JS */
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  padding: 80px 32px 32px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-direction: column;
  gap: 32px;
}

.rf-mobile-menu.is-open {
  right: 0;
}

/* Mobile menu list styles */
.rf-mobile-menu__list,
.rf-mobile-menu__secondary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rf-mobile-menu__list li a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}

.rf-mobile-menu__list li a:hover {
  color: #0073aa;
}

.rf-mobile-menu__secondary {
  margin-top: 24px;
}

.rf-mobile-menu__secondary-list li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.rf-mobile-menu__secondary-list li a:hover {
  color: #0073aa;
}

/* ── Overlay ─────────────────────────────────────────────── */
.rf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.rf-overlay.is-active {
  opacity: 1;
}

/* ── Tablet & Mobile breakpoint ──────────────────────────── */
@media (max-width: 1024px) {
  .rf-first {
    order: -1;
  }
  .site-logo {
    max-width: 128px;
  }
  .rf-menu--primary,
  .rf-menu--secondary {
    display: none !important;
  }
  /* Show burger */
  .rf-burger {
    --ehc-button-background-color: transparent !important;
    --ehc-button-background-color-hover: transparent !important;
    --ehc-button-background-color-focus: transparent !important;
    display: flex;
  }

  /* Show mobile drawer as flex when triggered */
  .rf-mobile-menu {
    display: flex;
  }

  /* Hide desktop primary nav */
  .rf-menu--primary {
    display: none;
  }

  /* Hide secondary nav from header top on mobile */
  .rf-menu--secondary {
    display: none;
    height: min-content;
  }

  /* Prevent body scroll when menu open */
  body.rf-menu-open {
    overflow: hidden;
  }

  .rf-footer__container {
    justify-content: center !important;
  }
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a {
  font-size: 20px;
  padding-top: 16px;
  padding-bottom: 20px;
  padding-left: 24px;
  padding-right: 24px;
}

.woocommerce-cart table.shop_table a.remove {
  font-size: 36px !important;
  width: 36px !important;
  height: 36px !important;
}

.product-remove,
.product-thumbnail {
  max-width: min-content;
}

.product-thumbnail {
  padding-right: 0 !important;
}

.woocommerce-tabs .wc-tabs-wrapper .wc-tabs {
  display: flex !important;
  width: 100% !important;
}

/* Make product gallery and summary side by side */
div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

div.product .woocommerce-product-gallery {
  flex: 1 1 40%;
  max-width: 48%;
}

div.product .summary.entry-summary {
  flex: 1 1 40%;
  max-width: 48%;
}

/* Full width below the fold */
div.product .woocommerce-tabs,
div.product .related.products {
  flex: 0 0 100%;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  div.product .woocommerce-product-gallery,
  div.product .summary.entry-summary {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.product-layout-wrapper {
  display: flex;
  gap: 2em;
  align-items: flex-start;
}

.product-gallery-col {
  flex: 0 0 48%;
}

.product-summary-col {
  flex: 1;
}

@media (max-width: 768px) {
  .product-layout-wrapper {
    flex-direction: column;
  }
}

div.product {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2em;
}

div.product .woocommerce-product-gallery {
  flex: 0 0 48%;
  max-width: 48%;
}

div.product .summary.entry-summary {
  flex: 1;
  min-width: 0;
}

/* Push tabs and related to full width */
div.product .woocommerce-tabs,
div.product .related.products {
  flex: 0 0 100%;
  width: 100%;
}

@media (max-width: 768px) {
  div.product .woocommerce-product-gallery,
  div.product .summary.entry-summary {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.woocommerce .woocommerce-product-gallery {
  border: none !important;
}

.woocommerce .flex-viewport {
  border: 1px solid #37a5d1 !important;
}

.button .product_type_simple .add_to_cart_button .ajax_add_to_cart .added {
	color: white !important;
}