/*
Theme Name: FavoritoShoesWP
Author: Favorito Shoes
Description: WordPress/WooCommerce recreation of the original FavoritoShoes Bitrix storefront.
Version: 1.0.0
Text Domain: favoritoshoeswp
*/

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/opensans.woff2") format("woff2");
  font-weight: 400;
}

/* WordPress port layer: keeps the Bitrix template structure and only fills gaps. */
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/opensanssemibold.woff2") format("woff2");
  font-weight: 600;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/opensansbold.woff2") format("woff2");
  font-weight: 700;
}

:root {
  --fav-accent: #b873d0;
  --fav-accent-hover: #835095;
  --fav-accent-soft: #b873d040;
  --fav-text: #424242;
  --fav-dark: #121314;
  --fav-line: #d9d9d9;
  --fav-header: #f7f6f9;
  --fav-bg: #fff;
  --fav-max: 1140px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-width: 320px;
  color: var(--fav-text);
  background: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--fav-accent); text-decoration: none; }
a:hover { color: var(--fav-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.fav-container { width: min(var(--fav-max), calc(100% - 30px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.fav-topline {
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.fav-topline__inner {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.fav-topline__links { display: flex; gap: 18px; }
.fav-topline a { color: var(--fav-text); }
.fav-topline a:hover { color: var(--fav-accent); }

.fav-header {
  background: var(--fav-header);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 200;
}
.fav-header__inner {
  min-height: 102px;
  display: grid;
  grid-template-columns: 260px minmax(250px, 1fr) minmax(420px, auto);
  gap: 26px;
  align-items: center;
}
.fav-logo img {
  width: 256px;
  max-height: 62px;
  object-fit: contain;
}
.fav-header__middle {
  display: grid;
  gap: 9px;
}
.fav-phone {
  color: var(--fav-text);
  font-size: 16px;
  font-weight: 700;
}
.fav-header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}
.fav-header-links a { color: var(--fav-text); }
.fav-header-links a:hover { color: var(--fav-accent); }
.fav-header__right {
  display: grid;
  grid-template-columns: minmax(190px, 260px) auto;
  justify-content: end;
  align-items: center;
  gap: 16px;
}
.fav-search { position: relative; }
.fav-search input {
  width: 100%;
  height: 32px;
  border-radius: 16px;
  border: 1px solid #dbdbdb;
  padding: 0 38px 0 16px;
  background: #fff;
}
.fav-search input:focus { outline: 0; box-shadow: 0 0 0 3px var(--fav-accent-soft); }
.fav-search button {
  position: absolute;
  top: 0;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent url("assets/img/search.svg") center / 16px 16px no-repeat;
  font-size: 0;
  cursor: pointer;
}
.fav-search button:hover { background-image: url("assets/img/search_hover.svg"); }
.fav-cart {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fav-text);
  background: url("assets/img/handbag-fill.svg") left center / 16px 16px no-repeat;
  padding-left: 22px;
  font-weight: 600;
}
.fav-cart__count {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fav-accent);
  color: #fff;
  font-size: 13px;
}

.fav-menu {
  height: 56px;
  background: url("assets/img/tail_top.jpg") repeat-x center / auto 56px;
  box-shadow: 0 14px 23px #ededed;
}
.fav-menu__inner {
  height: 56px;
  display: flex;
  align-items: center;
}
.fav-menu nav { width: 100%; }
.fav-menu ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .02em;
}
.fav-menu a:hover { color: #fff; background: rgba(255,255,255,.12); }
.fav-mobile-toggle { display: none; }

.fav-main { padding: 20px 0 48px; }
.fav-hero {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 20px;
  margin-bottom: 38px;
}
.fav-hero__main,
.fav-hero__tile {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: #f6f6f6;
}
.fav-hero__tile { min-height: 205px; }
.fav-hero__side { display: grid; gap: 20px; }
.fav-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fav-hero__content,
.fav-hero__tile span {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  color: #fff;
  z-index: 2;
}
.fav-hero__main:after,
.fav-hero__tile:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.58));
}
.fav-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  text-transform: uppercase;
}
.fav-hero p { max-width: 520px; margin: 0 0 20px; font-size: 16px; }
.fav-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fav-dark);
  border-radius: 0;
  background: var(--fav-dark);
  color: #fff;
  padding: 0 20px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.fav-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: rgba(17,17,17,.75); color: #fff; }
