/* === Pineapple theme tokens === */
:root{
  --pine-green:#2e7d32;
  --pine-leaf:#1b5e20;
  --pine-yellow:#fde68a;
  --pine-yellow-deep:#f6c453;
  --pine-cream:#fffdf5;
  --pine-ring:0 0 0 3px rgba(46,125,50,.15);
  --container-max-width: 1200px;
  --container-padding: 40px;
} 
/* FIXED: Unified container alignment - all containers now use same max-width and padding */
.main-container,
#containerProduct,
#containerHighlights,
#containerFooter {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  box-sizing: border-box;
}

/* Individual container styling while maintaining alignment */
#containerProduct {
  margin-top: 20px;
  margin-bottom: 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 30px var(--container-padding);
}

#containerHighlights {
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ensure top padding is not removed by the global .main-container override */
#containerHighlights { padding-top: 30px !important; }
/* Also keep padding inside the categories container on home */
#containerProduct { padding-top: 30px !important; }

/* Footer maintains alignment but has different background treatment */
footer {
  background: var(--pine-green);
  width: 100%;
  margin-top: auto;
}

#containerFooter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background: transparent; /* Let footer handle background */
  color: white;
  padding: 40px var(--container-padding);
}

#searchContainer {
  display: flex;
  gap: 15px;
  margin-bottom: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
}

#searchInput {
  flex: 1;
  min-width: 250px;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

/* Pineapple search: icon inside the input */
#searchFieldWrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  background: var(--pine-cream);
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin-left: 24px;
}
#searchFieldWrap #searchInput{
  border: 0;
  border-radius: 0;
  flex: 1;
  padding: 14px 48px 14px 16px; /* extra right space for the icon button */
  background: transparent;
  font-size: 16px;
  outline: none;
}
#searchFieldWrap:focus-within{
  border-color: var(--pine-green);
  box-shadow: var(--pine-ring);
}
#searchButton{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--pine-leaf);
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
}
#searchButton .bi{ font-size: 18px; }
#searchButton:hover{
  background: color-mix(in oklab, var(--pine-yellow) 35%, white 65%);
}

#categoryFilter {
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  min-width: 150px;
}

#productsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* fixed 3 columns on desktop */
  gap: 24px;
}

/* Price sort dropdown (pineapple theme) */
#priceSort{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 40px 10px 14px; /* space for custom caret */
  height: 44px; /* match search bar */
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #111;
  min-width: 210px;
  font-size: 16px;
  line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231b5e20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
#priceSort:hover{ background-color: #fafafa; }
#priceSort:focus{ outline: none; border-color: var(--pine-green); box-shadow: var(--pine-ring); }

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.home-categories-grid .category-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.96), #ffffff);
  border-radius: 20px;
  padding: 0;
  border: none;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-categories-grid .category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.16);
}

.home-categories-grid .category-card .product-image {
  height: 180px;
  border-radius: 20px 20px 0 0;
}

.home-categories-grid .category-card .product-info {
  padding: 20px 22px 24px;
}

.home-categories-grid .category-card .product-name {
  font-size: 20px;
  color: #111827;
  margin-bottom: 6px;
}

.home-categories-grid .category-card .product-category {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 18px;
}

.home-categories-grid .category-card .category-action {
  color: #1b5e20;
  font-weight: 700;
  font-size: 15px;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: white;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #1b5e20;
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.product-status.in-stock {
  background-color: #4caf50;
}

.product-status.low-stock {
  background-color: #ff9800;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: #333;
}

.product-category {
  color: #666;
  font-size: 14px;
  margin: 0 0 10px 0;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
  color: #1b5e20;
  margin-bottom: 5px;
}

.product-stocks {
  font-size: 14px;
  color: #666;
}

/* FIXED: Responsive container padding */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }
  
  #searchContainer {
    flex-direction: column;
  }

  #searchInput,
  #categoryFilter {
    min-width: 100%;
  }

  #productsGrid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
  }
  
  #containerFooter {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px){
  :root {
    --container-padding: 16px;
  }
  
  #productsGrid { 
    grid-template-columns: 1fr; 
  }
  
  #containerFooter {
    grid-template-columns: 1fr;
  }
}

