:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --fg: #1C1917;
  --fg-light: #57534E;
  --accent: #B8860B;
  --accent-light: #D4AF37;
  --accent-pale: #F5E6C8;
  --border: #E7E5E4;
  --border-dark: #D6D3D1;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container: 1280px;
  --gutter: 48px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* HEADER */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

.header-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.header-logo span { color: var(--accent); }

.header-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.2s;
  position: relative;
  padding: 0;
  background: none;
}

.header-nav a:hover { color: var(--accent); }

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.header-nav a:hover::after { width: 100%; }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon {
  width: 20px;
  height: 20px;
  color: var(--fg);
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
}

.header-icon:hover { color: var(--accent); }

.header-icon svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  color: var(--surface);
  font-size: 9px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 60%;
  height: 130%;
  background: radial-gradient(ellipse at center, var(--accent-pale) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-eyebrow::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 18px;
  color: var(--fg-light);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-dark);
}

.btn-outline:hover {
  background: var(--fg);
  color: var(--surface);
  border-color: var(--fg);
}

.btn-dark {
  background: var(--fg);
  color: var(--surface);
  border-color: var(--fg);
}

.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* BENEFITS BAR */
.benefits-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.benefits-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--fg-light);
}

.benefit-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.benefit-item strong {
  font-weight: 500;
  color: var(--fg);
}

/* SECTION */
.section {
  padding: 80px 0;
}

.section-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-header-centered {
  text-align: center;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
  text-decoration: none;
  position: relative;
}

.section-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.section-link:hover::after {
  width: 100%;
}

.section-link:hover {
  gap: 12px;
  color: var(--accent);
}

.section-link:hover svg {
  color: var(--fg);
}

.section-desc {
  font-size: 15px;
  color: var(--fg-light);
  margin-top: 12px;
  max-width: 480px;
}

/* CATEGORY GRID */
.category-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  display: block;
  text-decoration: none;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img { transform: scale(1.06); }

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,0.7) 0%, transparent 50%);
  pointer-events: none;
}

.category-info {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 1;
  color: var(--surface);
}

.category-info h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}

.category-info p {
  font-size: 13px;
  opacity: 0.8;
  letter-spacing: 0.03em;
}

/* PRODUCT GRID */
.product-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-card:hover { transform: translateY(-4px); }

.product-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--border);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img { transform: scale(1.05); }

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--surface);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}

.product-tag.sold-out {
  background: var(--fg);
}

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.product-wishlist:hover {
  background: var(--surface);
}

.product-wishlist svg {
  width: 16px;
  height: 16px;
  color: var(--fg);
}

.product-info {
  padding: 16px 0;
}

.product-brand {
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-price {
  font-size: 19px;
  font-weight: 500;
  color: var(--fg);
}

.product-price-old {
  display: none;
}

.product-installments {
  font-size: 12px;
  color: var(--fg-light);
  margin-top: 4px;
}

/* HOME BANNER (carrossel no padrão do hero original: fundo claro, text-centric) */
.home-banner {
  background: var(--surface);
}

.home-banner-carousel {
  position: relative;
  overflow: hidden;
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 96px;
  min-height: 90vh;
  padding: 120px var(--gutter) 80px;
  background: var(--surface);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.home-banner-slide::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 60%;
  height: 130%;
  background: radial-gradient(ellipse at center, var(--accent-pale) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.home-banner-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.home-banner-content {
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.home-banner-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-banner-eyebrow::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.home-banner-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.home-banner-title em {
  font-style: italic;
  color: var(--accent);
}

.home-banner-desc {
  font-size: 18px;
  color: var(--fg-light);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.home-banner-figure {
  position: relative;
  width: 400px;
  flex-shrink: 0;
  margin: 0;
  z-index: 1;
}

.home-banner-figure::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-dark);
  z-index: -1;
}

.home-banner-figure img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(28, 25, 23, 0.1);
}

.home-banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.home-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-dark);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.home-banner-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  .home-banner-figure { display: none; }
}

@media (max-width: 768px) {
  .home-banner-slide {
    min-height: 70vh;
    padding: 100px var(--gutter) 60px;
  }

  .home-banner-content {
    text-align: center;
    max-width: 100%;
  }

  .home-banner-eyebrow { justify-content: center; }
  .home-banner-eyebrow::after { display: none; }

  .home-banner-title {
    font-size: clamp(30px, 8vw, 44px);
    margin-bottom: 20px;
  }

  .home-banner-desc {
    font-size: 15px;
    margin: 0 auto 36px;
  }

  .home-banner-dots {
    bottom: 12px;
  }
}

/* OFFER BANNER (mini banner de ofertas: imagem + gradiente + overlay) */
.offer-banner { padding: 32px 0; }
.offer-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.offer-banner-media {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.offer-banner-img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.offer-banner-media:hover .offer-banner-img { transform: scale(1.03); }
.offer-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: 0 8%;
  color: #fff;
  background: linear-gradient(90deg, rgba(28,25,23,0.7) 0%, rgba(28,25,23,0.25) 60%, rgba(28,25,23,0) 100%);
}
.offer-banner-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 36px;
  line-height: 1.15;
  max-width: 60%;
  margin: 0;
}
@media (max-width: 768px) {
  .offer-banner-img { height: 300px; }
  .offer-banner-overlay {
    justify-content: flex-end;
    padding: 0 24px 28px;
    background: linear-gradient(180deg, rgba(28,25,23,0.15) 0%, rgba(28,25,23,0.65) 100%);
  }
  .offer-banner-title { font-size: 24px; max-width: 100%; }
}

/* FEATURED BANNER */
.featured-banner {
  background: var(--fg);
  color: var(--surface);
  padding: 100px 0;
}

.featured-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.featured-banner-text .section-eyebrow {
  color: var(--accent-light);
}

.featured-banner-text h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.featured-banner-text h2 em {
  font-style: normal;
  color: var(--accent-light);
}

