/*
Theme Name: Agrivetis Child
Theme URI: https://agrivetis.com
Description: Child theme for Agrivetis redesign (Astra child).
Author: Agrivetis / Black Ace Technology
Template: astra
Version: 1.0.0
*/

/* Importing parent handled via functions.php; child styles below */


:root{
  --primary:#1E7A42;
  --accent:#E0A12A;
  --text:#1F2933;
  --bg:#F6F7F8;
  --card:#FFFFFF;
  --radius:8px;
  --container:1150px;
}

/* Global */
body{
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  margin:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container{max-width:var(--container); margin:0 auto; padding:0 20px; box-sizing:border-box;}

/* Headings */
h1{font-family:'Montserrat', sans-serif; font-size:42px; margin:0 0 18px; line-height:1.08;}
h2{font-size:28px; margin:0 0 14px;}

/* Header */
.site-header{background:transparent; padding:18px 0; position:relative; z-index:50;}
.site-header.sticky{position:fixed; top:0; left:0; right:0; background:#ffffffcc; backdrop-filter:blur(6px); box-shadow:0 4px 14px rgba(31,41,51,0.06);}

/* Buttons */
.btn{display:inline-block;padding:12px 20px;border-radius:var(--radius);text-decoration:none;font-weight:700;cursor:pointer; border:none;}
.btn-primary{background:var(--primary); color:#fff; box-shadow: 0 6px 14px rgba(30,122,66,0.08); transition: transform .18s ease, filter .18s ease;}
.btn-primary:hover{transform:translateY(-2px); filter:brightness(.96);}

/* Product card */
.product-card{background:var(--card); border-radius:12px; padding:16px; box-shadow:0 6px 20px rgba(31,41,51,0.04); display:flex; flex-direction:column; overflow:hidden;}
.product-card img{width:100%; height:200px; object-fit:cover; border-radius:8px; display:block;}

/* Grid */
.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
@media (max-width:1024px){ .grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:768px){ .grid{grid-template-columns:1fr;} }

/* Utility */
.center{text-align:center;}
.small{font-size:14px;}

/* Footer */
.site-footer{padding:32px 0; background:#0f1720; color:#d1d5db;}
.site-footer a{color:inherit; text-decoration:underline;}

/* Accessibility helpers */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}
.skip-link:focus{position:static;width:auto;height:auto;}

/* Responsive tweaks */
@media (max-width:768px){
  h1{font-size:28px;}
  .product-card img{height:160px;}
  .site-header{padding:12px 0;}
}
