/* =========================================
   WP: GLOBAL STYLES & UTILITIES
   ========================================= */
* { scroll-behavior: smooth; }

body { overflow-x: hidden; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* =========================================
   WP: HEADER & NAVIGATION
   ========================================= */
.nav-link {
  position: relative;
  color: #142F5C;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #4A80BE;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover { color: #4A80BE; }
.nav-link:hover::after { width: 100%; }

.mobile-link {
  display: block;
  padding: 0.75rem 0.5rem;
  color: #142F5C;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s;
}
.mobile-link:hover { background: #F2F2F2; color: #4A80BE; padding-left: 1rem; }

#mobile-menu.open { max-height: 500px; }

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* =========================================
   WP: BUTTONS & FORMS
   ========================================= */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: #F5B400;
  color: #142F5C;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 180, 0, 0.3);
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  background: #ffc425;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 128, 190, 0.5), 0 0 20px rgba(74, 128, 190, 0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 2px solid white;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: white;
  color: #142F5C;
  box-shadow: 0 0 20px rgba(74, 128, 190, 0.6);
  transform: translateY(-2px);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  transition: all 0.3s;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: #4A80BE;
  box-shadow: 0 0 0 3px rgba(74, 128, 190, 0.15);
}

/* =========================================
   WP: HERO SECTION
   ========================================= */
.floating-animation {
  animation: floating 3.5s ease-in-out infinite;
}
@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* =========================================
   WP: CATEGORY FILTER
   ========================================= */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: #F2F2F2;
  color: #142F5C;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.filter-btn:hover {
  background: rgba(74, 128, 190, 0.1);
  color: #4A80BE;
}
.filter-btn.active {
  background: #4A80BE;
  color: white;
  box-shadow: 0 4px 10px rgba(74, 128, 190, 0.4);
}

/* =========================================
   WP: PRODUCT CARDS & LOOPS
   ========================================= */
.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: #4A80BE;
  box-shadow: 0 0 20px 2px rgba(74, 128, 190, 0.35);
  transform: translateY(-5px);
}
.product-card .img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #F2F2F2 0%, #e8e8e8 100%);
  position: relative;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.5s;
}
.product-card:hover .img-wrap img { transform: scale(1.08); }

.product-card .stock-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  background: #4A80BE;
  box-shadow: 0 2px 10px rgba(74, 128, 190, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-card .p-content {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .p-brand {
  font-size: 0.7rem;
  color: #4A80BE;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product-card .p-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  color: #142F5C;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0.25rem 0;
}
.product-card .p-line {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.75rem;
}
.product-card .p-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}
.product-card .p-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  color: #4A80BE;
  letter-spacing: 1px;
}
.product-card .p-btn {
  background: #142F5C;
  color: white;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.product-card .p-btn:hover {
  background: #4A80BE;
  box-shadow: 0 0 15px rgba(74, 128, 190, 0.6);
}

/* =========================================
   WP: GALLERY SECTION
   ========================================= */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(74, 128, 190, 0.4), 0 0 25px rgba(74, 128, 190, 0.3);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gl-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 47, 92, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
}
.gallery-item:hover .gl-overlay { opacity: 1; }

/* =========================================
   WP: FOOTER & WIDGETS
   ========================================= */
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #F2F2F2;
  color: #4A80BE;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.social-btn:hover {
  background: #4A80BE;
  color: white;
  box-shadow: 0 0 15px rgba(74, 128, 190, 0.6);
  transform: translateY(-3px);
}

.social-btn-dark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.social-btn-dark:hover {
  background: #F5B400;
  color: #142F5C;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  animation: pulse-wa 2s infinite;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.7); }
  50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 15px rgba(37, 211, 102, 0); }
}