.featured-banner-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.featured-banner-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.featured-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* STEPS */
.steps-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  text-align: center;
}

.step-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  color: var(--accent-pale);
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.step h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  color: var(--fg-light);
  line-height: 1.7;
}

/* TESTIMONIALS */
.testimonials {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.testimonial-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  padding: 40px;
  border: 1px solid var(--border);
  text-align: center;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  fill: var(--accent);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-light);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 500;
}

.testimonial-author span {
  display: block;
  font-weight: 400;
  color: var(--fg-light);
  font-size: 12px;
  margin-top: 4px;
}

/* FOOTER */
.footer {
  background: var(--fg);
  color: var(--surface);
  padding: 80px 0 0;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .header-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-brand .header-logo span {
  color: var(--accent-light);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  color: var(--surface);
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--surface);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  text-decoration: none;
  background: none;
  padding: 0;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-payment {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-payment svg {
  height: 24px;
  width: auto;
}

/* CART DRAWER */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: var(--surface);
  z-index: 201;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0;
}

.cart-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--fg);
  padding: 0;
}

.cart-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  color: var(--border);
  margin-bottom: 16px;
}

.cart-empty p {
  font-size: 14px;
  color: var(--fg-light);
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-right: 40px;
}

.cart-item .remove-btn {
  position: absolute;
  top: 16px;
  right: 0;
}

.cart-item-image {
  width: 72px;
  height: 90px;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--fg-light);
  margin-bottom: 8px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 500;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
}

.cart-checkout {
  display: block;
  width: 100%;
  text-align: center;
}

/* Add-to-cart Toast */
.grafinas-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: var(--fg);
  color: var(--surface);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.grafinas-toast.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.grafinas-toast-link {
  color: var(--accent-light);
  text-decoration: underline;
  font-weight: 500;
  margin-left: 4px;
  white-space: nowrap;
}

.grafinas-toast-link:hover {
  color: var(--accent);
}

.grafinas-toast--error {
  background: #1a1a1a;
  border-left: 4px solid #e5484d;
  max-width: 360px;
}

.grafinas-toast--info {
  max-width: 360px;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1EBE5B;
  border-color: #1EBE5B;
  color: #fff;
}

/* Input com erro: borda vermelha + fundo claro avermelhado */
.woocommerce-checkout .form-row.grafinas-invalid input.input-text,
.woocommerce-checkout .form-row.grafinas-invalid select,
.woocommerce-checkout .form-row.grafinas-invalid textarea,
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select {
  border-color: #e5484d !important;
  background-color: #fef2f2 !important;
}

/* Ocultar o banner de erro padrão do WooCommerce dentro do checkout */
.woocommerce-checkout form.checkout .woocommerce-NoticeGroup-checkout {
  display: none !important;
}

/* MOBILE NAV */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-inner {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background: var(--surface);
  z-index: 301;
  transition: left 0.3s ease;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav-inner {
  left: 0;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--fg);
  cursor: pointer;
  margin-bottom: 32px;
  display: block;
  padding: 0;
  line-height: 1;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-links li {
  margin-bottom: 8px;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav-links a:hover {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-banner-inner { grid-template-columns: 1fr; gap: 40px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .header-nav { display: none; }
  .mobile-toggle { display: flex; }

  .hero { min-height: 70vh; padding: 100px var(--gutter) 60px; }
  .hero-content { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-eyebrow { justify-content: center; }
  .hero-eyebrow::after { display: none; }
  .hero-actions { justify-content: center; }

  .category-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }

  .cart-drawer { width: 100%; right: -100%; }

  .featured-banner-inner { gap: 32px; }
  .featured-banner-text h2 { font-size: clamp(20px, 4.5vw, 30px); }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---- 011 - Header Dropdown ---- */

.header-nav .menu-item-has-children {
    position: relative;
}

.header-nav .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    transition: transform 0.2s;
}

.menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.header-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 200;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(4px);
}

.header-nav .sub-menu li {
    margin: 0;
}

.header-nav .sub-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.header-nav .sub-menu a:hover {
    background: var(--bg);
    color: var(--accent);
}

.header-nav .sub-menu a::after {
    display: none;
}

/* WOOCOMMERCE OVERRIDES */
.woocommerce .product-grid .product-card .add_to_cart_button,
.woocommerce .product-grid .product-card .button {
  display: none;
}

.woocommerce .woocommerce-breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  font-size: 13px;
  color: var(--fg-light);
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--fg-light);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.woocommerce .woocommerce-result-count {
  font-size: 14px;
  color: var(--fg-light);
}

.woocommerce .woocommerce-ordering select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg);
  background: var(--surface);
}

.woocommerce .products ul,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  background: var(--surface);
  transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
}

.woocommerce ul.products li.product a img {
  margin: 0;
}

.woocommerce ul.products li.product .price {
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
}

.woocommerce ul.products li.product .price del {
  color: var(--fg-light);
  font-size: 13px;
}

.woocommerce div.product {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter);
}

.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
}

.woocommerce div.product p.price {
  font-size: 24px;
  font-weight: 500;
  color: var(--fg);
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 15px;
  color: var(--fg-light);
  line-height: 1.7;
}

.woocommerce .quantity .qty {
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg);
}

.woocommerce .single_add_to_cart_button {
  background: var(--accent) !important;
  color: var(--surface) !important;
  border: 1px solid var(--accent) !important;
  padding: 16px 32px !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
}

.woocommerce .single_add_to_cart_button:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
}

.woocommerce .single_add_to_cart_button:disabled,
.woocommerce .single_add_to_cart_button[disabled] {
  background: var(--border) !important;
  border-color: var(--border) !important;
  color: var(--fg-light) !important;
  cursor: not-allowed !important;
}

/* Account & Checkout */
.woocommerce-checkout .checkout_coupon {
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 24px !important;
}

.woocommerce-checkout form .form-row .input-text {
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg);
  background: var(--surface);
  border-radius: 0;
  transition: border-color 0.2s;
}

