/*
Theme Name: Barbearia Demo
Theme URI: https://localhost:8082
Description: Identidade visual da Barbearia Demo para WooCommerce.
Author: $pertIA Agenda
Template: storefront
Version: 1.1.5
Text Domain: barbearia-demo
*/

:root {
  --barber-ink: #132019;
  --barber-muted: #4d5c54;
  --barber-paper: #f2f6f3;
  --barber-surface: #ffffff;
  --barber-accent: #0d7a58;
  --barber-accent-deep: #085c42;
  --barber-gold: #c9962e;
  --barber-line: #c9d5cd;
  --barber-radius: 16px;
  --barber-header-veil: linear-gradient(
    115deg,
    rgba(5, 36, 26, .88) 0%,
    rgba(8, 70, 50, .62) 42%,
    rgba(8, 55, 40, .35) 100%
  );
}

body,
button,
input,
textarea,
select {
  color: var(--barber-ink);
  font-family: "Figtree", system-ui, sans-serif;
}

body {
  background: linear-gradient(165deg, #eef4f0 0%, var(--barber-paper) 45%, #e4efe8 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
  color: var(--barber-ink);
  font-family: "Syne", system-ui, sans-serif;
  letter-spacing: -.02em;
}

a {
  color: var(--barber-accent);
}

a:hover,
a:focus {
  color: var(--barber-accent-deep);
}

.col-full {
  max-width: 1080px;
}

/* —— Cabeçalho full-bleed + carrossel —— */
.site-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(220px, 32vw, 340px);
  padding: 0;
  border: 0;
  color: #fff;
  background: #05382a;
}

.barber-shop-hero .site-header {
  min-height: clamp(420px, 72vh, 640px);
}

/* Marca hero no lead; evita duplicar o título do Storefront na vitrine */
.barber-shop-hero .site-header .site-branding .site-title,
.barber-shop-hero .site-header .site-branding .site-description {
  display: none;
}

.barber-shop-hero .site-header .site-branding .custom-logo-link {
  display: inline-block;
  margin-bottom: .35rem;
}

.barber-header-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.barber-header-carousel__track {
  position: absolute;
  inset: 0;
}

.barber-header-carousel__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 7s ease-out;
}

.barber-header-carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.barber-header-carousel__veil {
  position: absolute;
  inset: 0;
  background: var(--barber-header-veil);
}

/* Título flutuando sobre o carrossel, alinhado ao eixo do .col-full / busca */
.barber-header-carousel__title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 1;
  display: block;
  pointer-events: none;
  padding: 0;
  box-sizing: border-box;
}

.barber-header-carousel__brand {
  box-sizing: border-box;
  width: 100%;
  max-width: 1080px; /* mesmo .col-full da busca */
  margin: 0 auto;
  padding: 1.35rem 1.04167em 0; /* mesma altura do row do .site-search */
  color: #fff;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  text-align: left;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, .18),
    0 12px 32px rgba(0, 0, 0, .4);
  animation: barber-float 7.5s ease-in-out infinite;
}

.barber-header-carousel__brand-word {
  display: inline-block;
}

.barber-header-carousel__brand-word--accent {
  color: #f3d48a;
  animation: barber-float-soft 5.8s ease-in-out infinite;
}

.barber-shop-hero .barber-header-carousel__brand {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  padding-top: 1.35rem;
}

.barber-header-carousel__dots {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  gap: .45rem;
  pointer-events: auto;
}

