/* ========================================
   DESIGN SYSTEM - Unified Design Language
   ======================================== */

/* ===== ICONS ===== */
/* Consistent icon sizing and styling across all pages */

.emoji-icon,
.icon-emoji {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  font-style: normal;
  font-weight: normal;
}

/* Icon sizes */
.icon-xs { font-size: 0.75rem; }
.icon-sm { font-size: 0.875rem; }
.icon-md { font-size: 1rem; }
.icon-lg { font-size: 1.25rem; }
.icon-xl { font-size: 1.5rem; }

/* Icon in buttons */
.btn .emoji-icon,
.btn .icon-emoji {
  font-size: 1rem;
  margin-right: 6px;
}

.btn-small .emoji-icon,
.btn-small .icon-emoji {
  font-size: 0.875rem;
  margin-right: 4px;
}

/* Icon-only buttons (like close buttons) */
.icon-btn {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--ink-600);
  font-size: 1.125rem;
  line-height: 1;
}

.icon-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink-900);
  transform: scale(1.1);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* ===== BUTTONS ===== */
/* Unified button system - consistent across all pages */

.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

/* Button sizes */
.btn-small {
  padding: 10px 16px;
  font-size: 0.875rem;
  border-radius: 12px;
}

.btn-large {
  padding: 16px 28px;
  font-size: 1.125rem;
  border-radius: 18px;
}

/* Primary button - brand color (pink) */
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-800));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary button - outline style */
.btn-secondary {
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(15, 23, 42, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.1);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* CTA button - prominent action */
.btn-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500) 60%, var(--brand-600));
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600) 60%, var(--brand-700));
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.25);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Success/Green button */
.btn-success,
.btn-quick-checkout {
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
}

.btn-success:hover,
.btn-quick-checkout:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.25);
}

.btn-success:active,
.btn-quick-checkout:active {
  transform: translateY(0);
}

/* Disabled state */
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Focus state - accessibility */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.35), 
              0 8px 24px rgba(17, 24, 39, 0.12);
}

/* ===== SPACING ===== */
/* Consistent spacing scale across all components */
/* Apply these values throughout the codebase for consistency */

:root {
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

/* Usage examples (reference for developers):
   padding: var(--space-md);
   margin-bottom: var(--space-lg);
   gap: var(--space-sm);
*/

/* ===== TYPOGRAPHY ===== */
/* Consistent typography scale */

:root {
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.125rem;  /* 18px */
  --font-size-lg: 1.25rem;   /* 20px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-2xl: 2rem;     /* 32px */
  --font-size-3xl: 2.5rem;  /* 40px */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
}

/* ===== BORDER RADIUS ===== */
/* Consistent border radius across all elements */

:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ===== SHADOWS ===== */
/* Consistent shadow system */

:root {
  --shadow-sm: 0 4px 12px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(2, 6, 23, 0.08);
  --shadow-lg: 0 16px 36px rgba(2, 6, 23, 0.1);
  --shadow-xl: 0 24px 48px rgba(2, 6, 23, 0.12);
  --shadow-brand: 0 12px 28px rgba(236, 72, 153, 0.25);
  --shadow-success: 0 12px 24px rgba(16, 185, 129, 0.25);
}

/* ===== CONSISTENCY FIXES ===== */
/* Apply consistent design to all buttons and icons */

/* Hero buttons */
.hero-actions .btn .emoji-icon {
  font-size: 1rem;
}

/* Navigation buttons */
.nav .btn .emoji-icon {
  font-size: 0.875rem;
}

/* Product action buttons */
.product-actions .btn .emoji-icon {
  font-size: 1rem;
}

/* Cart buttons */
.cart-action-btn .emoji-icon {
  font-size: 0.875rem;
}

/* Cart FAB */
#cartFab {
  font-size: 1.5rem;
}

#cartFab .emoji-icon {
  font-size: 1.5rem;
}

/* Ensure all buttons use consistent transitions */
button.btn,
a.btn,
input[type="submit"].btn {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Ensure all icons have consistent styling */
.emoji-icon,
.icon-emoji,
[class*="icon"] {
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

