/* Anna Sophia 1.1 visual and compatibility layer. */
:root {
  --brand-ink: #3f302a;
  --brand-earth: #795548;
  --brand-rose: #c78074;
  --brand-rose-soft: #f7e9e5;
  --brand-sage: #5f746b;
  --surface: #ffffff;
  --surface-soft: #fcf8f6;
  --surface-muted: #f2ebe7;
  --text: #2b2421;
  --text-muted: #6e625d;
  --border: rgba(63, 48, 42, 0.14);
  --shadow-soft: 0 18px 50px rgba(63, 48, 42, 0.08);
  --shadow-raised: 0 24px 70px rgba(63, 48, 42, 0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
}

html {
  scroll-padding-top: 112px;
}

body {
  color: var(--text);
  background: var(--surface-soft);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--brand-ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.announcement-bar {
  position: relative;
  z-index: 60;
  color: #fff;
  background: var(--brand-ink);
}

.announcement-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  font-size: 0.72rem;
  font-weight: 700;
}

.announcement-inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.announcement-inner span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-rose);
  content: "";
}

.header {
  position: sticky;
  top: 0;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(63, 48, 42, 0.04);
}

.header-inner {
  min-height: 82px;
}

.brand img {
  max-width: min(150px, 34vw);
  max-height: 72px;
}

.nav-toggle {
  display: none;
}

.icon-btn {
  border: 1px solid transparent;
  border-radius: 50%;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--border);
  color: var(--brand-rose);
  background: var(--brand-rose-soft);
}

.mini-cart-panel {
  right: 0;
  top: calc(100% + 14px);
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-raised);
}

.hero-shell {
  min-height: clamp(600px, 78svh, 760px);
  background: var(--surface-muted);
}

.hero-shell::before {
  background: linear-gradient(90deg, rgba(252, 248, 246, 0.97) 0%, rgba(252, 248, 246, 0.82) 37%, rgba(252, 248, 246, 0.16) 66%);
}

.hero-content {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.hero-content h1 {
  max-width: 11ch;
  color: var(--brand-ink);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.hero-lead {
  max-width: 520px;
  color: var(--text-muted);
}

.hero-dots button {
  width: 30px;
  height: 4px;
  border-radius: 0;
  background: rgba(63, 48, 42, 0.28);
}

.hero-dots button.is-active {
  background: var(--brand-rose);
}

.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.single_add_to_cart_button {
  min-height: 48px;
  border-radius: var(--radius-sm) !important;
  letter-spacing: 0.06em;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--brand-ink) !important;
}

.btn-primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--brand-rose) !important;
  box-shadow: 0 14px 34px rgba(121, 85, 72, 0.18);
}