.barber-header-carousel__dot {
  width: .55rem;
  height: .55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.barber-header-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

.barber-header-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.site-header > .col-full,
.site-header .storefront-primary-navigation,
.site-header .barber-header-lead {
  position: relative;
  z-index: 2;
}

.site-header > .col-full {
  width: 100%;
  padding-top: 1.35rem;
  padding-bottom: .85rem;
  animation: barber-rise .7s ease both;
}

.site-header .site-branding {
  margin-bottom: .55rem;
}

.site-header .site-title a,
.site-header .site-description,
.site-header a,
.site-header .site-header-cart .cart-contents,
.site-header .site-header-cart .cart-contents .amount,
.site-header .site-header-cart .cart-contents .count,
.site-header .main-navigation ul li a,
.site-header .main-navigation ul li > a,
.site-header .site-header-cart a,
.site-header .site-header-cart a::before,
.site-header .site-header-cart a::after {
  color: #fff;
}

.site-header button.menu-toggle,
.site-header button.menu-toggle:hover,
.site-header button.menu-toggle:focus {
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
  background: transparent;
}

.site-header button.menu-toggle::before,
.site-header button.menu-toggle::after,
.site-header button.menu-toggle span::before {
  background-color: #fff;
}

.site-header .site-title {
  margin-bottom: .1rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.site-header .site-description {
  opacity: .88;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

.site-search .widget_product_search form::before {
  color: var(--barber-accent-deep);
}

.site-search .widget_product_search input[type="search"] {
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: var(--barber-ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}

.storefront-primary-navigation {
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
  padding-block: 1rem;
}

/* Lead da vitrine (só na loja) */
.barber-header-lead {
  width: 100%;
  max-width: 1080px;
  margin-top: 0;
  /*margin: auto 0 0;*/
  padding: clamp(1.2rem, 4vw, 2.4rem) 1rem clamp(2.4rem, 6vw, 4rem);
  text-align: left;
  animation: barber-rise .85s .12s ease both;
}

.barber-header-lead__title {
  margin: 0 0 .7rem;
  max-width: 22ch;
  color: rgba(255, 255, 255, .94);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-align: left;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}

.barber-header-lead__copy {
  max-width: 30rem;
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, .86);
  font-size: 1.02rem;
  line-height: 1.45;
  text-align: left;
}

.barber-header-lead__cta,
.barber-header-lead__cta:visited {
  display: inline-block;
  padding: .78rem 1.2rem;
  border-radius: 999px;
  color: var(--barber-accent-deep);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.barber-header-lead__cta:hover,
.barber-header-lead__cta:focus {
  color: #fff;
  background: var(--barber-gold);
  transform: translateY(-2px);
}

.woocommerce-products-header__title.page-title {
  display: none;
}

.barber-catalog-heading {
  margin: 1.5rem 0 .4rem;
  color: var(--barber-accent-deep);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.barber-catalog-copy {
  margin-bottom: 1.5rem;
  color: var(--barber-muted);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 1.4rem;
}

.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--barber-line);
  border-radius: 10px;
  background: #fff;
}

.woocommerce-shop .content-area,
.post-type-archive-product .content-area {
  float: none;
  width: 100%;
  margin-right: 0;
}

.woocommerce-shop .widget-area,
.post-type-archive-product .widget-area {
  display: none;
}

.site-main ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 1.15rem;
  margin: 0;
}

.site-main ul.products::before,
.site-main ul.products::after {
  display: none;
}

ul.products li.product,
ul.products.columns-3 li.product,
ul.products.columns-4 li.product,
.site-main ul.products li.product {
  float: none !important;
  overflow: hidden;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0 0 1.2rem;
  border: 1px solid var(--barber-line);
  border-radius: var(--barber-radius);
  background: var(--barber-surface);
  box-shadow: 0 7px 22px rgba(13, 75, 53, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 122, 88, .14);
}

ul.products li.product img {
  width: 100%;
  height: 220px;
  margin: 0 0 1rem;
  object-fit: cover;
  background: #e8f0eb;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price,
ul.products li.product .button {
  margin-inline: 1rem;
}

ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.7em;
  padding: 0;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 650;
}

ul.products li.product .price {
  color: var(--barber-accent-deep);
  font-size: 1.08rem;
  font-weight: 800;
}

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.added_to_cart {
  border-radius: 999px;
  color: #fff;
  background: var(--barber-accent);
  font-weight: 750;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  color: #fff;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  color: #fff;
  font-weight: 800;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.added_to_cart:hover {
  color: #fff;
  background: var(--barber-accent-deep);
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--barber-line);
  color: var(--barber-muted);
  background: #e8f0eb;
}

.barber-footer-credit {
  text-align: center;
}

.pertia-login-help,
.pertia-login-hint {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--barber-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.woocommerce-form-login .woocommerce-Input {
  width: 100%;
}

.woocommerce-form-login .woocommerce-form-login__submit {
  background: var(--barber-accent) !important;
  border-color: var(--barber-accent) !important;
  color: #fff !important;
}

.woocommerce-form-login .woocommerce-form-login__submit:hover {
  background: var(--barber-accent-deep) !important;
  border-color: var(--barber-accent-deep) !important;
}

@keyframes barber-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes barber-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-.4deg);
  }
  40% {
    transform: translate3d(0, -12px, 0) rotate(.35deg);
  }
  70% {
    transform: translate3d(0, -5px, 0) rotate(-.2deg);
  }
}

@keyframes barber-float-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@media (max-width: 768px) {
  .barber-shop-hero .site-header {
    min-height: clamp(380px, 78vh, 560px);
  }

  .barber-header-carousel__dots {
    right: 50%;
    bottom: .85rem;
    transform: translateX(50%);
  }

  .site-main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  ul.products li.product img {
    height: 190px;
  }
}

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

  ul.products li.product img {
    height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .barber-header-carousel__slide,
  .barber-header-lead__cta,
  .site-header > .col-full,
  .barber-header-lead,
  .barber-header-carousel__brand,
  .barber-header-carousel__brand-word--accent,
  ul.products li.product {
    transition: none !important;
    animation: none !important;
  }

  .barber-header-carousel__slide {
    transform: none;
  }
}
