/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --primary-color: #2f5aae;     /* Brand Blue */
  --accent-color: #e11d48;      /* Brand Red/Rose */
  --text-dark: #272626;         /* Off-black text */
  --text-light: #64748b;        /* Slate gray for secondary text */
  --bg-gradient-start: #eef5fc; /* Soft light blue */
  --bg-gradient-end: #f8fafc;   /* Soft warm gray */
  --whatsapp-green: #25d366;    /* Official WhatsApp Green */
  --white: #ffffff;
  
  /* Layout & Spacing */
  --container-width: 520px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(47, 90, 174, 0.08);
  --shadow-btn: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 24px rgba(47, 90, 174, 0.15);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><ellipse cx='50' cy='70' rx='22' ry='17' fill='%232f5aae'/><ellipse cx='27' cy='47' rx='11' ry='9' fill='%232f5aae'/><ellipse cx='50' cy='38' rx='11' ry='9' fill='%232f5aae'/><ellipse cx='73' cy='47' rx='11' ry='9' fill='%232f5aae'/></svg>");
  background-size: 110px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   BACKGROUND DECORATIVE ELEMENTS (EMOJIS)
   ========================================================================== */
.bg-emoji {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.left-emoji {
  top: 10%;
  left: 5%;
  width: 140px;
  max-width: 15vw;
}

.right-emoji {
  top: 8%;
  right: 5%;
  width: 120px;
  max-width: 12vw;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.bg-emoji img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Responsive adjustments for background emojis to prevent blocking layout */
@media (max-width: 768px) {
  .left-emoji {
    left: -20px;
    top: 5%;
    width: 90px;
    opacity: 0.7;
  }
  .right-emoji {
    right: -20px;
    top: 3%;
    width: 80px;
    opacity: 0.7;
  }
}

/* ==========================================================================
   MAIN LAYOUT CONTAINER
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header {
  text-align: center;
  margin-bottom: 32px;
  width: 100%;
}

.logo-wrapper {
  margin-bottom: 16px;
}

.logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  text-transform: uppercase;
  line-height: 1.2;
}

/* ==========================================================================
   INTERACTIVE BUTTONS SECTION
   ========================================================================== */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

/* Icon base styles */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* --- 1. FEATURED: COMPRA ONLINE --- */
.featured-card {
  width: 100%;
}

.featured-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  color: var(--white);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(47, 90, 174, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Pulsing effect to stand out */
.featured-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.featured-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(47, 90, 174, 0.35);
  background: linear-gradient(135deg, #3b82f6 0%, var(--primary-color) 100%);
}

.featured-btn:active {
  transform: translateY(-1px);
}

/* --- 2. TELEVENDAS CARD --- */
.televendas-card {
  width: 100%;
}

.televendas-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: var(--whatsapp-green);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
  border: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.televendas-btn:hover {
  transform: translateY(-2px);
  background: #20bf5b;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.televendas-btn:active {
  transform: translateY(0);
}

/* --- 3. SECTION LABEL --- */
.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  padding: 0 8px;
  margin: 4px 0;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 26%;
  height: 1px;
  background: rgba(100, 116, 139, 0.25);
}

.section-label::before { left: 0; }
.section-label::after  { right: 0; }

/* --- 4. SEARCH BAR --- */
.search-wrapper {
  position: relative;
  width: 100%;
  margin: 8px 0;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-light);
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(47, 90, 174, 0.15);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

#search-input::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

#search-input:focus {
  background: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(47, 90, 174, 0.1);
}

/* --- 5. STORES SECTION --- */
.stores-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 4px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  animation: fadeIn 0.4s ease-out;
}

.store-row:hover {
  background: rgba(47, 90, 174, 0.05);
}

/* Maps button */
.map-link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 62px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--accent-color);
  border: 1.5px solid rgba(225, 29, 72, 0.15);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  flex-shrink: 0;
}

.icon-map {
  width: 20px;
  height: 20px;
}

.map-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-color);
  line-height: 1;
  transition: var(--transition-smooth);
}

.map-link-btn:hover {
  transform: scale(1.05);
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
}

.map-link-btn:hover .map-label {
  color: var(--white);
}

.map-link-btn:active {
  transform: scale(0.98);
}

/* WhatsApp store button */
.store-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-grow: 1;
  height: 52px;
  padding: 0 24px;
  background: var(--white);
  color: var(--text-dark);
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-btn);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.icon-whatsapp-small {
  /* Branded SVG with own colors - no color override */
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-whatsapp-btn:hover {
  transform: translateY(-2px);
  border-color: var(--whatsapp-green);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.12);
  color: var(--primary-color);
}

.store-whatsapp-btn:active {
  transform: translateY(0);
}

/* Animation for search filtering */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  text-align: center;
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Instagram link in footer */
.instagram-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f9a730 0%, #e2428c 50%, #4d6dcf 100%);
  border: none;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(194, 62, 186, 0.25);
}

.instagram-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(194, 62, 186, 0.4);
  filter: brightness(1.08);
}

.icon-instagram {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   ACCESSIBILITY FOCUS STYLES
   ========================================================================== */
a:focus-visible, input:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}
