/*
Theme Name: Maré Bijuterias
Theme URI: https://mare-bijuterias.com.br
Author: Maré Studio
Author URI: https://mare-bijuterias.com.br
Description: Tema para loja de bijuterias banhadas a ouro 18k. Design editorial com paleta cream e terracotta, totalmente integrado com WooCommerce.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mare
Tags: e-commerce, woocommerce, custom-menu, custom-logo, featured-images
*/

:root {
  --radius: 0.25rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --background: #fdf6f7;
  --foreground: #3a2730;

  --card: #fffbfc;
  --card-foreground: #3a2730;

  --popover: #fffbfc;
  --popover-foreground: #3a2730;

  --primary: #3a2730;
  --primary-foreground: #fff5f8;

  --secondary: #f8e7ec;
  --secondary-foreground: #3a2730;

  --muted: #f8e7ec;
  --muted-foreground: #8a6b75;

  --accent: #f7d9e2;
  --accent-foreground: #3a2730;

  --clay: #e85b86;
  --clay-foreground: #ffffff;

  --destructive: #b5302a;
  --destructive-foreground: #fffbfc;

  --border: #f1dce2;
  --input: #f1dce2;
  --ring: #e85b86;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --shadow-soft: 0 1px 2px rgba(60,40,20,0.04), 0 8px 24px rgba(60,40,20,0.06);
  --shadow-lift: 0 2px 4px rgba(60,40,20,0.06), 0 24px 48px -12px rgba(60,40,20,0.18);
}

.dark {
  --background: #2c2520;
  --foreground: #f0ebe4;
  --card: #362f29;
  --card-foreground: #f0ebe4;
  --popover: #362f29;
  --popover-foreground: #f0ebe4;
  --primary: #f0ebe4;
  --primary-foreground: #2c2520;
  --secondary: #423a33;
  --secondary-foreground: #f0ebe4;
  --muted: #423a33;
  --muted-foreground: #a89888;
  --accent: #4a3f36;
  --accent-foreground: #f0ebe4;
  --clay: #c47a5e;
  --clay-foreground: #2c2520;
  --border: rgba(255,255,255,0.12);
  --input: rgba(255,255,255,0.15);
  --ring: #c47a5e;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* Utility classes */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-foreground);
}

.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}
.link-underline:hover::after {
  transform: scaleX(1);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header — floating pill */
.site-header {
  position: sticky;
  top: 0.875rem;
  z-index: 40;
  margin: 0.875rem auto 0;
  width: calc(100% - 1.75rem);
  max-width: 1232px;
  border: 1px solid rgba(221,211,198,0.7);
  border-radius: 999px;
  background: rgba(248,243,237,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(248,243,237,0.93);
  box-shadow: var(--shadow-lift);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

/* keep page content clear of the floating header on inner pages */
.admin-bar .site-header { top: 2.875rem; }

.header-nav {
  display: none;
  flex: 1;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.header-nav a { transition: color 0.2s; }
.header-nav a:hover { color: var(--clay); }

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-logo .dot { color: var(--clay); }

.header-actions {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}

.header-actions button,
.header-actions a {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 0;
}

.cart-count {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

/* Hero Section */
.hero {
  position: relative;
}

.hero-grid {
  display: grid;
  min-height: 88vh;
  align-items: stretch;
  gap: 0;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    grid-column: span 5;
    padding: 6rem 3.5rem;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  font-weight: 400;
}

.hero-title .italic { font-style: italic; color: var(--clay); }

.hero-desc {
  margin-top: 1.5rem;
  max-width: 24rem;
  color: var(--muted-foreground);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--foreground);
  color: var(--background);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--clay); }

.hero-note {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.hero-image {
  position: relative;
}

@media (min-width: 768px) {
  .hero-image { grid-column: span 7; }
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(248,243,237,0.9);
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(4px);
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(237,229,216,0.4);
  padding: 1.5rem 0;
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 3rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Product Grid */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 1.5rem;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 3.5rem 2rem; }
}

/* Product Card */
.product-card { }

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

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease-out;
}

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

.product-card-btn {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  transform: translateY(0.5rem);
  background: rgba(248,243,237,0.95);
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  width: calc(100% - 2rem);
  text-align: center;
}

.product-card:hover .product-card-btn {
  transform: translateY(0);
  opacity: 1;
}

.product-card-btn:hover {
  background: var(--foreground);
  color: var(--background);
}

/* Touch devices / phones have no hover: keep the add-to-cart button visible */
@media (hover: none), (pointer: coarse), (max-width: 767px) {
  .product-card-btn {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Slider (front page Destaques) */
.product-slider {
  position: relative;
  margin-top: 2.5rem;
}

.product-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.product-slider-track::-webkit-scrollbar { display: none; }

/* Image-only carousel slides */
.image-carousel .carousel-slide {
  scroll-snap-align: start;
  flex: 0 0 86%;
  max-width: 86%;
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--secondary);
  border-radius: var(--radius);
}

@media (min-width: 640px) {
  .image-carousel .carousel-slide { flex-basis: 56%; max-width: 56%; }
}

@media (min-width: 1024px) {
  .image-carousel .carousel-slide { flex-basis: 40%; max-width: 40%; }
}

.image-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease-out;
}

.image-carousel .carousel-slide:hover img {
  transform: scale(1.04);
}

.product-slider-track .product-card {
  scroll-snap-align: start;
  flex: 0 0 80%;
  max-width: 80%;
}

@media (min-width: 640px) {
  .product-slider-track .product-card {
    flex-basis: 46%;
    max-width: 46%;
  }
}

@media (min-width: 1024px) {
  .product-slider-track .product-card {
    flex-basis: 31%;
    max-width: 31%;
  }
}

.slider-nav {
  display: none;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .slider-nav { display: flex; }
}

.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.slider-btn:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.slider-btn[disabled] {
  opacity: 0.35;
  cursor: default;
  background: transparent;
  color: var(--foreground);
}

.slider-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.product-card-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.2;
  margin: 0;
}

.product-card-cat {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

.product-card-price {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

/* Editorial Split */
.editorial-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.editorial-img {
  aspect-ratio: 4/5;
  background: rgba(181,105,77,0.2);
  overflow: hidden;
}

.editorial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Footer */
.site-footer {
  margin-top: 8rem;
  border-top: 1px solid var(--border);
  background: rgba(237,229,216,0.4);
}

/* Footer feature / trust badges */
.footer-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-feature {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-feature svg { color: var(--clay); flex-shrink: 0; }

.footer-feature .ff-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
}

.footer-feature .ff-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-socials a:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1280px;
    margin: 0 auto;
  }
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.875rem;
}

.footer-brand .brand-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-col .col-title {
  margin-bottom: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--clay); }