.woocommerce-checkout form .form-row .input-text:focus {
  border-color: var(--accent);
  outline: none;
}

/* Page title override for Elementor pages */
.page-header,
.entry-header {
  display: none;
}

/* Override parent theme site-main max-width to match header */
body:not([class*=elementor-page-]) .site-main {
  max-width: var(--container) !important;
}

.single-product .site-main {
  max-width: var(--container) !important;
}

/* =============================================
   SHOP LAYOUT — archive-product.php
   ============================================= */

.shop-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem var(--gutter);
}

.shop-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 1rem;
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  height: fit-content;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.shop-content {
  flex: 1;
  min-width: 0;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.shop-header .section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 0.25rem;
}

.shop-header .section-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.shop-count {
  font-size: 14px;
  color: var(--fg-light);
}

.shop-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-toggle:hover {
  background: var(--fg);
  color: var(--surface);
  border-color: var(--fg);
}

.sidebar-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: var(--fg);
}

/* ---- Filter Widget ---- */
.filter-widget {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-widget:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
  color: var(--fg);
}

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

.filter-list li {
  margin-bottom: 0.4rem;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 14px;
  color: var(--fg-light);
  transition: color 0.15s;
}

.filter-list label:hover {
  color: var(--fg);
}

.filter-list input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-price-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}

.filter-price-input:focus {
  border-color: var(--accent);
}

.filter-price-sep {
  color: var(--fg-light);
  font-size: 14px;
}

/* ---- Product Grid (Shop) ---- */
.shop-content .product-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0;
}

.shop-content .product-grid .product-card-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ---- Pagination ---- */
.shop-pagination {
  margin-top: 2rem;
  text-align: center;
}

.shop-pagination .page-numbers {
  display: inline-flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-pagination .page-numbers li {
  display: inline;
}

.shop-pagination .page-numbers a,
.shop-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: all 0.15s;
}

.shop-pagination .page-numbers a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.shop-pagination .page-numbers .current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

/* ---- Sort ---- */
.shop-sort {
  position: relative;
}

.sort-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--fg);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.sort-toggle:active,
.sort-toggle:focus {
  color: var(--fg);
  background: transparent;
  outline: none;
}

.sort-toggle:hover {
  background: var(--fg);
  color: var(--surface);
  border-color: var(--fg);
}

.sort-toggle:hover svg {
  color: var(--surface);
}

.sort-toggle svg {
  transition: transform 0.2s;
}

.sort-toggle.open svg {
  transform: rotate(180deg);
}

.sort-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.25rem 0;
  margin: 0;
  min-width: 160px;
  z-index: 100;
}

.sort-options.open {
  display: block;
}

.sort-options li {
  padding: 0.5rem 1rem;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sort-options li:hover {
  background: var(--bg);
  color: var(--accent);
}

.sort-options li.active {
  font-weight: 600;
  color: var(--fg);
}

/* ---- Overlay ---- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}

/* ---- Loading State ---- */
.shop-content .product-grid.loading {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .shop-content .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .shop-layout {
    flex-direction: column;
    padding: 1rem var(--gutter);
  }

  .shop-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    z-index: 999;
    border-radius: 0 12px 12px 0;
    border: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    padding-top: 1rem;
  }

  .shop-sidebar.open {
    display: block;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .sidebar-header {
    display: flex;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .shop-content .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .shop-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .shop-content .product-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   002 - Empty State Styles
   ============================================= */

.shop-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 50vh;
	text-align: center;
	padding: 80px 40px;
	color: var(--fg-light);
	grid-column: 1 / -1;
}

.shop-empty-icon {
	color: var(--border);
	margin-bottom: 20px;
}

.shop-empty-title {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 400;
	color: var(--fg);
	margin: 0 0 8px;
}

.shop-empty-desc {
	font-size: 15px;
	color: var(--fg-light);
	margin: 0;
	line-height: 1.6;
}

/* =============================================
   003 - Product Carousel
   ============================================= */

.product-carousel {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--border);
}

.product-carousel-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.product-carousel-slide.active {
	opacity: 1;
	pointer-events: auto;
	position: relative;
}

.product-carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.product-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: all 0.3s ease;
	padding: 0;
	color: var(--fg);
}

.product-carousel-arrow:hover {
	background: var(--fg);
	color: var(--surface);
	border-color: var(--fg);
}

.product-carousel-arrow.prev {
	left: 16px;
}

.product-carousel-arrow.next {
	right: 16px;
}

.product-carousel-arrow:active,
.product-carousel-arrow:focus {
	outline: none;
	color: var(--fg);
	background: var(--surface);
}

.product-carousel-arrow:active:focus {
	color: var(--surface);
	background: var(--fg);
}

@media (max-width: 768px) {
	.product-carousel-arrow {
		width: 32px;
		height: 32px;
	}

	.product-carousel-arrow svg {
		width: 16px;
		height: 16px;
	}

	.product-carousel-arrow.prev {
		left: 10px;
	}

	.product-carousel-arrow.next {
		right: 10px;
	}
}

/* ---- Product Gallery Summary ---- */
.product-gallery-summary {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 48px;
	max-width: var(--container);
	margin: 0 auto;
	padding: 40px 48px 40px 0;
}

/* Event date input on product page */
.grafinas-event-date-wrap {
	margin-bottom: 24px;
}

.grafinas-event-label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
	color: var(--fg-light);
}

.grafinas-event-input {
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid var(--border);
	border-radius: 0;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--fg);
	background: var(--surface);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.grafinas-event-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-pale);
}

.grafinas-event-hint {
	display: block;
	font-size: 13px;
	color: var(--fg-light);
	margin-top: 6px;
}

/* =============================================
   Flatpickr Theme - Grã Finas
   ============================================= */

.grafinas-flatpickr {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 0;
	box-shadow: 0 8px 32px rgba(0,0,0,0.08);
	font-family: var(--font-body);
	padding: 16px;
}

