/*
Theme Name: ZarPlace
Theme URI: https://zarplace.com
Author: ZarPlace Team
Author URI: https://zarplace.com
Description: Premium WooCommerce theme for ZarPlace — Pakistan's finest women's unstitched lawn suits store.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.2
WC requires at least: 8.0
WC tested up to: 8.9
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zarplace
Tags: woocommerce, fashion, premium, e-commerce
*/

/* ============================================================
   DESIGN TOKENS — CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Colors */
  --color-primary:       #181A2D;
  --color-primary-light: #252840;
  --color-primary-dark:  #0F1020;
  --color-gold:          #C6970D;
  --color-gold-light:    #D4A80F;
  --color-gold-dark:     #A8800B;
  --color-gold-pale:     #F5E6B8;
  --color-orange:        #EF8121;
  --color-orange-light:  #F49340;
  --color-bg:            #FAFAF8;
  --color-bg-dark:       #F5F5F0;
  --color-bg-secondary:  #F5F3EF;
  --color-bg-darker:     #EDE8E1;
  --color-text:          #181A2D;
  --color-text-muted:    #5A5C70;
  --color-text-light:    #9B9B9B;
  --color-blush:         #F2D0C4;
  --color-white:         #FFFFFF;
  --color-black:         #000000;
  --color-success:       #2D7A4F;
  --color-error:         #DC2626;
  --color-warning:       #D97706;
  --color-whatsapp:      #25D366;
  --meta-theme:          #C6970D;

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-accent:   'Cormorant Garamond', Georgia, serif;

  /* Font Sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;
  --text-8xl:  6rem;

  /* Spacing (4px base grid) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Border Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.10);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.3);
  --shadow-primary: 0 4px 20px rgba(107,31,42,0.3);

  /* 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);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width:    1440px;
  --content-width: 1200px;
  --header-height: 80px;
  --header-height-scrolled: 60px;

  /* Z-index scale */
  --z-base:    1;
  --z-dropdown: 100;
  --z-sticky:  200;
  --z-overlay: 300;
  --z-modal:   400;
  --z-toast:   500;
  --z-loader:  1000;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::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);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open,
body.menu-open,
body.cart-open {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

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

p {
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */

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

/* ============================================================
   FOCUS STYLES
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   SELECTION
   ============================================================ */

::selection {
  background: var(--color-gold-light);
  color: var(--color-text);
}