.footer-newsletter p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--foreground);
  margin-top: 0.75rem;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  outline: none;
  color: var(--foreground);
}

.newsletter-form input::placeholder { color: var(--muted-foreground); }

.newsletter-form button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom .footer-copy { margin: 0; }

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.footer-payments span {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--foreground);
}

/* Shop Page */
.shop-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.5rem;
}

.shop-title {
  font-family: var(--font-display);
  font-size: 3rem;
}

@media (min-width: 768px) {
  .shop-title { font-size: 3.75rem; }
}

.shop-desc {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--muted-foreground);
}

.shop-toolbar {
  position: sticky;
  top: 84px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(248,243,237,0.9);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  margin-top: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--muted-foreground);
}

.filter-btn:hover { color: var(--foreground); }

.filter-btn.active {
  background: var(--foreground);
  color: var(--background);
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.sort-select select {
  border: none;
  border-bottom: 1px solid var(--foreground);
  background: transparent;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  cursor: pointer;
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(44,37,32,0.2);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}

.cart-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
  height: 100vh;
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  background: var(--background);
  box-shadow: var(--shadow-lift);
  transition: transform 0.4s ease-out;
}

.cart-sidebar.hidden {
  transform: translateX(100%);
}

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

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--foreground);
}

.cart-close:hover { background: var(--muted); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  height: 7rem;
  width: 6rem;
  flex-shrink: 0;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.cart-item-cat {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.cart-item-price {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  color: var(--foreground);
}

.qty-btn:hover { background: var(--muted); }

.qty-val {
  width: 2rem;
  text-align: center;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.remove-btn:hover { color: var(--foreground); }

.cart-footer {
  border-top: 1px solid var(--border);
  background: rgba(237,229,216,0.4);
  padding: 1.25rem 1.5rem;
}

.cart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cart-subtotal-label { }

.cart-subtotal-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.cart-footer-note {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.cart-checkout-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  background: var(--foreground);
  color: var(--background);
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-checkout-btn:hover { background: var(--clay); }

.cart-continue {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
}

.cart-continue:hover { color: var(--foreground); }

/* Checkout */
.checkout-layout {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1.4fr 1fr;
  }
}

.checkout-section { margin-bottom: 3rem; }

.checkout-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.checkout-fields {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .checkout-fields { grid-template-columns: 1fr 1fr; }
  .checkout-fields .full-width { grid-column: span 2; }
}

.field-group {
  display: block;
}

.field-group .field-label {
  display: block;
  margin-bottom: 0.5rem;
}

.field-group input,
.field-group select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 0.75rem 0;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--foreground);
}

.payment-methods {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .payment-methods { grid-template-columns: 1fr 1fr; }
}

.payment-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  text-align: left;
}

.payment-method:hover { border-color: rgba(44,37,32,0.4); }

.payment-method.active {
  border-color: var(--foreground);
  background: rgba(237,229,216,0.6);
}

.payment-method-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.payment-method-info {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Order Summary */
.order-summary {
  height: fit-content;
  border: 1px solid var(--border);
  background: rgba(237,229,216,0.3);
  padding: 1.75rem;
}

@media (min-width: 1024px) {
  .order-summary { position: sticky; top: 6rem; }
}

.order-summary-items {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.order-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

.order-item-img {
  position: relative;
  height: 5rem;
  width: 4rem;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--background);
}

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

.order-item-qty {
  position: absolute;
  right: -0.25rem;
  top: -0.25rem;
  display: flex;
  height: 1.25rem;
  width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
}

.order-item-details {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 0.5rem;
}

.order-item-name {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0;
}

.order-item-cat {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.order-totals {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.875rem;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.order-total-row .label { color: var(--muted-foreground); }
.order-total-row .val { font-variant-numeric: tabular-nums; }

.order-total-final {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.order-total-final .val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.order-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: var(--foreground);
  color: var(--background);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.order-submit:hover { background: var(--clay); }

.order-submit-note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Page: Empty Cart */
.empty-state {
  max-width: 28rem;
  margin: 0 auto;
  padding: 8rem 1.5rem;
  text-align: center;
}

.empty-state h1 {
  margin-top: 0.75rem;
  font-size: 2.25rem;
}

.empty-state p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Page: Order Confirmed */
.confirmed-state {
  max-width: 32rem;
  margin: 0 auto;
  padding: 8rem 1.5rem;
  text-align: center;
}

.confirmed-icon {
  margin: 0 auto;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--clay);
  color: var(--clay-foreground);
}

.confirmed-state h1 {
  margin-top: 0.75rem;
  font-size: 3rem;
}

.confirmed-state p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

/* 404 Page */
.not-found {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.not-found h1 {
  margin-top: 1rem;
  font-size: 3rem;
}

.not-found p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* WooCommerce Overrides */
.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce ul.products {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 1.5rem;
}

@media (min-width: 640px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem 2rem;
  }
}

.woocommerce ul.products li.product {
  margin: 0;
  padding: 0;
  width: auto;
  float: none;
}

.mare-hidden-field { display: none !important; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices .woocommerce-message,
.woocommerce-notices .woocommerce-info,
.woocommerce-notices .woocommerce-error {
  list-style: none;
  padding: 0.9rem 1.25rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--clay);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.9rem;
  line-height: 1.45;
}

.woocommerce-message li,
.woocommerce-info li,
.woocommerce-error li { list-style: none; margin: 0; padding: 0; }

.woocommerce-error,
.woocommerce-notices .woocommerce-error {
  border-color: var(--destructive);
  border-left-color: var(--destructive);
  color: var(--destructive);
  background: #fdf2f4;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 0.75rem 0;
  font-size: 1rem;
  outline: none;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--foreground);
}

.woocommerce #payment,
.woocommerce #payment div.payment_box {
  background: var(--card);
  border: 1px solid var(--border);
}

.woocommerce .button.alt,
.woocommerce .button.alt:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.woocommerce .button.alt:hover {
  background: var(--clay);
  border-color: var(--clay);
}

.woocommerce .quantity .qty {
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.25rem;
  font-size: 0.875rem;
}

.woocommerce-page .shop-toolbar { display: none; }

/* WooCommerce Cart / Checkout styling */
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.woocommerce-cart .cart_totals h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Checkout order review (standard WooCommerce markup) */
.order-review-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

#order_review .shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

#order_review .shop_table th,
#order_review .shop_table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

#order_review .shop_table td.product-total,
#order_review .shop_table th.product-total,
#order_review .shop_table .woocommerce-Price-amount {
  text-align: right;
}

