/*
Theme Name: OutdoHub
Theme URI: https://outdohub.com
Description: Blocksy child theme for the OutdoHub outdoor store. English storefront, Chinese admin.
Author: OutdoHub
Template: blocksy
Version: 0.1.0
Text Domain: outdohub
*/

.hub-bar {
  background: #243528;
  color: #f4f1ea;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
  padding: 0.55rem 1rem;
}

.hub-hero {
  background: #f3efe4;
  padding: 4.2rem 1.5rem 3.2rem;
}

.hub-hero-inner,
.hub-section {
  max-width: 72rem;
  margin: 0 auto;
}

.hub-kicker {
  color: #8a5a2a;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.hub-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 16ch;
  color: #1c2416;
}

.hub-hero p {
  max-width: 40rem;
  font-size: 1.08rem;
  margin: 0 0 1.4rem;
  color: #243028;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.hub-actions a {
  display: inline-block;
  padding: 0.78rem 1.2rem;
  text-decoration: none;
  border-radius: 4px;
}

.hub-actions .button {
  background: #2f4a34;
  color: #f7f4ee;
  border: 1px solid #2f4a34;
}

.hub-actions .hub-ghost {
  background: transparent;
  color: #1c2416;
  border: 1px solid #1c2416;
}

.hub-section {
  padding: 2.6rem 1.5rem 3.2rem;
}

.hub-section h2 {
  margin: 0 0 1.2rem;
  color: #1c2416;
}

.hub-note {
  background: #f7f4ee;
  border: 1px solid #e4dccb;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0 0;
  max-width: none;
}

.entry-content.is-layout-constrained > .hub-hero,
.entry-content.is-layout-constrained > .hub-slider,
.entry-content.is-layout-constrained > .hub-section {
  max-width: none;
}

.hub-slider {
  display: grid;
  background: #1c2416;
  overflow: hidden;
  line-height: 0;
}

.hub-slider-viewport,
.hub-slider-copy {
  grid-area: 1 / 1;
}

.hub-slider-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 280px;
  background: #1c2416;
}

.hub-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease;
}

.hub-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hub-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hub-slider-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: start;
  align-self: stretch;
  width: min(34rem, 58%);
  max-width: 58%;
  height: auto;
  margin: 0;
  line-height: 1.5;
  padding: 2rem 1.6rem 3.2rem;
  background: linear-gradient(90deg, rgba(18, 26, 16, 0.78) 0%, rgba(18, 26, 16, 0.42) 72%, rgba(18, 26, 16, 0) 100%);
  pointer-events: none;
}

.hub-slider-copy a,
.hub-slider-copy button {
  pointer-events: auto;
}

.hub-slider-copy .hub-kicker,
.hub-slider-copy h1,
.hub-slider-copy p {
  color: #f7f4ee;
}

.hub-slider-copy .hub-kicker {
  color: #f0d7b4;
}

.hub-slider-copy .hub-actions .hub-ghost {
  color: #f7f4ee;
  border-color: rgba(247, 244, 238, 0.85);
}

.hub-slider-controls {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(18, 26, 16, 0.55);
  line-height: 0;
}


