/* ==========================================================================
   1. VARIABLES Y COLORES CORPORATIVOS (CLIENT DESIGN)
   ========================================================================== */
:root {
  --primary-green: #8dc63f; /* Vibrant lime green from mockup */
  --primary-green-hover: #7ab332;
  --bg-dark: #1b201b; /* Dark almost black/greenish background */
  --text-dark: #111111;
  
  /* Category Grid Colors */
  --cat-ferreteria: #f4f6dc;
  --cat-agricultura: #d1e2b6;
  --cat-industria: #e8e8e8;
  --cat-higiene: #eef1f6;
  --cat-proteccion: #f4e8c1;
  --cat-jardineria: #eaf3ed;
  --cat-riego: #f0f0f0;
  --cat-piscinas: #d8edf1;
}

/* ==========================================================================
   2. TIPOGRAFÍAS Y ELEMENTOS BASE
   ========================================================================== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
}

h1, h2, h3, .h1, .h2, .h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

a {
  color: var(--text-dark);
  text-decoration: none;
}

a:hover {
  color: var(--primary-green);
  text-decoration: none;
}

/* ==========================================================================
   3. CABECERA (HEADER)
   ========================================================================== */
.header-top {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.header-nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.header-nav-links a {
  color: #555;
  transition: color 0.2s ease;
}

.header-nav-links a:hover {
  color: #000;
}

.header-right-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.cart-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.cart-count {
  background-color: var(--primary-green);
  color: #000;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* ==========================================================================
   4. HOME HERO SECTION (EDITORIAL & BRUTALIST)
   ========================================================================== */
.hero-split-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 70vh;
  margin-top: 2rem;
  border-top: 1px solid #eee;
}

.hero-left {
  flex: 1 1 50%;
  padding: 4rem 4rem 4rem max(1.5rem, 5vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 {
  font-size: 4.5rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-left h1 span.text-green {
  color: var(--primary-green);
}

.hero-left p.lead {
  font-size: 1.1rem;
  color: #555;
  max-width: 90%;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-black {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.btn-black:hover {
  background-color: #333 !important;
}

.btn-light-gray {
  background-color: #f5f5f5 !important;
  color: #000 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.hero-search {
  display: flex;
  width: 100%;
  max-width: 500px;
  background: #f9f9f9;
  border: 1px solid #ddd;
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1rem;
  font-size: 1rem;
}

.hero-search input:focus {
  outline: none;
}

.btn-search-green {
  background-color: var(--primary-green) !important;
  color: #000 !important;
  border: none;
  padding: 0 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-right {
  flex: 1 1 50%;
  background-color: var(--bg-dark);
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating category cards in hero */
.floating-card {
  position: absolute;
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-10px);
}

.fc-ferreteria {
  background-color: #fff;
  top: 15%;
  left: 10%;
}

.fc-agro {
  background-color: var(--primary-green);
  bottom: 30%;
  right: 10%;
}

.fc-proteccion {
  background-color: #fff;
  bottom: 10%;
  left: 15%;
}

.floating-card i {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.floating-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.floating-card p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* ==========================================================================
   5. GRID COMPRA POR CATEGORÍA
   ========================================================================== */
.category-grid-section {
  padding: 4rem max(1.5rem, 5vw);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cat-card {
  aspect-ratio: 4/3;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  color: var(--text-dark) !important;
  transition: transform 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-5px);
}

.cat-card i {
  font-size: 1.5rem;
}

.cat-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cat-card p {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.cat-card .explore-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   6. BANNER PROFESIONALES
   ========================================================================== */
.pro-banner {
  background-color: var(--bg-dark);
  color: #fff;
  padding: 4rem max(1.5rem, 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4rem 0;
}

.pro-banner-left {
  flex: 0 0 50%;
  padding-right: 2rem;
}

.pro-banner-left h2 {
  font-size: 3rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.pro-banner-stats {
  display: flex;
  gap: 3rem;
  color: var(--primary-green);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 0.2rem;
}

.stat-item span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

/* ==========================================================================
   7. TARJETAS DE PRODUCTO (MINIATURAS)
   ========================================================================== */
.product-miniature {
  border: 1px solid #eee;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  position: relative;
}

.product-miniature__image {
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  background-color: #ffffff;
  padding: 1rem;
}

.product-miniature-info {
  padding: 1.5rem;
  flex-grow: 1;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.btn-add-to-bag {
  background-color: var(--primary-green) !important;
  color: #000 !important;
  border: none !important;
  width: 100%;
  border-radius: 0 !important;
  padding: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: auto;
}

.btn-add-to-bag:hover {
  background-color: var(--primary-green-hover) !important;
}

/* ==========================================================================
   8. RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 991px) {
  .hero-left {
    padding: 2rem 0;
  }
  .hero-left h1 {
    font-size: 3rem;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pro-banner {
    flex-direction: column;
    padding: 2rem;
  }
  .pro-banner-left {
    margin-bottom: 2rem;
  }
}
@media (max-width: 576px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
  }
}

/* Fix footer link colors */
.footer__main .links a, 
#footer_custom_links a, 
#footer_legal_links a {
    color: #ffffff !important;
}
.footer__main .links a:hover, 
#footer_custom_links a:hover, 
#footer_legal_links a:hover {
    color: #ffd700 !important;
}

