/**
 * SSSK Impact Shop - Complete Standalone Design System CSS
 * Updated Brand Color Palette: Royal Deep Maroon / Red (#7A1220) Primary
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Marcellus&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #7A1220;        /* Royal Deep Maroon / Red Primary */
  --color-primary-hover: #5E0C17;  /* Dark Maroon Hover */
  --color-secondary: #7A1220;      /* Deep Maroon Secondary */
  --color-secondary-hover: #5E0C17;
  --color-accent: #E8AC3B;         /* Warm Gold Accent */
  --color-surface: #FFFFFF;
  --color-background: #FDFAF4;
  --color-text-main: #2A2019;
  --color-text-muted: #7C6F60;
  --color-border: #EDE3D2;
  --color-impact-bg: #FAF0DC;
  --color-impact-text: #7A4A05;

  /* Standardized Status Colors */
  --color-success: #15803D;
  --color-success-bg: #DCFCE7;
  --color-warning: #B45309;
  --color-warning-bg: #FEF3C7;
  --color-error: #DC2626;
  --color-error-bg: #FEE2E2;

  --font-display: 'Marcellus', Georgia, serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --shadow-soft: 0 4px 22px -4px rgba(42,32,25,.10);
  --shadow-drawer: -8px 0 30px rgba(0,0,0,.14);
  --radius-btn: 8px;
}

/* Global Resets */
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-background);
}

body {
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}

@media (min-width: 640px) {
  body {
    padding-top: 80px;
  }
}


/* Master Combined Header Scroll Hide & Reveal */
#site-header-wrapper {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
#site-header-wrapper.header-hide {
  transform: translateY(-100%);
}


/* Strict Logo Image Constraints */
#main-header img,
#main-header .custom-logo,
#main-header .custom-logo-link,
#main-header .custom-logo-link img,
.menu-drawer img,
.menu-drawer .custom-logo,
.menu-drawer .custom-logo-link img {
  max-height: 48px !important;
  height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: inline-block !important;
  margin: 0 auto !important;
}

@media (max-width: 640px) {
  #main-header img,
  #main-header .custom-logo,
  #main-header .custom-logo-link img {
    max-height: 40px !important;
    height: 40px !important;
    max-width: 180px !important;
  }
}

/* WordPress Admin Bar Offsets */
body.admin-bar div.fixed.top-0 {
  top: 32px !important;
}

body.admin-bar #main-header {
  top: 64px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar div.fixed.top-0 {
    top: 46px !important;
  }
  body.admin-bar #main-header {
    top: 78px !important;
  }
}

/* Mobile Header Scroll Hide/Reveal Transition */
@media (max-width: 1023px) {
  #main-header {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
  }
  #main-header.mobile-hide {
    transform: translateY(-120%) !important;
  }
}

/* Typography Utility Classes */

.font-display { font-family: var(--font-display) !important; }
.font-heading { font-family: var(--font-heading) !important; }
.font-body { font-family: var(--font-body) !important; }

/* Color Utility Classes - Deep Maroon Red Primary */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-primary-hover:hover { background-color: var(--color-primary-hover) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-secondary-hover:hover { background-color: var(--color-secondary-hover) !important; }
.bg-accent { background-color: var(--color-accent) !important; }
.bg-surface { background-color: var(--color-surface) !important; }
.bg-background { background-color: var(--color-background) !important; }
.bg-impact-bg { background-color: var(--color-impact-bg) !important; }
.bg-success-bg { background-color: var(--color-success-bg) !important; }
.bg-warning-bg { background-color: var(--color-warning-bg) !important; }

.text-primary { color: var(--color-primary) !important; }
.text-primary-hover:hover { color: var(--color-primary-hover) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-text-main { color: var(--color-text-main) !important; }
.text-text-muted { color: var(--color-text-muted) !important; }
.text-impact-text { color: var(--color-impact-text) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-error { color: var(--color-error) !important; }

.border-border { border-color: var(--color-border) !important; }
.border-primary { border-color: var(--color-primary) !important; }

/* Standardized Button System */
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-btn);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(122, 18, 32, 0.04);
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-btn);
  transition: color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-text:hover {
  color: var(--color-primary-hover);
  background-color: rgba(122, 18, 32, 0.06);
}

/* Shadows */
.shadow-soft { box-shadow: var(--shadow-soft) !important; }
.shadow-drawer { box-shadow: var(--shadow-drawer) !important; }

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

/* Icons */
svg.lucide {
  stroke-width: 2px;
}

/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes bump {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px) rotate(-8deg); }
  60% { transform: translateY(0) rotate(4deg); }
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-fade-in { animation: fadeIn .3s ease-out; }
.animate-slide-up { animation: slideUp .5s cubic-bezier(.16,1,.3,1); }
.animate-spin-slow { animation: spinSlow 9s linear infinite; }
.animate-pulse-soft { animation: pulseSoft 1.8s ease-in-out infinite; }
.animate-float { animation: floaty 4s ease-in-out infinite; }

