/*
Theme Name: Nida Abaya
Theme URI: https://example.com/nidaabaya
Author: Nida Khan Atelier
Author URI: https://example.com
Description: Production-ready luxury modest fashion and haute couture WordPress theme for Nida Abaya. Features bespoke tailoring support, native WooCommerce integration, pure CSS design system, and multi-channel payment workflows (COD, Bank Transfer, Western Union).
Version: 1.0.0
Tested up to: 6.7
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: nidaabaya
Tags: e-commerce, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
  /* Neutral & Canvas Tones (60% Palette) */
  --boksha-canvas-pure: #ffffff;
  --boksha-canvas-subtle: #fbf9f6;        /* Warm travertine/sand tinted canvas */
  --boksha-canvas-secondary: #f4f0e8;     /* Warm desert linen surface */
  --boksha-surface-card: #ffffff;
  --boksha-surface-card-hover: #fcfbf9;
  --boksha-surface-muted: #f0ece3;

  /* Typography Colors (30% Palette) */
  --boksha-text-primary: #111111;         /* Deep Obsidian Black */
  --boksha-text-secondary: #242424;       /* Softened Charcoal for headings */
  --boksha-text-muted: #6b6760;           /* Warm Sand Slate for prose & metadata */
  --boksha-text-subtle: #9c978f;          /* Muted borders & disabled copy */
  --boksha-text-inverse: #ffffff;         /* Pure white on dark surfaces */

  /* Borders & Dividers */
  --boksha-border-hairline: #eae6de;      /* Soft sand divider */
  --boksha-border-subtle: #ded8cd;        /* Input and card stroke */
  --boksha-border-strong: #111111;        /* Focused or primary stroke */
  --boksha-border-focus: #b89364;         /* Gold active focus ring */

  /* Heritage Gold Palette (10% Accent) */
  --boksha-gold-50: #faf7f2;
  --boksha-gold-100: #f4efe5;
  --boksha-gold-200: #e8dccb;
  --boksha-gold-300: #d6bf9f;
  --boksha-gold-400: #c5a880;             /* Desert Gold Accent */
  --boksha-gold-500: #b89364;             /* Primary Heritage Gold */
  --boksha-gold-600: #9e7b4f;             /* Deep Antique Gold */
  --boksha-gold-700: #7d603c;
  --boksha-gold-800: #5c462b;

  /* Earthy Sub-Accents */
  --boksha-sage-soft: #6a7565;
  --boksha-sage-light: #ebf0e9;
  --boksha-blush-soft: #b48682;
  --boksha-blush-light: #f7efeb;
  --boksha-midnight-abayas: #14171d;

  /* Primary Button / Action Tokens */
  --boksha-btn-primary-bg: #111111;
  --boksha-btn-primary-text: #ffffff;
  --boksha-btn-primary-hover-bg: #2a2a2a;
  --boksha-btn-primary-active-bg: #000000;

  --boksha-btn-secondary-bg: #ffffff;
  --boksha-btn-secondary-border: #ded8cd;
  --boksha-btn-secondary-text: #111111;
  --boksha-btn-secondary-hover-bg: #f9f8f5;

  --boksha-btn-accent-bg: #b89364;
  --boksha-btn-accent-text: #ffffff;
  --boksha-btn-accent-hover-bg: #9e7b4f;

  /* Semantic Feedback */
  --boksha-success: #266b44;
  --boksha-success-light: #e9f4ed;
  --boksha-warning: #b36e19;
  --boksha-warning-light: #fbf3e6;
  --boksha-error: #a72828;
  --boksha-error-light: #fbeeed;

  /* Typography System */
  --boksha-font-display: 'Cormorant Garamond', Georgia, serif;
  --boksha-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --boksha-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Type Scale */
  --boksha-text-2xs: 0.6875rem;   /* 11px */
  --boksha-text-xs: 0.75rem;      /* 12px */
  --boksha-text-sm: 0.875rem;     /* 14px */
  --boksha-text-base: 0.9375rem;  /* 15px */
  --boksha-text-md: 1rem;         /* 16px */
  --boksha-text-lg: 1.125rem;     /* 18px */
  --boksha-text-xl: 1.375rem;     /* 22px */
  --boksha-text-2xl: 1.75rem;     /* 28px */
  --boksha-text-3xl: 2.25rem;     /* 36px */
  --boksha-text-4xl: 3rem;        /* 48px */
  --boksha-text-5xl: 3.75rem;     /* 60px */

  /* Line Heights */
  --boksha-leading-tight: 1.15;
  --boksha-leading-snug: 1.25;
  --boksha-leading-normal: 1.5;
  --boksha-leading-relaxed: 1.65;

  /* Letter Spacing */
  --boksha-tracking-tight: -0.02em;
  --boksha-tracking-normal: 0em;
  --boksha-tracking-wide: 0.04em;
  --boksha-tracking-luxury: 0.12em;
  --boksha-tracking-widest: 0.2em;

  /* Weights */
  --boksha-weight-light: 300;
  --boksha-weight-regular: 400;
  --boksha-weight-medium: 500;
  --boksha-weight-semibold: 600;
  --boksha-weight-bold: 700;

  /* Spacing */
  --boksha-space-1: 0.25rem;   /* 4px */
  --boksha-space-2: 0.5rem;    /* 8px */
  --boksha-space-3: 0.75rem;   /* 12px */
  --boksha-space-4: 1rem;      /* 16px */
  --boksha-space-5: 1.25rem;   /* 20px */
  --boksha-space-6: 1.5rem;    /* 24px */
  --boksha-space-8: 2rem;      /* 32px */
  --boksha-space-10: 2.5rem;   /* 40px */
  --boksha-space-12: 3rem;     /* 48px */
  --boksha-space-16: 4rem;     /* 64px */
  --boksha-space-20: 5rem;     /* 80px */
  --boksha-space-24: 6rem;     /* 96px */

  /* Containers & Radii */
  --boksha-container-sm: 640px;
  --boksha-container-md: 768px;
  --boksha-container-lg: 1024px;
  --boksha-container-xl: 1280px;
  --boksha-container-2xl: 1440px;

  --boksha-radius-none: 0px;
  --boksha-radius-xs: 2px;
  --boksha-radius-sm: 4px;
  --boksha-radius-md: 6px;
  --boksha-radius-lg: 8px;
  --boksha-radius-full: 9999px;

  /* Elevation & Shadows */
  --boksha-shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --boksha-shadow-card: 0 4px 16px -2px rgba(17, 17, 17, 0.06);
  --boksha-shadow-hover: 0 12px 32px -4px rgba(17, 17, 17, 0.1);
  --boksha-shadow-drawer: -4px 0 24px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --boksha-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --boksha-duration-fast: 150ms;
  --boksha-duration-normal: 250ms;
  --boksha-duration-slow: 400ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--boksha-font-sans);
  background-color: var(--boksha-canvas-pure);
  color: var(--boksha-text-primary);
  line-height: var(--boksha-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(184, 147, 100, 0.25);
  color: #111111;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

.container-custom {
  max-width: var(--boksha-container-2xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   3. TYPOGRAPHY CLASSES
   ========================================================================== */
.font-display {
  font-family: var(--boksha-font-display);
}

.font-sans {
  font-family: var(--boksha-font-sans);
}

.font-mono {
  font-family: var(--boksha-font-mono);
}

.display-hero {
  font-family: var(--boksha-font-display);
  font-size: var(--boksha-text-4xl);
  line-height: var(--boksha-leading-tight);
  font-weight: var(--boksha-weight-regular);
  letter-spacing: var(--boksha-tracking-tight);
}

@media (min-width: 1024px) {
  .display-hero {
    font-size: var(--boksha-text-5xl);
  }
}

.heading-section {
  font-family: var(--boksha-font-display);
  font-size: var(--boksha-text-2xl);
  line-height: var(--boksha-leading-snug);
  font-weight: var(--boksha-weight-regular);
  letter-spacing: var(--boksha-tracking-tight);
  color: var(--boksha-text-primary);
}

@media (min-width: 768px) {
  .heading-section {
    font-size: var(--boksha-text-3xl);
  }
}

.heading-card {
  font-family: var(--boksha-font-sans);
  font-size: var(--boksha-text-sm);
  font-weight: var(--boksha-weight-medium);
  line-height: var(--boksha-leading-snug);
  color: var(--boksha-text-primary);
}

.label-brand {
  font-family: var(--boksha-font-sans);
  font-size: var(--boksha-text-2xs);
  font-weight: var(--boksha-weight-semibold);
  letter-spacing: var(--boksha-tracking-luxury);
  text-transform: uppercase;
  color: var(--boksha-text-muted);
}

.numeral-price {
  font-family: var(--boksha-font-sans);
  font-variant-numeric: tabular-nums;
  font-size: var(--boksha-text-sm);
  font-weight: var(--boksha-weight-semibold);
  color: var(--boksha-text-primary);
}

/* ==========================================================================
   4. BUTTON STYLES
   ========================================================================== */
.boksha-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--boksha-space-2);
  padding: 0.75rem 1.5rem;
  background-color: var(--boksha-btn-primary-bg);
  color: var(--boksha-btn-primary-text);
  font-family: var(--boksha-font-sans);
  font-size: var(--boksha-text-xs);
  font-weight: var(--boksha-weight-semibold);
  letter-spacing: var(--boksha-tracking-luxury);
  text-transform: uppercase;
  border-radius: var(--boksha-radius-xs);
  border: 1px solid var(--boksha-btn-primary-bg);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--boksha-duration-normal) var(--boksha-ease);
  text-decoration: none;
}

