/*
 Theme Name:   Envo One Child
 Template:     envo-one
 Version:      1.5.15
*/

:root {
  /* кольори */
  --footer-bg: #0f1013;
  --footer-text: #ffffff;
  --footer-text-muted: rgba(255,255,255,0.9);
  --footer-border: rgba(255,255,255,0.1);
  --footer-accent: rgba(255,255,255,0.35);

  /* типографія */
  --footer-font-size: 16px;
  --footer-line-height: 1.8;
  --footer-heading-size: 18px;
  --footer-heading-weight: 600;
  --footer-bottom-size: 17px;
  --footer-bottom-mobile-size: 15px;
  --footer-link-gap: 10px;

  /* відступи / розміри */
  --footer-pad-y: 64px;
  --footer-pad-x: 24px;
  --footer-inner-max: 1200px;
  --footer-cols-gap: 40px;
  --footer-col-min: 260px;
  --footer-bottom-mt: 56px;
  --footer-bottom-py: 28px;

  /* декоративні */
  --footer-heading-underline-w: 48px;
  --footer-heading-underline-h: 2px;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--footer-pad-y) var(--footer-pad-x) 0;
  font-size: var(--footer-font-size);
  line-height: var(--footer-line-height);
}

.site-footer-with-default-copyright {
  padding-bottom: var(--footer-pad-y);
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  max-width: var(--footer-inner-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--footer-column-count, 3), minmax(0, 1fr));
  align-items: flex-start;
  gap: var(--footer-cols-gap);
}

.footer-col {
  min-width: 0;
}

/* Заголовки */
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  font-size: var(--footer-heading-size);
  font-weight: var(--footer-heading-weight);
  margin-bottom: 18px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 6px;
}

.site-footer h2::after,
.site-footer h3::after,
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: var(--footer-heading-underline-w);
  height: var(--footer-heading-underline-h);
  background: var(--footer-accent);
}

/* Список посилань */
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: var(--footer-link-gap);
}

.footer-col a {
  opacity: 0.95;
}

.footer-col a:hover {
  opacity: 1;
}

/* Зображення */
.footer-col img {
  max-width: 260px;
  height: auto;
  display: block;
  margin-top: 12px;
}

/* Нижній рядок */
.footer-bottom {
  margin-top: var(--footer-bottom-mt);
  border-top: 1px solid var(--footer-border);
  text-align: center;
  padding: var(--footer-bottom-py) 20px 15px;
}

.footer-bottom-only {
  margin-top: 0;
}

.footer-bottom p {
  font-size: var(--footer-bottom-size);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--footer-text-muted);
}

/* адаптація */
@media (max-width: 992px) {
  .footer-inner {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-col {
    width: 100%;
  }

  .site-footer {
    padding: 48px 20px 0;
    font-size: 15px;
  }

  .footer-bottom {
    margin-top: 40px;
  }

  .footer-bottom p {
    font-size: var(--footer-bottom-mobile-size);
  }
}

/* Single product card */
body.single-product .aq-product-shell {
  --aq-product-border: #dedede;
  --aq-product-muted: #f7f8f8;
  --aq-product-secondary: #656565;
  clear: both;
  width: 100%;
}

body.single-product .aq-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid var(--aq-product-border);
  border-radius: 7px;
  background: #fff;
}

body.single-product .aq-product-header .product_title {
  margin: 0 0 10px;
}

