/*
Theme Name: Agrishak
Theme URI: https://agrishak.com
Author: Agrishak Design & Engineering
Author URI: https://agrishak.com
Description: A premium, modern, highly optimized WordPress and WooCommerce theme for Indian online plant, gardening, and botanical e-commerce brands. Features AJAX live search, slide-out cart drawer with dynamic free shipping progress bar, Indian pincode delivery checker, visual plant care guides, frequently-bought-together bundle builders, and mega menus.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agrishak
Tags: e-commerce, custom-colors, custom-menu, featured-images, full-width-template, theme-options, translation-ready, woocommerce
*/

/* ==========================================================================
   AGRISHAK BOTANICAL DESIGN SYSTEM & TOKENS
   ========================================================================== */

:root {
  /* Brand Botanical Palette */
  --color-primary: #183C28;         /* Deep Botanical Evergreen */
  --color-primary-dark: #10291B;    /* Deep Forest Canopy */
  --color-primary-light: #245439;   /* Lush Pine */
  --color-secondary: #477355;       /* Herbaceous Sage Green */
  --color-secondary-light: #EBF3ED; /* Pale Mint Wash */
  --color-accent: #6C9338;          /* Sprout Green */
  --color-accent-warm: #C85A32;     /* Indian Terracotta / Coral Accent */
  --color-accent-gold: #D4A340;     /* Sunlight Amber */

  /* Neutral Surface Palette */
  --color-background: #FAF8F5;     /* Warm Ivory Canvas */
  --color-surface: #FFFFFF;        /* Pure White Card Surface */
  --color-surface-warm: #F4EFEA;   /* Sanded Clay / Subdued Surface */
  --color-surface-hover: #F2ECE4;  /* Hover Soft Beige */

  /* Typography Colors */
  --color-text: #1C241F;           /* Charcoal Forest (High contrast, softer than pure black) */
  --color-text-muted: #586960;     /* Muted Foliage Slate */
  --color-text-light: #87968E;     /* Light Slate */
  --color-text-inverse: #FFFFFF;   /* Pure White on Dark */

  /* Borders & Dividers */
  --color-border: #E6E0D6;         /* Organic Warm Border */
  --color-border-light: #F0ECE4;   /* Subtle Divider */
  --color-border-dark: #C9C2B6;    /* Input Focused Border */

  /* Semantic State Colors */
  --color-success: #2E7D47;        /* Healthy Plant Green */
  --color-success-bg: #E8F5EB;
  --color-warning: #D97706;        /* Golden Alert */
  --color-warning-bg: #FEF3C7;
  --color-danger: #DC2626;         /* Stock Warning Red */
  --color-danger-bg: #FEE2E2;
  --color-info: #1D4ED8;
  --color-info-bg: #EFF6FF;

  /* Typography Stacks */
  --font-heading: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Fluid Typography with clamp() */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);      /* 12px -> 13px */
  --text-sm: clamp(0.8125rem, 0.77rem + 0.25vw, 0.875rem);    /* 13px -> 14px */
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);        /* 15px -> 16px */
  --text-md: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);        /* 17px -> 18px */
  --text-lg: clamp(1.1875rem, 1.1rem + 0.45vw, 1.3125rem);    /* 19px -> 21px */
  --text-xl: clamp(1.375rem, 1.25rem + 0.65vw, 1.5625rem);    /* 22px -> 25px */
  --text-2xl: clamp(1.625rem, 1.45rem + 0.9vw, 1.875rem);     /* 26px -> 30px */
  --text-3xl: clamp(2rem, 1.7rem + 1.5vw, 2.5rem);            /* 32px -> 40px */
  --text-4xl: clamp(2.35rem, 1.95rem + 2vw, 3.25rem);         /* 38px -> 52px */

  /* Spacing Scale */
  --space-2xs: 0.25rem;   /* 4px */
  --space-xs: 0.5rem;     /* 8px */
  --space-sm: 0.75rem;    /* 12px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4.5rem;    /* 72px */

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(22, 60, 40, 0.05);
  --shadow-sm: 0 2px 6px rgba(22, 60, 40, 0.06), 0 1px 2px rgba(22, 60, 40, 0.04);
  --shadow-md: 0 8px 20px rgba(22, 60, 40, 0.08), 0 2px 6px rgba(22, 60, 40, 0.04);
  --shadow-lg: 0 16px 36px rgba(22, 60, 40, 0.10), 0 4px 12px rgba(22, 60, 40, 0.05);
  --shadow-drawer: -8px 0 30px rgba(16, 41, 27, 0.18);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Containers */
  --container-max: 1360px;
  --container-gutter: 1.25rem;
  --header-height-desktop: 84px;
  --header-height-mobile: 68px;
  --bottom-nav-height: 64px;
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

.container-narrow {
  max-width: 980px;
}

.container-fluid {
  max-width: 100%;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Screen Reader Text for Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  clip: auto !important;
  clip-path: none;
  color: var(--color-primary);
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: 1rem 1.5rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}