.fav-button--accent {
  border-color: var(--fav-accent);
  background: var(--fav-accent);
}
.fav-button--accent:hover { background: #c781df; border-color: #c781df; }

.fav-section { margin: 0 0 58px; }
.fav-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.fav-section h2 {
  margin: 0;
  color: #000;
  font-size: 26px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}
.fav-section__head p { max-width: 430px; margin: 0; color: #777; }
.fav-collections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fav-collection {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  color: #fff;
  background: #eee;
}
.fav-collection img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.fav-collection:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.62)); }
.fav-collection__body { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; }
.fav-collection h3 { margin: 0 0 8px; font-size: 22px; text-transform: uppercase; }
.fav-collection p { margin: 0; color: rgba(255,255,255,.82); }

.fav-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fav-benefit {
  border: 1px solid var(--fav-line);
  padding: 22px;
  background: #fff;
}
.fav-benefit h3 { margin: 0 0 8px; color: #000; font-size: 16px; }
.fav-benefit p { margin: 0; color: #777; }

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 22px;
  margin: 0;
}
.woocommerce ul.products:before,
.woocommerce ul.products:after { content: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  float: none;
  margin: 0;
  text-align: center;
}
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f7f7f7;
  margin: 0 0 12px;
}
.product-item-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 8px;
  color: #121314;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.woocommerce ul.products li.product .price {
  color: #121314;
  font-size: 16px;
  font-weight: 700;
}
.product-price-fav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.add-to-favorites-link {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #b1b1b1;
  cursor: pointer;
}
.add-to-favorites-link:hover { color: var(--fav-accent); }
.fav-empty {
  border: 1px solid var(--fav-line);
  padding: 28px;
  background: #fff;
}

.fav-footer-menu > .fav-container {
  border-top: 1px solid var(--fav-line);
  padding-top: 24px;
  padding-bottom: 24px;
}
.fav-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.fav-footer-grid h4 { margin: 0 0 12px; color: #000; text-transform: uppercase; }
.fav-footer-grid ul { margin: 0; padding: 0; list-style: none; }
.fav-footer-grid li + li { margin-top: 8px; }
.fav-footer-grid a { color: var(--fav-text); font-weight: 600; }
.fav-footer-grid a:hover { color: var(--fav-accent); }
.fav-delivery img { width: 110px; margin-left: auto; margin-bottom: 10px; }
.fav-footer {
  border-top: 1px solid var(--fav-line);
}
.fav-footer__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.fav-payments { display: flex; align-items: center; gap: 28px; }
.fav-payments img { max-height: 26px; width: auto; }

.fav-page { padding: 34px 0 60px; }
.fav-page h1,
.woocommerce-products-header__title,
.woocommerce div.product .product_title {
  margin: 0 0 24px;
  color: #000;
  font-size: 26px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}
.woocommerce table.shop_table,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #payment {
  border-radius: 0;
  border-color: var(--fav-line);
}
.woocommerce span.onsale {
  min-width: auto;
  min-height: auto;
  padding: 6px 10px;
  border-radius: 0;
  background: var(--fav-accent);
  line-height: 1;
}

@media (max-width: 1055px) {
  .fav-header__inner {
    min-height: 84px;
    grid-template-columns: 180px 1fr auto;
    gap: 16px;
  }
  .fav-logo img { width: 170px; }
  .fav-phone { font-size: 14px; }
  .fav-header-links { font-size: 12px; }
  .fav-header__right { grid-template-columns: 210px auto; }
}