body.single-product .aq-product-header-categories {
  margin-bottom: 7px;
  color: #6c6c6c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

body.single-product .aq-product-header-categories a {
  color: #6c6c6c;
  text-decoration: none;
}

body.single-product .aq-product-header-categories a:hover,
body.single-product .aq-product-header-categories a:focus {
  color: #222;
  text-decoration: underline;
}

body.single-product .aq-product-heading-meta .stock {
  display: inline-block;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

body.single-product .aq-product-sku-badge {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #f4f7f9;
  color: #111;
  line-height: 1.2;
  text-align: left;
}

body.single-product .aq-product-sku-badge span,
body.single-product .aq-product-sku-badge strong {
  display: block;
}

body.single-product .aq-product-sku-badge span {
  margin-bottom: 3px;
  color: var(--aq-product-secondary);
  font-size: 11px;
  font-weight: 300;
}

body.single-product .aq-product-sku-badge strong {
  font-size: 13px;
  font-weight: 600;
}

body.single-product .aq-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

body.single-product .aq-product-left,
body.single-product .aq-product-right {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

body.single-product .aq-product-gallery {
  position: relative;
  min-width: 0;
  padding: 16px;
  background: #fff;
}

body.single-product .aq-product-gallery .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.single-product .aq-product-purchase,
body.single-product .aq-product-specifications,
body.single-product .aq-product-info,
body.single-product .aq-product-description {
  padding: 22px 24px;
  border: 1px solid var(--aq-product-border);
  border-radius: 7px;
  background: #fff;
}

body.single-product .aq-product-purchase .summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.single-product .aq-product-purchase .product_title,
body.single-product .aq-product-purchase .woocommerce-product-details__short-description,
body.single-product .aq-product-purchase .product_meta,
body.single-product .aq-product-purchase p.stock {
  display: none !important;
}

body.single-product .aq-product-purchase .price:not(.aqsm-approx) {
  margin-bottom: 12px !important;
}

body.single-product .aq-product-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-bottom: 12px;
}

body.single-product .aq-product-price-row .price:not(.aqsm-approx) {
  flex: 1 1 auto;
  margin: 0 !important;
}

body.single-product .aq-product-price-row .yith-woocompare-add-product,
body.single-product .aq-product-price-row .yith-woocompare-add-product-button,
body.single-product .aq-product-price-row .compare-button,
body.single-product .aq-product-price-row a.compare {
  flex: 0 0 auto;
  margin: 5px 0 0 auto !important;
  white-space: nowrap;
  border-color: #d4d4d4 !important;
  background: #fff !important;
  color: #606060 !important;
}

body.single-product .aq-product-price-row .yith-woocompare-add-product a,
body.single-product .aq-product-price-row .yith-woocompare-add-product-button a,
body.single-product .aq-product-price-row .compare-button a,
body.single-product .aq-product-price-row a.compare {
  border-color: #d4d4d4 !important;
  background: #fff !important;
  color: #606060 !important;
}

body.single-product .aq-product-price-row .yith-woocompare-add-product:hover,
body.single-product .aq-product-price-row .yith-woocompare-add-product-button:hover,
body.single-product .aq-product-price-row .compare-button:hover,
body.single-product .aq-product-price-row a.compare:hover {
  border-color: #999 !important;
  background: #f7f7f7 !important;
  color: #222 !important;
}

body.single-product .aq-product-price-row .yith-woocompare-add-product:hover a,
body.single-product .aq-product-price-row .yith-woocompare-add-product-button:hover a,
body.single-product .aq-product-price-row .compare-button:hover a {
  border-color: #999 !important;
  background: #f7f7f7 !important;
  color: #222 !important;
}

body.single-product .aq-product-price-row .yith-woocompare-add-product::before,
body.single-product .aq-product-price-row .yith-woocompare-add-product-button::before,
body.single-product .aq-product-price-row .compare-button::before,
body.single-product .aq-product-price-row a.compare::before {
  border-color: #999 !important;
  color: #606060 !important;
}

body.single-product .aq-product-price-row .yith-woocompare-add-product a::before,
body.single-product .aq-product-price-row .yith-woocompare-add-product-button a::before,
body.single-product .aq-product-price-row .compare-button a::before {
  border-color: #999 !important;
  color: #606060 !important;
}

body.single-product .aq-product-purchase form.cart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 22px 0 0;
}

body.single-product .aq-product-purchase .quantity .qty {
  min-width: 68px;
  height: 46px;
  border: 1px solid var(--aq-product-border);
  border-radius: 23px;
  background: #fff;
  text-align: center;
}

body.single-product .aq-product-purchase button.single_add_to_cart_button {
  min-height: 46px;
  padding: 10px 28px;
  border: 1px solid #004e2a;
  border-radius: 23px;
  background: #006837;
  color: #fff;
  font-weight: 600;
}

body.single-product .aq-product-purchase button.single_add_to_cart_button:hover,
body.single-product .aq-product-purchase button.single_add_to_cart_button:focus {
  background: #004e2a;
  color: #fff;
}

body.single-product .aq-product-purchase .product_meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ececec;
}

body.single-product .aq-product-description h2,
body.single-product .aq-product-specifications h2 {
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 700;
}