#order_review .cart_item .product-name {
  font-family: var(--font-display);
  font-weight: 400;
}

#order_review .order-total .woocommerce-Price-amount {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

#order_review #payment {
  background: transparent;
  border: 0;
  padding: 0;
}

#order_review #payment .payment_box {
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

#order_review #payment ul.payment_methods li {
  margin: 0.35rem 0;
  font-size: 0.9rem;
}

#order_review #place_order {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.order-submit-note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Add to cart animation */
.added_to_cart {
  display: none !important;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 0;
}

@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--background);
  padding: 5rem 1.5rem;
}

.mobile-menu.active { display: flex; flex-direction: column; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--foreground);
}

/* =========================================================================
   Wesley Bijoux redesign — announcement bar, sticky header, hero carousel,
   product cards (PIX/3x), shop layout, cart drawer, mobile tab bar.
   ========================================================================= */
:root {
  --pix: #10b981;
  --pix-dark: #059669;
  --orange: var(--clay);
  --clay-hover: #d23f6e;
  --rose-deep: #b73a64;
  --header-h: 64px;
}

/* ---- Announcement bar (scrolling) ---- */
.announce-bar {
  background: var(--rose-deep);
  color: #fff;
  overflow: hidden;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.announce-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  padding: 0.55rem 1rem;
  text-align: center;
}
.announce-sep { opacity: 0.5; }

/* ---- Sticky full-width header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  width: 100%;
  max-width: none;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: rgba(253,246,247,0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 rgba(60,40,20,0.04);
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.site-logo img { max-height: 46px; width: auto; border-radius: 8px; display: block; }

.header-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 0.5rem 0 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}
.header-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  padding: 0.7rem 0.5rem;
  color: var(--foreground);
}
.header-search button {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: var(--foreground); color: var(--background);
  cursor: pointer; flex: 0 0 auto;
}
.header-actions { display: flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: none; cursor: pointer;
  color: var(--foreground); padding: 0.5rem;
  font-size: 0.8rem;
}
.account-label { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; }
.cart-badge, .tab-cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--clay); color: #fff;
  border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-badge.is-empty, .tab-cart-badge.is-empty { display: none; }

.search-toggle { display: none; }

@media (max-width: 767px) {
  .header-search { display: none; }
  .search-toggle { display: inline-flex; }
  .account-link { display: none; }
  .site-logo { flex: 1; }
  .header-actions { gap: 0.1rem; }
}

/* ---- Mobile bottom tab bar ---- */
.mobile-tabbar { display: none; }
@media (max-width: 767px) {
  .mobile-tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    display: flex; align-items: stretch; justify-content: space-around;
    background: var(--card); border-top: 1px solid var(--border);
    padding: 0.3rem 0 calc(0.3rem + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(60,40,20,0.06);
  }
  .tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none; border: none; cursor: pointer;
    color: var(--muted-foreground); font-size: 0.65rem; padding: 0.35rem 0;
  }
  .tab-item.active, .tab-item:active { color: var(--clay); }
  .tab-cart-wrap { position: relative; display: inline-flex; }
  body { padding-bottom: 64px; }
}

/* ---- Hero carousel ---- */
.hero-carousel { position: relative; overflow: hidden; background: var(--secondary); }
.hero-carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.hero-slide { flex: 0 0 100%; display: block; }
.hero-slide img {
  width: 100%;
  height: clamp(320px, 40vw, 600px);
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .hero-slide img { height: clamp(360px, 95vw, 560px); }
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(250,246,241,0.85); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--foreground); z-index: 2;
  transition: background 0.2s;
}
.hero-arrow:hover { background: #fff; }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }
@media (max-width: 767px) { .hero-arrow { display: none; } }
.hero-dots {
  position: absolute; bottom: 1rem; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 0.5rem;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 999px;
  border: none; background: rgba(255,255,255,0.55); cursor: pointer;
  padding: 0; transition: width 0.25s, background 0.25s;
}
.hero-dot.active { width: 24px; background: #fff; }

/* ---- Feature strip ---- */
.feature-strip { border-bottom: 1px solid var(--border); background: var(--card); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
  padding: 1.75rem 1.5rem;
}
.feature-item { display: flex; align-items: center; gap: 0.9rem; }
.feature-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--foreground); color: var(--card);
  display: flex; align-items: center; justify-content: center;
}
.feature-title { margin: 0; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.feature-desc { margin: 0; font-size: 0.8rem; color: var(--muted-foreground); line-height: 1.35; }
@media (max-width: 767px) {
  .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---- Home product sections ---- */
.product-section { padding-top: 4rem; padding-bottom: 1rem; }
.section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem;
}
.section-head .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.section-count { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--muted-foreground); }
.section-controls { display: flex; align-items: center; gap: 1.25rem; }
.section-viewall { font-size: 0.75rem; letter-spacing: 0.12em; font-weight: 600; white-space: nowrap; }
@media (max-width: 767px) {
  .section-controls .slider-nav { display: none; }
}

