/* =============================================
   SMIKKIE WEBSHOP — BASE CSS
   Shared styles for all pages
   ============================================= */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  --purple:        #5B2D8E;
  --purple-dark:   #4a2278;
  --purple-light:  #F5F0FF;
  --purple-mid:    #E8E0F8;
  --green:         #7DC242;
  --green-dark:    #6aaa38;
  --green-light:   #F0F8E8;
  --dark:          #1A1A2E;
  --gray:          #9090B0;
  --gray-light:    #F8F6FF;
  --border:        #F0EEF8;
  --white:         #ffffff;
  --warm:          #FFF8F0;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     18px;
  --radius-xl:     50px;
  --shadow-sm:     0 2px 8px rgba(91,45,142,0.08);
  --shadow-md:     0 4px 16px rgba(91,45,142,0.12);
  --shadow-lg:     0 8px 32px rgba(91,45,142,0.16);
  --transition:    0.2s ease;
  --font:          'Nunito', sans-serif;
  --max-width:     1160px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
ul, ol { list-style: none; }

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* --- RESPONSIVE HELPERS --- */
.desktop-only { display: block; }
.mobile-only  { display: none !important; }
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: block; }
  .mobile-flex  { display: flex !important; }
}

/* --- TYPOGRAPHY --- */
.logo-text {
  font-size: 26px;
  font-weight: 900;
  color: var(--purple);
  letter-spacing: -0.5px;
}
.logo-dot { color: var(--green); }

.section-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--dark);
  text-align: center;
}
.section-subtitle {
  font-size: 15px;
  color: var(--gray);
  text-align: center;
  margin-top: 6px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-xl);
  padding: 13px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn--primary   { background: var(--purple); color: var(--white); }
.btn--primary:hover { background: var(--purple-dark); }
.btn--secondary { background: var(--white); color: var(--dark); border: 2px solid var(--border); }
.btn--secondary:hover { border-color: var(--purple); color: var(--purple); }
.btn--green     { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); }
.btn--ghost     { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn--ghost:hover { background: var(--purple-light); }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--lg { padding: 16px 36px; font-size: 16px; }

/* --- ICON BUTTON --- */
.icon-btn {
  width: 38px; height: 38px;
  border: none; background: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--purple-light); }

/* --- CART BADGE --- */
.cart-wrap { position: relative; display: inline-flex; }
.cart-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--green);
  color: white;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
  transition: transform 0.2s;
  padding: 0 3px;
}
.cart-badge--bump { animation: badge-bump 0.3s ease; }
@keyframes badge-bump {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}

/* --- PRODUCT CARD --- */
.prod-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.prod-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.prod-card__img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--gray-light);
}
.prod-card__img img { max-height: 120px; max-width: 90%; object-fit: contain; }
.prod-card__body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.prod-card__brand { font-size: 11px; font-weight: 700; color: var(--gray); display: block; margin-bottom: 2px; }
.prod-card__name  { font-size: 14px; font-weight: 800; color: var(--dark); display: block; margin-bottom: 10px; flex: 1; }
.prod-card__footer { display: flex; align-items: center; justify-content: space-between; }
.prod-card__price { font-size: 15px; font-weight: 900; color: var(--dark); }
.prod-card__add {
  width: 30px; height: 30px;
  background: var(--purple);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform 0.1s;
  flex-shrink: 0;
}
.prod-card__add:hover { background: var(--purple-dark); }
.prod-card__add:active { transform: scale(0.9); }
.prod-card__add--added { background: var(--green) !important; }

/* --- STARS --- */
.stars { display: flex; gap: 2px; }
.star { color: #F5A623; font-size: 14px; }
.star--half { color: #F5A623; }

/* --- BADGE --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
}
.badge--green { background: var(--green-light); color: var(--green-dark); }
.badge--purple { background: var(--purple-light); color: var(--purple); }

/* --- TOAST --- */
#smikkie-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
#smikkie-toast.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
  #smikkie-toast { bottom: 90px; font-size: 13px; padding: 10px 18px; }
}

/* --- APPROVED BADGE SVG --- */
.approved-badge { width: 72px; height: 72px; }
@media (max-width: 768px) { .approved-badge { width: 60px; height: 60px; } }

/* --- SECTION SPACING --- */
.section { padding: 60px 0; }
.section--sm { padding: 40px 0; }
.section--gray { background: var(--gray-light); }
.section--purple-light { background: #F0EDF8; }

/* --- DIVIDER --- */
.divider { height: 1px; background: var(--border); margin: 0; }

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
  flex-wrap: wrap;
}
.breadcrumb__nav a { color: var(--gray); transition: color var(--transition); }
.breadcrumb__nav a:hover { color: var(--purple); }
.breadcrumb__nav .sep { color: var(--gray); font-size: 11px; }
.breadcrumb__nav .current { color: var(--dark); font-weight: 700; }

/* --- QUANTITY CONTROL --- */
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
}
.qty-ctrl--dark {
  border-color: rgba(255,255,255,0.3);
}
.qty-btn {
  width: 40px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  transition: background var(--transition);
  font-size: 18px;
  font-weight: 700;
}
.qty-btn:hover { background: var(--purple-light); }
.qty-btn--dark { color: var(--white); }
.qty-btn--dark:hover { background: rgba(255,255,255,0.1); }
.qty-btn:disabled { opacity: 0.35; pointer-events: none; }
.qty-val {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
  user-select: none;
}
.qty-val--dark { color: var(--white); }

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.empty-state__icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.empty-state p { font-size: 15px; margin-bottom: 24px; }

/* --- FILTER CHIP --- */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  background: var(--white);
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--purple); color: var(--purple); }
.filter-chip--active { background: var(--purple); color: var(--white); border-color: var(--purple); }

/* --- SCROLL ANIMATION --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- FORM ELEMENTS --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.form-input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--purple); }
.form-input::placeholder { color: var(--gray); }
.form-select {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  appearance: none;
  cursor: pointer;
}
.form-select:focus { border-color: var(--purple); }

/* --- PROGRESS STEPS --- */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.progress-step__circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--gray);
  z-index: 1;
}
.progress-step--active .progress-step__circle {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}
.progress-step--done .progress-step__circle {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.progress-step__label { font-size: 12px; font-weight: 700; color: var(--gray); }
.progress-step--active .progress-step__label { color: var(--purple); }
.progress-step--done .progress-step__label { color: var(--green-dark); }
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 40px;
  margin-bottom: 18px;
}
.progress-line--done { background: var(--green); }