@media (max-width: 767px) {
  .fav-topline,
  .fav-header__middle,
  .fav-search { display: none; }
  .fav-header__inner {
    min-height: 56px;
    grid-template-columns: 1fr auto;
  }
  .fav-logo img { width: 150px; }
  .fav-mobile-toggle {
    display: inline-flex;
    width: 40px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 16px;
    background: transparent;
    color: #fff;
  }
  .fav-menu { position: sticky; top: 56px; z-index: 190; }
  .fav-menu__inner { justify-content: space-between; }
  .fav-menu nav { display: none; position: absolute; left: 15px; right: 15px; top: 56px; background: #fff; border: 1px solid var(--fav-line); padding: 14px; }
  .fav-menu nav.is-open { display: block; }
  .fav-menu ul { display: grid; gap: 4px; }
  .fav-menu a { color: var(--fav-text); min-height: 38px; }
  .fav-menu a:hover { color: var(--fav-accent); background: transparent; }
  .fav-cart__label { display: none; }
  .fav-hero,
  .fav-collections,
  .fav-benefits,
  .fav-footer-grid { grid-template-columns: 1fr; }
  .fav-hero__main { min-height: 420px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .fav-section__head { display: grid; }
}

@media (max-width: 520px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .fav-hero__main { min-height: 360px; }
  .fav-hero h1 { font-size: 27px; }
}

#header .logo img {
  width: 256px;
  max-width: 100%;
}
#menu .navbar-nav li {
  list-style: none;
}
#menu .navbar-nav li a {
  transition: all .3s ease-out;
  text-transform: uppercase;
  color: white;
  font-weight: 600;
  display: block;
  padding: .5rem 1rem;
}
#menu .navbar-nav li a:hover {
  text-decoration: none;
  color: #fff;
}
.favorito-wp-slider {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
.favorito-wp-slide,
.favorito-wp-side-banners a {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  color: #fff;
  background: #f4f4f4 center / cover no-repeat;
}
.favorito-wp-side-banners {
  display: grid;
  gap: 18px;
}
.favorito-wp-side-banners a {
  min-height: 171px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  text-align: center;
}
.favorito-wp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.favorito-wp-slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55));
}
.favorito-wp-slide-text {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  color: #fff;
}
.favorito-wp-slide-text strong {
  display: block;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
}
.favorito-wp-slide-text em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 16px;
}
.fav-section {
  margin-bottom: 54px;
}
.fav-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.fav-section__head h2 {
  margin: 0;
}
.fav-section__head p {
  max-width: 420px;
  margin: 0;
  color: #777;
}
.fav-collections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fav-collection {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  color: #fff !important;
  background: #eee;
}
.fav-collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.fav-collection:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.62));
}
.fav-collection__body {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}
.fav-collection h3 {
  color: #fff;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.fav-collection p {
  margin: 0;
  color: rgba(255,255,255,.82);
}
.fav-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fav-benefit {
  border: 1px solid #d9d9d9;
  padding: 20px;
}
.fav-benefit h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 22px;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products:before,
.woocommerce ul.products:after {
  content: none;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  float: none;
  margin: 0;
  text-align: center;
}
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f7f7f7;
  margin: 0 0 12px;
}
.woocommerce ul.products li.product .button {
  margin-top: 10px;
}
.fav-empty {
  border: 1px solid #d9d9d9;
  padding: 24px;
}
@media (max-width: 767px) {
  .favorito-wp-slider,
  .fav-collections,
  .fav-benefits {
    grid-template-columns: 1fr;
  }
  #menu .navbar-collapse.show {
    display: block;
  }
}