body.single-product .aq-product-description-content {
  color: #202020;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

body.single-product .aq-product-description-content i,
body.single-product .aq-product-description-content em {
  font-style: normal !important;
}

body.single-product .aq-product-description-content > :last-child {
  margin-bottom: 0;
}

body.single-product .aq-product-specifications table.shop_attributes {
  display: block;
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-spacing: 0;
}

body.single-product .aq-product-specifications table.shop_attributes tbody {
  display: block;
  width: 100%;
}

body.single-product .aq-product-specifications table.shop_attributes tr,
body.single-product .aq-product-specifications table.shop_attributes tr:nth-child(even) {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0 !important;
  background: transparent;
}

body.single-product .aq-product-specifications table.shop_attributes tr:nth-child(even) {
  background: var(--aq-product-muted) !important;
}

body.single-product .aq-product-specifications table.shop_attributes th,
body.single-product .aq-product-specifications table.shop_attributes td {
  display: block;
  padding: 8px 0;
  border: 0 !important;
  vertical-align: top;
  line-height: 1.45;
  background: transparent !important;
}

body.single-product .aq-product-specifications table.shop_attributes th {
  flex: 0 0 35%;
  width: auto;
  padding-right: 18px;
  color: #8b4b25;
  font-size: 13px;
  font-weight: 400;
}

body.single-product .aq-product-specifications table.shop_attributes td,
body.single-product .aq-product-specifications table.shop_attributes td p {
  margin: 0;
  color: #222;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
}

body.single-product.woocommerce .aq-product-specifications table.shop_attributes td p {
  padding: 0 !important;
}

body.single-product .aq-product-specifications table.shop_attributes td {
  flex: 1 1 65%;
  min-width: 0;
}

body.single-product .aq-product-info {
  padding-top: 0;
}

body.single-product .aq-product-info-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 -2px 0;
  border-top: 3px solid #f0f0f0;
}

body.single-product .aq-product-info-tab {
  position: relative;
  margin: -3px 0 0;
  padding: 13px 2px 10px;
  border: 0;
  border-top: 3px solid transparent;
  background: transparent;
  color: #222;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.single-product .aq-product-info-tab.is-active {
  border-top-color: #006837;
  color: #006837;
}

body.single-product .aq-product-info-tab:focus-visible {
  outline: 2px solid #006837;
  outline-offset: 3px;
}

body.single-product .aq-product-info-panels {
  min-height: 120px;
  padding-top: 10px;
}

body.single-product .aq-product-info-panel {
  color: #262626;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

body.single-product .aq-product-info-panel[hidden] {
  display: none !important;
}

body.single-product .aq-product-shell > .upsells,
body.single-product .aq-product-shell > .related {
  clear: both;
  width: 100%;
  margin-top: 48px;
}

@media (max-width: 900px) {
  body.single-product .aq-product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.single-product .aq-product-left,
  body.single-product .aq-product-right {
    display: contents;
  }

  body.single-product .aq-product-gallery { order: 1; }
  body.single-product .aq-product-purchase { order: 2; }
  body.single-product .aq-product-specifications { order: 3; }
  body.single-product .aq-product-description { order: 4; }
  body.single-product .aq-product-info { order: 5; }
}

@media (max-width: 600px) {
  body.single-product .aq-product-header {
    padding: 18px;
  }

  body.single-product .aq-product-header .product_title {
    font-size: 25px !important;
  }

  body.single-product .aq-product-purchase,
  body.single-product .aq-product-specifications,
  body.single-product .aq-product-info,
  body.single-product .aq-product-description {
    padding: 18px;
  }

  body.single-product .aq-product-purchase form.cart {
    flex-wrap: wrap;
  }

  body.single-product .aq-product-purchase button.single_add_to_cart_button {
    flex: 1 1 180px;
  }

  body.single-product .aq-product-info-tabs {
    gap: 12px;
  }

  body.single-product .aq-product-info-tab {
    font-size: 13px;
  }

  body.single-product .aq-product-specifications table.shop_attributes tr,
  body.single-product .aq-product-specifications table.shop_attributes tr:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    padding: 11px 0;
    border: 0 !important;
  }

  body.single-product .aq-product-specifications table.shop_attributes th,
  body.single-product .aq-product-specifications table.shop_attributes td {
    flex: none;
    width: 100%;
    padding: 0;
    border: 0 !important;
  }

  body.single-product .aq-product-specifications table.shop_attributes th {
    margin-bottom: 4px;
    padding-right: 0;
    font-size: 12px;
  }

  body.single-product .aq-product-specifications table.shop_attributes td,
  body.single-product .aq-product-specifications table.shop_attributes td p {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}