.hub-slider-prev,
.hub-slider-next,
.hub-slider-dot {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hub-slider-prev,
.hub-slider-next {
  width: 2rem;
  height: 2rem;
  min-height: 0;
  flex: 0 0 2rem;
  border-radius: 999px;
  background: #fff;
  color: #1c2416;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.hub-slider-prev svg,
.hub-slider-next svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.hub-slider-dots {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 2rem;
  gap: 0.4rem;
}

.hub-slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 0.5rem;
  align-self: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.hub-slider-dot.is-active {
  background: #fff;
}

body.woocommerce-shop .hero-section[data-type="type-2"],
body.tax-product_cat .hero-section[data-type="type-2"] {
  background-color: #12343a;
  background-image: linear-gradient(rgba(8, 20, 24, 0.38), rgba(8, 20, 24, 0.38)), url("assets/banners/shop-2400.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  min-height: clamp(150px, 16.7vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.woocommerce-shop[data-prefix="woo_categories"] .hero-section[data-type="type-2"] .page-title,
body.tax-product_cat .hero-section[data-type="type-2"] .page-title {
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.ct-footer-copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.hub-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-footer-menu a {
  color: inherit;
  text-decoration: none;
}

.product-type-variable .summary > p.price {
  display: none;
}

.single-product .woocommerce-product-gallery .ct-media-container {
  aspect-ratio: 1 / 1;
  height: auto !important;
  --theme-object-fit: contain;
  background: #fff;
}

.single-product .woocommerce-product-gallery .ct-media-container img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.single-product .woocommerce-Tabs-panel--description img,
.single-product .woocommerce-product-details__short-description img {
  display: block;
  width: 700px;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.single-product .woocommerce-Tabs-panel--description .wp-caption,
.single-product .woocommerce-Tabs-panel--description figure {
  width: 700px !important;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hub-slide {
    transition: none;
  }
}

body.page-id-3 #main,
body.page-id-10 #main,
body.page-id-11 #main,
body.page-id-13 #main {
  background: #f3efe6;
}

body.page-id-3 .site-main > .ct-container-full,
body.page-id-10 .site-main > .ct-container-full,
body.page-id-11 .site-main > .ct-container-full,
body.page-id-13 .site-main > .ct-container-full {
  padding-top: 0 !important;
}

body.page-id-3 .hero-section[data-type="type-1"],
body.page-id-10 .hero-section[data-type="type-1"],
body.page-id-11 .hero-section[data-type="type-1"],
body.page-id-13 .hero-section[data-type="type-1"] {
  max-width: none !important;
  width: 100% !important;
  min-height: clamp(240px, 34vw, 420px);
  margin: 0;
  padding: 0 1.5rem 2.6rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-color: #1c2416;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-sizing: border-box;
}

body.page-id-10 .hero-section[data-type="type-1"] {
  background-image: linear-gradient(180deg, rgba(16, 22, 18, 0.12) 20%, rgba(16, 22, 18, 0.62) 100%), url("assets/banners/home-1-2400.jpg") !important;
}

body.page-id-11 .hero-section[data-type="type-1"] {
  background-image: linear-gradient(180deg, rgba(16, 22, 18, 0.08) 15%, rgba(16, 22, 18, 0.64) 100%), url("assets/banners/home-2-2400.jpg") !important;
}

body.page-id-3 .hero-section[data-type="type-1"] {
  background-image: linear-gradient(180deg, rgba(16, 22, 18, 0.16) 20%, rgba(16, 22, 18, 0.66) 100%), url("assets/banners/home-3-2400.jpg") !important;
}

body.page-id-13 .hero-section[data-type="type-1"] {
  background-image: linear-gradient(180deg, rgba(16, 22, 18, 0.18) 18%, rgba(16, 22, 18, 0.68) 100%), url("assets/banners/home-4-2400.jpg") !important;
}

body.page-id-3 .hero-section .entry-header,
body.page-id-10 .hero-section .entry-header,
body.page-id-11 .hero-section .entry-header,
body.page-id-13 .hero-section .entry-header {
  width: min(46rem, 100%);
  margin: 0 auto 0 0;
  text-align: left;
  padding-left: max(0px, calc((100vw - 46rem) / 2 - 1.5rem));
}

body.page-id-3 .hero-section .page-title,
body.page-id-10 .hero-section .page-title,
body.page-id-11 .hero-section .page-title,
body.page-id-13 .hero-section .page-title {
  margin: 0;
  color: #f7f4ee !important;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

body.page-id-3 .hero-section .page-title::after,
body.page-id-10 .hero-section .page-title::after,
body.page-id-11 .hero-section .page-title::after,
body.page-id-13 .hero-section .page-title::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  margin-top: 0.9rem;
  background: #e4d2ae;
}

.entry-content.is-layout-constrained > .hub-sheet {
  max-width: 46rem;
  width: min(46rem, calc(100% - 2rem));
  margin: -2.4rem auto 3.2rem;
  position: relative;
  background: #fff;
  padding: 2rem 1.7rem 2.2rem;
  box-shadow: 0 18px 50px rgba(28, 36, 22, 0.1);
}

.hub-sheet .hub-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #1c2416;
  margin-top: 0;
}

.hub-sheet h2 {
  margin: 1.8rem 0 0.7rem;
  color: #243528;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-facts li {
  padding: 0.72rem 0;
  border-top: 1px solid #ece7de;
  line-height: 1.5;
}

.hub-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.hub-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #243528;
}

.hub-form input,
.hub-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2dcd0;
  background: #fbfaf7;
  padding: 0.75rem 0.8rem;
  border-radius: 2px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: #1c2416;
}

.hub-form .button {
  width: 100%;
  justify-content: center;
  background: #2f4a34;
  border-color: #2f4a34;
  color: #f7f4ee;
}

.hub-sheet .hub-actions {
  margin-top: 0.4rem;
}

.hub-min-qty {
  margin: 0 0 0.75rem;
  color: #243528;
  font-size: 0.92rem;
}

.hub-trade-note {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  background: #f6f1e6;
  border-left: 3px solid #8a5a2a;
  color: #243528;
  font-size: 0.95rem;
  line-height: 1.5;
}

.summary .hub-quote {
  margin-top: 0.4rem;
}

.hub-quote-kicker {
  margin: 0;
  color: #8a5a2a;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-quote-hint {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 450;
  color: #5c6558;
}

.hub-form select {
  width: 100%;
  box-sizing: border-box;
  height: 3.15rem;
  min-height: 3.15rem;
  line-height: normal;
  border: 1px solid #e2dcd0;
  background-color: #fbfaf7;
  background-image: none;
  padding: 0 0.8rem;
  border-radius: 2px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #1c2416;
  appearance: auto;
  -webkit-appearance: menulist;
}

.hub-quote-trap {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

form.cart .quantity,
form.cart .single_add_to_cart_button,
.ppc-button-wrapper,
.menu-item-224 {
  display: none !important;
}

@media (max-width: 689px) {
  .hub-hero {
    padding: 2.6rem 1.1rem 2rem;
  }

  .hub-slider-viewport {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .hub-slider {
    display: flex;
    flex-direction: column;
  }

  .hub-slider-copy {
    position: relative;
    width: auto;
    max-width: none;
    padding: 1.5rem 1.1rem 1.2rem;
    background: #f3efe4;
    pointer-events: auto;
  }

  .hub-slider-copy .hub-kicker {
    color: #8a5a2a;
  }

  .hub-slider-copy h1,
  .hub-slider-copy p {
    color: #1c2416;
  }

  .hub-slider-copy .hub-actions .hub-ghost {
    color: #1c2416;
    border-color: #1c2416;
  }

  .hub-section {
    padding: 1.8rem 1.1rem 2.4rem;
  }

  body.page-id-3 .hero-section[data-type="type-1"],
  body.page-id-10 .hero-section[data-type="type-1"],
  body.page-id-11 .hero-section[data-type="type-1"],
  body.page-id-13 .hero-section[data-type="type-1"] {
    min-height: 220px;
    padding: 0 1.1rem 1.7rem;
  }

  body.page-id-3 .hero-section .entry-header,
  body.page-id-10 .hero-section .entry-header,
  body.page-id-11 .hero-section .entry-header,
  body.page-id-13 .hero-section .entry-header {
    padding-left: 0;
  }

  .entry-content.is-layout-constrained > .hub-sheet {
    width: min(46rem, calc(100% - 1.4rem));
    margin-top: -1.3rem;
    padding: 1.25rem 1rem 1.45rem;
  }
}