/* ===== Improved Product Grid & Cards ===== */
.page-title{font-family:var(--font-display,'Poppins',sans-serif);font-weight:800;letter-spacing:.2px;margin:16px 0 24px;font-size:32px}
#productsGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.product-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease;cursor:pointer;border:1px solid rgba(15,23,42,.06)}
.product-card:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(0,0,0,.08);border-color:#1b5e20}
.product-image{aspect-ratio:4/3;background:linear-gradient(180deg,#f3f4f6,#e5e7eb);display:flex;align-items:center;justify-content:center}
.product-image img{width:100%;height:100%;object-fit:cover;display:block}
.no-image-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.no-image-text{color:#6b7280;font-weight:600}
.product-info{padding:14px 16px 16px}
.product-name{font-weight:700;margin:0 0 4px;font-size:16px}
.product-category{margin:0 0 8px;color:#6b7280;font-size:13px}
.product-price{font-size:18px;font-weight:800;color:#1b5e20}
.product-stocks{font-size:12px;color:#6b7280}
.button-primary{background:var(--primary,#f59e0b);color:#111;border:0;padding:10px 14px;border-radius:12px;font-weight:700;cursor:pointer}
.button-primary:hover{filter:brightness(.95);box-shadow:var(--ring,0 0 0 3px rgba(245,158,11,.25))}

/* ==== Sidebar layout for Products page ==== */
#productsLayout{display:grid;grid-template-columns:260px 1fr;gap:32px;align-items:start}
#categoriesSidebar{position:sticky;top:80px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;margin-top:20px}
#categoriesSidebar .sidebar-title{font-size:18px;font-weight:800;margin:0 0 8px}
#categoriesSidebar ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
#categoriesSidebar a{display:block;padding:10px 12px;border-radius:10px;text-decoration:none;color:#111;border:1px solid transparent}
#categoriesSidebar a:hover{background:#f9fafb;border-color:#e5e7eb}

@media (max-width: 900px){
  #productsLayout{grid-template-columns:1fr}
  #categoriesSidebar{position:static;order:0;margin-top:0}
}

/* Removed right-side category select on Products page */
#searchContainer{justify-content:space-between}

/* Search input pineapple styling */
#searchInput{
  border:2px solid #e5e7eb;
  border-radius:14px;
  padding:14px 16px;
  outline:none;
  background:var(--pine-cream);
}
#searchInput:focus{
  border-color: var(--pine-green);
  box-shadow: var(--pine-ring);
}

/* Sidebar pineapple look */
#categoriesSidebar{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
}
#categoriesSidebar a{
  border:1px solid transparent;
}
#categoriesSidebar a.active{
  background: linear-gradient(0deg, rgba(253,230,138,.45), rgba(253,230,138,.45)), #fff;
  border-color:#fbd38d;
  color: var(--pine-leaf);
  font-weight:800;
}

/* Product card pineapple style */
.product-card{
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  border:1px solid #eef2f7;
  box-shadow: 0 6px 18px rgba(17,24,39,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
}
.product-image{
  background: #f9fafb;
  background-image: radial-gradient(rgba(246,196,83,.25) 1px, transparent 1px);
  background-size: 12px 12px;
}

/* Price + category accents to green */
.product-category{ color:#64748b; }
.product-price{ color: var(--pine-leaf); font-weight:900; }

/* Grid spacing subtle */
#productsGrid{
  gap:22px;
}

/* Breadcrumb (if used on listing) */
.breadcrumb a{ color: var(--pine-green); }
.breadcrumb a:hover{ color: var(--pine-leaf); }

/* === Match details page price style === */
.product-price{
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #1b5e20 !important;
}

/* Fix conflicting variables back to pineapple tokens */
#searchInput{background:var(--pine-cream);} 
#searchInput:focus{border-color:var(--pine-green);box-shadow:var(--pine-ring);} 
.breadcrumb a{color:var(--pine-green);} .breadcrumb a:hover{color:var(--pine-leaf);} 

/* Pager styles */
#pager{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.page-numbers{ display: flex; align-items: center; gap: 8px; }
.pager-btn{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: var(--pine-leaf);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pager-btn:hover{ background: color-mix(in oklab, var(--pine-yellow) 30%, white 70%); }
.pager-btn:disabled{ opacity: .5; cursor: not-allowed; }
.page-btn{
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #fff;
  color: #111;
  cursor: pointer;
}
.page-btn:hover{ background: #fafafa; }
.page-btn.active{ background: var(--pine-green); color: #fff; border-color: var(--pine-green); cursor: default; }
.page-ellipsis{ color: #9ca3af; padding: 0 6px; }

/* ===== UPDATED ADD TO CART BUTTON STYLING - PINEAPPLE THEME ===== */
/* Override all existing transparent background rules for product listing pages */
button.add-to-cart-btn,
.add-to-cart-btn,
.button-primary {
  background: #1b5e20 !important; /* Dark green background */
  color: #fff !important; /* White text for contrast */
  border: 2px solid #1b5e20 !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

button.add-to-cart-btn:hover,
.add-to-cart-btn:hover,
.button-primary:hover {
  background: #1b5e20 !important; /* Darker green on hover */
  filter: brightness(.95) !important;
  box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

button.add-to-cart-btn:disabled,
.add-to-cart-btn:disabled,
.button-primary:disabled {
  background: #6c757d !important;
  cursor: not-allowed !important;
}

/* Category card styling */
.category-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  overflow: hidden; /* ensure image flush with rounded corners */
  box-shadow: 0 6px 18px rgba(17,24,39,.05);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
}

.category-image {
  background: linear-gradient(135deg, var(--pine-green), var(--pine-leaf));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  width: 100%; /* fill card width to avoid right gap */
  margin: 0;   /* remove any default spacing */
}

.category-icon {
  font-size: 48px;
  color: var(--pine-yellow);
}

.category-emoji {
  font-size: 48px;
  display: block;
  text-align: center;
  line-height: 1;
}

.category-action {
  color: var(--pine-green);
  font-weight: 600;
  margin-top: 8px;
}

/* Category grid helper (if container uses this class) */
.categories-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
@media (max-width: 520px){ .categories-grid{ gap: 16px; } }

/* Footer styling for all pages */
footer {
  margin-top: 60px;
}

#webFooter h3 {
  color: var(--pine-yellow);
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}

#webFooter p {
  margin: 5px 0;
  color: #e0e0e0;
  font-size: 14px;
}

#credit {
  background: var(--pine-leaf);
  color: white;
  text-align: center;
  padding: 20px;
  margin: 0;
}

/* ===== UI FIXES: Responsive grid + equal-height cards (home categories) ===== */
/* Place overrides at the end to take precedence */

/* Force zero top spacing for all pages */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.breadcrumb {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.breadcrumb-sep {
  color: #9ca3af;
  margin: 0 4px;
  font-weight: normal;
}

/* Quantity Controls Override - Ultra Specific */
div.quantity-section {
  margin: 16px 0 !important;
}

div.quantity-section label {
  display: block !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  color: #374151 !important;
  font-size: 15px !important;
}

div.quantity-controls {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  width: fit-content !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: white !important;
  box-sizing: border-box !important;
}

button.quantity-btn,
.quantity-btn.decrease,
.quantity-btn.increase {
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  background: white !important;
  color: #374151 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

button.quantity-btn:hover,
.quantity-btn.decrease:hover,
.quantity-btn.increase:hover {
  background: #f3f4f6 !important;
}

input.quantity-input,
input#quantityInput {
  width: 50px !important;
  height: 36px !important;
  border: none !important;
  border-left: 1px solid #e5e7eb !important;
  border-right: 1px solid #e5e7eb !important;
  text-align: center !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  background: white !important;
  outline: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

span.stock-info {
  color: #6b7280 !important;
  font-size: 13px !important;
  margin-left: 12px !important;
}

/* Force override any Bootstrap or other framework styles */
.quantity-controls * {
  box-sizing: border-box !important;
}

/* Remove any default button styles */
.quantity-btn {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Remove any default input styles */
.quantity-input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Responsive grid that fills available space nicely */
#productsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  align-content: start;
  justify-items: center;
  justify-content: center;
  margin-inline: auto;
  max-width: calc(320px * 3 + 24px * 2);
  width: 100%;
}

/* Make cards equal height by using flex layout */
.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
}

/* Use aspect-ratio to keep images consistent across cards */
.product-image {
  aspect-ratio: 16 / 9;
  height: auto; /* override any fixed height */
}

/* Ensure content pushes to bottom evenly */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-info .add-to-cart-btn {
  margin-top: auto;
}

/* Improve title spacing on the page */
.page-title {
  margin-top: 8px;
  margin-bottom: 12px;
}

/* Slightly tighter spacing on very wide screens */
@media (min-width: 1280px) {
  #productsGrid { gap: 28px; }
}

/* Two columns on small tablets, one on phones (explicit overrides) */
@media (max-width: 900px) {
  #productsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc(320px * 2 + 24px);
  }
}
@media (max-width: 520px) {
  #productsGrid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 320px;
  }
}

/* ===== Keep pager above footer on products page ===== */
/* Make the products section a flex column so the pager can sit at the bottom */
#productsMain {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: clamp(420px, 70vh, 720px);
  margin-left: 16px;
}

/* The grid/content takes available space first */
#productsGrid {
  flex: 1 0 auto;
}

/* Pager sits at the bottom of the section */
#pager {
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 4px;
}

/* ===== Active category in sidebar ===== */
#categoriesSidebar a.active {
  /* Smooth pineapple gradient without white band */
  background: linear-gradient(180deg, var(--pine-yellow) 0%, var(--pine-yellow-deep) 100%);
  border-color: var(--pine-yellow);
  color: var(--pine-leaf);
  font-weight: 800;
  /* subtle inner highlight */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

/* ===== HIGHLIGHTS SECTION ===== */
.highlights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.highlights-header .page-title {
  margin: 0;
}

.view-all-btn {
  background: var(--pine-green);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid var(--pine-green);
}

.view-all-btn:hover {
  background: var(--pine-leaf);
  border-color: var(--pine-leaf);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.home-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

/* Match product card styling for highlights */
.home-highlights-grid .blog-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.96), #ffffff);
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(229, 231, 235, 0.6);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.home-highlights-grid .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.16);
  text-decoration: none;
  color: #1f2937;
}