.boksha-btn-primary:hover {
  background-color: var(--boksha-btn-primary-hover-bg);
  border-color: var(--boksha-btn-primary-hover-bg);
  color: #ffffff;
  transform: translateY(-1px);
}

.boksha-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--boksha-space-2);
  padding: 0.75rem 1.5rem;
  background-color: var(--boksha-btn-secondary-bg);
  color: var(--boksha-btn-secondary-text);
  font-family: var(--boksha-font-sans);
  font-size: var(--boksha-text-xs);
  font-weight: var(--boksha-weight-semibold);
  letter-spacing: var(--boksha-tracking-luxury);
  text-transform: uppercase;
  border-radius: var(--boksha-radius-xs);
  border: 1px solid var(--boksha-border-subtle);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--boksha-duration-normal) var(--boksha-ease);
  text-decoration: none;
}

.boksha-btn-secondary:hover {
  background-color: var(--boksha-canvas-subtle);
  border-color: var(--boksha-text-primary);
  color: var(--boksha-text-primary);
  transform: translateY(-1px);
}

.boksha-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--boksha-space-2);
  padding: 0.75rem 1.5rem;
  background-color: var(--boksha-btn-accent-bg);
  color: var(--boksha-btn-accent-text);
  font-family: var(--boksha-font-sans);
  font-size: var(--boksha-text-xs);
  font-weight: var(--boksha-weight-semibold);
  letter-spacing: var(--boksha-tracking-luxury);
  text-transform: uppercase;
  border-radius: var(--boksha-radius-xs);
  border: 1px solid var(--boksha-btn-accent-bg);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--boksha-duration-normal) var(--boksha-ease);
  text-decoration: none;
}

.boksha-btn-accent:hover {
  background-color: var(--boksha-gold-600);
  border-color: var(--boksha-gold-600);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   5. PRODUCT CARD SPECIFICATIONS
   ========================================================================== */
.boksha-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--boksha-canvas-pure);
  transition: transform var(--boksha-duration-normal) var(--boksha-ease);
}

.boksha-product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--boksha-canvas-subtle);
  border: 1px solid var(--boksha-border-hairline);
  border-radius: var(--boksha-radius-xs);
}

.boksha-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--boksha-ease);
}

.boksha-product-card:hover .boksha-product-image {
  transform: scale(1.04);
}

.product-hover-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 10;
}

.boksha-product-card:hover .product-hover-actions {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   6. CUSTOM SCROLLBARS & UTILITIES
   ========================================================================== */
.boksha-custom-scroll::-webkit-scrollbar {
  width: 4px;
}
.boksha-custom-scroll::-webkit-scrollbar-track {
  background: var(--boksha-canvas-subtle);
}
.boksha-custom-scroll::-webkit-scrollbar-thumb {
  background: var(--boksha-border-subtle);
  border-radius: 4px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