.btn-secondary:hover {
  color: #fff;
  background: var(--brand-earth);
  border-color: var(--brand-earth);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.collections-section {
  background: var(--surface);
}

.collection-showcase {
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.collection-visual,
.collection-product,
.benefit,
.tech-photo,
.card,
.panel,
.anna-flow-card {
  border-radius: var(--radius-md);
}

.collection-visual {
  box-shadow: var(--shadow-soft);
}

.collection-product {
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.collection-product:hover {
  border-color: rgba(199, 128, 116, 0.55);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.benefits {
  gap: 1rem;
}

.benefit {
  min-height: 190px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
}

.benefit:nth-child(2n) {
  background: var(--brand-rose-soft);
}

.tech-section {
  color: #fff;
  background: var(--brand-ink);
}

.tech-section h2,
.tech-section .section-kicker,
.tech-section .tech-item strong {
  color: #fff;
}

.tech-section .tech-copy > p,
.tech-section .tech-item > div > span {
  color: rgba(255, 255, 255, 0.74);
}

.tech-item > span {
  background: var(--brand-rose);
  box-shadow: 0 0 0 6px rgba(199, 128, 116, 0.16);
}

.shop-redesign-hero {
  min-height: 310px;
  display: flex;
  align-items: end;
  color: #fff;
  background: linear-gradient(105deg, var(--brand-ink), #6a4940 68%, var(--brand-rose));
}

.shop-redesign-hero-inner {
  padding-block: clamp(4rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}

.shop-redesign-hero h1 {
  max-width: 18ch;
  color: #fff;
}

.shop-redesign-hero p {
  max-width: 650px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.65;
}

.shop-redesign-hero .section-kicker {
  color: #f3c7be;
}

.shop-redesign {
  padding-block: 0 clamp(4rem, 8vw, 7rem);
}

.shop-redesign-filters {
  margin-top: -1px;
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(63, 48, 42, 0.05);
}

.shop-redesign-filters a,
.shop-redesign-filters > span {
  min-height: 48px;
}

.shop-redesign-filters a.is-active {
  color: #fff;
  background: var(--brand-rose);
}

.shop-filter-toggle {
  display: none;
}

.shop-filter-card,
.shop-redesign-head .toolbar {
  border-color: var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.shop-filter-options a.is-active {
  color: var(--brand-rose);
  background: var(--brand-rose-soft);
}

.shop-redesign-products .product-card {
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(63, 48, 42, 0.07);
}

.shop-redesign-products .product-card:hover {
  border-color: rgba(199, 128, 116, 0.48);
  box-shadow: var(--shadow-raised);
}

.product-hero-band {
  min-height: 210px;
  display: flex;
  align-items: end;
  background: var(--brand-rose-soft);
}

.product-hero-band .container {
  padding-block: 3rem 2rem;
}

.product-hero-band h1 {
  color: var(--brand-ink);
}

.product-hero-band .section-kicker {
  color: var(--brand-rose);
}

.product-page-redesign {
  gap: clamp(2rem, 5vw, 4.5rem);
}

.product-page-redesign .gallery .woocommerce-product-gallery__image:first-child,
.product-summary,
.woocommerce-Tabs-panel {
  border-radius: var(--radius-md) !important;
}

.product-summary {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.product-summary .single_add_to_cart_button {
  background: var(--brand-rose) !important;
}

.product-summary .single_add_to_cart_button:hover {
  background: var(--brand-ink) !important;
}

.product-service-grid {
  border-color: var(--border);
  background: var(--border);
}

.product-service-grid span:nth-child(2) {
  background: var(--brand-rose-soft);
}

.anna-flow-hero {
  background: linear-gradient(115deg, var(--brand-rose-soft), var(--surface-soft));
}

.anna-flow-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.footer {
  border-top: 1px solid var(--border);
  background: #f0e6e1;
}

.footer a:hover {
  color: var(--brand-rose);
}

.wa-fab {
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.wa-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(37, 211, 102, 0.34);
}

@media (max-width: 980px) {
  .header-inner {
    position: relative;
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100svh - 120px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow-raised);
  }

  .nav.is-open {
    display: block;
  }

  .nav-menu {
    width: 100%;
    display: grid;
    gap: 0;
  }

  .nav a {
    display: block;
    min-height: 48px;
    padding: 0.95rem 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .shop-filter-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid var(--brand-ink);
    border-radius: var(--radius-sm);
    color: var(--brand-ink);
    background: var(--surface);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .shop-redesign-sidebar {
    display: none;
  }

  .shop-redesign-sidebar.is-open {
    display: grid;
  }
}

@media (max-width: 680px) {
  .announcement-inner {
    min-height: 32px;
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .announcement-inner span:not(:first-child) {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .header-actions .icon-btn {
    width: 40px;
    height: 40px;
  }

  .header-actions > a[href*="minha-conta"],
  .header-actions > a[href*="my-account"] {
    display: none;
  }

  .hero-shell {
    min-height: 670px;
    align-items: end;
  }

  .hero-shell::before {
    background: linear-gradient(0deg, rgba(252, 248, 246, 0.98) 0%, rgba(252, 248, 246, 0.86) 50%, rgba(252, 248, 246, 0.06) 83%);
  }

  .hero-image img,
  .hero-slide img {
    object-position: 63% center;
  }

  .hero-content {
    padding: 17rem 0 4.5rem;
  }

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .collection-showcase,
  .collection-showcase.is-reversed {
    padding-block: 2.5rem;
  }

  .shop-redesign-hero {
    min-height: 280px;
  }

  .shop-redesign-hero h1 {
    font-size: 2.2rem;
  }

  .shop-redesign-filters {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding-inline: 16px;
  }

  .product-service-grid {
    grid-template-columns: 1fr;
  }

  .mini-cart-panel {
    position: fixed;
    top: 116px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-product,
  .wa-fab,
  .skip-link {
    transition: none;
  }
}