/* ---- Product card (PIX/3x) ---- */
.product-card { display: flex; flex-direction: column; }
.product-card-image {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  background: var(--secondary); border-radius: var(--radius);
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease-out; }
.product-card:hover .product-card-image img { transform: scale(1.04); }

.card-actions {
  position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem;
  display: flex; gap: 0.4rem; opacity: 1;
}
.qty-stepper {
  display: flex; align-items: center; flex: 0 0 auto;
  background: rgba(250,246,241,0.96); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; backdrop-filter: blur(4px);
}
.qty-stepper button {
  width: 30px; height: 38px; border: none; background: none; cursor: pointer;
  font-size: 1.05rem; color: var(--foreground); line-height: 1;
}
.qty-stepper .qty-input, .qty-stepper .qty-val {
  width: 28px; text-align: center; border: none; background: none;
  font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--foreground);
  padding: 0; pointer-events: none;
}
.card-add-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--clay); color: #fff; border: none; cursor: pointer;
  border-radius: 8px; font-size: 0.82rem; font-weight: 600; padding: 0 0.5rem;
  height: 40px; transition: background 0.2s;
}
.card-add-btn:hover { background: var(--clay-hover); }
.card-add-btn.added { background: var(--pix-dark); }

.product-card-name {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 0.95rem; line-height: 1.3; margin: 0.7rem 0 0.35rem;
}
.product-card-name a:hover { color: var(--clay); }

.price-block { margin: 0; }
.price-pix {
  display: flex; align-items: center; gap: 0.35rem; margin: 0;
  color: var(--pix); font-weight: 700; font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.price-pix .gem-icon { flex: 0 0 auto; }
.price-regular { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--muted-foreground); }
.price-installment { margin: 0.05rem 0 0; font-size: 0.72rem; color: var(--muted-foreground); }

/* Slider track cards a touch wider on phones */
@media (max-width: 639px) {
  .product-slider-track .product-card { flex-basis: 64%; max-width: 64%; }
}

/* ---- Shop layout ---- */
.shop-wrap { padding-top: 2.5rem; padding-bottom: 4rem; }
.shop-head .shop-title { font-size: clamp(2rem,4vw,2.75rem); margin: 0.25rem 0 0; }
.shop-search {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.85rem 1.25rem; margin: 1.5rem 0 2rem;
  color: var(--muted-foreground);
}
.shop-search input { flex: 1; border: none; background: none; outline: none; font-size: 0.95rem; color: var(--foreground); }

.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2.5rem; align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); }
.sidebar-title { margin: 0 0 0.75rem; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.9rem;
  color: var(--muted-foreground); transition: background 0.15s, color 0.15s;
}
.cat-list a:hover { color: var(--foreground); background: var(--secondary); }
.cat-list a.active { background: var(--foreground); color: var(--card); font-weight: 600; }
.cat-count { font-size: 0.72rem; opacity: 0.7; }

.price-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 1.5rem; }
.chips-label { font-size: 0.8rem; color: var(--muted-foreground); margin-right: 0.25rem; }
.chip {
  padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.8rem;
  border: 1px solid var(--border); color: var(--foreground); background: var(--card);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--foreground); }
.chip.active { background: var(--foreground); color: var(--card); border-color: var(--foreground); }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem; border: none; padding: 0;
}
.shop-count { margin: 0; font-size: 0.85rem; color: var(--muted-foreground); }
.sort-select select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.5rem 2rem 0.5rem 1rem; background: var(--card) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a6e63' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  font-size: 0.85rem; color: var(--foreground); cursor: pointer;
}
.shop-grid { grid-template-columns: repeat(4,1fr) !important; gap: 2.5rem 1.5rem !important; }
.shop-empty { text-align: center; padding: 5rem 0; }
.shop-empty h2 { font-family: var(--font-display); font-size: 2rem; }
.shop-empty p { color: var(--muted-foreground); margin: 0.75rem 0 1.75rem; }
.shop-pagination { margin-top: 3rem; display: flex; justify-content: center; }
.shop-pagination ul { list-style: none; display: flex; gap: 0.4rem; padding: 0; }
.shop-pagination a, .shop-pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 0.5rem; border-radius: 8px;
  border: 1px solid var(--border); font-size: 0.85rem;
}
.shop-pagination .current { background: var(--foreground); color: var(--card); border-color: var(--foreground); }

@media (max-width: 1023px) {
  .shop-grid { grid-template-columns: repeat(3,1fr) !important; }
}
@media (max-width: 767px) {
  .shop-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .shop-sidebar { position: static; }
  .cat-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .cat-list::-webkit-scrollbar { display: none; }
  .cat-list a { white-space: nowrap; border: 1px solid var(--border); }
  .cat-count { display: none; }
  .shop-grid { grid-template-columns: repeat(2,1fr) !important; gap: 1.75rem 1rem !important; }
}