.grafinas-flatpickr .flatpickr-months {
	padding: 0 0 12px;
	align-items: center;
}

.grafinas-flatpickr .flatpickr-month {
	height: auto;
}

.grafinas-flatpickr .flatpickr-current-month {
	padding: 0;
	font-size: 15px;
	font-weight: 500;
}

.grafinas-flatpickr .flatpickr-current-month .flatpickr-monthDropdown-months {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 15px;
	padding: 0;
}

.grafinas-flatpickr .flatpickr-current-month input.cur-year {
	font-size: 15px;
	font-weight: 500;
}

.grafinas-flatpickr .flatpickr-weekday {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fg-light);
}

.grafinas-flatpickr .flatpickr-day {
	font-family: var(--font-body);
	font-size: 13px;
	border-radius: 0;
	line-height: 38px;
	height: 38px;
	max-width: 38px;
	margin: 2px;
	color: var(--fg);
	transition: background 0.15s, color 0.15s;
}

.grafinas-flatpickr .flatpickr-day:hover {
	background: var(--accent-pale);
	color: var(--fg);
	border-color: transparent;
}

.grafinas-flatpickr .flatpickr-day.today {
	border-color: var(--accent);
	font-weight: 600;
}

.grafinas-flatpickr .flatpickr-day.today:hover {
	background: var(--accent-pale);
	border-color: var(--accent);
}

.grafinas-flatpickr .flatpickr-day.selected,
.grafinas-flatpickr .flatpickr-day.startRange,
.grafinas-flatpickr .flatpickr-day.endRange,
.grafinas-flatpickr .flatpickr-day.selected.inRange,
.grafinas-flatpickr .flatpickr-day.startRange.inRange,
.grafinas-flatpickr .flatpickr-day.endRange.inRange,
.grafinas-flatpickr .flatpickr-day.selected:focus,
.grafinas-flatpickr .flatpickr-day.startRange:focus,
.grafinas-flatpickr .flatpickr-day.endRange:focus,
.grafinas-flatpickr .flatpickr-day.selected:hover,
.grafinas-flatpickr .flatpickr-day.startRange:hover,
.grafinas-flatpickr .flatpickr-day.endRange:hover,
.grafinas-flatpickr .flatpickr-day.selected.prevMonthDay,
.grafinas-flatpickr .flatpickr-day.startRange.prevMonthDay,
.grafinas-flatpickr .flatpickr-day.endRange.prevMonthDay,
.grafinas-flatpickr .flatpickr-day.selected.nextMonthDay,
.grafinas-flatpickr .flatpickr-day.startRange.nextMonthDay,
.grafinas-flatpickr .flatpickr-day.endRange.nextMonthDay {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--surface);
	box-shadow: none;
}

.grafinas-flatpickr .flatpickr-day.selected:hover {
	background: var(--accent-light);
	border-color: var(--accent-light);
}

.grafinas-flatpickr .flatpickr-day.inRange {
	background: var(--accent-pale);
	border-color: transparent;
	color: var(--fg);
	box-shadow: none;
}

.grafinas-flatpickr .flatpickr-day.flatpickr-disabled,
.grafinas-flatpickr .flatpickr-day.flatpickr-disabled:hover {
	color: var(--border-dark);
	background: transparent;
	border-color: transparent;
	cursor: not-allowed;
}

.grafinas-flatpickr .flatpickr-day.prevMonthDay,
.grafinas-flatpickr .flatpickr-day.nextMonthDay {
	color: var(--fg);
}

.grafinas-flatpickr .flatpickr-weekwrapper .flatpickr-weeks {
	box-shadow: none;
}

.grafinas-flatpickr .flatpickr-weekwrapper span.flatpickr-day {
	color: var(--fg-light);
	font-size: 11px;
}

.grafinas-flatpickr .flatpickr-prev-month,
.grafinas-flatpickr .flatpickr-next-month {
	padding: 4px;
	width: 28px;
	height: 28px;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.grafinas-flatpickr .flatpickr-prev-month:hover,
.grafinas-flatpickr .flatpickr-next-month:hover {
	background: var(--accent-pale);
}

.grafinas-flatpickr .flatpickr-prev-month svg,
.grafinas-flatpickr .flatpickr-next-month svg {
	width: 10px;
	height: 10px;
	fill: var(--fg);
}

.grafinas-flatpickr .flatpickr-prev-month:hover svg,
.grafinas-flatpickr .flatpickr-next-month:hover svg {
	fill: var(--accent);
}

.grafinas-flatpickr .flatpickr-innerContainer {
	padding-bottom: 0;
}

.grafinas-flatpickr .dayContainer {
	gap: 0;
}

/* =============================================
   004 - Cart Improvements
   ============================================= */

.woocommerce-cart .cart_item del,
.cart-item-price del {
	display: none;
}

.woocommerce-cart .cart_item ins {
	text-decoration: none;
}

.remove-btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 50%;
	cursor: pointer;
	color: var(--fg-light);
	transition: all 0.2s;
	padding: 0;
}

.remove-btn:hover {
	color: #dc2626;
	border-color: #dc2626;
	background: #fef2f2;
}

.quantity-wrapper {
	display: flex;
	align-items: center;
	gap: 4px;
}

.qty-btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	cursor: pointer;
	color: var(--fg);
	font-size: 16px;
	line-height: 1;
	transition: all 0.2s;
	padding: 0;
}

.qty-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.qty-btn:active {
	background: var(--bg);
}

.quantity-wrapper .qty {
	width: 48px !important;
	text-align: center;
	padding: 6px !important;
	border: 1px solid var(--border) !important;
	border-radius: 6px !important;
	font-family: var(--font-body);
	font-size: 14px;
	-moz-appearance: textfield;
}

.quantity-wrapper .qty::-webkit-inner-spin-button,
.quantity-wrapper .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.confirm-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 999;
}

.confirm-overlay.open {
	display: block;
}

.confirm-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
	width: 90%;
	max-width: 400px;
}

.confirm-modal.open {
	display: block;
}

