/* ======================================
   GLOBAL RESET + PAGE SETTINGS
====================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #ffece5 0, transparent 55%),
    radial-gradient(circle at bottom right, #e3ecff 0, #f8fafc 60%);
  background-attachment: fixed;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.75rem 3.5rem;
  padding-top: 0;
}

/* ======================================
   NEW 3-COLUMN HERO HEADER
====================================== */
.hero {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  padding: 2.5rem 0 0rem;
  border-bottom: 2px solid #00000008;
  margin-bottom: 15px;
}

/* LEFT BLOCK ========================= */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  align-items: flex-start;
}

.hero-left h1 {
  font-size: 3.4rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.35rem;
  line-height: 1.1;
}

.hero-left h2 {
  font-size: 2rem;
  font-weight: 400;
  color: #475569;
  line-height: 1.45;
}

.hero-left h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #475569;
  line-height: 1.45;
}

/* MIDDLE BLOCK (CONTACT INFO) ========= */
.hero-middle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  color: #334155;
}

/* FREE TOGGLE SECTION ========================= */

.free-toggle-wrapper {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.free-toggle-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.6rem;
  margin-right: 0.75rem;
  border-right: 2px solid #e2e8f0;
}

/* Toggle base */
.free-toggle-btn {
  position: relative;
  width: 78px;
  height: 32px;
  background: #f8fafc;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
  outline: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Slider circle */
.free-toggle-btn .slider {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  transition: left 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* ACTIVE STATE — moves slider + changes bg */
.free-toggle-btn.on {
  background: #10b981;
}

.free-toggle-btn.on .slider {
  left: 48px;
}

.free-toggle-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  opacity: 1;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity .25s ease;
  font-family: "Inter", sans-serif;
}

.free-toggle-btn.on .free-toggle-text {
  opacity: 0;
}

.hero-middle .label {
  font-weight: 700;
  color: #1e293b;
  margin-top: 0.7rem;
  margin-bottom: 0.15rem;
}

.hero-middle .text {
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
}

.hero-middle a {
  color: #334155;
  font-weight: 500;
  text-decoration: none;
}

/* WhatsApp CTA */
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.whatsapp-cta img {
  width: 22px;
  height: 22px;
}

.whatsapp-cta a {
  color: #059669;
  font-weight: 600;
}

/* RIGHT BLOCK ========================= */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-right img {
  width: 100%;
  max-width: 220px;
  object-fit: contain;
}

/* ======================================
   FILTER
====================================== */
.filter-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 2rem;
  padding: 0 10px;
}

/* Pill-style filter button */
.label-filter {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 18px;
  border-radius: 999px;
  background: white;
  border: none;
  outline: 2px solid #d1d5db;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  user-select: none;
}

.label-filter.active {
  background: white;
  color: #1e293b;
  outline: 2px solid #4f46e5;
}

.label-filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 .2rem;
}

/* ======================================
   GRID
====================================== */
#grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* ======================================
   PRODUCT CARD
====================================== */
.card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* Square image frame */
.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e5e7eb;
  overflow: hidden;
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.image-frame img.active {
  opacity: 1;
}

/* Carousel arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.65);
  border: none;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  color: #f9fafb;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.card:hover .arrow {
  opacity: 1;
}

.arrow.left {
  left: 12px;
}

.arrow.right {
  right: 12px;
}

/* Price tag overlay */
.price-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.92));
}

.price-overlay.free {
  background: linear-gradient(135deg, #059669, #10b981);
}

.info {
  padding: 1.1rem 1.25rem 1.4rem;
}

.name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.empty {
  text-align: center;
  margin-top: 3rem;
  color: #6b7280;
  font-size: 1.05rem;
}

/* ======================================
   MOBILE (SQUARE, FULL-WIDTH)
====================================== */
@media (max-width: 820px) {

  .page {
    padding: 1.5rem 1rem 2.5rem;
  }

  /* Hero stacked */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
    padding: 20px;
    margin-bottom: 5px;
  }

  .hero-left h1 {
    font-size: 2rem;
    align-self: center;
    line-height: 1.15;
  }

  .hero-left h2 {
    font-size: 1.05rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .hero-left h3 {
    font-size: 1.05rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .hero-middle {
    align-items: center;
  }

  .hero-right {
    display: none;
  }

  .filter-bar {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 20px;
    padding: 10px 0;
  }

  .label-filter-container {
    justify-content: center;
  }

  /* Grid = one tile */
  #grid {
    grid-template-columns: 1fr !important;
    gap: 1.7rem;
  }

  .image-frame {
    aspect-ratio: 1 / 1;
  }

  .name {
    font-size: 1.2rem;
  }

  .price-overlay {
    font-size: 1rem;
  }
}

/* Extra small */
@media (max-width: 480px) {
  .whatsapp-cta a {
    font-size: 0.9rem;
  }
}


/* ======================================
   SOLD BANNER
====================================== */
.sold-banner {
  position: absolute;
  top: 12px;
  right: -40px;
  width: 160px;

  transform: rotate(45deg);
  background: #dc2626;
  color: white;

  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;

  padding: 0.4rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 50;
}


/* ======================================
   IMAGE PREVIEW MODAL
====================================== */

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 40px 20px;
}

.image-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: 900px;
  max-height: 900px;
  background: #000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#modalImage {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}
/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.4rem;
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  z-index: 20;
  line-height: 1;
}

/* Modal arrows */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.65);
  border: none;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #1f2937;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.modal-arrow:hover {
  opacity: 1;
}

.modal-arrow.left {
  left: 10px;
}

.modal-arrow.right {
  right: 10px;
}

/* MOBILE adjustments */
@media (max-width: 820px) {
  .modal-arrow.left {
    left: 10px;
  }
  .modal-arrow.right {
    right: 10px;
  }
  .modal-close {
    top: 10px;
    right: 10px;
  }
}