/* =============================================
   MIS PATITAS — style.css
   ============================================= */

/* ---------- Variables ---------- */
:root {
  --orange:       #FF6B35;
  --orange-dark:  #E55A28;
  --orange-light: #FF8A5B;
  --orange-pale:  #FFF0EB;
  --orange-50:    #FFF7F4;

  --white:        #FFFFFF;
  --bg:           #FFFBF8;
  --border:       #F0E8E0;

  --text:         #1A1A2E;
  --text-mid:     #4A5568;
  --text-light:   #94A3B8;

  --font:         'Poppins', sans-serif;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 6px 24px rgba(0,0,0,.09);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.13);
  --shadow-orange:0 6px 24px rgba(255,107,53,.30);

  --transition:   0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
img  { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hidden { display: none !important; }


/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.logo-paw  { font-size: 1.75rem; line-height: 1; }
.logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.4px;
  white-space: nowrap;
}

/* Filters */
.filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  white-space: nowrap;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mid);
  background: #F4F4F6;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.filter-btn:hover {
  background: var(--orange-pale);
  color: var(--orange);
}
.filter-btn.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}
.filter-btn--salud {
  color: #16a34a;
  background: #f0fdf4;
}
.filter-btn--salud:hover {
  background: #dcfce7;
  color: #15803d;
}
.filter-btn--salud.active {
  background: #16a34a;
  color: var(--white);
  border-color: #16a34a;
  box-shadow: 0 4px 16px rgba(22,163,74,.30);
}

/* Cart */
.cart-toggle {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange-pale);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  transition: all var(--transition);
}
.cart-toggle:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}
.cart-icon-svg { width: 22px; height: 22px; flex-shrink: 0; }
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--orange-dark);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  transition: transform 0.2s ease;
}
.cart-badge.bump { transform: scale(1.5); }


/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-image:
    url('https://images.unsplash.com/photo-1450778869180-41d0601e046e?w=1600&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(26,26,46,0.82) 0%,
    rgba(26,26,46,0.55) 55%,
    rgba(26,26,46,0.25) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-content { max-width: 600px; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,107,53,0.20);
  border: 1px solid rgba(255,107,53,0.50);
  color: #FFB59A;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.hero-accent { color: var(--orange); }
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.80);
  margin-bottom: 2rem;
  font-weight: 400;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  box-shadow: var(--shadow-orange);
  transition: all var(--transition);
}
.btn-hero:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,107,53,.40);
}
.btn-hero svg { transition: transform var(--transition); }
.btn-hero:hover svg { transform: translateX(3px); }


/* =============================================
   TRUST BANNER
   ============================================= */
.trust-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 2.5rem;
  flex: 1;
  min-width: 220px;
  justify-content: center;
}
.trust-icon { font-size: 2rem; flex-shrink: 0; }
.trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.trust-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.trust-text span {
  font-size: 0.78rem;
  color: var(--text-light);
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}


/* =============================================
   PRODUCTS SECTION
   ============================================= */
main {
  padding: 3.5rem 0 5rem;
}

.section-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
}

/* Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

/* Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Image area — 60% of card visual weight */
.product-img-area {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.product-img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-area img {
  transform: scale(1.05);
}
.product-emoji-display {
  font-size: 5.5rem;
  line-height: 1;
  user-select: none;
  transition: transform 0.35s ease;
}
.product-card:hover .product-emoji-display {
  transform: scale(1.1) rotate(-5deg);
}

/* Category badge */
.product-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,107,53,0.25);
}

/* Card info — lower 40% */
.product-info {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.product-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
}
.btn-add {
  background: var(--orange);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(255,107,53,.25);
}
.btn-add:hover {
  background: var(--orange-dark);
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}
.btn-add:active { transform: scale(0.96); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 4rem 1rem;
  color: var(--text-light);
  text-align: center;
}
.empty-icon { font-size: 2.75rem; }


/* =============================================
   CART SIDEBAR
   ============================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.50);
  z-index: 300;
  backdrop-filter: blur(3px);
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 430px;
  background: var(--white);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--orange-50);
}
.cart-sidebar-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-mid);
  transition: all var(--transition);
}
.cart-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Empty cart */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}
.cart-empty .empty-icon { font-size: 3.5rem; }
.cart-empty strong { font-size: 1rem; color: var(--text-mid); font-weight: 600; }

/* Cart item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}
.cart-item:hover { border-color: var(--orange); }
.cart-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: 0.1rem;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-mid);
  transition: all var(--transition);
  line-height: 1;
}
.qty-btn:hover {
  background: var(--orange-pale);
  border-color: var(--orange);
  color: var(--orange);
}
.qty-display {
  width: 24px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: 0.15rem;
  transition: all var(--transition);
}
.remove-btn:hover { background: #fee2e2; color: #dc2626; }

/* Cart footer */
.cart-sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-total-label { font-size: 0.9rem; font-weight: 500; color: var(--text-mid); }
.cart-total-amount { font-size: 1.75rem; font-weight: 900; color: var(--orange); letter-spacing: -0.5px; }

.btn-checkout {
  background: linear-gradient(135deg, #009ee3, #006fad);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,110,173,.30);
}
.btn-checkout:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}
.btn-checkout:disabled { opacity: 0.4; cursor: not-allowed; }
#mp-wallet-container { width: 100%; }


/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow), opacity 0.3s ease;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #111827;
  color: var(--white);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Brand col */
.footer-logo .logo-name { color: var(--orange); }
.footer-logo .logo-paw  { font-size: 1.6rem; }
.footer-brand > p {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: #9CA3AF;
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 300px;
}
.footer-social {
  display: flex;
  gap: 0.625rem;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  transition: all var(--transition);
}
.social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

/* Links col */
.footer-links h3,
.footer-contact h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: #9CA3AF;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

/* Contact col */
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #9CA3AF;
}
.footer-contact li svg { flex-shrink: 0; opacity: 0.6; }
.footer-contact a {
  color: #9CA3AF;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--white); }

/* Disclaimer */
.footer-disclaimer {
  background: rgba(22,163,74,.08);
  border-top: 1px solid rgba(22,163,74,.15);
  padding: 0.875rem 0;
  text-align: center;
}
.footer-disclaimer p {
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 500;
}

/* Bottom bar */
.footer-bottom { padding: 1.25rem 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.825rem; color: #6B7280; }
.footer-legal { font-size: 0.775rem !important; }


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > p { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero { min-height: 460px; }
  .hero-title { font-size: 2.25rem; }
  .trust-divider { display: none; }
  .trust-item { border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; }
  .trust-item:last-child { border-bottom: none; }
  .cart-sidebar { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .header-inner { gap: 0.75rem; }
  .logo-name { font-size: 1.1rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-img-area { height: 160px; }
  .product-info { padding: 0.875rem; }
  .product-emoji-display { font-size: 3.5rem; }
  .product-name { font-size: 0.875rem; }
  .product-price { font-size: 1.1rem; }
  .btn-add { padding: 0.45rem 0.875rem; font-size: 0.78rem; }
  .footer-bottom-inner { flex-direction: column; gap: 0.25rem; text-align: center; }
}