.icon-pulse { animation: pulseSoft 2.2s ease-in-out infinite; }
.icon-spin-slow { animation: spinSlow 9s linear infinite; }
.icon-bump { animation: bump .5s ease; }
.icon-float { animation: floaty 4s ease-in-out infinite; }

/* Menu icon rotation */
.menu-icon-wrap svg {
  transition: transform .3s ease;
}
.menu-icon-wrap.is-open svg {
  transform: rotate(90deg);
}

/* Product Cards Hover Scaling & Quick Add Overlay */
.product-card .illo-hover {
  opacity: 0;
  transition: opacity .5s ease;
}

@media (hover: hover) {
  .product-card:hover .illo-hover {
    opacity: 1;
  }
  .product-card:hover .quick-add-btn,
  .product-card:hover .card-action-btns {
    opacity: 1;
    transform: translateY(0);
  }
  .product-card .illo-main {
    transition: transform .7s ease;
  }
  .product-card:hover .illo-main {
    transform: scale(1.06);
  }
  .product-card:hover .icon-nudge-hover {
    animation: nudge .6s ease-in-out infinite;
  }
}

.quick-add-btn, .card-action-btns {
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
}

/* Drawers & Overlays */
.drawer, .cart-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 420px !important;
  max-width: 100vw !important;
  height: 100vh !important;
  z-index: 60 !important;
  background-color: var(--color-surface) !important;
  transform: translateX(100%) !important;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1) !important;
  box-shadow: var(--shadow-drawer) !important;
}
.drawer.open, .cart-drawer.open {
  transform: translateX(0) !important;
}

.menu-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 320px !important;
  max-width: 85vw !important;
  height: 100vh !important;
  z-index: 60 !important;
  background-color: var(--color-surface) !important;
  transform: translateX(-100%) !important;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1) !important;
  box-shadow: var(--shadow-drawer) !important;
}
.menu-drawer.open {
  transform: translateX(0) !important;
}

.overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 55 !important;
  background: rgba(42, 32, 25, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .3s ease !important;
}
.overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Mobile bottom nav body padding */
@media (max-width: 1023px) {
  body {
    padding-bottom: 64px !important;
  }
}


/* Modals (Live Search & Quick View) */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-wrapper.open .modal-content {
  transform: scale(1) translateY(0);
}

/* User Account Dropdown Menu */
.account-dropdown-wrap {
  position: relative;
}
.account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}
.account-dropdown-wrap:hover .account-dropdown,
.account-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-main);
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.account-dropdown-item:hover {
  background-color: var(--color-background);
  color: var(--color-primary);
}

/* Free Shipping Progress Bar */

.shipping-progress-container {
  background: #F3ECE1;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  position: relative;
}
.shipping-progress-bar {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 140%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  z-index: 70;
}
.toast.show {
  transform: translate(-50%, 0);
}

/* Sticky ATC Bar */
.sticky-atc-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-atc-bar.visible {
  transform: translateY(0);
}

/* Mobile Sticky ATC */
.mobile-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  transform: translateY(110%);
  transition: transform .3s ease;
}
.mobile-sticky-atc.visible {
  transform: translateY(0);
}

/* Input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}


