/* ============================================================
   AP Studio DSGN — estilos
   ============================================================ */

:root {
  --cream: #faf3e8;
  --cream-deep: #f0e4d0;
  --blue: #a9c6dd;
  --blue-deep: #7ea3c2;
  --blue-ink: #2f4a63;
  --pink: #e9a8bb;
  --pink-deep: #d97e98;
  --ink: #3a352e;
  --ink-soft: #6b6355;
  --white: #ffffff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(58, 53, 46, 0.08);
  --shadow-hover: 0 16px 36px rgba(58, 53, 46, 0.14);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

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

/* ---------- top banner ---------- */
.announcement {
  background: var(--blue-ink);
  color: var(--cream);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 8px 12px;
}

/* ---------- header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 243, 232, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-deep);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--blue-ink);
}

nav.main-nav {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

nav.main-nav a:hover { color: var(--pink-deep); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  position: relative;
  background: var(--white);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.icon-btn:hover { transform: translateY(-2px); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--pink-deep);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.hamburger {
  display: none;
  background: none;
  box-shadow: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue) 40%, var(--cream) 40%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
}

.hero-tag {
  display: inline-block;
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--blue-ink);
}

.hero p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 0 26px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--pink-deep);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(217, 126, 152, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(217, 126, 152, 0.4); }

.btn-secondary {
  background: var(--white);
  color: var(--blue-ink);
  box-shadow: var(--shadow);
}

.btn-secondary:hover { transform: translateY(-2px); }

.btn-block { width: 100%; }

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-collage img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  transform: rotate(-3deg);
  aspect-ratio: 2/3;
  object-fit: cover;
}

.hero-collage img:nth-child(2) { transform: rotate(4deg) translateY(18px); }
.hero-collage img:nth-child(3) { transform: rotate(3deg) translateY(-12px); }
.hero-collage img:nth-child(4) { transform: rotate(-4deg) translateY(10px); }

/* ---------- section headings ---------- */
.section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

.section-head .eyebrow {
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: 2rem;
  color: var(--blue-ink);
  margin: 8px 0 10px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- filters ---------- */
.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  background: var(--white);
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}

.filter-btn.active {
  background: var(--blue-ink);
  color: var(--white);
}

/* ---------- product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-thumb {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-deep);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.badge-soldout {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.product-cat {
  font-size: 0.72rem;
  color: var(--pink-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.3;
}

.product-price {
  font-weight: 700;
  color: var(--blue-ink);
  font-size: 1.05rem;
  margin-top: auto;
}

.product-add {
  margin-top: 6px;
  background: var(--cream-deep);
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.product-add:hover { background: var(--pink); color: var(--white); }

.product-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- about ---------- */
.about {
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.about-inner img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-text .eyebrow {
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-text h2 {
  color: var(--blue-ink);
  font-size: 1.9rem;
  margin: 8px 0 14px;
}

.about-text p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* ---------- footer ---------- */
footer {
  background: var(--blue-ink);
  color: var(--cream);
  padding: 46px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 34px;
  filter: brightness(0) invert(1);
}

.footer-brand span {
  font-weight: 700;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--pink);
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: rgba(250, 243, 232, 0.85);
  margin-bottom: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(250, 243, 232, 0.15);
  padding-top: 18px;
  font-size: 0.8rem;
  color: rgba(250, 243, 232, 0.6);
  text-align: center;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 45;
  background: #25d366;
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}

.wa-float:hover { transform: scale(1.08); }

/* ---------- cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 74, 99, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

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

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 92vw;
  background: var(--cream);
  z-index: 51;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 30px rgba(0,0,0,0.15);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--cream-deep);
}

.drawer-header h3 {
  margin: 0;
  color: var(--blue-ink);
  font-size: 1.2rem;
}

.close-btn {
  background: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 60px;
}

.cart-empty .emoji { font-size: 2.4rem; margin-bottom: 10px; }

.cart-item {
  display: flex;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow);
}

.cart-item img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-price {
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 0.88rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--blue-ink);
}

.remove-link {
  font-size: 0.78rem;
  color: var(--pink-deep);
  font-weight: 600;
  align-self: flex-start;
  margin-left: auto;
}

.drawer-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--cream-deep);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-ink);
}

.drawer-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- modals (product + checkout) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 74, 99, 0.45);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-hover);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--cream);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  z-index: 2;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-modal-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.product-modal-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.product-modal-info .product-cat { margin-bottom: 6px; }

.product-modal-info h3 {
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 10px;
}

.product-modal-info .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-ink);
  margin-bottom: 14px;
}

.product-modal-info .desc {
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-qty-row .qty-btn {
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
}

/* checkout modal */
.checkout-box { max-width: 480px; padding: 34px 28px; }
.checkout-box h3 { color: var(--blue-ink); margin-top: 0; }
.checkout-summary {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0 20px;
  max-height: 220px;
  overflow-y: auto;
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 5px 0;
  color: var(--ink-soft);
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-ink);
  border-top: 1px dashed var(--cream-deep);
  margin-top: 8px;
  padding-top: 10px;
}
.checkout-options { display: flex; flex-direction: column; gap: 10px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}
.pay-option.wa { background: #e7f9ee; color: #1c8a4b; }
.pay-option.mp { background: #eaf1ff; color: #2453b8; }
.pay-option.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.checkout-error {
  font-size: 0.8rem;
  color: var(--pink-deep);
  text-align: center;
  margin: 0;
}

/* ---------- checkout form ---------- */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.checkout-form input[type="text"],
.checkout-form input[type="email"] {
  border: 1px solid var(--cream-deep);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
}

.checkout-form input[type="text"]:focus,
.checkout-form input[type="email"]:focus {
  outline: 2px solid var(--blue);
}

.shipping-block {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-question {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.toggle-row {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  flex: 1;
  background: var(--white);
  padding: 9px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}

.toggle-btn.active {
  background: var(--blue-ink);
  color: var(--white);
}

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border: 2px solid transparent;
}

.shipping-option.active {
  border-color: var(--blue-deep);
}

.shipping-option input {
  accent-color: var(--blue-deep);
}

.shipping-note {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- sticker club ---------- */
.sticker-club {
  background: var(--pink);
  background: linear-gradient(135deg, var(--pink) 0%, var(--blue) 100%);
}

.club-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
}

.club-info {
  padding: 42px 40px;
}

.club-tag {
  background: var(--pink);
  color: var(--white);
}

.club-info h2 {
  font-size: 1.9rem;
  color: var(--blue-ink);
  margin: 12px 0 10px;
}

.club-lead {
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.5;
}

.club-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.club-list li {
  font-size: 0.92rem;
  color: var(--ink);
  padding-left: 26px;
  position: relative;
}

.club-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink-deep);
  font-weight: 800;
}

.club-pricing {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.club-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 4px 0;
}

.club-price-row strong {
  color: var(--blue-ink);
}

.club-price-note {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin: 4px 0 10px;
  font-style: italic;
}

.club-price-highlight {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--ink);
  border: 1px dashed var(--pink-deep);
}

.club-price-highlight strong {
  color: var(--pink-deep);
}

.club-price-highlight span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.club-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

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

.club-media img:first-child { transform: rotate(-2deg) scale(1.05); }
.club-media img:last-child { transform: rotate(2deg) scale(1.05); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { order: -1; }
  .about-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .club-card { grid-template-columns: 1fr; }
  .club-media { min-height: 220px; }
}

@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 40px 0; }
  .product-modal-grid { grid-template-columns: 1fr; }
  .product-modal-grid img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 260px; }
  .footer-inner { grid-template-columns: 1fr; }
  .club-info { padding: 30px 24px; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .container { padding: 0 16px; }
}