/* ---- Cart drawer (desktop) / modal (mobile) ---- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(31,26,22,0.45); backdrop-filter: blur(2px);
}
.cart-overlay.hidden, .cart-sidebar.hidden { display: none; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; z-index: 95;
  width: 420px; max-width: 100vw; height: 100vh;
  background: var(--card); display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(60,40,20,0.18);
  animation: cart-slide 0.3s ease;
}
@keyframes cart-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart-header {
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.cart-title { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.cart-close {
  position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--foreground);
}
.cart-items { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.mare-cart-items-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.cart-item { display: flex; align-items: flex-start; gap: 1rem; }
.cart-item > img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { margin: 0; font-weight: 500; font-size: 0.95rem; }
.cart-item-price { margin: 0.2rem 0 0.6rem; font-size: 0.95rem; font-weight: 600; }
.cart-qty { width: max-content; }
.cart-qty .qty-val { pointer-events: none; }
.remove-btn { background: none; border: none; cursor: pointer; color: var(--muted-foreground); padding: 0.25rem; flex: 0 0 auto; }
.remove-btn:hover { color: var(--destructive); }

.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty-title { font-family: var(--font-display); font-size: 1.4rem; margin: 0; }
.cart-empty-desc { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }

.cart-footer { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.cart-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cart-line-label { display: flex; align-items: center; gap: 0.4rem; color: var(--muted-foreground); font-size: 0.9rem; }
.cart-line-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-line-pix .cart-line-label { color: var(--pix); font-weight: 600; }
.cart-line-val.pix { color: var(--pix); font-weight: 700; font-size: 1.1rem; }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%; background: var(--clay); color: #fff; border: none; cursor: pointer;
  padding: 1rem; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  margin-top: 0.75rem; transition: background 0.2s;
}
.cart-checkout-btn:hover { background: var(--clay-hover); }
.cart-foot-links { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.85rem; }
.cart-viewcart, .cart-continue {
  flex: 1; text-align: center; background: none; border: 1px solid var(--border);
  border-radius: 10px; padding: 0.7rem; font-size: 0.85rem; cursor: pointer; color: var(--foreground);
}
.cart-continue { border: none; }
.cart-viewcart:hover { border-color: var(--foreground); }

@media (max-width: 767px) {
  .cart-sidebar {
    top: 50%; left: 50%; right: auto; transform: translate(-50%,-50%);
    width: calc(100vw - 2rem); max-width: 420px; height: auto; max-height: 85vh;
    border-radius: 14px; animation: cart-pop 0.25s ease;
  }
  @keyframes cart-pop { from { opacity: 0; transform: translate(-50%,-46%); } to { opacity: 1; transform: translate(-50%,-50%); } }
}

/* ---- Search overlay ---- */
.mare-search-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: var(--background); padding: 5rem 1.5rem;
}
.mare-search-overlay.active { display: block; }
.mare-search-overlay input {
  width: 100%; border: none; border-bottom: 2px solid var(--foreground);
  background: transparent; padding: 1rem 0; font-size: 1.4rem;
  font-family: var(--font-display); outline: none; color: var(--foreground);
}
#mare-search-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--foreground); }

/* Center the header: logo left, search dead-center, actions right (desktop) */
@media (min-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 560px) 1fr;
    align-items: center;
    gap: 1.25rem;
  }
  .site-logo { justify-self: start; }
  .header-search { justify-self: center; margin: 0; max-width: none; width: 100%; }
  .header-actions { justify-self: end; }
}

/* Cart item busy state while AJAX updates */
.cart-item.is-busy { opacity: 0.5; pointer-events: none; transition: opacity 0.15s; }

/* =========================================================================
   Live search dropdown
   ========================================================================= */
.header-search { position: relative; }
.mare-search-overlay .container { position: relative; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lift); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.search-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); color: var(--foreground); }
.search-item:hover { background: var(--secondary); }
.search-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.search-item-name { flex: 1; font-size: 0.9rem; }
.search-item-price { color: var(--pix); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.search-all { display: block; text-align: center; padding: 0.75rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; }
.search-all:hover { background: var(--secondary); }
.search-empty { padding: 1.25rem; text-align: center; color: var(--muted-foreground); font-size: 0.9rem; }

/* =========================================================================
   Single product page (PDP)
   ========================================================================= */
.pdp { padding-top: 2rem; padding-bottom: 4rem; }
.pdp-back { display: inline-block; margin-bottom: 1.75rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.pdp-main-image { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); background: var(--secondary); }
.pdp-main-image img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.mare-thumb-btn { width: 72px; height: 72px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: 0.55; cursor: pointer; padding: 0; background: none; }
.mare-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.mare-thumb-btn.active { border-color: var(--foreground); opacity: 1; }

.pdp-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.4rem 0 0; }
.pdp-rating { display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0 1.25rem; }
.pdp-stars { display: inline-flex; gap: 1px; }
.pdp-rating-text { font-size: 0.85rem; color: var(--muted-foreground); }

.pdp-price-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.pdp-price-regular { font-size: 2rem; font-weight: 600; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.pdp-price-pix { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0; color: var(--pix); font-weight: 700; font-size: 1.05rem; }
.pix-badge { background: rgba(16,185,129,0.14); color: var(--pix-dark); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.03em; }
.pdp-price-inst { display: flex; align-items: center; gap: 0.4rem; margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--muted-foreground); }

.pdp-attr { border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 1.25rem; }
.pdp-attr-vals { margin: 0.2rem 0 0; font-weight: 500; }

.pdp-variations { margin-bottom: 1.25rem; }
.pdp-variations .pdp-attr { margin-bottom: 0.75rem; }
.pdp-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.pdp-swatch {
  padding: 0.45rem 0.9rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--foreground); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pdp-swatch:hover { border-color: var(--clay); }
.pdp-swatch.selected { background: var(--clay); border-color: var(--clay); color: #fff; }
.pdp-var-msg { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--clay); min-height: 1.1em; }
.pdp-buy:disabled { opacity: 0.5; cursor: not-allowed; }
.pdp-buy:disabled:hover { background: var(--clay); }

