:root {
  --bg: #fbf7ef;
  --bg-alt: #f1e6d3;
  --card-bg: #fffdf9;
  --text: #3b2f22;
  --text-muted: #8e7c67;
  --primary: #a9793f;
  --primary-dark: #86602f;
  --accent: #c6a34d;
  --sage: #7e8b6e;
  --danger: #a6453c;
  --border: #e7dac2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(59, 47, 34, 0.08);
  --font-title: "Playfair Display", serif;
  --font-script: "Caveat", cursive;
  --font-body: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-title);
  margin: 0;
}

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

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

/* Header */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  line-height: 1;
}

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

.logo__tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.whatsapp-btn:hover {
  background: #6c7a5f;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  padding: 56px 20px 48px;
  text-align: center;
}

.hero__tagline {
  display: block;
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero h1 {
  font-size: 2.3rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1.5px solid var(--primary);
  transition: all 0.15s ease;
}

.btn-hero--solid {
  background: var(--primary);
  color: #fff;
}

.btn-hero--solid:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-hero--outline {
  background: transparent;
  color: var(--primary-dark);
}

.btn-hero--outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Story / about section */
.story {
  padding: 64px 20px;
  text-align: center;
}

.story__inner {
  max-width: 620px;
  margin: 0 auto;
}

.story .script {
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.story h2 {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.story p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}

.story__signature {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-top: 20px;
}

/* Portfolio gallery */
.portfolio {
  background: var(--bg-alt);
  padding: 64px 20px;
}

.portfolio__header {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
}

.portfolio__header .script {
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.portfolio__header h2 {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.portfolio__header p {
  color: var(--text-muted);
}

.portfolio__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--border);
  display: block;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(to top, rgba(59, 47, 34, 0.75), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__overlay span {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
}

/* Shop section */
.shop {
  padding: 56px 20px 0;
}

.shop__header {
  max-width: 620px;
  margin: 0 auto 8px;
  text-align: center;
}

.shop__header .script {
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.shop__header h2 {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.shop__header p {
  color: var(--text-muted);
}

/* Filters */
.filters {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.filters__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.search-box {
  flex: 1 1 240px;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--card-bg);
}

.search-box input:focus {
  outline: 2px solid var(--primary);
}

/* Product grid */
.product-grid {
  max-width: 1200px;
  margin: 28px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(59, 47, 34, 0.14);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  overflow: hidden;
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: var(--font-title);
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  font-size: 0.95rem;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.product-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card__category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  font-weight: 600;
}

.product-card__name {
  font-size: 1.02rem;
  font-family: var(--font-title);
  color: var(--text);
}

.product-card__price {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary-dark);
}

.product-card__price small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-card.is-unavailable {
  opacity: 0.6;
}

.empty-state {
  max-width: 1200px;
  margin: 60px auto;
  text-align: center;
  color: var(--text-muted);
  padding: 0 20px;
}

.site-footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer .script {
  display: block;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.script {
  font-family: var(--font-script);
}

/* Cart button + drawer */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.cart-btn:hover {
  border-color: var(--primary);
}

.cart-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 47, 34, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  box-shadow: -8px 0 30px rgba(59, 47, 34, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

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

.cart-drawer__header h2 {
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.cart-drawer__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px;
}

.cart-drawer__footer {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--border);
}

.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.cart-drawer__subtotal strong {
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.cart-drawer__checkout {
  width: 100%;
  justify-content: center;
}

.cart-drawer__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 50px 0;
  font-size: 0.9rem;
}

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

.cart-item img,
.cart-item__placeholder {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.cart-item__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  text-align: center;
  color: var(--primary-dark);
  font-family: var(--font-title);
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.cart-item__variacoes {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.qty-control button {
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.qty-control span {
  width: 24px;
  text-align: center;
  font-size: 0.82rem;
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-item__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

/* Product detail page */
.product-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

@media (max-width: 760px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-gallery__main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 10px;
}

.product-gallery__main img,
.product-gallery__main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__main .product-card__placeholder {
  font-size: 1.1rem;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-gallery__thumbs button {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--bg-alt);
}

.product-gallery__thumbs button.active {
  border-color: var(--primary);
}

.product-gallery__thumbs img,
.product-gallery__thumbs video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info__category {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.product-info__name {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin: 6px 0 12px;
}

.product-info__price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.product-info__desc {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 26px;
}

.variant-group {
  margin-bottom: 22px;
}

.variant-group__label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-option {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.variant-option.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.variant-option:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.qty-stepper .qty-control button {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.qty-stepper .qty-control span {
  width: 30px;
}

.add-to-cart-btn {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 1rem;
}

.product-unavailable-note {
  background: #f7e8e6;
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--primary);
}