.confirm-card {
	background: var(--surface);
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.15);
	text-align: center;
}

.confirm-title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 400;
	color: var(--fg);
	margin: 0 0 12px;
}

.confirm-message {
	font-size: 15px;
	color: var(--fg-light);
	line-height: 1.6;
	margin: 0 0 24px;
}

.confirm-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}

/* ---- Auth Modal (Login / Register) ---- */

.auth-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 998;
}

.auth-overlay.open {
	display: block;
}

.auth-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 999;
	width: 90%;
	max-width: 420px;
	background: var(--surface);
	border-radius: 12px;
	padding: 40px 32px 32px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.auth-modal.open {
	display: block;
}

.auth-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--fg-light);
	padding: 4px;
	line-height: 0;
}

.auth-close:hover {
	color: var(--fg);
}

.auth-forms {
	position: relative;
}

.auth-form {
	display: none;
}

.auth-form.active {
	display: block;
}

.auth-form h3 {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 400;
	color: var(--fg);
	margin: 0 0 24px;
	text-align: center;
}

.auth-form p {
	margin: 0 0 16px;
}

.auth-form label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--fg);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--border);
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	color: var(--fg);
	background: var(--surface);
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.auth-form input:focus {
	border-color: var(--dourado);
}

.auth-form .btn {
	width: 100%;
	margin-top: 8px;
}

.auth-error {
	display: none;
	font-size: 14px;
	color: #dc2626;
	margin-bottom: 16px;
	padding: 10px 14px;
	background: #fef2f2;
	border-radius: 8px;
	border: 1px solid #fecaca;
}

.auth-remember {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--fg-light);
	cursor: pointer;
}

.auth-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--accent);
}

.auth-toggle {
	font-size: 14px;
	color: var(--fg-light);
	text-align: center;
	margin: 20px 0 0 !important;
}

.auth-toggle a {
	color: var(--dourado);
	text-decoration: underline;
	cursor: pointer;
}

.auth-toggle a:hover {
	color: var(--dourado-hover);
}

.confirm-actions .btn {
	min-width: 120px;
}

.woocommerce-cart .cart_item .product-name a {
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 18px;
}

.woocommerce-cart .cart_item .product-name a:hover {
	color: var(--accent);
}

.woocommerce-cart .cart_item .product-subtotal {
	font-weight: 500;
	font-size: 16px;
}

@media (max-width: 768px) {
	.confirm-card {
		padding: 24px;
	}

	.confirm-actions {
		flex-direction: column;
	}

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

/* =============================================
   006 - Product Details: Reviews & Carousel
   ============================================= */

.product-reviews-section {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

.reviews-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-top: 24px;
}

.reviews-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.review-item {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
}

.review-item:last-child {
	border-bottom: none;
}

.review-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	font-size: 13px;
}

.review-author {
	font-weight: 600;
	color: var(--fg);
}

.review-stars {
	color: var(--accent);
	font-size: 14px;
	letter-spacing: 2px;
}

.review-date {
	color: var(--fg-light);
	font-size: 12px;
}

.review-text {
	font-size: 14px;
	color: var(--fg-light);
	line-height: 1.6;
}

.reviews-empty {
	font-size: 14px;
	color: var(--fg-light);
	padding: 20px 0;
}

.reviews-form h3 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 400;
	color: var(--fg);
	margin-bottom: 16px;
}

.question-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.question-form input[type="text"],
.question-form input[type="email"],
.question-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--fg);
	background: var(--surface);
	transition: border-color 0.2s;
}

.question-form input:focus,
.question-form textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.star-rating-input label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fg-light);
	margin-bottom: 6px;
}

.star-rating-input .stars {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
}

.star-rating-input .stars input {
	display: none;
}

.star-rating-input .stars label {
	font-size: 24px;
	color: var(--border-dark);
	cursor: pointer;
	transition: color 0.15s;
}

.star-rating-input .stars label:hover,
.star-rating-input .stars label:hover ~ label,
.star-rating-input .stars input:checked ~ label {
	color: var(--accent);
}

.form-feedback {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.form-feedback.success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.form-feedback.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ---- Category Carousel ---- */

.category-carousel {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

.category-carousel .section-title {
	margin-bottom: 24px;
}

.carousel-wrapper {
	position: relative;
}

.carousel-viewport {
	overflow: hidden;
}

.carousel-track {
	display: flex;
	gap: 24px;
	transition: transform 0.4s ease;
}

.carousel-track .product-card-wrapper {
	flex: 0 0 calc(25% - 18px);
	min-width: 0;
	text-decoration: none;
	color: inherit;
	display: block;
}

.carousel-track .product-card {
	cursor: pointer;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 50%;
	cursor: pointer;
	color: var(--fg);
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.2s;
	padding: 0;
}

.carousel-arrow:hover {
	border-color: var(--accent);
	color: var(--accent);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.carousel-arrow.prev {
	left: -20px;
}

.carousel-arrow.next {
	right: -20px;
}

@media (max-width: 1024px) {
	.reviews-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.carousel-track .product-card-wrapper {
		flex: 0 0 calc(33.33% - 16px);
	}
}

@media (max-width: 768px) {
	.carousel-track .product-card-wrapper {
		flex: 0 0 calc(50% - 12px);
	}

	.carousel-arrow.prev {
		left: -12px;
	}

	.carousel-arrow.next {
		right: -12px;
	}
}

.carousel-arrow.disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

@media (max-width: 480px) {
	.carousel-track .product-card-wrapper {
		flex: 0 0 calc(100% - 0px);
	}
}

/* =============================================
   012 — Customer Login / Register
   ============================================= */

.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-ResetPassword {
	max-width: 440px;
	margin: 0 auto;
	padding: 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
	margin-bottom: 16px;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--fg);
	margin-bottom: 6px;
}

.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--fg);
	background: var(--surface);
	transition: border-color 0.2s;
}

