/* ============================================================
   assets/css/store.css  —  ShopCore Storefront
   Design: Refined editorial with a warm amber accent
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

:root {
  --accent:       #e07b39;
  --accent-dark:  #c2611d;
  --accent-light: #fdf0e6;
  --dark:         #1a1a2e;
  --muted:        #6b7280;
  --surface:      #fafaf9;
  --radius:       .75rem;
  --shadow:       0 4px 24px rgba(0,0,0,.07);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--surface);
  color: var(--dark);
  font-size: 15px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
}

.fw-black { font-weight: 900; }

/* ── Colours ─────────────────────────────────────────────── */
.text-accent   { color: var(--accent) !important; }
.bg-accent     { background: var(--accent) !important; }
.btn-primary   { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-primary:focus-visible { box-shadow: 0 0 0 .25rem rgba(224,123,57,.35); }

/* ── Navbar ──────────────────────────────────────────────── */
.sc-navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f0ede8;
  z-index: 1040;
}
.sc-navbar .nav-link {
  font-weight: 500;
  color: var(--dark);
  padding: .5rem .75rem;
  border-radius: .5rem;
  transition: background .18s, color .18s;
}
.sc-navbar .nav-link:hover { background: var(--accent-light); color: var(--accent); }

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #e8e4de;
  color: var(--dark);
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}
.nav-icon-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 520px;
  padding: 4rem 0;
  background: linear-gradient(135deg, #fff9f4 0%, #fff 100%);
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, #f9d4b4 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 0;
}
.hero-product {
  position: relative;
  z-index: 1;
  max-height: 380px;
  filter: drop-shadow(0 20px 40px rgba(224,123,57,.25));
  animation: floatImg 4s ease-in-out infinite;
}
@keyframes floatImg {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-img-wrap { position: relative; }

/* ── Section titles ──────────────────────────────────────── */
.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: .35rem;
}

/* ── Category cards ──────────────────────────────────────── */
.cat-card {
  border-radius: var(--radius);
  transition: transform .22s, box-shadow .22s;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  color: var(--accent) !important;
}

/* ── Product card ────────────────────────────────────────── */
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.product-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  background: #f8f5f1;
  transition: transform .35s;
}
.product-card:hover .product-img { transform: scale(1.04); }

.btn-wishlist {
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}
.product-card:hover .btn-wishlist { opacity: 1; }
.btn-wishlist.active i { color: var(--accent); }

.line-clamp-1 { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ── Promo banner ────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #c24b1a 100%);
  border-radius: calc(var(--radius) * 2);
  margin: 0 1rem;
}
.countdown-wrap {
  display: flex;
  gap: .75rem;
  justify-content: center;
}
.cd-box {
  background: rgba(255,255,255,.18);
  border-radius: .5rem;
  padding: .5rem .75rem;
  text-align: center;
  min-width: 56px;
}
.cd-box span { display: block; font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1; }
.cd-box small { color: rgba(255,255,255,.7); font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Filter sidebar ──────────────────────────────────────── */
.filter-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid #f0ede8;
  box-shadow: var(--shadow);
}

/* ── Checkout steps ──────────────────────────────────────── */
.checkout-steps { align-items: center; gap: 0; }
.step {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.step.active { color: var(--accent); }
.step span {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
}
.step.active span { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-line { flex: 1; height: 2px; background: #e8e4de; margin: 0 .75rem; }

/* ── Cart ────────────────────────────────────────────────── */
.cart-item { transition: background .2s; border-radius: var(--radius) !important; }
.cart-item:hover { background: var(--accent-light); }
.qty-stepper button { background: transparent; line-height: 1; }

/* ── Auth ────────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff9f4, #fff);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: calc(var(--radius) * 2);
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
}

/* ── Account ─────────────────────────────────────────────── */
.avatar-circle {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), #f9a642);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
}

/* ── Footer ──────────────────────────────────────────────── */
.sc-footer {
  background: var(--dark);
  color: #9ca3af;
}
.sc-footer .text-muted { color: inherit !important; }
.sc-footer h5, .sc-footer h6 { color: #f3f4f6; }
.sc-footer a { color: #9ca3af; text-decoration: none; transition: color .18s; }
.sc-footer a:hover { color: var(--accent); }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid #374151;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

/* ── Toast ───────────────────────────────────────────────── */
#toastContainer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sc-toast {
  min-width: 260px;
  padding: .85rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  animation: slideUp .3s ease;
  color: #fff;
}
.sc-toast.success { background: #22c55e; }
.sc-toast.danger  { background: #ef4444; }
.sc-toast.info    { background: var(--accent); }
@keyframes slideUp {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 576px) {
  .hero { min-height: 340px; padding: 2.5rem 0; }
  .hero h1 { font-size: 2rem !important; }
  .product-img { height: 160px; }
  .promo-banner { margin: 0; border-radius: var(--radius); }
  .auth-card { padding: 1.75rem 1.25rem; }
}

/* Pagination accent */
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); }
.page-link { color: var(--accent); }
.page-link:hover { color: var(--accent-dark); }

/* Cursor pointer util */
.cursor-pointer { cursor: pointer; }
