/*
Theme Name: Partituras Artesanais
Theme URI: https://partiturasartesanais.com.br
Author: Tânia Catharina Pinto
Description: Tema artesanal para venda de partituras. WooCommerce ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: pa
WC requires at least: 8.0
WC tested up to: 8.9
*/

/* =====================================================
   DESIGN TOKENS — exatamente do main.css + tailwind.config
   ===================================================== */
:root {
  /* Colors */
  --bg:          #F9F7F4;
  --fg:          #2B2B30;
  --primary:     #23324A;
  --secondary:   #E5C494;
  --muted:       #E5E3DE;
  --muted-fg:    rgba(43,43,48,0.6);
  --border:      #E5E3DE;
  --white:       #FFFFFF;
  --card:        #F9F7F4;

  /* Typography */
  --font:        'Poppins', sans-serif;

  /* Radius */
  --r-sm:  calc(0.75rem - 4px);
  --r-md:  calc(0.75rem - 2px);
  --r-lg:  0.75rem;
  --r-xl:  1rem;
  --r-2xl: 1.5rem;
  --r-3xl: 2rem;
  --r-full:9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07),0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  --transition: all 0.3s ease;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font); cursor: pointer; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 2rem;
}
@media (max-width: 640px) { .container { padding-inline: 1rem; } }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,h2,h3,h4 { font-family: var(--font); font-weight: 700; line-height: 1.1; color: var(--fg); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fade-in-up {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.animate-fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }

/* =====================================================
   BUTTONS  — replica exata do shadcn/ui Button
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; white-space: nowrap; font-family: var(--font);
  font-weight: 500; font-size: 0.875rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}

/* default (primary-filled) — bg-[#23324A] */
.btn-default {
  background: var(--primary); color: #F9F7F4;
  padding: 0.5rem 1rem; border-radius: var(--r-md);
}
.btn-default:hover { background: rgba(35,50,74,0.9); color: #F9F7F4; }

/* outline */
.btn-outline {
  background: transparent; color: var(--fg);
  border-color: rgba(35,50,74,0.2);
  padding: 0.5rem 1rem; border-radius: var(--r-md);
}
.btn-outline:hover { background: rgba(35,50,74,0.05); }

/* ghost */
.btn-ghost {
  background: transparent; color: var(--fg);
  padding: 0.5rem; border-radius: var(--r-md);
}
.btn-ghost:hover { background: rgba(43,43,48,0.06); }

/* secondary (gold) */
.btn-secondary {
  background: var(--secondary); color: var(--fg);
  padding: 0.5rem 1rem; border-radius: var(--r-md);
}
.btn-secondary:hover { background: rgba(229,196,148,0.85); }

/* icon size */
.btn-icon { width: 2.25rem; height: 2.25rem; padding: 0; }

/* lg */
.btn-lg { padding: 0.75rem 2rem; font-size: 1.125rem; }

/* rounded-full */
.btn-rounded { border-radius: var(--r-full) !important; }

/* =====================================================
   BADGES
   ===================================================== */
.badge {
  display: inline-flex; align-items: center; padding: 0.125rem 0.625rem;
  font-size: 0.75rem; font-weight: 600; line-height: 1;
  border-radius: var(--r-full); border: 1px solid transparent;
}
.badge-secondary { background: var(--secondary); color: var(--fg); }
.badge-outline   { background: transparent; color: var(--fg); border-color: var(--border); }
.badge-emerald   { background: #10b981; color: #fff; }
.badge-amber     { background: #f59e0b; color: #fff; }
.badge-rose      { background: #f43f5e; color: #fff; }
.badge-white     { background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); color: var(--fg); }

/* Badge de nível no Acervo */
.badge-level-iniciante {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-level-medio {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-level-avancado {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-outline {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Badge posicionado sobre a imagem na loja */
.shop-card-badge,
.product .bento-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

/* Garante que o container da imagem seja position:relative */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative;
    display: block;
}
/* Badges de nível - usados na Loja, Acervo e Home */
.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
}
.badge-level-iniciante {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}
.badge-level-medio {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}
.badge-level-avancado {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* =====================================================
   HEADER  — fixed, transparent → frosted glass on scroll
   ===================================================== */
#masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  width: 100%; transition: all 0.3s;
  border-bottom: 1px solid transparent;
  padding: 1rem 0;
}
#masthead.is-scrolled {
  background: rgba(249,247,244,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
  padding: 0.5rem 0;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* Logo */
.header-logo-text {
  font-weight: 700; font-size: 1.4rem;
  letter-spacing: -0.025em; color: var(--primary); line-height: 1;
}


/* Controla o tamanho da logo no header */
.custom-logo-link .custom-logo {
  max-height: 60px;  /* ajuste este valor ao seu gosto */
  width: auto;
  height: auto;
}

/* Desktop nav */
.header-nav {
  display: flex; align-items: center; gap: 2rem;
}
.nav-link {
  font-size: 0.875rem; font-weight: 500; color: var(--fg);
  background: none; border: none; padding: 0;
  display: inline-flex; align-items: center; gap: 0.25rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--secondary); }

/* Dropdown Loja */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 0.75rem); left: 0;
  min-width: 14rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 0.25rem; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item {
  display: flex; align-items: center; width: 100%;
  padding: 0.5rem 0.75rem; border-radius: var(--r-md);
  font-size: 0.875rem; color: var(--fg); background: none; border: none;
  text-align: left; gap: 0.4rem; transition: background 0.15s;
}
.dropdown-item:hover { background: rgba(229,196,148,0.12); }
.dropdown-item-bold { font-weight: 600; }
.dropdown-sep { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0.5rem; }

/* Sub-dropdown */
.nav-subdropdown { position: relative; }
.nav-subdropdown-menu {
  position: absolute; top: -0.25rem; left: calc(100% + 0.25rem);
  min-width: 10rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 0.25rem; z-index: 201;
  opacity: 0; visibility: hidden; transform: translateX(-4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}
.nav-subdropdown:hover .nav-subdropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(0);
}

/* Header right buttons */
.header-right { display: flex; align-items: center; gap: 0.5rem; }

/* User button — outline rounded-full (hidden on mobile, icon on mobile) */
.btn-user {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem; border-radius: var(--r-full);
  border: 1px solid rgba(35,50,74,0.2); background: transparent;
  color: var(--fg); font-size: 0.875rem; font-weight: 500;
  transition: var(--transition);
}
.btn-user:hover { background: rgba(35,50,74,0.05); }
.btn-user .label { /* shown on sm+ */ }

/* Cart button — ghost icon + badge */
.btn-cart {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-md); background: transparent; border: none;
  color: var(--fg); transition: background 0.2s;
}
.btn-cart:hover { background: rgba(43,43,48,0.06); }

.cart-badge {
  position: absolute; top: 0; right: 0;
  height: 1rem; min-width: 1rem;
  background: var(--secondary); color: var(--fg);
  font-size: 0.625rem; font-weight: 700;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 0.2rem; line-height: 1; pointer-events: none;
}
.cart-badge-hidden { display: none; }

/* Hamburger — mobile only */
.btn-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-md);
  background: transparent; border: none; color: var(--fg);
}
.btn-hamburger:hover { background: rgba(43,43,48,0.06); }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .btn-hamburger { display: flex; }
  .btn-user .label { display: none; }
  .btn-user { padding: 0.5rem; border-radius: var(--r-md); border: none; }
}

/* =====================================================
   OVERLAY
   ===================================================== */
.pa-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 150;
}
.pa-overlay.open { display: block; }

/* =====================================================
   DRAWERS  — Sheet component replica
   ===================================================== */
