/*
Theme Name: Stationery Pro
Theme URI: https://example.com/stationery-pro
Author: Senior WordPress & WooCommerce Developer
Author URI: https://example.com
Description: Modern, responsive and high-performance WooCommerce theme crafted for stationery, office supplies and bookstore e-commerce. Built with clean code, modular architecture, zero hardcoding, and full WordPress Customizer integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stationery-pro
Domain Path: /languages
Tags: e-commerce, two-columns, custom-header, custom-menu, custom-logo, featured-images, translation-ready, theme-options
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (THEME DESIGN TOKENS)
   ========================================================================== */
:root {
  /* Brand Palette (Configurable via Customizer with CSS variable injection) */
  --stp-primary: #0d5cb6;
  --stp-primary-dark: #084388;
  --stp-primary-light: #e8f1fb;
  --stp-accent: #e53935;
  --stp-accent-hover: #c62828;
  --stp-warning: #f59e0b;
  --stp-success: #10b981;

  /* Neutrals */
  --stp-text: #1e293b;
  --stp-text-muted: #64748b;
  --stp-text-light: #94a3b8;
  --stp-bg: #f8fafc;
  --stp-card-bg: #ffffff;
  --stp-border: #e2e8f0;
  --stp-border-light: #f1f5f9;

  /* Typography */
  --stp-font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  --stp-font-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;

  /* Layout */
  --stp-container: 1280px;
  --stp-sidebar-width: 270px;
  --stp-radius-sm: 4px;
  --stp-radius-md: 8px;
  --stp-radius-lg: 12px;
  --stp-radius-full: 9999px;

  /* Shadows */
  --stp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --stp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --stp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --stp-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--stp-font-main);
  color: var(--stp-text);
  background-color: var(--stp-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--stp-transition);
}

a:hover {
  color: var(--stp-primary);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* 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: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Container */
.stp-container {
  width: 100%;
  max-width: var(--stp-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Site Content Wrapper */
.site-content {
  flex: 1 0 auto;
  padding-top: 16px;
  padding-bottom: 40px;
}

/* Text clamp utilities */
.stp-line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stp-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
