/* ==========================================
   COLO PET SHOP - IDENTIDAD VISUAL PET FRIENDLY
   Colores oficiales: Teal, Naranja y Magenta
   ========================================== */
:root {
  --pet-teal: #088395;
  --pet-teal-dark: #026873;
  --pet-teal-light: #e6f7f8;
  --pet-teal-border: #80d9de;
  --pet-orange: #f97316;
  --pet-orange-dark: #ea580c;
  --pet-magenta: #e60067;
  --pet-magenta-hover: #c70059;
  --pet-bg: #f5fbfb;
  --pet-card-bg: #ffffff;
  --text-dark: #134e4a;
  --text-muted: #527976;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(8, 131, 149, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 131, 149, 0.12);
  --shadow-glow: 0 0 20px rgba(230, 0, 103, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--pet-bg);
  color: var(--text-dark);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(8, 131, 149, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 40%);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* ==========================================
   CABECERA & HERO
   ========================================== */
.pet-header {
  background: linear-gradient(135deg, #026873 0%, #088395 60%, #0a9396 100%);
  color: #fff;
  padding: 2.2rem 1rem 1.8rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(2, 104, 115, 0.2);
  border-bottom: 4px solid var(--pet-orange);
}

.header-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pet-logo-frame {
  position: relative;
  width: 130px;
  height: 130px;
}

.pet-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(249, 115, 22, 0.6);
  background-color: #fff;
}

.pet-brand-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: var(--pet-orange);
  color: #fff;
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 2px solid #fff;
}

.pet-title {
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pet-title span {
  color: #ffedd5;
}

.pet-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: #e0f2fe;
  max-width: 500px;
  margin: 0 auto;
}

.delivery-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pet-orange);
  color: #fff;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
  margin-top: 0.4rem;
}

.pet-contact-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 0.3rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.pet-contact-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================
   NAVEGACIÓN DE CATEGORÍAS & BUSCADOR
   ========================================== */
.categories-nav {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-dark);
  border: 2px solid var(--pet-teal-border);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.category-pill:hover {
  border-color: var(--pet-teal);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--pet-teal);
  color: #fff;
  border-color: var(--pet-teal-dark);
  box-shadow: 0 4px 14px rgba(8, 131, 149, 0.35);
}

.search-container {
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--pet-teal-border);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--pet-teal);
  box-shadow: 0 0 0 3px rgba(8, 131, 149, 0.2);
}

/* ==========================================
   ESTILO LISTA / CARDS (Inspirado en la Imagen 1)
   Borde teal suave, fondo menta y píldora Magenta
   ========================================== */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #eef9fa;
  border: 2px solid var(--pet-teal-border);
  border-radius: var(--radius-pill);
  padding: 0.75rem 0.85rem 0.75rem 1.5rem;
  box-shadow: 0 2px 6px rgba(8, 131, 149, 0.06);
  transition: all 0.2s ease;
}

.product-row-card:hover {
  background: #e6f6f7;
  border-color: var(--pet-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 131, 149, 0.12);
}

.product-info-wrap {
  flex: 1;
  min-width: 0;
}

.product-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #04434b;
  line-height: 1.3;
}

.product-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* Píldora de Precio Magenta (Exacta a la imagen) */
.product-action-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--pet-magenta);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(230, 0, 103, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-price-pill:hover {
  background: var(--pet-magenta-hover);
  transform: scale(1.04);
  box-shadow: var(--shadow-glow);
}

.btn-price-pill:active {
  transform: scale(0.97);
}

.btn-price-pill span.plus-icon {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

/* Contador cuando ya está en el carrito */
.item-counter-pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--pet-teal);
  border-radius: var(--radius-pill);
  padding: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.counter-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--pet-teal);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.counter-btn:hover {
  background: var(--pet-teal-dark);
}

.counter-qty {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pet-teal-dark);
  min-width: 32px;
  text-align: center;
}

/* ==========================================
   CARRITO FLOTANTE
   ========================================== */
.floating-cart {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 2rem);
  max-width: 600px;
  background: linear-gradient(135deg, #026873 0%, #088395 100%);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(2, 104, 115, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.2);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cart.active {
  transform: translateX(-50%) translateY(0);
}

.cart-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-icon-wrap {
  position: relative;
  font-size: 1.8rem;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--pet-magenta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 2px solid #fff;
}

.cart-total-label {
  font-size: 0.75rem;
  color: #e0f2fe;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cart-total-amount {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.btn-open-cart {
  background: var(--pet-orange);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  transition: all 0.2s;
}

.btn-open-cart:hover {
  background: var(--pet-orange-dark);
  transform: scale(1.03);
}

/* ==========================================
   MODAL DE CHECKOUT
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 67, 75, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
}

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

.modal-content {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  background: linear-gradient(135deg, #026873 0%, #088395 100%);
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #cceded;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.cart-item-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 800;
  color: var(--pet-teal-dark);
  font-size: 1rem;
}

/* Modos de Entrega */
.delivery-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.delivery-btn {
  background: #f0fdfa;
  border: 2px solid var(--pet-teal-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.delivery-btn.active {
  background: var(--pet-teal);
  color: #fff;
  border-color: var(--pet-teal-dark);
  box-shadow: 0 4px 12px rgba(8, 131, 149, 0.25);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--pet-teal-border);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--pet-teal);
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.btn-send-whatsapp {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
}

.btn-send-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #134e4a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s;
}

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

@media (max-width: 600px) {
  .product-row-card {
    border-radius: 20px;
    padding: 0.75rem 1rem;
  }
  .btn-price-pill {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}