.home-highlights-grid .card-media {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.home-highlights-grid .card-media img,
.home-highlights-grid .card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.home-highlights-grid .blog-card:hover .card-media img,
.home-highlights-grid .blog-card:hover .card-media video {
  transform: scale(1.05);
}

.home-highlights-grid .card-media video {
  background: #f3f4f6;
}

.home-highlights-grid .blog-video {
  transition: opacity 0.3s ease;
}

.home-highlights-grid .blog-card:not(:hover) .blog-video {
  opacity: 0.9;
}

.home-highlights-grid .blog-card:hover .blog-video {
  opacity: 1;
}

.home-highlights-grid .pill {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-highlights-grid .pill--recipes { color: #dc2626; background: rgba(254, 242, 242, 0.95); }
.home-highlights-grid .pill--news { color: #2563eb; background: rgba(239, 246, 255, 0.95); }
.home-highlights-grid .pill--stories { color: #d97706; background: rgba(255, 251, 235, 0.95); }
.home-highlights-grid .pill--tips { color: #059669; background: rgba(236, 253, 245, 0.95); }

.home-highlights-grid .card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 6px;
  background: var(--pine-green);
  border-radius: 0 0 20px 20px;
}

.home-highlights-grid .card-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.4;
  color: white;
  font-weight: 600;
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.home-highlights-grid .card-excerpt {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-highlights-grid .card-meta {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 15px;
  margin-top: auto;
}

.home-highlights-grid .card-meta .dot {
  opacity: 0.5;
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .highlights-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .home-highlights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .home-highlights-grid .card-body {
    padding: 20px 28px 20px;
  }
}

@media (max-width: 480px) {
  .home-highlights-grid .card-body {
    padding: 18px 24px 18px;
  }
  
  .home-highlights-grid .card-title {
    font-size: 1.1rem;
  }
}

/* Enhanced Buy Now Button */
.buy-now-btn {
  display: inline-block;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
}

.buy-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.3);
  color: white;
}

.buy-now-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.buy-now-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.buy-now-btn:hover::after {
  opacity: 1;
}

/* Center button on mobile and tablet */
@media (max-width: 992px) {
  .buy-now-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
  }
  
  .buy-now-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* Adjust for very small screens */
@media (max-width: 480px) {
  .buy-now-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}