/*
Theme Name: AgroMart Custom Theme
Theme URI: https://agromart.example.com
Author: AgroMart
Author URI: https://agromart.example.com
Description: Custom WordPress theme for AgroMart, Nigeria's farm-to-buyer marketplace. Built with Bootstrap 5, vanilla JS and PHP, paired with the AgroMart Core plugin for Farms & Listings.
Version: 2.4.11
Requires at least: 6.0
Requires PHP: 8.1
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: agromart
Tags: e-commerce, agriculture, marketplace, custom-menu, featured-images, full-width-template

AgroMart theme. Base resets only here - see assets/css/custom.css for all
component styling (loaded via functions.php so it can be cached/versioned).
*/

:root{
  --agro-green: #1f6b2f;
  --agro-green-dark: #14501f;
  --agro-green-light: #e9f5ec;
  --agro-gold: #f2b705;
}

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #23291f;
}

a{ color: var(--agro-green); }
a:hover{ color: var(--agro-green-dark); }


/* AgroMart password visibility control */
.agro-password-wrap {
    position: relative;
    display: block;
}
.agro-password-wrap > input[type="password"],
.agro-password-wrap > input[type="text"] {
    padding-right: 3rem;
}
.agro-password-toggle {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: .35rem;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    font-size: 1.05rem;
    z-index: 2;
}
.agro-password-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 4px;
}

/* AgroMart cross-browser/mobile compatibility */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
input, select, textarea, button { -webkit-appearance: none; appearance: none; }
input[type="checkbox"], input[type="radio"] { -webkit-appearance: auto; appearance: auto; }
.agromart-no-select { -webkit-user-select: none; user-select: none; }
.agromart-touch-target { min-width: 44px; min-height: 44px; }
.agromart-mobile-vh { min-height: calc(var(--agromart-vh, 1vh) * 100); }
@supports (padding: max(0px)) {
    .agromart-safe-bottom { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
}