.pdp-actions { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.pdp-actions .qty-stepper { background: var(--card); height: 52px; }
.pdp-actions .qty-stepper button { height: 50px; width: 38px; font-size: 1.2rem; }
.pdp-actions .qty-stepper .qty-input { width: 34px; font-size: 0.95rem; }
.pdp-buy {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 52px; background: var(--clay); color: #fff; border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.pdp-buy:hover { background: var(--clay-hover); }
.pdp-buy.added { background: var(--pix-dark); }
.pdp-wish {
  width: 52px; height: 52px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--foreground);
}
.pdp-wish.active { color: var(--clay); border-color: var(--clay); }
.pdp-wish.active svg { fill: currentColor; }
.pdp-soldout { color: var(--muted-foreground); margin: 1.5rem 0; }

.frete-calc { border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.frete-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; margin: 0 0 0.75rem; font-size: 0.9rem; }
.frete-row { display: flex; gap: 0.5rem; }
.frete-row input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem 0.9rem; font-size: 0.9rem; background: var(--background); color: var(--foreground); }
.frete-btn { background: var(--clay); color: #fff; border: none; border-radius: 8px; padding: 0 1.2rem; font-weight: 600; cursor: pointer; }
.frete-btn:hover { background: var(--clay-hover); }
.frete-help { display: inline-block; margin-top: 0.6rem; font-size: 0.8rem; color: var(--clay); }
.frete-results { margin-top: 0.75rem; }
.frete-rate { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.frete-msg { font-size: 0.85rem; color: var(--muted-foreground); margin: 0.5rem 0 0; }

.pdp-ship-note { display: flex; align-items: center; gap: 0.75rem; border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; font-size: 0.85rem; }

.pdp-description { margin-top: 4rem; max-width: 820px; }
.pdp-description .section-title { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 1rem; }
.pdp-desc-body { color: var(--muted-foreground); line-height: 1.75; }
.pdp-related { margin-top: 4rem; }

@media (max-width: 767px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* =========================================================================
   Checkout
   ========================================================================= */
.checkout-wrap { padding-top: 2rem; padding-bottom: 4rem; }
.checkout-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.5rem; }
.checkout-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; color: var(--foreground); flex: 0 0 auto; }
.checkout-back:hover { background: var(--secondary); }
.checkout-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0; }
.checkout-sub { margin: 0.15rem 0 0; color: var(--muted-foreground); font-size: 0.9rem; }

.checkout-steps-bar {
  list-style: none; display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.75rem 0; padding: 1rem 1.25rem; margin: 1.5rem auto 2.25rem; max-width: 720px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
}
.checkout-steps-bar li {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; font-weight: 600; color: var(--foreground); letter-spacing: 0.01em;
}
.checkout-steps-bar li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--clay); color: #fff; font-size: 0.85rem; font-weight: 700;
  box-shadow: 0 3px 8px rgba(232,91,134,0.35);
}
.checkout-steps-bar li:not(:last-child)::after {
  content: ''; width: clamp(14px, 4vw, 50px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--clay), var(--border)); margin: 0 0.55rem;
}
@media (max-width: 560px) {
  .checkout-steps-bar { border-radius: 16px; gap: 0.5rem 0; }
  .checkout-steps-bar li { font-size: 0.72rem; }
  .checkout-steps-bar li:not(:last-child)::after { width: 12px; margin: 0 0.3rem; }
}

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 1.5rem; }

/* WC field groups as cards */
.checkout-main .woocommerce-billing-fields,
.checkout-main .woocommerce-shipping-fields,
.checkout-main .woocommerce-additional-fields,
.checkout-main #payment {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem;
}
.checkout-main h3, .checkout-main h3 label { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 1.1rem; font-weight: 600; }
.checkout-main .woocommerce-billing-fields__field-wrapper,
.checkout-main .woocommerce-shipping-fields__field-wrapper,
.checkout-main .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.checkout-main p.form-row { margin: 0 0 0.35rem; float: none; width: auto; }
.checkout-main p.form-row-wide,
.checkout-main p.form-row.notes,
.checkout-main p.form-row.address-field { grid-column: 1 / -1; }
.checkout-main label { font-size: 0.78rem; color: var(--muted-foreground); display: block; margin-bottom: 0.25rem; }
.checkout-main .required { color: var(--clay); border: none; }
.checkout-main input.input-text,
.checkout-main textarea,
.checkout-main select,
.checkout-main .select2-container .select2-selection {
  width: 100%; border: 1.5px solid #e7ccd6; border-radius: 10px;
  padding: 0.75rem 0.9rem; font-size: 0.92rem; background: #fff; color: var(--foreground);
  font-family: var(--font-sans); box-sizing: border-box; min-height: 46px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.checkout-main .select2-container--default .select2-selection--single { height: 46px; }
.checkout-main .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding: 0; }
.checkout-main .select2-container--default .select2-selection--single .select2-selection__arrow { top: 11px; }
.checkout-main input.input-text:focus,
.checkout-main textarea:focus,
.checkout-main select:focus,
.checkout-main .select2-container--default.select2-container--focus .select2-selection {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(232,91,134,0.16);
}
/* inline validation */
.checkout-main .woocommerce-invalid input.input-text,
.checkout-main .woocommerce-invalid .select2-selection { border-color: #d9534f; }
.checkout-main .woocommerce-validated input.input-text { border-color: var(--pix); }
.checkout-main .required { color: var(--clay); }

/* CEP loading shimmer on postcode */
form.checkout.cep-loading #billing_postcode {
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e85b86' stroke-width='2'%3E%3Cpath d='M21 12a9 9 0 1 1-6.2-8.5'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
}

/* Shipping method options as selectable rows */
.order-summary #shipping_method { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.order-summary #shipping_method li { margin: 0; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.order-summary #shipping_method li label { display: inline; margin: 0; font-weight: 500; }
.order-summary #shipping_method li input[type="radio"]:checked + label { color: var(--clay); }
.order-summary .woocommerce-shipping-totals th { vertical-align: top; padding-top: 0.6rem; }