/* WooCommerce catalog and product pages. */
.woocommerce-breadcrumb {
  margin: 0 0 20px;
  color: #888;
  font-size: 13px;
}
.woocommerce-breadcrumb a {
  color: #555;
}
.fav-shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 28px;
  border: 1px solid #ececec;
  background: #fff;
  padding: 26px 30px;
  margin-bottom: 28px;
}
.fav-shop-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--fav-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.fav-shop-hero h1 {
  margin: 0 0 10px;
}
.fav-shop-hero p {
  max-width: 650px;
  margin: 0;
  color: #666;
  font-size: 15px;
}
.fav-shop-hero img {
  width: 120px;
  height: 76px;
  object-fit: contain;
  justify-self: end;
}
.fav-shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.fav-shop-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
}
.fav-catalog-search,
.fav-filter-block {
  border: 1px solid #ececec;
  background: #fff;
  padding: 18px;
}
.fav-catalog-search label,
.fav-filter-block h2 {
  display: block;
  margin: 0 0 12px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.fav-catalog-search div {
  display: grid;
  gap: 9px;
}
.fav-catalog-search input,
.woocommerce-ordering select,
.variations select,
.quantity .qty {
  min-height: 40px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  color: #222;
  padding: 0 12px;
}
.fav-catalog-search input:focus,
.woocommerce-ordering select:focus,
.variations select:focus,
.quantity .qty:focus {
  outline: 0;
  box-shadow: 0 0 0 3px var(--fav-accent-soft);
}
.fav-catalog-search button {
  min-height: 40px;
  border: 0;
  background: var(--fav-dark);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.fav-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fav-category-list li + li {
  border-top: 1px solid #f0f0f0;
}
.fav-category-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: #333;
  font-weight: 600;
}
.fav-category-list em {
  color: #999;
  font-style: normal;
}
.fav-shop-note p {
  margin: 0;
  color: #666;
}
.fav-shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
}
.woocommerce-result-count {
  margin: 0;
  color: #666;
}
.woocommerce-ordering {
  margin: 0;
}
.woocommerce ul.products li.product.product-item {
  position: relative;
  border: 1px solid #eeeeee;
  background: #fff;
  padding: 0 0 16px;
  text-align: left;
  transition: box-shadow .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product.product-item:hover {
  box-shadow: 0 16px 38px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.product-item-image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f7f7f7;
}
.product-item-image-wrapper img {
  transition: transform .25s ease;
}
.product-item-image-wrapper:hover img {
  transform: scale(1.035);
}
.fav-product-badges {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fav-product-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  background: var(--fav-dark);
  color: #fff;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.fav-product-badge--sale {
  background: var(--fav-accent);
}
.fav-product-badge--stock {
  background: #777;
}
.fav-product-sku {
  margin: 12px 14px 6px;
  color: #8a8a8a;
  font-size: 12px;
}
.woocommerce ul.products li.product.product-item .product-item-title {
  min-height: 38px;
  margin: 0 14px 8px;
}
.product-item-title a {
  color: #111;
}
.product-price-fav {
  justify-content: space-between;
  margin: 0 14px 12px;
}
.product-item-price-current,
.woocommerce ul.products li.product .price {
  color: #111;
  font-size: 17px;
  font-weight: 700;
}
.woocommerce ul.products li.product .price del {
  color: #999;
  font-weight: 400;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
}
.fav-product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 14px;
}
.fav-product-availability {
  margin: 0 14px 12px;
  font-size: 12px;
  font-weight: 700;
}
.is-available {
  color: #2f8a44;
}
.is-unavailable {
  color: #9a3d3d;
}
.fav-product-actions .button {
  width: 100%;
  margin: 0 !important;
}
.fav-product-more {
  background: #fff !important;
  color: #111 !important;
}
.fav-product-more:hover {
  background: #f5f5f5 !important;
}
.fav-product-unavailable {
  border-color: #999 !important;
  background: #999 !important;
  color: #fff !important;
}
.woocommerce nav.woocommerce-pagination {
  margin-top: 34px;
}
.woocommerce nav.woocommerce-pagination ul {
  border: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  color: #222;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  border-color: var(--fav-dark);
  background: var(--fav-dark);
  color: #fff;
}
.fav-single-product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 44px;
  align-items: start;
}
.fav-product-gallery {
  position: relative;
}
.woocommerce div.product div.images {
  width: auto;
  float: none;
  margin: 0;
}
.woocommerce div.product div.images .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.woocommerce div.product div.images .flex-control-thumbs li {
  width: auto;
  float: none;
  margin: 0;
  list-style: none;
}
.woocommerce div.product div.images .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #eee;
}
.fav-custom-gallery__main {
  display: block;
  overflow: hidden;
  background: #f6f6f6;
}
.fav-custom-gallery__main a {
  display: block;
}
.fav-custom-gallery__main img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.fav-custom-gallery__main img {
  height: auto;
}
.fav-custom-gallery__video {
  display: block;
  width: 100%;
  height: clamp(320px, 72vh, 760px);
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: #000;
}
.fav-custom-gallery__video:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  object-fit: contain;
  background: #000;
}
.fav-custom-gallery__video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  object-fit: contain;
  background: #000;
}
.fav-custom-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.fav-custom-gallery__thumb {
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 0;
  cursor: pointer;
}
.fav-custom-gallery__thumb.is-active {
  border-color: var(--fav-accent);
  box-shadow: 0 0 0 2px var(--fav-accent-soft);
}
.fav-custom-gallery__thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.fav-custom-gallery__thumb--video {
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--fav-dark);
  font-size: 12px;
  font-weight: 600;
}
.fav-custom-gallery__video-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fav-dark);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding-left: 2px;
}
.woocommerce div.product div.summary {
  width: auto;
  float: none;
}
.fav-product-summary {
  position: sticky;
  top: 18px;
}
.fav-single-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.fav-single-brand img {
  width: 120px;
  height: 76px;
  object-fit: contain;
}
.fav-single-heart {
  width: 42px;
  height: 42px;
  border: 1px solid #e5e5e5;
}
.fav-product-summary .product_title {
  margin-bottom: 12px;
}
.fav-product-sku--single {
  margin: 0 0 8px;
}
.fav-single-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: -5px 0 18px;
  color: #777;
  font-size: 13px;
}
.fav-single-facts strong {
  color: #222;
}
.fav-product-summary .price {
  margin: 0 0 18px;
  color: #111;
  font-size: 24px;
  font-weight: 700;
}
.fav-product-short {
  color: #626262;
  margin-bottom: 22px;
}
.fav-buy-box {
  border: 1px solid #ececec;
  background: #fff;
  padding: 20px;
  margin-bottom: 18px;
}
.woocommerce div.product form.cart {
  margin: 0;
}
.woocommerce div.product form.cart .variations {
  margin-bottom: 16px;
}
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
  display: block;
  padding: 0 0 8px;
  line-height: 1.3;
}
.woocommerce div.product form.cart .variations label {
  color: #111;
  font-size: 13px;
  text-transform: uppercase;
}
.fav-variations-table {
  width: 100%;
}
.fav-native-variation-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.fav-variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.fav-variation-option {
  min-width: 46px;
  min-height: 40px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}