.woocommerce-form-login input.input-text:focus,
.woocommerce-form-register input.input-text:focus {
	outline: none;
	border-color: var(--accent);
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
	width: 100%;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 600;
	font-family: var(--font-body);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	background: var(--fg);
	color: var(--surface);
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
	opacity: 0.85;
}

.woocommerce-form-login .lost_password {
	margin-top: 12px;
	text-align: center;
}

.woocommerce-form-login .lost_password a {
	font-size: 13px;
	color: var(--fg-light);
	text-decoration: underline;
}

.woocommerce-form-login .lost_password a:hover {
	color: var(--accent);
}

/* Checkout-specific login forms */
.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .woocommerce-form-register {
	margin: 0 0 24px;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle {
	font-size: 14px;
	color: var(--fg-light);
	margin-bottom: 16px;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle a,
.woocommerce-checkout .woocommerce-form-login-toggle a {
	color: var(--accent);
	text-decoration: underline;
}

/* My Account - sidebar layout */

.grafinas-myaccount {
	display: flex;
	gap: 40px;
	max-width: 1100px;
	margin: 40px auto;
	padding: 0 24px;
	min-height: 60vh;
}

.grafinas-myaccount-sidebar {
	flex: 0 0 220px;
	min-width: 0;
}

.grafinas-myaccount-nav {
	position: sticky;
	top: 24px;
}

.grafinas-myaccount-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.grafinas-myaccount-nav li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--fg);
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.2s, color 0.2s;
}

.grafinas-myaccount-nav li a:hover {
	background: var(--bg);
	color: var(--fg);
}

.grafinas-myaccount-nav li.is-active a {
	background: var(--accent-pale);
	color: var(--accent);
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--accent);
}

.grafinas-myaccount-nav li:last-child {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
}

.grafinas-myaccount-nav li:last-child a {
	color: var(--fg-light);
	font-size: 14px;
}

.grafinas-myaccount-nav li:last-child a:hover {
	color: #dc2626;
	background: #fef2f2;
}

.grafinas-myaccount-nav li.is-active:last-child a {
	color: #dc2626;
	background: #fef2f2;
	box-shadow: inset 3px 0 0 #dc2626;
	font-weight: 500;
}

.grafinas-myaccount-nav .nav-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.grafinas-myaccount-nav .nav-icon svg {
	width: 20px;
	height: 20px;
}

.grafinas-myaccount-nav .nav-label {
	line-height: 1.3;
}

.grafinas-myaccount-content {
	flex: 1;
	min-width: 0;
}

.grafinas-myaccount-content .woocommerce-MyAccount-content {
	max-width: 100%;
}

.grafinas-myaccount-content .addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.grafinas-myaccount-content .col-1,
.grafinas-myaccount-content .col-2 {
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.grafinas-myaccount-content .col-1 address,
.grafinas-myaccount-content .col-2 address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fg);
}

.grafinas-myaccount-content .col-1 .title,
.grafinas-myaccount-content .col-2 .title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.grafinas-myaccount-content .col-1 .title h3,
.grafinas-myaccount-content .col-2 .title h3 {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 500;
	margin: 0;
}

.grafinas-myaccount-content .edit {
	font-size: 13px;
	color: var(--accent);
	text-decoration: underline;
}

/* My Account - orders table */
.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.woocommerce-orders-table th {
	font-weight: 600;
	color: var(--fg-light);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.woocommerce-orders-table td {
	color: var(--fg);
}

.woocommerce-orders-table .woocommerce-button {
	padding: 8px 16px;
	font-size: 13px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface);
	color: var(--fg);
	text-decoration: none;
	transition: all 0.2s;
}

.woocommerce-orders-table .woocommerce-button:hover {
	background: var(--fg);
	color: var(--surface);
	border-color: var(--fg);
}

/* My Account - responsive */
@media (max-width: 768px) {
	.grafinas-myaccount {
		flex-direction: column;
		gap: 24px;
		padding: 0 16px;
		margin: 24px auto;
	}

	.grafinas-myaccount-sidebar {
		flex: none;
	}

	.grafinas-myaccount-nav ul {
		flex-direction: row;
		overflow-x: auto;
		gap: 0;
		border-bottom: 1px solid var(--border);
		padding-bottom: 0;
		-webkit-overflow-scrolling: touch;
	}

	.grafinas-myaccount-nav li {
		flex-shrink: 0;
	}

	.grafinas-myaccount-nav li a {
		padding: 12px 16px;
		border-radius: 0;
		border-bottom: 2px solid transparent;
		margin-bottom: -1px;
	}

	.grafinas-myaccount-nav li.is-active a {
		background: none;
		border-bottom-color: var(--accent);
		box-shadow: none;
	}

	.grafinas-myaccount-nav li a:hover {
		background: none;
		color: var(--fg);
	}

	.grafinas-myaccount-nav li:last-child {
		margin-top: 0;
		padding-top: 0;
		border-top: none;
	}

	.grafinas-myaccount-nav .nav-icon {
		display: none;
	}

	.grafinas-myaccount-content .addresses {
		grid-template-columns: 1fr;
	}
}

/* My Account - login form (fallback) */

.grafinas-login-form {
	max-width: 400px;
	margin: 0 auto;
	padding: 40px 0;
}

.grafinas-login-form h2 {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 400;
	color: var(--fg);
	margin: 0 0 24px;
	text-align: center;
}

.grafinas-login-form .woocommerce-form-row {
	margin-bottom: 16px;
}

.grafinas-login-form label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--fg);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.grafinas-login-form input.input-text {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--border);
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	color: var(--fg);
	background: var(--surface);
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.grafinas-login-form input.input-text:focus {
	border-color: var(--accent);
}

.grafinas-login-form .form-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.grafinas-login-form .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--fg-light);
	cursor: pointer;
}

.grafinas-login-form .woocommerce-form-login__rememberme input {
	width: 16px;
	height: 16px;
	accent-color: var(--accent);
}