/* Coupon toggle — styled bar with tag icon */
.checkout-wrap .woocommerce-form-coupon-toggle { margin: 0 0 1.5rem; }
.checkout-wrap .woocommerce-form-coupon-toggle .woocommerce-info {
  background: var(--card); border: 1.5px dashed var(--clay); border-radius: 12px;
  padding: 0.85rem 1.1rem 0.85rem 2.7rem; font-size: 0.88rem; color: var(--foreground);
  position: relative; margin: 0;
}
.checkout-wrap .woocommerce-form-coupon-toggle .woocommerce-info::before {
  content: ''; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; background: no-repeat center / contain;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e85b86' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='%23e85b86'/%3E%3C/svg%3E");
}
.checkout-wrap .woocommerce-form-coupon-toggle a.showcoupon { color: var(--clay); font-weight: 700; text-decoration: none; }
.checkout-wrap .woocommerce-form-coupon-toggle a.showcoupon:hover { text-decoration: underline; }
.checkout-wrap form.checkout_coupon { border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; margin: 0 0 1.5rem; background: var(--card); }
.checkout-wrap form.checkout_coupon p:first-child { margin-top: 0; color: var(--muted-foreground); font-size: 0.85rem; }
.checkout-wrap form.checkout_coupon .form-row { display: flex; gap: 0.5rem; margin-bottom: 0; }
.checkout-wrap form.checkout_coupon #coupon_code { flex: 1; border: 1.5px solid #e7ccd6; border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.9rem; min-height: 46px; }
.checkout-wrap form.checkout_coupon button { background: var(--clay); color: #fff; border: none; border-radius: 10px; padding: 0 1.3rem; font-weight: 600; cursor: pointer; }
.checkout-wrap form.checkout_coupon button:hover { background: var(--clay-hover); }

/* Payment methods as cards */
#payment .wc_payment_methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
#payment .wc_payment_methods li { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; background: var(--background); }
#payment .wc_payment_methods li.is-selected,
#payment .wc_payment_methods li:has(input:checked) { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
#payment .wc_payment_methods label { display: inline; font-size: 0.95rem; color: var(--foreground); font-weight: 600; }
#payment .payment_box { background: var(--secondary); border-radius: 10px; padding: 0.85rem 1rem; margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted-foreground); }
#payment .payment_box::before { display: none; }

/* Order summary */
.order-summary { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.order-review-heading { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 1rem; }
.order-summary .shop_table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.order-summary .shop_table th, .order-summary .shop_table td { padding: 0.5rem 0; text-align: left; }
.order-summary .shop_table td.product-total, .order-summary .shop_table .amount { text-align: right; white-space: nowrap; }
.order-summary .cart_item td { border-top: 1px solid var(--border); }
.order-summary tfoot th { font-weight: 500; color: var(--muted-foreground); }
.order-summary tfoot .order-total th, .order-summary tfoot .order-total td { font-size: 1.05rem; font-weight: 700; border-top: 1px solid var(--border); padding-top: 0.75rem; }
.order-summary tr.mare-pix-row th { color: var(--pix); font-weight: 600; display: flex; align-items: center; gap: 0.35rem; }
.order-summary tr.mare-pix-row .mare-pix-total { color: var(--pix); }
.order-summary .woocommerce-shipping-totals .amount { font-weight: 600; }

/* Coupon form */
.checkout_coupon { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.checkout_coupon .form-row { margin: 0; }
.checkout_coupon input[type="text"] { border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.85rem; font-size: 0.85rem; }
.checkout_coupon button { background: var(--secondary); color: var(--foreground); border: none; border-radius: 10px; padding: 0 1rem; font-weight: 600; cursor: pointer; }

/* Place order */
#place_order, .checkout #place_order {
  width: 100%; background: var(--clay); color: #fff; border: none; border-radius: 12px;
  padding: 1rem; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 1rem; transition: background 0.2s;
}
#place_order:hover { background: var(--clay-hover); }
.order-submit-note { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 1rem 0 0; font-size: 0.8rem; color: var(--muted-foreground); }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 560px) {
  .checkout-main .woocommerce-billing-fields__field-wrapper,
  .checkout-main .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* ===================== Página "Pedido recebido" (thank you) ===================== */
.woocommerce-order-received .woocommerce {
  max-width: 760px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
}
.woocommerce-order-received .woocommerce-order { margin: 0; padding: 0; }

/* Aviso "faça login" / mensagens info */
.woocommerce-order-received .woocommerce-info {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--clay);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--foreground);
  font-size: 0.92rem;
  list-style: none;
}

/* Formulário de login (quando exige conta) */
.woocommerce-order-received .woocommerce-form-login {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
.woocommerce-order-received .woocommerce-form-login .form-row { margin: 0; }
.woocommerce-order-received .woocommerce-form-login .form-row-first { grid-column: 1; }
.woocommerce-order-received .woocommerce-form-login .form-row-last { grid-column: 2; }
.woocommerce-order-received .woocommerce-form-login .clear { display: none; }
.woocommerce-order-received .woocommerce-form-login > .form-row:not(.form-row-first):not(.form-row-last),
.woocommerce-order-received .woocommerce-form-login .woocommerce-LostPassword { grid-column: 1 / -1; }
.woocommerce-order-received .woocommerce-form-login label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}
.woocommerce-order-received .woocommerce-form-login input.input-text {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--input);
  border-radius: 10px;
  background: var(--background);
  font-size: 0.95rem;
  color: var(--foreground);
}
.woocommerce-order-received .woocommerce-form-login input.input-text:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(232,91,134,0.15);
}
.woocommerce-order-received .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.9rem;
}
.woocommerce-order-received .woocommerce-form-login__rememberme input { width: auto; margin: 0; }
.woocommerce-order-received .woocommerce-form-login .button {
  background: var(--clay);
  color: var(--clay-foreground);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.15s;
}
.woocommerce-order-received .woocommerce-form-login .button:hover { filter: brightness(0.94); }
.woocommerce-order-received .woocommerce-LostPassword { font-size: 0.88rem; margin: 0; }
.woocommerce-order-received .woocommerce-LostPassword a { color: var(--clay); text-decoration: none; }

