/* ============================================================
   assets/css/custom.css  —  SpiceMart Custom Stylesheet
   Theme: Saffron (#FF6B35) + Deep Red (#C0392B) + Cream (#FFF8F0)
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --saffron    : #FF6B35;
  --deep-red   : #C0392B;
  --cream      : #FFF8F0;
  --dark-text  : #2C1810;
  --muted      : #6c757d;
  --card-shadow: 0 4px 20px rgba(44,24,16,.08);
  --transition : all .25s ease;
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--dark-text);
}

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

a { text-decoration: none; transition: var(--transition); }

/* ── Top Strip ───────────────────────────────────────────── */
.top-strip {
  background: var(--deep-red);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .3px;
}

/* ── Navbar ──────────────────────────────────────────────── */
#mainNav {
  background: #fff;
  border-bottom: 2px solid rgba(255,107,53,.15);
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
}
.brand-tagline {
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
}
.brand-icon { font-size: 1.8rem; }

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: .9rem;
  color: var(--dark-text) !important;
  padding: .45rem .75rem !important;
  border-radius: 6px;
}
.navbar-nav .nav-link:hover { background: rgba(255,107,53,.1); color: var(--saffron) !important; }

.nav-icon-btn {
  color: var(--dark-text);
  background: none;
  border: none;
  padding: .3rem .5rem;
  border-radius: 6px;
  transition: var(--transition);
  display: flex; align-items: center;
}
.nav-icon-btn:hover { background: rgba(255,107,53,.1); color: var(--saffron); }

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

.search-form .form-control {
  border-color: #e5e5e5;
  font-size: .85rem;
}
.search-form .form-control:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,53,.15); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-saffron {
  background: var(--saffron);
  color: #fff !important;
  border: none;
  font-weight: 500;
  transition: var(--transition);
}
.btn-saffron:hover { background: #e85a20; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,53,.35); }

.btn-outline-saffron {
  border: 1.5px solid var(--saffron);
  color: var(--saffron) !important;
  background: transparent;
  font-weight: 500;
}
.btn-outline-saffron:hover { background: var(--saffron); color: #fff !important; }

.text-saffron { color: var(--saffron) !important; }

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #2C1810 0%, #5C2E1A 50%, #8B3A1F 100%);
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/hero-pattern.png') center/cover;
  opacity: .06;
  pointer-events: none;
}
.hero-badge {
  background: rgba(255,107,53,.2);
  border: 1px solid rgba(255,107,53,.4);
  color: var(--saffron);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .8rem;
  letter-spacing: 1px;
  display: inline-block;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-family: 'Playfair Display', serif;
}
.hero-emoji-row { font-size: 2.2rem; letter-spacing: .5rem; }

/* ── Section Titles ──────────────────────────────────────── */
.section-title {
  font-size: 1.9rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px; height: 3px;
  background: var(--saffron);
  border-radius: 2px;
  margin-top: 6px;
}

/* ── Category Cards ──────────────────────────────────────── */
.category-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(44,24,16,.14);
}
.category-img-wrap {
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd4a0, #ffb07c);
  display: flex; align-items: center; justify-content: center;
}
.category-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.category-card:hover .category-img-wrap img { transform: scale(1.08); }
.cat-emoji { font-size: 3rem; }
.category-card .card-body { padding: .9rem; }
.category-card .card-title { font-family: 'Poppins',sans-serif; font-weight: 600; font-size: .9rem; margin: 0; }

/* ── Product Cards ───────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: none;
  height: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(44,24,16,.14);
}
.product-img-wrap {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5ec, #ffe8d0);
  position: relative;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.1); }
.stock-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .7rem; padding: .2rem .55rem;
}
.product-card .card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-title { font-family: 'Poppins',sans-serif; font-weight: 600; font-size: .92rem; color: var(--dark-text); }
.product-weight { font-size: .75rem; color: var(--muted); }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--saffron); }
.btn-add-cart {
  background: linear-gradient(135deg, var(--saffron), var(--deep-red));
  color: #fff; border: none; border-radius: 8px;
  padding: .5rem; font-size: .85rem; font-weight: 500;
  width: 100%; transition: var(--transition);
  margin-top: auto;
}
.btn-add-cart:hover { opacity: .88; transform: translateY(-1px); }

/* ── Why Choose Us ────────────────────────────────────────── */
.why-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}
.why-card:hover { border-top-color: var(--saffron); transform: translateY(-4px); }
.why-icon { font-size: 2.5rem; margin-bottom: .75rem; }