.grafinas-login-form .woocommerce-form-login__submit {
	padding: 12px 32px;
	font-size: 15px;
	background: var(--accent);
	color: var(--surface);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	font-weight: 500;
	transition: background 0.2s;
}

.grafinas-login-form .woocommerce-form-login__submit:hover {
	background: var(--accent-light);
}

.grafinas-login-form .lost_password {
	text-align: center;
	margin: 0 !important;
}

.grafinas-login-form .lost_password a {
	font-size: 14px;
	color: var(--fg-light);
	text-decoration: underline;
}

.grafinas-login-form .lost_password a:hover {
	color: var(--accent);
}

.grafinas-login-form-register {
	text-align: center;
	font-size: 14px;
	color: var(--fg-light);
	margin-top: 24px !important;
}

.grafinas-login-form-register a {
	color: var(--accent);
	text-decoration: underline;
	cursor: pointer;
}

.grafinas-login-form-register a:hover {
	color: var(--accent-light);
}

/* ===================== Edit Account ===================== */

.grafinas-edit-account {
	max-width: 600px;
	padding: 0;
}

.grafinas-edit-account form {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.grafinas-edit-account-section {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 32px;
}

.grafinas-edit-account-section h3 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	color: var(--fg);
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}

.grafinas-edit-account-section .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
}

.grafinas-edit-account-section .form-row:last-child {
	margin-bottom: 0;
}

.grafinas-edit-account-section label {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	color: var(--fg);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.grafinas-edit-account-section label .required {
	color: #DC2626;
	border: none;
}

.grafinas-edit-account-section input[type="text"],
.grafinas-edit-account-section input[type="email"],
.grafinas-edit-account-section input[type="password"] {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--fg);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.grafinas-edit-account-section input[type="text"]:focus,
.grafinas-edit-account-section input[type="email"]:focus,
.grafinas-edit-account-section input[type="password"]:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-pale);
}

.form-row-hint {
	font-size: 13px;
	color: var(--fg-light);
	line-height: 1.5;
}

.grafinas-edit-account-submit {
	display: flex;
	justify-content: flex-end;
	margin: 0;
}

.grafinas-edit-account-submit .btn {
	padding: 14px 40px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.grafinas-edit-account-submit .btn:hover {
	transform: translateY(-1px);
}

.grafinas-edit-account-submit .btn:active {
	transform: translateY(0);
}

/* WooCommerce notices inside edit account */
.grafinas-edit-account .woocommerce-message,
.grafinas-edit-account .woocommerce-error,
.grafinas-edit-account .woocommerce-info {
	border-radius: 8px;
	margin-bottom: 24px;
}

.grafinas-edit-account .woocommerce-message {
	border-top-color: var(--accent) !important;
}

.grafinas-edit-account .woocommerce-message::before {
	color: var(--accent) !important;
}

@media (max-width: 768px) {
	.grafinas-edit-account-section {
		padding: 24px 20px;
	}

	.grafinas-edit-account-submit .btn {
		width: 100%;
		justify-content: center;
	}
}

.grafinas-checkout-columns {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-top: 24px;
}


.grafinas-checkout-col {
	flex: 1;
	min-width: 0;
}

.grafinas-checkout-submit {
	margin-top: 12px;
}

.grafinas-checkout-col-left {
	flex: 1.2;
}

.grafinas-checkout-col-right {
	flex: 0.8;
}

.checkout-section {
	background: var(--surface);
	border: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	padding: 32px;
	margin-bottom: 24px;
}

.checkout-section-title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	color: var(--fg);
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--accent-pale);
}

.grafinas-checkout-review-table {
	width: 100%;
	border-collapse: collapse;
}

.grafinas-checkout-review-table td {
	padding: 8px 12px;
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
}



.grafinas-checkout-review-table tfoot td {
	border-bottom: none;
}

.grafinas-cart-item-thumb {
	width: 56px;
	height: 56px;
	padding-left: 4px !important;
	padding-right: 10px !important;
}

.grafinas-cart-item-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: 4px;
	max-width: none;
}

.grafinas-cart-item-info {
	padding-right: 10px !important;
}

.grafinas-cart-item-name {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--fg);
	margin-bottom: 2px;
	line-height: 1.25;
}

.grafinas-cart-item-info .variation,
.grafinas-cart-item-info .wc-item-meta {
	font-size: 11px;
	color: var(--fg-light);
	margin: 0;
	line-height: 1.3;
	display: inline;
}

.grafinas-cart-item-info .variation dt,
.grafinas-cart-item-info .wc-item-meta li {
	display: inline;
	margin: 0;
}

.grafinas-cart-item-info .variation dd,
.grafinas-cart-item-info .wc-item-meta li .wc-item-meta-label {
	display: inline;
	margin: 0 4px 0 0;
}

.grafinas-cart-item-info .variation dd p {
	display: inline;
	margin: 0;
}

.grafinas-cart-item-total {
	text-align: right;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--fg);
	white-space: nowrap;
	vertical-align: middle;
}

.grafinas-cart-subtotal td,
.grafinas-cart-discount td,
.grafinas-cart-fee td,
.grafinas-cart-tax td {
	font-size: 13px;
	color: var(--fg-light);
	padding: 6px 12px;
}

.grafinas-cart-subtotal td:last-child,
.grafinas-cart-discount td:last-child,
.grafinas-cart-fee td:last-child,
.grafinas-cart-tax td:last-child {
	text-align: right;
}

.grafinas-cart-order-total td {
	font-size: 15px;
	font-weight: 700;
	color: var(--fg);
	padding: 10px 12px 0;
	border-top: 2px solid var(--accent-pale);
}

.grafinas-cart-order-total td:last-child {
	text-align: right;
	color: var(--accent);
}

.grafinas-place-order-btn {
	display: block;
	width: 100%;
	padding: 16px 24px;
	background: #a0760a;
	color: #fff;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
	text-align: center;
}

.grafinas-place-order-btn:hover {
	background: #8a6408;
}

#payment.woocommerce-checkout-payment {
	background: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
}

