/*
Theme Name:  SPVegan Shop
Theme URI:   https://shop.spvegan.com
Author:      SPVegan
Author URI:  https://spvegan.com
Description: A clean, eco-conscious WooCommerce theme for the SPVegan merchandise store. Mobile-first, fast, and fully accessible.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spvegan-shop
Tags:        woocommerce, e-commerce, custom-logo, custom-menu, threaded-comments, translation-ready
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --sp-green:         #1D9E75;
  --sp-green-dark:    #0F6E56;
  --sp-green-darkest: #085041;
  --sp-green-light:   #E1F5EE;
  --sp-coral:         #D85A30;
  --sp-bg:            #FAFAF8;
  --sp-text:          #2C2C2A;
  --sp-text-muted:    #888780;
  --sp-border:        #E8E6E1;
  --sp-white:         #FFFFFF;
  --sp-radius:        12px;
  --sp-radius-sm:     8px;
  --sp-radius-lg:     20px;
  --sp-shadow:        0 2px 12px rgba(0, 0, 0, 0.06);
  --sp-shadow-md:     0 4px 24px rgba(0, 0, 0, 0.10);
  --sp-shadow-lg:     0 8px 40px rgba(0, 0, 0, 0.14);

  --sp-font-heading: 'DM Sans', sans-serif;
  --sp-font-body:    'Inter', sans-serif;

  --sp-transition: 0.22s ease;

  --sp-header-h:    70px;
  --sp-container:   1280px;
  --sp-container-sm: 900px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--sp-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--sp-text);
  background: var(--sp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--sp-green);
  text-decoration: none;
  transition: color var(--sp-transition);
}

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

a:focus-visible {
  outline: 2px solid var(--sp-green);
  outline-offset: 3px;
  border-radius: 3px;
}

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

button { cursor: pointer; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sp-font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--sp-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

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

strong { font-weight: 600; }

/* =============================================
   SCREEN READER ONLY UTILITY
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   SKIP LINK
   ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--sp-green);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--sp-radius-sm);
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* =============================================
   RTL SUPPORT
   ============================================= */
[dir="rtl"] .sp-header__logo { margin-right: 0; margin-left: auto; }
[dir="rtl"] .sp-header__actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .sp-nav__list { flex-direction: row-reverse; }