.drawer {
  position: fixed; top: 0; bottom: 0;
  width: min(24rem, 90vw);
  background: var(--bg); z-index: 160;
  display: flex; flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
  overflow: hidden;
}
.drawer-left  { left: 0;  transform: translateX(-100%); box-shadow: 4px 0 32px rgba(0,0,0,0.12); }
.drawer-right { right: 0; transform: translateX(100%);  box-shadow: -4px 0 32px rgba(0,0,0,0.12); }
.drawer.open  { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.drawer-title { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.drawer-close {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: var(--r-md);
  background: transparent; border: none; color: var(--muted-fg);
  margin-left: auto; transition: background 0.2s, color 0.2s;
}
.drawer-close:hover { background: rgba(43,43,48,0.08); color: var(--fg); }

/* =====================================================
   DRAWER: MOBILE MENU (left)
   ===================================================== */
.mobile-nav {
  display: flex; flex-direction: column; padding: 1rem 1.5rem;
  overflow-y: auto; flex: 1; gap: 0;
}
.mobile-nav-link {
  font-size: 1.125rem; font-weight: 500; color: var(--fg);
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  display: block; transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--secondary); }
.mobile-nav-link-last { border-bottom: none; }

.mobile-nav-group {
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.mobile-nav-group-title { font-size: 1.125rem; font-weight: 500; color: var(--fg); }
.mobile-nav-sub {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-left: 1rem; border-left: 2px solid var(--border); margin-left: 0.5rem;
}
.mobile-nav-sub-link { font-size: 0.9rem; color: var(--fg); font-weight: 500; transition: color 0.2s; }
.mobile-nav-sub-link:hover { color: var(--secondary); }
.mobile-instrument { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-instrument-label { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); }
.mobile-levels { display: flex; flex-direction: column; padding-left: 1rem; gap: 0.35rem; }
.mobile-level-link { font-size: 0.8rem; color: var(--muted-fg); transition: color 0.2s; }
.mobile-level-link:hover { color: var(--fg); }

/* =====================================================
   DRAWER: CART (right)  — CartDrawer.tsx replica
   ===================================================== */
.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 12rem; text-align: center; color: var(--muted-fg); gap: 0.5rem; }
.cart-items { display: flex; flex-direction: column; gap: 1.5rem; }
.cart-item  { display: flex; align-items: center; gap: 1rem; }
.cart-item-img { width: 4rem; height: 5rem; border-radius: var(--r-md); overflow: hidden; background: var(--muted); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.875rem; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-composer { font-size: 0.75rem; color: var(--muted-fg); }
.cart-item-price { font-size: 0.875rem; font-weight: 500; color: var(--fg); margin-top: 0.2rem; }
.cart-item-remove { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--r-md); background: transparent; border: none; color: #ef4444; flex-shrink: 0; transition: background 0.2s; }
.cart-item-remove:hover { background: rgba(239,68,68,0.08); }

.cart-footer { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex-shrink: 0; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.125rem; font-weight: 700; color: var(--fg); }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 0.875rem; border-radius: var(--r-md); background: var(--primary);
  color: #fff; font-size: 1rem; font-weight: 600; border: none; transition: var(--transition);
}
.cart-checkout-btn:hover { background: rgba(35,50,74,0.88); color: #fff; }
.cart-view-cart { display: block; text-align: center; font-size: 0.8rem; color: var(--muted-fg); text-decoration: underline; transition: color 0.2s; }
.cart-view-cart:hover { color: var(--fg); }

/* =====================================================
   DRAWER: USER/AUTH (right)  — AuthDrawer.tsx replica
   ===================================================== */
.user-body { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.user-greeting { font-size: 1.5rem; font-weight: 700; color: var(--fg); }
.user-email { font-size: 0.875rem; color: var(--muted-fg); margin-top: -1.5rem; }
.user-section { display: flex; flex-direction: column; gap: 1rem; }
.user-section-title { font-size: 1rem; font-weight: 600; color: var(--fg); display: flex; align-items: center; gap: 0.5rem; }
.user-purchases { display: flex; flex-direction: column; gap: 0.75rem; }
.user-purchase { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); gap: 0.75rem; }
.user-purchase-name { font-size: 0.875rem; font-weight: 500; color: var(--fg); }
.user-purchase-composer { font-size: 0.75rem; color: var(--muted-fg); }
.user-download { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--r-md); color: var(--primary); flex-shrink: 0; transition: background 0.2s; }
.user-download:hover { background: rgba(35,50,74,0.08); }
.user-empty { font-size: 0.875rem; color: var(--muted-fg); }
.user-links { display: flex; flex-direction: column; gap: 0.25rem; }
.user-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.75rem; border-radius: var(--r-md); font-size: 0.875rem; font-weight: 500; color: var(--fg); transition: background 0.15s; }
.user-link:hover { background: rgba(229,196,148,0.12); }
.user-logout { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; border-radius: var(--r-full); border: 1px solid var(--border); background: transparent; color: var(--fg); font-size: 0.875rem; font-weight: 500; transition: var(--transition); }
.user-logout:hover { background: rgba(43,43,48,0.05); }

/* Auth tabs */
.auth-tabs-nav { display: grid; grid-template-columns: 1fr 1fr; background: var(--muted); border-radius: var(--r-md); padding: 0.2rem; gap: 0.2rem; }
.auth-tab { padding: 0.55rem 1rem; border-radius: calc(var(--r-md) - 2px); border: none; background: transparent; font-family: var(--font); font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: background 0.15s, color 0.15s; }
.auth-tab.active { background: var(--white); color: var(--fg); }
.auth-panel { display: none; margin-top: 1.5rem; }
.auth-panel.active { display: block; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-size: 0.875rem; font-weight: 500; color: var(--fg); }
.form-field input {
  padding: 0.625rem 0.875rem; border: 1px solid var(--border);
  border-radius: var(--r-md); font-family: var(--font); font-size: 0.875rem;
  color: var(--fg); background: var(--white); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.form-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(35,50,74,0.1); }
.auth-forgot { display: block; text-align: center; font-size: 0.8rem; color: var(--muted-fg); text-decoration: underline; margin-top: 0.25rem; transition: color 0.2s; }
.auth-forgot:hover { color: var(--fg); }
.auth-submit { width: 100%; padding: 0.75rem; border-radius: var(--r-md); background: var(--primary); color: #fff; font-family: var(--font); font-size: 0.875rem; font-weight: 600; border: none; transition: var(--transition); margin-top: 0.25rem; }
.auth-submit:hover { background: rgba(35,50,74,0.88); }

/* =====================================================
   FOOTER  — Footer.tsx replica
   bg-foreground (#2B2B30) text-background (#F9F7F4)
   ===================================================== */
#colophon {
  background: var(--fg); color: var(--bg);
  padding: 4rem 0 2rem; margin-top: 5rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 3rem;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand { font-size: 1.25rem; font-weight: 700; color: var(--secondary); margin-bottom: 1rem; }
.footer-desc  { font-size: 0.875rem; color: rgba(249,247,244,0.8); line-height: 1.6; }
.footer-col-title { font-size: 1.125rem; font-weight: 600; color: var(--bg); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links li a { font-size: 0.875rem; color: rgba(249,247,244,0.8); transition: color 0.2s; }
.footer-links li a:hover { color: var(--secondary); }

.footer-nl-text { font-size: 0.875rem; color: rgba(249,247,244,0.8); margin-bottom: 0.75rem; }
.footer-nl-form { display: flex; gap: 0.5rem; }
.footer-nl-form input { flex: 1; padding: 0.5rem 0.875rem; border-radius: var(--r-full); background: rgba(249,247,244,0.1); border: 1px solid rgba(249,247,244,0.2); color: var(--bg); font-family: var(--font); font-size: 0.875rem; outline: none; transition: border-color 0.2s; }
.footer-nl-form input::placeholder { color: rgba(249,247,244,0.4); }
.footer-nl-form input:focus { border-color: var(--secondary); }
.footer-nl-btn { padding: 0.5rem 1rem; border-radius: var(--r-full); background: var(--secondary); color: var(--fg); font-family: var(--font); font-size: 0.8rem; font-weight: 600; border: none; transition: var(--transition); }
.footer-nl-btn:hover { background: rgba(229,196,148,0.85); }

.footer-social { display: flex; gap: 1rem; margin-bottom: 1rem; }
.footer-social a { padding: 0.5rem; background: rgba(249,247,244,0.1); border-radius: var(--r-full); color: var(--bg); transition: var(--transition); }
.footer-social a:hover { background: var(--secondary); color: var(--fg); }
.footer-copy { font-size: 0.75rem; color: rgba(249,247,244,0.5); }

/* =====================================================
   HOME — HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  height: 100%;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
    min-height: 420px;
    display: block;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
  background: rgba(229,196,148,0.2);
  border: 1px solid rgba(229,196,148,0.3);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 2rem;
}

.hero-eyebrow svg {
  color: var(--secondary);
  width: 1rem;
  height: 1rem;
}

.hero-title {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(229,196,148,0.3);
  z-index: -1;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(43,43,48,0.7);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}

/* Hero carousel */
.hero-carousel-wrap {
  position: relative;
  height: 100%;
  min-height: 520px;
  border-radius: var(--r-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay-card {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  z-index: 10;
  transition: transform 0.2s;
}

.hero-overlay-card:hover {
  transform: translateX(-50%) scale(1.02);
}

.hero-overlay-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-xl);
  background: rgba(229,196,148,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary);
}

.hero-overlay-text strong {
  display: block;
  font-weight: 600;
  color: var(--fg);
  font-size: 0.9rem;
}

.hero-overlay-text span {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  background: var(--secondary);
  width: 16rem;
  height: 16rem;
  opacity: 0.3;
  bottom: -3rem;
  left: -3rem;
  z-index: -1;
}

@media (max-width: 1024px) {
  .hero-carousel-wrap {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .hero-visual,
  .hero-carousel-wrap {
    min-height: 320px;
  }

  .hero-overlay-card {
    bottom: 1rem;
    padding: 0.875rem 1rem;
    gap: 0.75rem;
    white-space: normal;
    width: calc(100% - 2rem);
  }

  .hero-overlay-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* =====================================================
   HOME — FEATURED SCORES (bento grid)
   ===================================================== */
.featured-section { padding: 6rem 0; background: var(--bg); }
.featured-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; gap: 1.5rem; flex-wrap: wrap; }
.section-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); display: block; margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 700; color: var(--fg); }
.featured-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--fg); transition: color 0.2s; font-size: 0.9rem; }
.featured-link:hover { color: var(--secondary); }
.featured-link svg { transition: transform 0.2s; }
.featured-link:hover svg { transform: translate(2px,-2px); }

