/*
Theme Name: GlowWithBella
Theme URI: https://glowwithbella.shop
Author: GlowWithBella
Author URI: https://glowwithbella.shop
Description: Custom WordPress + WooCommerce theme for GlowWithBella - Online Ladies Undergarment Shop. Inspired by Clovia.com UI/UX. Features custom order statuses, return/exchange system, Delhivery integration, and advanced media gallery.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
License URI: https://glowwithbella.shop/license
Text Domain: glowwithbella
Tags: e-commerce, woocommerce, custom, responsive, rtl-language-support
WC requires at least: 9.0
WC tested up to: 9.9
*/

/* =========================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================= */
:root {
  /* Brand Colors */
  --color-primary:       #E91E8C;
  --color-primary-dark:  #C0176E;
  --color-primary-light: #F8BBD9;
  --color-secondary:     #FF6B9D;
  --color-accent:        #FF4081;

  /* Neutrals */
  --color-white:         #FFFFFF;
  --color-bg:            #F9F9F9;
  --color-bg-alt:        #FFF0F7;
  --color-border:        #E8E8E8;
  --color-border-dark:   #CCCCCC;
  --color-text:          #333333;
  --color-text-muted:    #777777;
  --color-text-light:    #AAAAAA;
  --color-dark:          #1A1A1A;

  /* Feedback */
  --color-success:       #4CAF50;
  --color-warning:       #FF9800;
  --color-error:         #F44336;
  --color-info:          #2196F3;

  /* Typography */
  --font-primary:   'Poppins', 'Inter', sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-md:   1.125rem;
  --font-size-lg:   1.25rem;
  --font-size-xl:   1.5rem;
  --font-size-2xl:  1.875rem;
  --font-size-3xl:  2.25rem;
  --font-size-4xl:  3rem;

  /* Spacing */
  --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;

  /* Layout */
  --container-max:   1400px;
  --container-wide:  1200px;
  --container-narrow: 960px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.15);

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* Z-index */
  --z-header:   1000;
  --z-dropdown: 1010;
  --z-modal:    2000;
  --z-lightbox: 3000;
  --z-toast:    4000;
}

/* =========================================================
   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-primary);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

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

button { cursor: pointer; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
}

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

p { margin-bottom: var(--space-4); }

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2);
  color: var(--color-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: var(--space-3) auto 0;
  border-radius: var(--radius-full);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-base);
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-16) 0; }
.section--sm { padding: var(--space-8) 0; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.025em;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-transform: uppercase;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(233,30,140,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--dark {
  background: var(--color-dark);
  color: var(--color-white);
  border: 2px solid var(--color-dark);
}
.btn--dark:hover {
  background: #333;
  color: var(--color-white);
}

.btn--sm { padding: 0.5rem 1.25rem; font-size: var(--font-size-xs); }
.btn--lg { padding: 1rem 2.5rem; font-size: var(--font-size-base); }
.btn--full { width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =========================================================
   FORMS
   ========================================================= */
.form-group { margin-bottom: var(--space-4); }
.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-control {
  width: 100%;
  padding: 0.75rem var(--space-4);
  border: 1.5px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(233,30,140,0.12);
}
.form-control::placeholder { color: var(--color-text-light); }
.form-error { font-size: var(--font-size-xs); color: var(--color-error); margin-top: var(--space-1); }

/* =========================================================
   BADGES
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--primary   { background: var(--color-primary); color: #fff; }
.badge--success   { background: var(--color-success); color: #fff; }
.badge--warning   { background: var(--color-warning); color: #fff; }
.badge--error     { background: var(--color-error);   color: #fff; }
.badge--info      { background: var(--color-info);    color: #fff; }
.badge--new       { background: #4CAF50; color: #fff; }
.badge--sale      { background: var(--color-primary); color: #fff; }
.badge--hot       { background: #FF5722; color: #fff; }

/* =========================================================
   ALERTS / NOTICES
   ========================================================= */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
  font-size: var(--font-size-sm);
}
.alert--success { background: #E8F5E9; border-color: var(--color-success); color: #2E7D32; }
.alert--error   { background: #FFEBEE; border-color: var(--color-error);   color: #C62828; }
.alert--warning { background: #FFF8E1; border-color: var(--color-warning); color: #E65100; }
.alert--info    { background: #E3F2FD; border-color: var(--color-info);    color: #1565C0; }

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-text-muted); }
.text-sm      { font-size: var(--font-size-sm); }
.text-xs      { font-size: var(--font-size-xs); }
.font-bold    { font-weight: 700; }
.font-semibold { font-weight: 600; }

.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-col       { flex-direction: column; }
.gap-2          { gap: var(--space-2); }
.gap-4          { gap: var(--space-4); }
.gap-6          { gap: var(--space-6); }

.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;
}

.d-none   { display: none !important; }
.d-block  { display: block !important; }
.d-flex   { display: flex !important; }

.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

/* =========================================================
   LOADING / SPINNER
   ========================================================= */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep { color: var(--color-border-dark); }
.breadcrumb__current { color: var(--color-text); font-weight: 500; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-dark);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}
.pagination a:hover,
.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* =========================================================
   TABS
   ========================================================= */
.tabs { border-bottom: 2px solid var(--color-border); display: flex; gap: 0; }
.tab-btn {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: var(--color-primary); }
.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tab-content { padding: var(--space-6) 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =========================================================
   SKELETON LOADING
   ========================================================= */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =========================================================
   STICKY CART BAR (MOBILE)
   ========================================================= */
.sticky-cart-bar {
  position: fixed;
  bottom: 60px;
  left: 0; right: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  z-index: 500;
  display: none;
}

/* =========================================================
   BOTTOM NAVIGATION (MOBILE)
   ========================================================= */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  z-index: var(--z-header);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
.bottom-nav__list {
  display: flex;
  height: 100%;
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
}
.bottom-nav__item.active,
.bottom-nav__item:hover { color: var(--color-primary); }
.bottom-nav__icon { font-size: 20px; line-height: 1; }

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
#toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
}
.toast {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--color-success);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  animation: slideIn 0.3s ease;
  position: relative;
}
.toast--error   { border-left-color: var(--color-error); }
.toast--warning { border-left-color: var(--color-warning); }
.toast--info    { border-left-color: var(--color-info); }
.toast__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* =========================================================
   MAIN CONTENT
   ========================================================= */
#main-content { min-height: 60vh; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