/* ── Shop Page Sidebar ────────────────────────────────────── */
.filter-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}
.filter-card h6 {
  font-family: 'Poppins',sans-serif;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: .85rem;
}

/* ── Cart Table ───────────────────────────────────────────── */
.cart-table th { font-weight: 600; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.cart-img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.qty-input { width: 60px; text-align: center; border: 1.5px solid #e5e5e5; border-radius: 8px; padding: .25rem; }

/* ── Order Summary Box ────────────────────────────────────── */
.summary-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  position: sticky; top: 90px;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .9rem; }
.summary-total { font-size: 1.15rem; font-weight: 700; border-top: 2px dashed #eee; padding-top: .75rem; margin-top: .5rem; }

/* ── Star Ratings ─────────────────────────────────────────── */
.star-rating i { font-size: .9rem; }

/* ── Auth Forms ───────────────────────────────────────────── */
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(44,24,16,.1);
  max-width: 450px;
  margin: 60px auto;
}
.auth-card .form-control:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,53,.15); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { background: none; padding: .75rem 0; font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }
.breadcrumb-item.active { color: var(--saffron); }

/* ── Pagination ───────────────────────────────────────────── */
.page-link { color: var(--saffron); border-radius: 8px !important; margin: 0 2px; }
.page-link:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.page-item.active .page-link { background: var(--saffron); border-color: var(--saffron); }

/* ── Toast ────────────────────────────────────────────────── */
.toast { border-radius: 12px; border: none; box-shadow: 0 8px 30px rgba(0,0,0,.12); min-width: 280px; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: #1a0c07; color: #ccc; }
.footer-brand { font-family: 'Playfair Display',serif; font-size: 1.5rem; color: var(--saffron); margin: 0; }
.footer-heading { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; font-family: 'Poppins',sans-serif; font-weight: 600; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .4rem; font-size: .88rem; }
.footer-list a { color: #bbb; }
.footer-list a:hover { color: var(--saffron); }
.footer-hr { border-color: rgba(255,255,255,.08); }
.social-links a { color: #bbb; font-size: 1.25rem; margin-right: .75rem; }
.social-links a:hover { color: var(--saffron); }
.trust-badges .badge-pill {
  background: rgba(255,107,53,.15);
  border: 1px solid rgba(255,107,53,.3);
  color: #ffb07c;
  border-radius: 50px;
  padding: .2rem .75rem;
  font-size: .75rem;
}

/* ── Product Detail ───────────────────────────────────────── */
.product-main-img {
  width: 100%; max-height: 420px;
  object-fit: cover; border-radius: 16px;
}
.product-thumb {
  width: 70px; height: 70px;
  object-fit: cover; border-radius: 10px;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition);
}
.product-thumb:hover, .product-thumb.active { border-color: var(--saffron); }

/* ── Account Page ────────────────────────────────────────── */
.account-sidebar {
  background: #fff; border-radius: 16px;
  padding: 1.5rem; box-shadow: var(--card-shadow);
}
.account-nav .nav-link { color: var(--dark-text); border-radius: 10px; padding: .6rem 1rem; font-size: .9rem; }
.account-nav .nav-link.active, .account-nav .nav-link:hover { background: rgba(255,107,53,.1); color: var(--saffron); }
.account-nav .nav-link i { width: 20px; }

/* ── Utility ──────────────────────────────────────────────── */
.bg-saffron { background: var(--saffron) !important; }
.bg-cream    { background: var(--cream) !important; }
.rounded-xl  { border-radius: 16px; }
.shadow-soft { box-shadow: var(--card-shadow); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 4rem; opacity: .3; }

/* Skeleton placeholder */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%); background-size: 200%; animation: skeleton 1.4s infinite; border-radius: 8px; }
@keyframes skeleton { 0%{background-position:200%} 100%{background-position:-200%} }

/* Responsive tweaks */
@media (max-width:768px) {
  .hero-section { padding: 50px 0 40px; }
  .hero-emoji-row { display: none; }
  .auth-card { margin: 20px auto; padding: 1.8rem 1.4rem; }
}
