:root {
  --lilac: #7A5CCE;
  --lilac-dark: #5C4A96;
  --yellow: #F0C33B;
  --cream: #fbf4e9;
  --cream-deep: #f3e4d0;
  --charcoal: #3a3129;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(58, 49, 41, 0.08);
  /* Altura do .site-header sticky (~87px: 16px+16px de padding + logo).
     Arredondado pra cima pra dar folga; usado pelo sidebar fixo do admin. */
  --site-header-height: 88px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Quicksand", "Poppins", sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
}

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

img,
svg {
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(58, 49, 41, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--lilac);
  letter-spacing: 0.5px;
}

.logo span {
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.65;
}

.main-nav {
  display: flex;
  gap: 26px;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a {
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  color: var(--lilac);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cart-count {
  background: var(--lilac);
  color: white;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--cream-deep), var(--cream));
  padding: 56px 24px 40px;
  text-align: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lilac);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: 2.6rem;
  margin: 0 0 14px;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(58, 49, 41, 0.75);
  font-size: 1.05rem;
}

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

.hero-badge {
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ---------- Category tabs ---------- */
.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 24px 6px;
}

.tab-btn {
  border: 2px solid var(--cream-deep);
  background: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--charcoal);
}

.tab-btn.active {
  background: var(--lilac);
  border-color: var(--lilac);
  color: white;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(58, 49, 41, 0.14);
}

.product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-thumb svg {
  width: 62%;
  height: 62%;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--yellow);
  color: var(--charcoal);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

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

.product-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lilac-dark);
  font-weight: 700;
}

.product-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
}

.product-short {
  font-size: 0.85rem;
  color: rgba(58, 49, 41, 0.65);
  flex: 1;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.product-price {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--lilac-dark);
}

.product-price small {
  font-weight: 500;
  font-size: 0.7rem;
  color: rgba(58, 49, 41, 0.55);
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--lilac);
  color: white;
}

.btn-primary:hover {
  background: var(--lilac-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.78rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 46px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.gallery-main {
  background: var(--cream-deep);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
}

.gallery-main svg {
  width: 48%;
  height: 48%;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--white);
  border: 2px solid var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
  overflow: hidden;
}

.gallery-thumb svg {
  width: 60%;
  height: 60%;
}

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

button.gallery-thumb {
  cursor: pointer;
}

button.gallery-thumb.active {
  border-color: var(--lilac);
}

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(58, 49, 41, 0.55);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--lilac-dark);
  font-weight: 600;
}

.pd-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--lilac-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.pd-title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  margin: 0 0 12px;
}

.pd-price {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--lilac-dark);
  margin-bottom: 18px;
}

.pd-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(58, 49, 41, 0.55);
}

.pd-description {
  color: rgba(58, 49, 41, 0.8);
  margin-bottom: 24px;
}

.field-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.select-input,
.qty-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 2px solid var(--cream-deep);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--cream-deep);
  background: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.qty-value {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
}

.pd-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.pd-note {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--cream-deep);
  border-radius: 12px;
  font-size: 0.82rem;
  color: rgba(58, 49, 41, 0.75);
}

.related-heading {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  padding: 0 24px;
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Cart page ---------- */
.cart-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 46px 24px 90px;
}

.cart-page h1 {
  font-family: "Poppins", sans-serif;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "img name"
      "img variant"
      "img qty"
      "img price";
    row-gap: 4px;
  }
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  background: var(--cream-deep);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-thumb svg {
  width: 60%;
  height: 60%;
}

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

.cart-item-name {
  font-weight: 700;
}

.cart-item-variant {
  font-size: 0.78rem;
  color: rgba(58, 49, 41, 0.6);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--lilac-dark);
  white-space: nowrap;
}

.cart-remove {
  background: none;
  border: none;
  color: rgba(58, 49, 41, 0.4);
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(58, 49, 41, 0.6);
}

.cart-summary {
  margin-top: 26px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.cart-summary-total {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--cream-deep);
  margin-top: 4px;
}

.info-box {
  background: var(--cream-deep);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 24px;
  font-size: 0.85rem;
}

.info-box h3 {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.info-box ul {
  margin: 6px 0;
  padding-left: 18px;
}

.info-box li {
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 44px 24px 30px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

.footer-inner h4 {
  font-family: "Poppins", sans-serif;
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--yellow);
}

.footer-inner p,
.footer-inner a {
  font-size: 0.85rem;
  color: rgba(251, 244, 233, 0.75);
  margin: 0 0 6px;
  display: block;
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(251, 244, 233, 0.4);
  margin-top: 30px;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: var(--cream);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Landing "em breve" ---------- */
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: linear-gradient(160deg, var(--cream-deep), var(--cream) 55%);
}

.landing-shell {
  max-width: 1040px;
  width: 100%;
}

/* ---- Brand mark: the signature element ---- */
.landing-brand {
  text-align: center;
  margin-bottom: 40px;
}

.landing-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--lilac);
}

.landing-sparkle {
  color: var(--yellow);
  font-size: 0.35em;
  transform: rotate(-12deg);
}

.landing-sparkle:last-child {
  transform: rotate(18deg);
}

.landing-brand-tagline {
  margin: 6px 0 16px;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--charcoal);
  opacity: 0.75;
}

.landing-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--lilac-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
}

/* ---- Photo collage + form ---- */
.landing-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.landing-collage {
  position: relative;
  min-height: 320px;
}

.landing-photo {
  position: absolute;
  width: 62%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  animation: landing-photo-in 0.6s ease backwards;
}

.landing-photo-1 {
  top: 0;
  left: 4%;
  transform: rotate(-8deg);
  z-index: 1;
  animation-delay: 0.05s;
}

.landing-photo-2 {
  top: 14%;
  left: 32%;
  transform: rotate(6deg);
  z-index: 2;
  animation-delay: 0.15s;
}

.landing-photo-3 {
  top: 40%;
  left: 8%;
  width: 48%;
  transform: rotate(-4deg);
  z-index: 3;
  animation-delay: 0.25s;
}

@keyframes landing-photo-in {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-photo {
    animation: none;
  }
}

.landing-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.landing-card h1 {
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  margin: 0 0 14px;
}

.landing-card p {
  color: rgba(58, 49, 41, 0.75);
  margin: 0 0 24px;
}

.landing-form {
  text-align: left;
}

.landing-message {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 16px;
}

.landing-message.is-success {
  background: rgba(143, 169, 152, 0.25);
  color: var(--charcoal);
}

.landing-message.is-error {
  background: rgba(232, 120, 90, 0.18);
  color: var(--charcoal);
}

/* ---- Contact bar ---- */
.landing-contact-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
}

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

  .landing-collage {
    width: min(100%, 320px);
    min-height: 260px;
    margin: 0 auto;
  }

  .landing-card {
    padding: 28px 24px;
  }
}