/* Bento grid */
.bento-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 280px; gap: 1.5rem;
}
@media (max-width: 1024px) { .bento-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } }

/* Primary bento card */
.bento-primary {
  grid-column: span 2; grid-row: span 2;
  position: relative; border-radius: var(--r-3xl); overflow: hidden;
  background: var(--fg); display: flex; flex-direction: column;
  justify-content: flex-end; padding: 2rem;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.3s;
}
.bento-primary:hover { box-shadow: var(--shadow-xl); }
.bento-primary img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.6; transition: transform 0.7s;
}
.bento-primary:hover img { transform: scale(1.05); }
.bento-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #2B2B30 0%, rgba(43,43,48,0.4) 50%, transparent 100%); pointer-events: none; }
.bento-content { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; justify-content: space-between; pointer-events: none; }
.bento-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bento-arrow { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; color: #fff; backdrop-filter: blur(4px); transition: var(--transition); }
.bento-primary:hover .bento-arrow { background: var(--secondary); border-color: var(--secondary); color: var(--fg); }
.bento-title { font-size: clamp(1.5rem,2.5vw,2.25rem); font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.bento-composer { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 0.75rem; }
.bento-price { color: var(--secondary); font-weight: 700; font-size: 1.1rem; }

@media (max-width: 1024px) { .bento-primary { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 640px)  { .bento-primary { grid-column: span 1; grid-row: span 1; min-height: 480px; } }

/* Secondary bento card */
.bento-card {
  background: var(--white); border-radius: var(--r-3xl);
  border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow 0.3s;
}
.bento-card:hover { box-shadow: var(--shadow-md); }
.bento-card-img { height: 8rem; position: relative; overflow: hidden; background: var(--muted); flex-shrink: 0; }
.bento-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.bento-card:hover .bento-card-img img { transform: scale(1.1); }
.bento-card-badge { position: absolute; top: 1rem; left: 1rem; }
.bento-card-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.bento-card-title { font-weight: 700; color: var(--fg); font-size: 1rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; line-height: 1.3; }
.bento-card:hover .bento-card-title { color: var(--secondary); }
.bento-card-composer { font-size: 0.8rem; color: rgba(43,43,48,0.6); font-weight: 300; }
.bento-card-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.bento-card-price { font-weight: 700; color: var(--fg); }
.bento-card-arrow { width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.bento-card:hover .bento-card-arrow { background: var(--secondary); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 4rem; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card { background: var(--white); border-radius: var(--r-3xl); border: 1px solid var(--border); padding: 2rem; display: flex; align-items: center; gap: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon { width: 4rem; height: 4rem; border-radius: var(--r-2xl); background: rgba(229,196,148,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--secondary); }
.stat-icon svg { width: 2rem; height: 2rem; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: var(--fg); margin-bottom: 0.2rem; }
.stat-label  { color: rgba(43,43,48,0.7); font-size: 0.875rem; }

/* =====================================================
   HOME — ACERVO PREVIEW
   ===================================================== */
.acervo-preview { padding: 6rem 0; background: var(--white); }
.acervo-preview .container { max-width: 56rem; text-align: center; }
.acervo-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; text-align: left; }
.acervo-list-item { display: flex; align-items: center; justify-content: space-between; padding: 1rem; background: var(--bg); border-radius: var(--r-2xl); gap: 1rem; }
.acervo-list-left { display: flex; align-items: center; gap: 1rem; }
.acervo-list-thumb { width: 2.5rem; height: 2.5rem; border-radius: var(--r-lg); overflow: hidden; background: var(--muted); flex-shrink: 0; }
.acervo-list-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.6; }
.acervo-list-title { font-weight: 700; color: var(--fg); font-size: 1rem; }
.acervo-list-composer { font-size: 0.8rem; color: var(--muted-fg); }
.acervo-list-genre { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; color: var(--secondary); letter-spacing: 0.06em; }
.acervo-list-meta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
@media (max-width: 640px) { .acervo-list-genre { display: none; } }

/* =====================================================
   HOME — TESTIMONIALS
   ===================================================== */
.testimonials { padding: 6rem 0; background: var(--fg); }
.testimonials-header { text-align: center; margin-bottom: 4rem; }
.testimonials-eyebrow { color: var(--secondary); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; display: block; margin-bottom: 1rem; }
.testimonials-title { font-size: clamp(1.75rem,3.5vw,2.5rem); font-weight: 700; color: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 3rem; }
@media (max-width: 1024px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-2xl); padding: 2rem; display: flex; flex-direction: column; position: relative; transition: border-color 0.3s; }
.testimonial-card:hover { border-color: rgba(229,196,148,0.3); }
.testimonial-quote { position: absolute; top: 1.5rem; right: 1.5rem; color: rgba(229,196,148,0.3); opacity: 0.2; transition: opacity 0.3s; }
.testimonial-card:hover .testimonial-quote { opacity: 0.5; }
.testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; }
.testimonial-stars svg { width: 1rem; height: 1rem; fill: var(--secondary); color: var(--secondary); }
.testimonial-text { color: rgba(255,255,255,0.8); line-height: 1.75; font-weight: 300; flex: 1; margin-bottom: 2rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(229,196,148,0.2); display: flex; align-items: center; justify-content: center; color: var(--secondary); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.testimonial-name { font-weight: 700; color: #fff; font-size: 0.875rem; }
.testimonial-role { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.testimonials-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--secondary); font-weight: 500; transition: color 0.2s; }
.testimonials-link:hover { color: rgba(229,196,148,0.8); }
.testimonials-link svg { transition: transform 0.2s; }
.testimonials-link:hover svg { transform: translateX(3px); }

/* =====================================================
   HOME — CTA SECTION
   ===================================================== */
.cta-section { padding: 6rem 0; background: var(--bg); }
.cta-box {
  position: relative; border-radius: var(--r-3xl); overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--fg));
  padding: 5rem 3rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: var(--shadow-xl);
}
@media (max-width: 640px) { .cta-box { padding: 3rem 1.5rem; } }
.cta-pattern { position: absolute; inset: 0; opacity: 0.1; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0l12 12-12 12L0 12z' fill='%23ffffff' fill-opacity='1'/%3E%3C/svg%3E"); background-size: 48px 48px; }
.cta-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; background: var(--secondary); width: 16rem; height: 16rem; opacity: 0.2; }
.cta-glow-1 { top: -6rem; left: -6rem; }
.cta-glow-2 { bottom: -6rem; right: -6rem; }
.cta-icon { position: relative; z-index: 1; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(229,196,148,0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; color: var(--secondary); }
.cta-title { position: relative; z-index: 1; font-size: clamp(1.75rem,4vw,3rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.cta-desc { position: relative; z-index: 1; font-size: 1.125rem; color: rgba(255,255,255,0.7); font-weight: 300; max-width: 40rem; margin-bottom: 2.5rem; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-btn-primary { padding: 0.875rem 2rem; border-radius: var(--r-full); background: var(--secondary); color: var(--fg); font-weight: 700; font-size: 1rem; border: none; transition: var(--transition); }
.cta-btn-primary:hover { background: rgba(229,196,148,0.88); }
.cta-btn-outline { padding: 0.875rem 2rem; border-radius: var(--r-full); background: transparent; color: #fff; font-weight: 500; font-size: 1rem; border: 1px solid rgba(255,255,255,0.3); transition: var(--transition); }
.cta-btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* =====================================================
   STORE PAGE  — Store.tsx replica
   ===================================================== */
.store-page { background: var(--bg); min-height: 100vh; }
.store-hero { padding: 7rem 0 2rem; }
.store-hero-eyebrow { color: var(--secondary); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; display: block; }
.store-hero-title { font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: var(--fg); margin-top: 0.5rem; margin-bottom: 1rem; }
.store-hero-desc { font-size: 1rem; color: var(--muted-fg); font-weight: 300; max-width: 42rem; line-height: 1.7; }

.filter-bar { position: sticky; top: 72px; z-index: 50; background: rgba(249,247,244,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 1rem 0; box-shadow: var(--shadow-sm); }
.filter-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.filter-count { font-size: 0.875rem; color: var(--muted-fg); }
.filter-count strong { color: var(--fg); }
.filter-controls { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.filter-select { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--white); font-family: var(--font); font-size: 0.875rem; color: var(--fg); outline: none; transition: border-color 0.2s; cursor: pointer; }
.filter-select:focus { border-color: var(--primary); }

.products-grid-wrap { padding: 3rem 0 6rem; }
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; grid-auto-rows: 1fr; }
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

/* ScoreCard */
.score-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all 0.3s; }
.score-card:hover { box-shadow: var(--shadow-md); }
.score-card-thumb { display: block; overflow: hidden; position: relative; background: var(--muted); aspect-ratio: 4/3; }
.score-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.score-card:hover .score-card-thumb img { transform: scale(1.05); }
.score-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.score-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.score-card-genre { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.075em; color: var(--secondary); margin-bottom: 0.25rem; }
.score-card-title { font-weight: 700; font-size: 1.125rem; line-height: 1.3; color: var(--fg); margin-bottom: 0.25rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; transition: color 0.2s; }
.score-card-title:hover { color: var(--primary); }
.score-card-composer { font-size: 0.875rem; color: rgba(43,43,48,0.6); font-weight: 300; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 1.25rem; }
.score-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 1rem; }
.score-card-price { font-weight: 700; font-size: 1.125rem; color: var(--primary); }
.score-card-buy { padding: 0.4rem 1rem; border-radius: var(--r-full); background: var(--primary); color: #fff; font-size: 0.8rem; font-weight: 600; border: none; transition: var(--transition); }
.score-card-buy:hover { background: rgba(35,50,74,0.88); }

.no-results { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8rem 2rem; text-align: center; }
.no-results svg { color: var(--muted-fg); opacity: 0.3; margin-bottom: 1.5rem; }
.no-results h2 { font-size: 1.5rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.no-results p { color: rgba(43,43,48,0.6); max-width: 28rem; margin-bottom: 1.5rem; }

/* =====================================================
   PRODUCT PAGE  — Product.tsx replica
   ===================================================== */
.product-page { padding: 2rem 0 5rem; margin-top: 4.5rem; }
.product-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); margin-bottom: 2rem; transition: color 0.2s; }
.product-back:hover { color: var(--primary); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: start; margin-bottom: 5rem; }
@media (max-width: 768px) { .product-grid { grid-template-columns: 1fr; } }

.product-image-wrap { position: sticky; top: 6.5rem; position: -webkit-sticky; aspect-ratio: 3/4; border-radius: var(--r-2xl); overflow: hidden; background: var(--muted); position: relative; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.product-image-wrap:hover img { transform: scale(1.05); }
.product-zoom-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; display: flex; align-items: center; justify-content: center; opacity: 0; }
.product-image-wrap:hover .product-zoom-overlay { background: rgba(0,0,0,0.1); opacity: 1; }

.product-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.product-title { font-size: clamp(2rem,3.5vw,3rem); font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; line-height: 1.1; }
.product-composer { font-size: clamp(1rem,2vw,1.5rem); color: var(--muted-fg); font-weight: 300; margin-bottom: 2rem; }
.product-price { font-size: 2.5rem; font-weight: 600; color: var(--primary); margin-bottom: 2rem; }

.product-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.product-meta-item { background: var(--card); padding: 1rem; border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.product-meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted-fg); display: block; margin-bottom: 0.3rem; }
.product-meta-value { font-weight: 500; color: var(--fg); }

.product-actions { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 480px) { .product-actions { flex-direction: row; } }
.product-buy-btn { flex: 1; padding: 0.875rem 1.5rem; border-radius: var(--r-full); background: var(--primary); color: #fff; font-size: 1.125rem; font-weight: 600; border: none; transition: var(--transition); }
.product-buy-btn:hover { background: rgba(35,50,74,0.88); }
.product-fav-btn { padding: 0.875rem 1.25rem; border-radius: var(--r-full); background: transparent; color: var(--muted-fg); border: 1px solid var(--border); display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.product-fav-btn:hover { background: rgba(43,43,48,0.05); }

/* Tabs */
.tabs-nav { display: grid; grid-template-columns: repeat(3,1fr); background: rgba(229,196,148,0.15); border-radius: var(--r-lg); padding: 0.25rem; margin-bottom: 2rem; }
.tab-btn { padding: 0.625rem 1rem; border-radius: calc(var(--r-lg) - 2px); border: none; background: transparent; font-family: var(--font); font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); cursor: pointer; transition: background 0.15s, color 0.15s; }
.tab-btn.active { background: var(--white); color: var(--fg); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; color: var(--muted-fg); line-height: 1.75; font-weight: 300; }
.tab-panel.active { display: block; }
.tab-panel ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.tab-panel li strong { color: var(--fg); font-weight: 500; }

/* Related */
.related-section { padding-top: 4rem; border-top: 1px solid var(--border); }
.related-title { font-size: 1.75rem; font-weight: 700; color: var(--fg); margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .related-grid { grid-template-columns: 1fr; } }

/* =====================================================
   ABOUT PAGE  — About.tsx replica
   ===================================================== */
.about-hero { position: relative; width: 100%; min-height: 90vh; display: flex; align-items: center; background: var(--bg); padding-top: 8rem; padding-bottom: 5rem; overflow: hidden; }
.about-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 1024px) { .about-hero-grid { grid-template-columns: 1fr; } .about-content { order: 2; } .about-visual { order: 1; } }
.about-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 1rem; display: block; }
.about-title { font-size: clamp(2.5rem,5vw,4.5rem); font-weight: 700; color: var(--fg); line-height: 1.1; margin-bottom: 1.5rem; }
.about-blockquote { font-size: clamp(1rem,1.5vw,1.25rem); font-weight: 500; font-style: italic; color: rgba(43,43,48,0.8); border-left: 4px solid var(--secondary); padding-left: 1.5rem; padding-block: 0.5rem; margin-block: 1rem; }
.about-badges { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.about-badge { display: flex; align-items: center; gap: 0.5rem; background: var(--white); padding: 0.5rem 1rem; border-radius: var(--r-full); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 0.875rem; font-weight: 500; color: rgba(43,43,48,0.7); }
.about-badge svg { color: var(--secondary); width: 1.125rem; height: 1.125rem; }

.about-img-wrap { aspect-ratio: 4/5; border-radius: var(--r-3xl); overflow: hidden; box-shadow: var(--shadow-xl); position: relative; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: filter 0.7s; }
.about-img-wrap:hover img { filter: grayscale(0); }

.about-narrative { padding: 6rem 0; background: var(--white); }
.about-narrative .container { max-width: 52rem; }
.about-narrative p { font-size: 1.125rem; line-height: 1.85; color: rgba(43,43,48,0.8); font-weight: 300; margin-bottom: 1.5rem; }
.about-narrative .first-p::first-letter { font-size: 4.5rem; font-weight: 700; float: left; line-height: 0.8; margin-right: 0.5rem; color: var(--primary); }

/* Timeline */
.timeline-section { padding: 6rem 0; background: var(--bg); }
.timeline-header { text-align: center; margin-bottom: 4rem; }
.timeline-list { position: relative; max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.timeline-list::before { content: ''; position: absolute; left: 2.5rem; top: 0; bottom: 0; width: 2px; background: rgba(229,196,148,0.3); }
@media (min-width: 768px) { .timeline-list::before { left: 50%; transform: translateX(-50%); } }
.timeline-item { display: flex; align-items: flex-start; gap: 1.5rem; position: relative; }
@media (min-width: 768px) { .timeline-item:nth-child(odd) { flex-direction: row-reverse; } }
.timeline-dot { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 4px solid var(--bg); background: var(--secondary); flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.timeline-dot-inner { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--white); }
@media (min-width: 768px) { .timeline-dot { margin: 0 auto; order: 1; } }
.timeline-card { background: var(--white); border: 1px solid rgba(229,196,148,0.25); border-radius: var(--r-3xl); padding: 2rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; flex: 1; }
@media (min-width: 768px) { .timeline-card { width: calc(50% - 2.5rem); } }
.timeline-card:hover { box-shadow: var(--shadow-md); }
.timeline-year { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.35rem; display: block; }
.timeline-title { font-size: 1.125rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.timeline-desc { color: rgba(43,43,48,0.7); font-size: 0.9rem; font-weight: 300; line-height: 1.6; }

/* Values */
.values-section { padding: 6rem 0; background: var(--primary); }
.values-header { text-align: center; margin-bottom: 4rem; }
.values-header .values-title { color: var(--white); }
.values-header .values-desc { color: rgba(255,255,255,0.7); max-width: 40rem; margin-inline: auto; font-weight: 300; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
@media (max-width: 1024px) { .values-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .values-grid { grid-template-columns: 1fr; } }
.value-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-3xl); padding: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: background 0.3s; }
.value-card:hover { background: rgba(255,255,255,0.1); }
.value-icon { width: 4rem; height: 4rem; border-radius: 50%; background: rgba(229,196,148,0.2); display: flex; align-items: center; justify-content: center; color: var(--secondary); margin-bottom: 1.5rem; }
.value-icon svg { width: 2rem; height: 2rem; }
.value-title { font-weight: 700; color: var(--white); font-size: 1.125rem; margin-bottom: 0.5rem; }
.value-desc { color: rgba(255,255,255,0.65); font-size: 0.875rem; font-weight: 300; line-height: 1.6; }

/* About CTA */
.about-cta { padding: 8rem 0; background: var(--white); text-align: center; }

/* =====================================================
   ACERVO PAGE  — Acervo.tsx replica
   ===================================================== */
.acervo-page { padding: 7rem 0 6rem; }
.acervo-page .container { max-width: 52rem; }
.acervo-search-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 1.5rem; margin-bottom: 2.5rem; box-shadow: var(--shadow-sm); }
.acervo-search-wrap { position: relative; margin-bottom: 1rem; }
.acervo-search-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted-fg); width: 1.25rem; height: 1.25rem; pointer-events: none; }
.acervo-search { width: 100%; padding: 0.875rem 1rem 0.875rem 2.75rem; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg); font-family: var(--font); font-size: 1rem; color: var(--fg); outline: none; transition: border-color 0.2s, box-shadow 0.2s; height: 3.5rem; }
.acervo-search:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(35,50,74,0.1); }
.acervo-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.acervo-filter-btn { padding: 0.5rem 1.25rem; border-radius: var(--r-full); border: 1px solid var(--border); background: transparent; font-family: var(--font); font-size: 0.875rem; font-weight: 500; color: var(--fg); cursor: pointer; transition: var(--transition); }
.acervo-filter-btn:hover, .acervo-filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.acervo-count { font-size: 0.875rem; color: rgba(43,43,48,0.6); font-weight: 500; margin-bottom: 1.5rem; }
.acervo-group { margin-bottom: 3rem; }
.acervo-letter-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.acervo-letter { font-size: 2.5rem; font-weight: 700; color: var(--secondary); flex-shrink: 0; }
.acervo-letter-line { flex: 1; height: 1px; background: var(--border); margin-top: 0.5rem; }

