/* =============================================
   THEME.CSS – Olaiserr Tea Custom Overrides (cleaned)
   =============================================
   Sections:
   1) Top Bar & Header
   2) Buttons & Utilities
   3) Search & Dropdowns
   4) Product: Grid & Card
   5) Responsive Tweaks
*/

/* =============================
   1) Top Bar & Header
   ============================= */
#top { background:#4CAF50; color:#fff; }
#top a { color:#fff; }
#top a:hover { color:#E8F5E9; }

#header { background-color:#4CAF50; }
#header .nav-link { color:#fff; border-bottom:3px solid transparent; }
#header .nav-link:hover,
#header .nav-link:focus,
#header .active { color:#fff; border-bottom:3px solid #A5D6A7; }
#header .act_cat { background:#6D4C41; color:#fff; }
#header .act_cat:hover,
#header .act_cat:focus { background:#4CAF50; }

/* =============================
   2) Buttons & Utilities
   ============================= */
.button { background:#4CAF50; color:#fff; transition:background-color .3s ease; }
.button:hover { background:#388E3C; }
.button_1 { background:#6D4C41; color:#fff; transition:background-color .3s ease; }
.button_1:hover { background:#4CAF50; }

/* New BEM-like buttons used by product cards */
.button--primary { background:#4CAF50; color:#fff; border:none; padding:10px 16px; border-radius:6px; transition:background-color .3s ease; }
.button--primary:hover { background:#388E3C; }
.button--outline { background:transparent; color:#4CAF50; border:1px solid #4CAF50; padding:10px 16px; border-radius:6px; transition:background-color .3s ease; }
.button--outline:hover { background:#E8F5E9; }

/* Utility colors */
.bg-green { background-color:#4CAF50 !important; }
.text-green { color:#4CAF50 !important; }
.bg-brown { background-color:#6D4C41 !important; }
.text-brown { color:#6D4C41 !important; }

/* Hover micro-interactions */
.nav-link { transition: color .3s ease, border-bottom .3s ease; }

/* Sticky header */
.sticky { background-color:#4CAF50 !important; }

/* =============================
   3) Search & Dropdowns
   ============================= */
.header_top1m .input-group .btn { background-color:#4CAF50; border-color:#4CAF50; color:#fff; }
.header_top1m .input-group .btn:hover { background-color:#388E3C; }
.drop_cat a:hover { color:#4CAF50; }
.drop_1i1l span i:hover { color:#4CAF50; }

/* =============================
   4) Product: Grid & Card
   ============================= */
.section-title { font-size:1.75rem; font-weight:700; color:#2F6E31; margin-bottom:1rem; }

/* Products grid: target 4–5 per row on large screens */
.products-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; }

/* Card should stretch to fill the grid cell */
.product-card { background:#fff; border:1px solid #DADADA; border-radius:8px; padding:16px; box-shadow:0 2px 6px rgba(0,0,0,0.08); transition: box-shadow .2s ease, transform .08s ease; display:flex; flex-direction:column; width:100%; height:100%; }
.product-card:hover { box-shadow:0 4px 12px rgba(0,0,0,0.12); transform:translateY(-1px); }

/* Image wrapper with fixed aspect ratio for uniform thumbnails */
.product-image { position:relative; width:100%; aspect-ratio:4 / 3; overflow:hidden; border-radius:6px; background:#f6f6f6; display:block; margin-bottom:12px; }
.product-image img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* Fallback for very old browsers without aspect-ratio support */
@supports not (aspect-ratio: 4 / 3) {
  .product-image { padding-top:75%; }
  .product-image img { position:absolute; top:0; left:0; }
}

.product-body { flex:1; }
.product-title { font-size:1rem; font-weight:700; color:#2F6E31; margin:4px 0 8px; line-height:1.25; }
.product-meta { list-style:none; padding:0; margin:0 0 10px; color:#6B7280; font-size:.9rem; }
.product-meta li { margin-bottom:2px; }
.product-price { font-weight:700; color:#6D4C41; margin:6px 0 0; }
.product-actions { margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }

/* Normalize any legacy image sizing */
.product-card img,
.product-image img,
.img-fluid { max-width:100%; height:auto; }

/* =============================
   5) Responsive Tweaks
   ============================= */
/* Tablet: ensure at least 3 per row */
@media (min-width:768px) { .products-grid { grid-template-columns:repeat(3, 1fr); } }
/* Desktop: 4 per row */
@media (min-width:992px) { .products-grid { grid-template-columns:repeat(4, 1fr); } }
/* Large desktop: 5 per row */
@media (min-width:1200px) { .products-grid { grid-template-columns:repeat(5, 1fr); } }

/* Small screens: compact card padding */
@media (max-width:576px) { .product-card { padding:12px; } }

/* Newsletter Bar — Option A: Navy + Gold */
:root {
  --nl-bg: #243B6B;
  --nl-text: #FFFFFF;
  --nl-text-weak: #D6E4FF;
  --nl-accent: #E0B341;        /* Subscribe button & icon stroke */
  --nl-input-border: rgba(159,182,224,0.4);
  --nl-input-border-focus: #E0B341;
  --nl-shadow: rgba(0,0,0,0.22);
  --nl-radius: 10px;
}

.newsletter {
  background: var(--nl-bg);
  color: var(--nl-text);
  box-shadow: 0 8px 24px var(--nl-shadow) inset;
  padding: clamp(20px, 3vw, 36px) 0;
}

.newsletter .nl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}

.newsletter .nl-icon {
  width: 56px; height: 56px;
  border: 2px solid var(--nl-accent);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-right: 16px;
}
.newsletter .nl-icon svg {
  stroke: var(--nl-accent);
}

.newsletter .nl-title { 
  font-weight: 800; 
  letter-spacing: .2px; 
  line-height: 1.15; 
  margin: 0 0 6px;
}
.newsletter .nl-subtitle { 
  color: var(--nl-text-weak); 
  margin: 0;
}

.newsletter .nl-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter .nl-input {
  background: transparent;
  color: var(--nl-text);
  border: 1.5px solid var(--nl-input-border);
  border-radius: var(--nl-radius);
  padding: 14px 16px;
  outline: none;
}
.newsletter .nl-input::placeholder { color: rgba(255,255,255,0.65); }
.newsletter .nl-input:focus { border-color: var(--nl-input-border-focus); box-shadow: 0 0 0 3px rgba(224,179,65,0.25); }

.newsletter .nl-btn {
  background: var(--nl-accent);
  color: #0F172A; /* dark slate text for contrast on gold */
  font-weight: 700;
  border: none; border-radius: var(--nl-radius);
  padding: 14px 20px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.newsletter .nl-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(224,179,65,0.35); }
.newsletter .nl-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(224,179,65,0.35); }

@media (max-width: 960px) {
  .newsletter .nl-container { grid-template-columns: 1fr; }
}

.newsletter {
  margin-top: 64px;
}

@media (max-width: 960px) {
  .newsletter .nl-form {
    grid-template-columns: 1fr;
  }

  .newsletter .nl-btn {
    width: 100%;
  }
}


/* Optional: WhatsApp-flavored outline button */
.button--wa {
  border: 1.5px solid #25D366; color:#1f2937; background:#fff;
  padding: 10px 14px; border-radius:10px; display:inline-flex; align-items:center; gap:8px;
}
.button--wa:hover { box-shadow: 0 2px 10px rgba(37,211,102,.25); }