.woocommerce-checkout-payment .wc_payment_methods {
	margin: 0;
	padding: 0;
}

.woocommerce-checkout-payment .wc_payment_method {
	list-style: none;
	border: 1px solid var(--border);
	padding: 14px 16px;
	margin-bottom: 8px;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: var(--surface);
}

.woocommerce-checkout-payment .wc_payment_method input[type="radio"] {
	accent-color: var(--accent);
	margin-right: 10px;
	width: 18px;
	height: 18px;
}

.woocommerce-checkout-payment .wc_payment_method label {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--fg);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.woocommerce-checkout-payment .wc_payment_method label img {
	max-height: 24px;
	width: auto;
	vertical-align: middle;
}

.woocommerce-checkout-payment .payment_box {
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--fg-light);
	padding: 12px 0 4px;
	line-height: 1.5;
}

.woocommerce-checkout .woocommerce-billing-fields h3 {
	display: none;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: 16px;
}

.woocommerce-checkout form .form-row {
	padding: 0;
	margin: 0 0 20px;
	flex: 0 0 100%;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::after {
	display: none;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper label {
	display: block;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--fg);
	margin-bottom: 6px;
	letter-spacing: 0.3px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .required {
	color: var(--accent);
	border: none;
	text-decoration: none;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .input-text,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border);
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--fg);
	background: var(--surface);
	border-radius: 0;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .input-text::placeholder {
	color: var(--fg-light);
	font-family: var(--font-body);
	font-size: 14px;
	opacity: 0.7;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .input-text:focus,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper select:focus {
	border-color: var(--accent);
	outline: none;
}

.woocommerce-checkout .select2-container .select2-selection--single {
	height: auto;
	border: 1px solid var(--border);
	border-radius: 0;
	padding: 12px 16px;
	font-family: var(--font-body);
	font-size: 14px;
	background: var(--surface);
	transition: border-color 0.2s;
}

.woocommerce-checkout .select2-container--focus .select2-selection--single {
	border-color: var(--accent);
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--fg);
	line-height: normal;
	padding: 0;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 12px;
	right: 14px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
	border-color: var(--fg-light) transparent transparent;
}

.woocommerce-checkout .select2-dropdown {
	border: 1px solid var(--border);
	border-radius: 0;
	font-family: var(--font-body);
	font-size: 14px;
}

.woocommerce-checkout .select2-results__option--highlighted {
	background: var(--accent-pale) !important;
	color: var(--fg) !important;
}

.woocommerce-checkout .select2-results__option {
	padding: 10px 16px;
	margin: 0;
}

#ship-to-different-address {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--fg);
	margin: 24px 0 16px;
	padding: 0;
}

#ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

#ship-to-different-address input {
	width: 16px;
	height: 16px;
	accent-color: var(--accent);
}

@media (max-width: 768px) {
	.grafinas-checkout-columns {
		flex-direction: column;
		gap: 0;
	}

	.checkout-section {
		padding: 20px;
	}
}

.grafinas-checkout-review-table .woocommerce-shipping-totals.shipping th {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	color: var(--fg-light);
	padding: 10px 0;
	text-align: left;
	border-bottom: none;
}

.grafinas-checkout-review-table .woocommerce-shipping-totals.shipping td {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--fg);
	padding: 10px 0;
	border-bottom: none;
}

.woocommerce-checkout {
	font-family: var(--font-body);
}

.woocommerce-checkout .woocommerce-form__label,
.woocommerce-checkout .select2-container *,
.woocommerce-checkout .payment_box,
.woocommerce-checkout .woocommerce-shipping-methods label,
.woocommerce-checkout .woocommerce-shipping-methods {
	font-family: var(--font-body) !important;
}

.woocommerce-checkout h3 {
	font-family: var(--font-display) !important;
}

.woocommerce-checkout input[readonly] {
	background: var(--bg);
	color: var(--fg-light);
	cursor: default;
}

.woocommerce-checkout form .form-row-first,
.woocommerce-checkout form .form-row-last {
	flex: 0 0 calc(50% - 8px);
}

.woocommerce-checkout form .form-row-first {
	margin-right: 0;
}

.woocommerce-checkout .form-row-last {
	margin-left: 0;
}

/* ---- Thankyou page ---- */
body.woocommerce-order-received {
	overflow: hidden;
}
body.woocommerce-order-received .site-header,
body.woocommerce-order-received .site-footer {
	display: none;
}
body.woocommerce-order-received .page-header {
	display: none;
}

.grafinas-thankyou-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
	font-family: var(--font-body);
}

.grafinas-thankyou-modal {
	position: relative;
	background: var(--surface);
	max-width: 420px;
	width: 100%;
	padding: 40px 32px;
	text-align: center;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: grafinas-thankyou-fade-in 0.3s ease;
}

.grafinas-thankyou-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #78716c;
	cursor: pointer;
}

.grafinas-thankyou-close:hover {
	color: #1C1917;
}

@keyframes grafinas-thankyou-fade-in {
	from { opacity: 0; transform: scale(0.95) translateY(10px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

.grafinas-thankyou-icon {
	margin-bottom: 16px;
}

.grafinas-thankyou-title {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 600;
	color: var(--fg);
	margin: 0 0 8px;
}

.grafinas-thankyou-details {
	margin: 24px 0;
	padding: 16px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.grafinas-thankyou-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 14px;
}

.grafinas-thankyou-label {
	color: var(--fg-light);
}

.grafinas-thankyou-value {
	font-weight: 600;
	color: var(--fg);
}

.grafinas-thankyou-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
}

.grafinas-thankyou-actions .btn {
	width: 100%;
	padding: 14px 24px;
}

.grafinas-thankyou-error {
	color: var(--fg-light);
	font-size: 14px;
	margin: 0;
}

/* Checkout direto: esconde o radio do método de pagamento (método único, sem seletor) */
.grafinas-payment-radio,
.grafinas-radio-circle {
	display: none;
}