/* AcervoItem — AcervoItem.tsx */
.acervo-item { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--shadow-sm); border: 1px solid transparent; transition: all 0.3s; margin-bottom: 0.75rem; }
@media (min-width: 640px) { .acervo-item { flex-direction: row; align-items: stretch; } }
.acervo-item:hover { background: var(--white); border-color: var(--border); box-shadow: var(--shadow-md); }
.acervo-item-thumb { width: 6rem; height: 8rem; border-radius: var(--r-lg); overflow: hidden; background: var(--muted); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.acervo-item-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.9; transition: all 0.5s; }
.acervo-item:hover .acervo-item-thumb img { filter: grayscale(0); }
.acervo-item-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.acervo-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.25rem; }
.acervo-item-title { font-weight: 700; font-size: 1.125rem; color: var(--fg); transition: color 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acervo-item-title:hover { color: var(--primary); }
.acervo-item-composer { font-size: 0.875rem; color: rgba(43,43,48,0.6); font-weight: 300; margin-bottom: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acervo-item-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); white-space: nowrap; margin-left: 1rem; }
.acervo-item-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; }
.acervo-item-genre { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.075em; color: var(--secondary); }
.acervo-dot { width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--border); }
.acervo-pages { display: flex; align-items: center; font-size: 0.75rem; color: rgba(43,43,48,0.6); font-weight: 500; gap: 0.25rem; }
.acervo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 2rem; text-align: center; background: var(--white); border-radius: var(--r-2xl); border: 1px dashed var(--border); box-shadow: var(--shadow-sm); }
.acervo-empty svg { color: var(--muted-fg); opacity: 0.3; margin-bottom: 1rem; }
.acervo-empty h3 { font-size: 1.25rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.acervo-empty p { color: rgba(43,43,48,0.6); margin-bottom: 1.5rem; }

/* Badge level colors for AcervoItem */
.badge-level-iniciante { background: rgba(16,185,129,0.1); color: #065f46; border-color: rgba(16,185,129,0.2); }
.badge-level-medio     { background: rgba(245,158,11,0.1); color: #92400e; border-color: rgba(245,158,11,0.2); }
.badge-level-avancado  { background: rgba(244,63,94,0.1);  color: #9f1239; border-color: rgba(244,63,94,0.2); }

/* =====================================================
   DEPOIMENTOS PAGE  — Depoimentos.tsx replica
   masonry columns layout
   ===================================================== */
.depoimentos-page { background: var(--bg); padding-top: 8rem; padding-bottom: 6rem; }
.depoimentos-header { text-align: center; margin-bottom: 4rem; }
.depoimentos-eyebrow { color: var(--secondary); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; display: block; margin-bottom: 1rem; }
.depoimentos-title { font-size: clamp(2.25rem,5vw,4rem); font-weight: 700; color: var(--fg); margin-bottom: 1.5rem; }
.depoimentos-desc { font-size: 1.125rem; color: var(--muted-fg); max-width: 40rem; margin-inline: auto; font-weight: 300; line-height: 1.75; }
.depoimentos-masonry { columns: 1; gap: 1.5rem; }
@media (min-width: 768px)  { .depoimentos-masonry { columns: 2; } }
@media (min-width: 1024px) { .depoimentos-masonry { columns: 3; } }
.depoimento-card { break-inside: avoid; background: var(--white); padding: 2rem; border-radius: var(--r-3xl); box-shadow: var(--shadow-sm); border: 1px solid rgba(229,196,148,0.25); position: relative; overflow: hidden; transition: box-shadow 0.3s; margin-bottom: 1.5rem; }
.depoimento-card:hover { box-shadow: var(--shadow-md); }
.depoimento-bg-quote { position: absolute; top: -1rem; right: -1rem; width: 6rem; height: 6rem; color: var(--primary); opacity: 0.03; transition: opacity 0.3s; transform: rotate(12deg); }
.depoimento-card:hover .depoimento-bg-quote { opacity: 0.1; }
.depoimento-stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; }
.depoimento-stars svg { width: 1.25rem; height: 1.25rem; fill: var(--secondary); color: var(--secondary); }
.depoimento-text { font-size: 1.125rem; color: var(--fg); line-height: 1.75; font-weight: 300; margin-bottom: 2rem; font-style: italic; position: relative; z-index: 1; }
.depoimento-author { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.depoimento-avatar { width: 3rem; height: 3rem; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; }
.depoimento-avatar img { width: 100%; height: 100%; object-fit: cover; }
.depoimento-avatar-letter { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(229,196,148,0.2); display: flex; align-items: center; justify-content: center; color: var(--secondary); font-weight: 700; font-size: 1.25rem; flex-shrink: 0; }
.depoimento-name { font-weight: 700; color: var(--fg); }
.depoimento-role { font-size: 0.75rem; color: rgba(43,43,48,0.6); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.depoimento-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 2rem; text-align: center; opacity: 0.5; }

/* =====================================================
   404 PAGE
   ===================================================== */
.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 2rem; margin-top: 4.5rem; }
.not-found-code { font-size: 6rem; font-weight: 700; color: var(--secondary); line-height: 1; margin-bottom: 1rem; }

/* =====================================================
   WOOCOMMERCE overrides
   ===================================================== */
.woocommerce-breadcrumb { display: none; }
.woocommerce .woocommerce-ordering, .woocommerce-result-count { display: none; }

/* WC cart/checkout/account - minimal resets */
.woocommerce-checkout .form-row label,
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select {
  font-family: var(--font) !important;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select {
  border-radius: var(--r-md) !important;
  border-color: var(--border) !important;
  padding: 0.625rem 0.875rem !important;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(35,50,74,0.1) !important;
  outline: none !important;
}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: var(--font) !important;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--r-full) !important;
  padding: 0.625rem 1.5rem !important;
  font-weight: 600 !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: rgba(35,50,74,0.88) !important;
  color: #fff !important;
}
.woocommerce-message, .woocommerce-info {
  font-family: var(--font) !important;
  border-radius: var(--r-lg) !important;
}
.woocommerce-error { font-family: var(--font) !important; border-radius: var(--r-lg) !important; }

/* Account pages */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a { display: block; padding: 0.625rem 0.875rem; border-radius: var(--r-md); font-family: var(--font); font-size: 0.875rem; color: var(--fg); transition: background 0.15s; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { background: rgba(229,196,148,0.15); }

.pa-wc-wrap { padding: 2rem 0 5rem; margin-top: 4.5rem; }


/* ============================================================
   ACERVO GROUPED LIST
   ============================================================ */
.acervo-grouped-list { display: flex; flex-direction: column; gap: 2rem; }
.acervo-letter-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.acervo-letter-char { font-size: 1.5rem; font-weight: 700; color: #E5C494; width: 2rem; flex-shrink: 0; }
.acervo-letter-line { flex: 1; height: 1px; background: #E5E3DE; }
.acervo-letter-items { display: flex; flex-direction: column; gap: 0.5rem; }
.acervo-item-row { display: flex; align-items: center; gap: 1rem; background: #ffffff; border-radius: 0.75rem; border: 1px solid #E5E3DE; padding: 0.75rem 1rem; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.acervo-item-row:hover { border-color: rgba(229,196,148,0.6); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.acervo-item-thumb { width: 3rem; height: 3.5rem; border-radius: 0.5rem; overflow: hidden; background: #F9F7F4; border: 1px solid #E5E3DE; flex-shrink: 0; }
.acervo-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acervo-item-thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #E5E3DE; }
.acervo-item-info { flex: 1; min-width: 0; }
.acervo-item-title { font-weight: 600; color: #2B2B30; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; transition: color 0.2s; }
.acervo-item-row:hover .acervo-item-title { color: #23324A; }
.acervo-item-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.125rem; font-size: 0.75rem; color: rgba(43,43,48,0.5); flex-wrap: wrap; }
/* acervo-meta-* classes (rendered by pa_acervo_item) */
.acervo-meta-sep { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.75rem; color: rgba(43,43,48,0.5); margin-top: 0.2rem; }
.acervo-meta-composer { font-size: 0.8rem; color: rgba(43,43,48,0.65); font-weight: 400; }
.acervo-meta-pages { display: inline-flex; align-items: center; gap: 0.2rem; }
.acervo-meta-instrument { }
.acervo-meta-genre { }
.acervo-meta-sublevel { }
.acervo-item-genre { color: #E5C494; }
.acervo-item-pages { display: flex; align-items: center; gap: 0.25rem; }
.acervo-item-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.acervo-item-level { display: none; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
@media (min-width: 640px) { .acervo-item-level { display: inline-block; } }
.acervo-item-price { font-weight: 700; color: #23324A; font-size: 0.875rem; white-space: nowrap; }

/* STORY SECTION */
.story-section { padding: 6rem 0; background: #ffffff; }
.story-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 1024px) { .story-grid { grid-template-columns: 1fr; gap: 5rem; } }
.story-image-side { position: relative; }
.story-image-wrapper { position: relative; }
.story-image-frame { aspect-ratio: 4/5; border-radius: 1.5rem; overflow: hidden; }
.story-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-quote-card { position: absolute; bottom: -2rem; right: -2rem; background: #23324A; color: #ffffff; padding: 2rem; border-radius: 1rem; max-width: 18rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
@media (max-width: 640px) { .story-quote-card { right: 0; bottom: -3rem; max-width: calc(100% - 1rem); } }
.story-quote-icon { color: #E5C494; margin-bottom: 1rem; }
.story-quote-icon svg { display: block; }
.story-quote-text { color: rgba(255,255,255,0.9); line-height: 1.6; font-style: italic; font-size: 0.95rem; margin: 0; }
.story-deco-circle { position: absolute; top: -2rem; left: -2rem; width: 6rem; height: 6rem; border: 2px solid rgba(229, 196, 148, 0.3); border-radius: 9999px; pointer-events: none; }
.story-eyebrow { color: #E5C494; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.875rem; }
.story-title { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; color: #2B2B30; margin-top: 0.75rem; margin-bottom: 1.5rem; }
.story-text { display: flex; flex-direction: column; gap: 1.25rem; }
.story-text p { color: rgba(43,43,48,0.7); line-height: 1.75; font-size: 1rem; margin: 0; }
.story-actions { margin-top: 2.5rem; }
.story-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: #23324A; color: #ffffff; border-radius: 9999px; font-weight: 600; font-size: 0.975rem; text-decoration: none; transition: background 0.3s ease, transform 0.2s ease; }
.story-btn-primary:hover { background: #2B2B30; color: #ffffff; transform: translateX(2px); }
.story-btn-primary svg { transition: transform 0.3s ease; }
.story-btn-primary:hover svg { transform: translateX(4px); }
.story-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #E5E3DE; }
@media (max-width: 640px) { .story-values { grid-template-columns: repeat(2, 1fr); } }
.story-value-item { text-align: center; }
.story-value-item span { font-size: 0.875rem; font-weight: 600; color: #2B2B30; }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-slide-left  { animation: slideLeft  0.8s ease both; }
.animate-slide-right { animation: slideRight 0.8s ease both; }
.animate-slide-up    { animation: slideUpFade 0.6s 0.3s ease both; }

/* =====================================================
   ACERVO — FILTERS ROW INLINE FIX
   ===================================================== */
.acervo-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.acervo-filters-divider { display: none; }
.acervo-filters.acervo-filters-level,
.acervo-filters.acervo-filters-instrument,
.acervo-filters.acervo-filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.acervo-filter-btn { color: rgba(43,43,48,0.5); }
.acervo-filter-btn:hover,
.acervo-filter-btn.active { color: var(--white); }
.acervo-clear-filters-btn {
  color: var(--fg) !important;
  border-color: rgba(43,43,48,0.25) !important;
}
.acervo-clear-filters-btn:hover {
  background: rgba(43,43,48,0.07) !important;
  color: var(--fg) !important;
}

/* =====================================================
   LOJA — PA-CARD (PartituraCard PHP replica)
   ===================================================== */
.pa-card { cursor: pointer; transition: transform 0.3s ease; }
.pa-card:hover { transform: translateY(-4px); }
.pa-card-inner {
  display: flex; flex-direction: column; height: 100%; min-height: 390px;
  background: var(--white); border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s, border-color 0.5s;
  text-decoration: none; color: inherit;
}
.pa-card-inner:hover { box-shadow: var(--shadow-xl); border-color: rgba(229,196,148,0.5); }
.pa-card-thumb {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: #F9F7F4; flex-shrink: 0;
}
.pa-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; display: block; }
.pa-card-inner:hover .pa-card-img { transform: scale(1.1); }
.pa-card-no-img {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; color: var(--border);
}
.pa-card-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.72rem; font-weight: 600; line-height: 1.4;
}
.pa-badge-iniciante { background: rgba(16,185,129,0.15); color: #059669; }
.pa-badge-medio { background: rgba(245,158,11,0.15); color: #d97706; }
.pa-badge-avancado { background: rgba(239,68,68,0.15); color: #dc2626; }
.pa-card-overlay {
  position: absolute; inset: 0; background: rgba(43,43,48,0);
  display: flex; align-items: center; justify-content: center; transition: background 0.3s;
}
.pa-card-inner:hover .pa-card-overlay { background: rgba(43,43,48,0.2); }
.pa-card-overlay-icon {
  width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255,255,255,0);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.75); transition: all 0.3s; color: var(--fg);
}
.pa-card-inner:hover .pa-card-overlay-icon { background: #fff; opacity: 1; transform: scale(1); }
.pa-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.pa-card-title {
  font-weight: 600; color: var(--fg); font-size: 1rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0; transition: color 0.2s;
}
.pa-card-inner:hover .pa-card-title { color: var(--primary); }
.pa-card-composer { font-size: 0.875rem; color: rgba(43,43,48,0.6); margin-top: 0.25rem; margin-bottom: 0; }
.pa-card-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.75rem; color: rgba(43,43,48,0.5); flex-wrap: wrap; }
.pa-card-meta-item { display: flex; align-items: center; gap: 0.25rem; }
.pa-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.pa-card-price { font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.pa-card-price ins, .pa-card-price .woocommerce-Price-amount { text-decoration: none !important; color: var(--primary); }
.pa-card-cta { font-size: 0.875rem; color: var(--secondary); font-weight: 500; transition: color 0.2s; }
.pa-card-inner:hover .pa-card-cta { color: var(--primary); }
.filter-clear-btn {
  padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--r-md);
  background: transparent; font-family: var(--font); font-size: 0.875rem;
  color: var(--fg); cursor: pointer; transition: var(--transition);
}
.filter-clear-btn:hover { background: rgba(43,43,48,0.06); }


/* =====================================================
   PRODUTO — pa-prod-page layout (React replica)
   ===================================================== */
.pa-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .pa-prod-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.pa-prod-img-col {
  position: sticky;
  top: 7rem;
}
.pa-prod-info-col {
  padding-top: 0.5rem;
}
/* Price HTML override inside product */
.pa-prod-page .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.pa-prod-page .price ins,
.pa-prod-page .price del {
  display: inline;
}
/* Add to cart button override */
.pa-prod-buy-wrap .single_add_to_cart_button,
.pa-prod-buy-wrap button.button {
  width: 100% !important;
  padding: 1.125rem !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  background: #23324A !important;
  color: #fff !important;
  border: none !important;
  transition: background 0.3s !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}
.pa-prod-buy-wrap .single_add_to_cart_button:hover,
.pa-prod-buy-wrap button.button:hover {
  background: #2B2B30 !important;
}
.pa-prod-buy-wrap .quantity { display: none !important; }

/* =========================================================
   SHOP SEARCH — lupa de busca na /loja
   ========================================================= */
.shop-search-wrap {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
}
.shop-search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-fg);
  pointer-events: none;
}
.shop-search {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 2.375rem;
}
.shop-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 0,0,0), 0.08);
}
.shop-search::placeholder { color: var(--muted-fg); }


/* =========================================================
   PÁGINA DE CONTATO — [pa_contato]
   ========================================================= */

/* Force header visible on dark hero background */
.page-template-page-contato-php #masthead {
  background: rgba(249, 247, 244, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

/* Hero */
.pa-contact-hero {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #fff;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
}
.pa-contact-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.pa-contact-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 0.75rem;
}
.pa-contact-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  color: #fff;
}
.pa-contact-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1.75rem;
}
.pa-contact-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.pa-contact-wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); }

/* Body layout */
.pa-contact-body { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.pa-contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .pa-contact-grid { grid-template-columns: 1fr; }
}

/* Cards */
.pa-contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  margin-bottom: 1.25rem;
}
.pa-contact-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--fg);
}
.pa-contact-card-desc {
  font-size: 0.9rem;
  color: var(--muted-fg);
  margin: 0 0 1.5rem;
}

/* Alertas */
.pa-contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.pa-contact-alert--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.pa-contact-alert--error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Formulário */
.pa-contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.pa-cf-row { display: flex; gap: 1rem; }
.pa-cf-row--2 > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 600px) { .pa-cf-row--2 { flex-direction: column; } }

.pa-cf-group { display: flex; flex-direction: column; gap: 0.35rem; }
.pa-cf-label { font-size: 0.875rem; font-weight: 500; color: var(--fg); }
.pa-cf-req { color: #e11d48; }
.pa-cf-hint { font-size: 0.8rem; color: var(--muted-fg); font-weight: 400; }

.pa-cf-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  font-family: var(--font);
  font-size: 0.925rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.pa-cf-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.pa-cf-input::placeholder { color: var(--muted-fg); }
.pa-cf-select { cursor: pointer; appearance: auto; }
.pa-cf-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* Arquivo */
.pa-cf-file-wrap { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.pa-cf-file { display: none; }
.pa-cf-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.pa-cf-file-label:hover { border-color: var(--primary); }
.pa-cf-file-name { font-size: 0.8rem; color: var(--muted-fg); }

/* Botão submit */
.pa-cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--fg);
  color: var(--white);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 0.25rem;
  align-self: flex-start;
}
.pa-cf-submit:hover { opacity: 0.85; transform: translateY(-1px); }

/* Canais de contato */
.pa-contact-channels { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.pa-contact-channel a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--fg);
  padding: 0.625rem 0.5rem;
  border-radius: var(--r-md);
  transition: background 0.15s;
}
.pa-contact-channel a:hover { background: var(--bg); }
.pa-channel-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pa-channel-icon--wa { background: #dcfce7; color: #16a34a; }
.pa-channel-icon--ig { background: #fce7f3; color: #be185d; }
.pa-channel-icon--em { background: #eff6ff; color: #1d4ed8; }
.pa-channel-text { display: flex; flex-direction: column; }
.pa-channel-text strong { font-size: 0.9rem; }
.pa-channel-text small { font-size: 0.8rem; color: var(--muted-fg); }

/* Horário */
.pa-contact-hours { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.pa-contact-hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.pa-contact-hours li:last-child { border-bottom: none; }
.pa-contact-hours-note { font-size: 0.8rem; color: var(--muted-fg); margin: 0; }

/* Copyright */
.pa-contact-card--copyright p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; margin: 0 0 0.75rem; }
.pa-contact-link { font-size: 0.875rem; color: var(--fg); font-weight: 500; text-decoration: underline; }

/* FAQ */
.pa-contact-faq { border-top: 1px solid var(--border); padding-top: 2.5rem; }
.pa-contact-faq-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 1.5rem; text-align: center; }
.pa-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .pa-faq-grid { grid-template-columns: 1fr; } }

.pa-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.pa-faq-item[open] { box-shadow: var(--shadow-sm); }
.pa-faq-q {
  padding: 1rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
.pa-faq-q::-webkit-details-marker { display: none; }
.pa-faq-q::after { content: '+'; font-size: 1.25rem; font-weight: 300; flex-shrink: 0; transition: transform 0.2s; }
.pa-faq-item[open] .pa-faq-q::after { transform: rotate(45deg); }
.pa-faq-a { padding: 0 1.25rem 1rem; font-size: 0.875rem; color: var(--muted-fg); line-height: 1.7; margin: 0; }


/* =====================================================
   PÁGINA DO CARRINHO — Customizações Visuais
   ===================================================== */

/* Remove o ícone padrão de "carinha triste" e adiciona ícone musical */
.with-empty-cart-icon::before {
  content: none !important;
  display: none !important;
}

/* Wrapper do ícone musical (injetado via JS) */
.pa-cart-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--muted-fg, #999);
}

/* Subtítulo do carrinho vazio */
.pa-cart-empty-subtitle {
  text-align: center;
  color: var(--muted-fg, rgba(43,43,48,0.6));
  font-size: 1rem;
  margin: 0.25rem 0 1.25rem;
}

/* Botão "Explorar a loja" */
.pa-cart-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--fg, #2B2B30);
  color: var(--white, #fff) !important;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: opacity 0.2s;
  margin: 0 auto 1.5rem;
}

.pa-cart-back-btn:hover {
  opacity: 0.85;
}

/* Centraliza o bloco de carrinho vazio */
.wp-block-woocommerce-empty-cart-block {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ajusta o título do carrinho vazio */
.wc-block-cart__empty-cart__title {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--fg, #2B2B30) !important;
  margin-bottom: 0.5rem !important;
}

/* Título "Novo na loja" */
.wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted-fg, rgba(43,43,48,0.6));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2rem;
}

/* Força ícone musical aparecer logo antes do título */
.wc-block-cart__empty-cart__title.with-empty-cart-icon {
  position: relative;
}

/* Melhora os cards de produto no carrinho vazio */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  border: 1px solid var(--border, #E5E3DE);
  border-radius: var(--r-lg, 12px);
  padding: 1rem;
  transition: box-shadow 0.2s;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover {
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a {
  background: var(--fg, #2B2B30) !important;
  color: var(--white, #fff) !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  padding: 0.5rem 1rem !important;
  border: none !important;
}

/* =====================================================
   CARRINHO COM ITENS + CHECKOUT — Estilo do Tema
   ===================================================== */

/* Layout principal: largura e padding */
.wc-block-cart.wc-block-components-sidebar-layout,
.wc-block-checkout.wc-block-components-sidebar-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* Título da página */
.page-id-72 h1.entry-title,
.page-id-72 h1,
.woocommerce-cart h1,
.woocommerce-checkout h1,
.page .entry-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--fg);
}

/* ---- TABELA DO CARRINHO ---- */
.wc-block-cart-items {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white, #fff);
  border: 1px solid var(--border, #E5E3DE);
  border-radius: var(--r-xl, 16px);
  overflow: hidden;
  margin-bottom: 0;
}

.wc-block-cart-items thead th {
  background: var(--bg, #F9F7F4);
  padding: 0.875rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg, rgba(43,43,48,0.55));
  border-bottom: 1px solid var(--border, #E5E3DE);
}

.wc-block-cart-items tbody tr {
  border-bottom: 1px solid var(--border, #E5E3DE);
  transition: background 0.15s;
}

.wc-block-cart-items tbody tr:last-child {
  border-bottom: none;
}

.wc-block-cart-items tbody tr:hover {
  background: var(--bg, #F9F7F4);
}

.wc-block-cart-items td {
  padding: 1.1rem 1.25rem;
  vertical-align: middle;
}

/* Imagem do produto no carrinho */
.wc-block-cart-item__image img {
  border-radius: var(--r-md, 8px);
  border: 1px solid var(--border, #E5E3DE);
  object-fit: cover;
}

/* Nome do produto no carrinho */
.wc-block-cart-item__product .wc-block-cart-item__product-name a {
  font-weight: 600;
  color: var(--fg, #2B2B30);
  text-decoration: none;
  font-size: 0.95rem;
}

.wc-block-cart-item__product .wc-block-cart-item__product-name a:hover {
  color: var(--primary, #2B2B30);
  text-decoration: underline;
}

/* Meta (variações, etc.) */
.wc-block-cart-item__product-metadata {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-top: 0.2rem;
}

/* Preço no carrinho */
.wc-block-cart-item__total .price,
.wc-block-cart-item__total .wc-block-formatted-money-amount {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg, #2B2B30);
}

/* Botão remover item */
.wc-block-cart-item__remove-link {
  color: var(--muted-fg) !important;
  transition: color 0.15s;
}
.wc-block-cart-item__remove-link:hover {
  color: #c0392b !important;
}

/* ---- SIDEBAR / TOTAIS DO CARRINHO ---- */
.wp-block-woocommerce-cart-order-summary-block {
  background: var(--white, #fff);
  border: 1px solid var(--border, #E5E3DE);
  border-radius: var(--r-xl, 16px);
  overflow: hidden;
}

.wc-block-cart__totals-title {
  padding: 1.25rem 1.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--muted-fg) !important;
  background: var(--bg, #F9F7F4) !important;
  border-bottom: 1px solid var(--border) !important;
  margin: 0 !important;
}

/* Linhas dos totais */
.wc-block-components-totals-item {
  padding: 0.875rem 1.5rem !important;
  border-bottom: 1px solid var(--border, #E5E3DE) !important;
  font-size: 0.9rem;
}

.wc-block-components-totals-item:last-child {
  border-bottom: none !important;
}

.wc-block-components-totals-item__label {
  color: var(--muted-fg);
  font-weight: 400;
}

.wc-block-components-totals-item__value {
  font-weight: 700;
  color: var(--fg);
}

/* Total final */
.wc-block-components-totals-footer-item {
  padding: 1rem 1.5rem !important;
  background: var(--bg, #F9F7F4) !important;
  border-top: 1px solid var(--border) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg) !important;
}

/* Cupom */
.wc-block-components-totals-coupon__form,
.wc-block-components-totals-gift-card {
  padding: 0.75rem 1.5rem !important;
  border-bottom: 1px solid var(--border) !important;
}

.wc-block-components-totals-coupon details summary,
.wc-block-components-totals-gift-card details summary {
  font-size: 0.85rem;
  color: var(--fg);
  cursor: pointer;
}

/* Botão principal do carrinho "Continuar para finalização" */
.wc-block-cart__submit-container .wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-container a.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wc-block-cart__submit .wc-block-cart__submit-button {
  background: var(--fg, #2B2B30) !important;
  color: var(--white, #fff) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.875rem 2rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  width: 100% !important;
  transition: opacity 0.2s !important;
  text-decoration: none !important;
  display: block !important;
  text-align: center !important;
  margin-top: 1rem !important;
}

.wp-block-woocommerce-proceed-to-checkout-block a:hover,
.wc-block-cart__submit .wc-block-cart__submit-button:hover {
  opacity: 0.85 !important;
}

/* Botões express (Apple Pay, Google Pay, PayPal) */
.wc-block-components-express-payment {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg, 12px) !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  background: var(--white) !important;
}

.wc-block-components-express-payment__title {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--muted-fg) !important;
  text-align: center !important;
  margin-bottom: 0.75rem !important;
}

.wc-block-components-express-payment__event--apple,
.wc-block-components-express-payment__event--google,
.wc-block-components-express-payment-continue-rule {
  border-radius: var(--r-md, 8px) !important;
  overflow: hidden;
}

/* Linha "OU" */
.wc-block-components-express-payment-continue-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 !important;
  color: var(--muted-fg);
  font-size: 0.8rem;
}

.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ======================================================
   CHECKOUT — Formulário de finalização
   ====================================================== */

/* Layout do checkout */
.wc-block-checkout__main {
  background: transparent !important;
}

/* Seções do formulário como cards */
.wc-block-checkout__contact-fields,
.wp-block-woocommerce-checkout-shipping-address-block,
.wp-block-woocommerce-checkout-billing-address-block,
.wp-block-woocommerce-checkout-shipping-method-block,
.wp-block-woocommerce-checkout-payment-block {
  background: var(--white, #fff) !important;
  border: 1px solid var(--border, #E5E3DE) !important;
  border-radius: var(--r-xl, 16px) !important;
  padding: 1.5rem !important;
  margin-bottom: 1rem !important;
}

/* Títulos das seções */
.wc-block-components-checkout-step__heading-container {
  margin-bottom: 1.25rem;
}

.wc-block-components-checkout-step__heading {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--muted-fg, rgba(43,43,48,0.6)) !important;
}

/* Número do step */
.wc-block-components-checkout-step__title-icon {
  display: none !important;
}

/* Inputs do checkout */
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-country-input input,
.wc-block-components-state-input input {
  border: 1px solid var(--border, #E5E3DE) !important;
  border-radius: var(--r-md, 8px) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.9rem !important;
  color: var(--fg, #2B2B30) !important;
  background: var(--bg, #F9F7F4) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  outline: none !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus {
  border-color: var(--fg, #2B2B30) !important;
  box-shadow: 0 0 0 2px rgba(43,43,48,0.08) !important;
  background: var(--white, #fff) !important;
}

/* Labels dos inputs */
.wc-block-components-text-input label,
.wc-block-components-combobox label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--muted-fg) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Checkbox do checkout */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type='checkbox'] {
  accent-color: var(--fg, #2B2B30);
}

.wc-block-components-checkbox .wc-block-components-checkbox__label {
  font-size: 0.85rem;
  color: var(--muted-fg);
}

/* ---- SIDEBAR DO CHECKOUT: Resumo do pedido ---- */
.wp-block-woocommerce-checkout-order-summary-block {
  background: var(--white, #fff) !important;
  border: 1px solid var(--border, #E5E3DE) !important;
  border-radius: var(--r-xl, 16px) !important;
  overflow: hidden !important;
}

/* Título do resumo */
.wc-block-components-order-summary__title,
.wc-block-checkout__order-summary h2 {
  padding: 1.25rem 1.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--muted-fg) !important;
  background: var(--bg, #F9F7F4) !important;
  border-bottom: 1px solid var(--border) !important;
  margin: 0 !important;
}

/* Items no resumo */
.wc-block-order-summary-item {
  padding: 1rem 1.5rem !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.wc-block-components-order-summary-item__product-name {
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  color: var(--fg) !important;
}

.wc-block-components-order-summary-item__individual-prices {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

.wc-block-components-order-summary-item__total-price {
  font-weight: 700 !important;
  color: var(--fg) !important;
  font-size: 0.9rem !important;
}

/* Quantidade badge nos itens */
.wc-block-components-order-summary-item__quantity {
  background: var(--fg, #2B2B30) !important;
  color: var(--white, #fff) !important;
  border-radius: 999px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  min-width: 18px !important;
  height: 18px !important;
}

/* Botão de finalizar pedido */
.wc-block-components-checkout-place-order-button {
  background: var(--fg, #2B2B30) !important;
  color: var(--white, #fff) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  width: 100% !important;
  transition: opacity 0.2s !important;
  margin-top: 1rem !important;
}

.wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
}

/* Aviso de privacidade/termos */
.wc-block-checkout__privacy-policy-notice,
.wc-block-checkout__terms-and-conditions-checkbox-panel {
  font-size: 0.78rem !important;
  color: var(--muted-fg) !important;
}

/* Métodos de pagamento */
.wc-block-components-radio-control-accordion-option {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md, 8px) !important;
  margin-bottom: 0.5rem !important;
  overflow: hidden !important;
  transition: border-color 0.15s !important;
}

.wc-block-components-radio-control-accordion-option:has(input:checked) {
  border-color: var(--fg, #2B2B30) !important;
}

.wc-block-components-radio-control-accordion-option__content {
  padding: 1rem !important;
}

.wc-block-components-radio-control__label-group {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

/* Select/Dropdown de país e estado */
.wc-block-components-combobox .wc-block-components-combobox-control,
.wc-block-components-country-input .wc-block-components-combobox-control {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md, 8px) !important;
}

/* Aviso de erro */
.wc-block-components-validation-error {
  font-size: 0.78rem !important;
  color: #c0392b !important;
  margin-top: 0.2rem !important;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 768px) {
  .wc-block-cart.wc-block-components-sidebar-layout,
  .wc-block-checkout.wc-block-components-sidebar-layout {
    padding: 0 0.75rem 2rem;
  }
  
  .wc-block-checkout__contact-fields,
  .wp-block-woocommerce-checkout-shipping-address-block,
  .wp-block-woocommerce-checkout-billing-address-block,
  .wp-block-woocommerce-checkout-shipping-method-block,
  .wp-block-woocommerce-checkout-payment-block {
    padding: 1rem !important;
    border-radius: var(--r-lg, 12px) !important;
  }
}