.fav-variation-option:hover,
.fav-variation-option.is-selected {
  border-color: var(--fav-dark);
  background: var(--fav-dark);
  color: #fff;
}
.fav-variation-option.is-unavailable {
  color: #999;
  background: linear-gradient(to bottom right, transparent 47%, #bbb 49%, #bbb 51%, transparent 53%);
}
.fav-variation-option:disabled {
  cursor: not-allowed;
  opacity: .65;
}
.fav-reset-variations {
  display: inline-block;
  margin: -4px 0 14px;
  color: #777;
  font-size: 12px;
}
.woocommerce div.product form.cart .button {
  min-height: 46px;
  padding: 0 28px;
}
.fav-out-of-stock-box .button:disabled {
  border-color: #999;
  background: #999;
  cursor: not-allowed;
}
.fav-out-of-stock-box p {
  margin: 10px 0 0;
  color: #777;
}
.fav-product-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.fav-product-service-grid div {
  border: 1px solid #ececec;
  padding: 14px 16px;
  background: #fff;
}
.fav-product-service-grid strong {
  display: block;
  color: #111;
  margin-bottom: 3px;
}
.fav-product-service-grid span {
  color: #666;
}
.product_meta {
  color: #777;
  font-size: 13px;
}
.fav-product-details {
  margin-top: 44px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid #e6e6e6;
}
.woocommerce div.product .woocommerce-tabs ul.tabs:before,
.woocommerce div.product .woocommerce-tabs ul.tabs li:before,
.woocommerce div.product .woocommerce-tabs ul.tabs li:after {
  content: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0 18px 0 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 0 0 12px;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #111;
  box-shadow: inset 0 -2px 0 var(--fav-accent);
}
.fav-related-products {
  margin-top: 42px;
}
.fav-related-products h2 {
  margin: 0 0 22px;
  color: #111;
  font-size: 22px;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .fav-shop-layout,
  .fav-single-product {
    grid-template-columns: 1fr;
  }
  .fav-shop-sidebar {
    position: static;
  }
  .fav-product-summary {
    position: static;
  }
}

@media (max-width: 767px) {
  .fav-shop-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .fav-shop-hero img {
    width: 120px;
    justify-self: start;
  }
  .fav-shop-toolbar {
    display: grid;
  }
  .woocommerce-ordering select {
    width: 100%;
  }
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fav-buy-box {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}