/* Cabeçalho de sucesso */
.woocommerce-order-received .woocommerce-thankyou-order-received {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  margin: 0 0 1.5rem;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--foreground);
}
.woocommerce-order-received .woocommerce-thankyou-order-received::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--clay)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 32px 32px no-repeat;
  box-shadow: 0 8px 20px -6px rgba(232,91,134,0.55);
}

/* Resumo do pedido (overview) */
.woocommerce-order-received .woocommerce-order-overview {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 480px) {
  .woocommerce-order-received .woocommerce-order-overview { grid-template-columns: 1fr; }
}
.woocommerce-order-received .woocommerce-order-overview li {
  border: none;
  padding: 0.6rem 0.75rem;
  margin: 0;
  background: var(--secondary);
  border-radius: 12px;
  text-transform: none;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-align: left;
}
.woocommerce-order-received .woocommerce-order-overview li strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--foreground);
  font-weight: 600;
  word-break: break-word;
}
/* E-mail costuma ser mais longo: ocupa a linha inteira do grid */
.woocommerce-order-received .woocommerce-order-overview__email { grid-column: 1 / -1; }

/* Bloco PIX do Mercado Pago */
.woocommerce-order-received .mp-details-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-align: center;
  color: var(--rose-deep, var(--clay));
  margin: 0 0 1rem;
}
.woocommerce-order-received .mp-details-pix {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  margin: 0 0 1.75rem;
}
.woocommerce-order-received .mp-row-checkout-pix {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: flex-start;
  justify-content: center;
}
.woocommerce-order-received .mp-col-md-4,
.woocommerce-order-received .mp-col-md-8 {
  flex: 1 1 260px;
  min-width: 240px;
}
.woocommerce-order-received .mp-details-pix-img { width: 120px; height: auto; max-width: 100%; }
.woocommerce-order-received .mp-details-pix-title {
  font-weight: 600;
  margin: 0.5rem 0 1rem;
  color: var(--foreground);
}
.woocommerce-order-received .mp-steps-congrats { list-style: none; margin: 0; padding: 0; }
.woocommerce-order-received .mp-details-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.woocommerce-order-received .mp-details-pix-number-p {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin: 0;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woocommerce-order-received .mp-details-list-description { margin: 0; font-size: 0.92rem; color: var(--foreground); }
.woocommerce-order-received .mp-pix-right { text-align: center; }
.woocommerce-order-received .mp-details-pix-amount { margin: 0 0 0.5rem; }
.woocommerce-order-received .mp-details-pix-qr { color: var(--muted-foreground); font-size: 0.85rem; }
.woocommerce-order-received .mp-details-pix-qr-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--foreground); }
.woocommerce-order-received .mp-details-pix-qr-title { font-size: 0.85rem; color: var(--muted-foreground); margin: 0.75rem 0 0.5rem; }
.woocommerce-order-received .mp-details-pix-qr-img,
.woocommerce-order-received .mp-pix-image {
  width: 200px; height: 200px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}
.woocommerce-order-received .mp-pix-image-container { text-align: center; margin-top: 1rem; }
.woocommerce-order-received .mp-pix-image-date-expiration small { color: var(--muted-foreground); }
.woocommerce-order-received .mp-details-pix-button,
.woocommerce-order-received button.mp-details-pix-button {
  display: inline-block !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 1rem auto 0 !important;
  padding: 0.7rem 1.75rem !important;
  box-sizing: border-box !important;
  background: var(--clay) !important;
  color: var(--clay-foreground) !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer;
  transition: filter 0.15s;
}
.woocommerce-order-received .mp-details-pix-button:hover { filter: brightness(0.94); }
.woocommerce-order-received .mp-pix-image-qr-code p {
  max-width: 420px;
  margin: 0.75rem auto 0;
  padding: 0.75rem;
  background: var(--secondary);
  border: 1px dashed var(--border);
  border-radius: 10px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--muted-foreground);
}

/* Tabela de detalhes do pedido + endereços */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  margin: 0 0 1.5rem;
}
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-customer-details h2,
.woocommerce-order-received .woocommerce-column__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--foreground);
}
.woocommerce-order-received .shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.woocommerce-order-received .shop_table th,
.woocommerce-order-received .shop_table td {
  padding: 0.7rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.woocommerce-order-received .shop_table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.woocommerce-order-received .shop_table td.product-total,
.woocommerce-order-received .shop_table th.product-total,
.woocommerce-order-received .shop_table tfoot td { text-align: right; }
.woocommerce-order-received .shop_table a { color: var(--foreground); text-decoration: none; }
.woocommerce-order-received .shop_table a:hover { color: var(--clay); }
.woocommerce-order-received .shop_table tfoot th { color: var(--muted-foreground); font-weight: 600; }
.woocommerce-order-received .shop_table tfoot tr:last-child th,
.woocommerce-order-received .shop_table tfoot tr:last-child td {
  font-size: 1.05rem;
  color: var(--foreground);
  border-bottom: none;
  padding-top: 0.85rem;
}
.woocommerce-order-received .woocommerce-customer-details address {
  font-style: normal;
  line-height: 1.6;
  color: var(--foreground);
  border: none;
  padding: 0;
}
.woocommerce-order-received .woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 0; }

@media (max-width: 600px) {
  .woocommerce-order-received .woocommerce-thankyou-order-received { font-size: 1.3rem; padding: 2rem 1rem 1.5rem; }
  .woocommerce-order-received .mp-details-pix,
  .woocommerce-order-received .woocommerce-order-details,
  .woocommerce-order-received .woocommerce-customer-details { padding: 1.25rem; }
}
