:root {
  --brand: #e85d04;
  --brand-dark: #c44900;
  --brand-light: #fff4ec;
  --text: #1a1a1a;
  --muted: #6b7280;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
}

h1, h2, .section-title, .brand-text {
  font-family: "Playfair Display", Georgia, serif;
}

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

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}
.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.header-top { background: var(--brand-light); color: var(--text); }
.header-links a { color: var(--text); text-decoration: none; margin-left: 1rem; }
.header-links .divider { border-left: 1px solid #ddd; margin: 0 .5rem; height: 1em; display: inline-block; vertical-align: middle; }

.brand { display: flex; align-items: center; text-decoration: none; max-width: 100%; }
.brand-logo {
  height: 68px;
  width: auto;
  max-width: min(100%, 300px);
  object-fit: contain;
  object-position: left center;
  display: block;
  background: transparent;
}
@media (max-width: 991px) {
  .brand-logo { height: 52px; max-width: min(100%, 220px); }
}
@media (max-width: 575px) {
  .brand-logo { height: 44px; max-width: min(100%, 180px); }
}

.trust-bar { background: #fff; border-bottom: 1px solid #f0f0f0; }
.trust-bar h6 { font-weight: 600; }

.search-form { display: flex; gap: .5rem; }
.search-form input {
  flex: 1; border: 1px solid #e5e7eb; border-radius: 8px; padding: .65rem 1rem;
}

.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: .25rem;
  color: var(--text); font-size: 2rem; text-decoration: none;
}
.cart-count {
  position: absolute; top: -4px; right: -8px;
  background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700;
  min-width: 1.25rem; height: 1.25rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}

.category-nav { background: #fafafa; border-bottom: 1px solid #eee; }
.category-nav .nav { flex-wrap: wrap; justify-content: center; gap: .25rem; }
.category-nav .nav-link {
  color: var(--text); font-weight: 500; padding: .75rem 1rem;
  border-radius: 0; border-bottom: 2px solid transparent;
}
.category-nav .nav-link:hover { color: var(--brand); border-bottom-color: var(--brand); }

.hero {
  background: linear-gradient(120deg, #7c2d12 0%, var(--brand) 45%, #fbbf24 100%);
  color: #fff; padding: 4rem 0 5rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; opacity: .9; }
.hero .lead { opacity: .95; max-width: 36rem; }

.category-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; color: var(--text); padding: 1rem .5rem;
  border-radius: var(--radius); transition: transform .2s, box-shadow .2s;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); color: var(--brand); }
.category-icon {
  width: 80px; height: 80px; border-radius: 50%; margin-bottom: .75rem;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.cat-icon {
  box-shadow: 0 8px 22px rgba(232, 93, 4, 0.22);
  border: 3px solid #fff;
  outline: 1px solid rgba(0, 0, 0, 0.06);
  background-repeat: no-repeat;
}
.cat-icon-flowers {
  background-color: var(--brand);
  background-image:
    url('../assets/categories/flowers.svg'),
    radial-gradient(circle at 30% 25%, #fde68a 0%, transparent 55%),
    linear-gradient(145deg, #fcd34d 0%, #f59e0b 40%, #e85d04 100%);
  background-size: 54%, cover, cover;
  background-position: center, center, center;
}
.cat-icon-garlands {
  background-color: #7c3aed;
  background-image:
    url('../assets/categories/garlands.svg'),
    radial-gradient(circle at 70% 30%, #e9d5ff 0%, transparent 50%),
    linear-gradient(145deg, #c084fc 0%, #9333ea 45%, #6d28d9 100%);
  background-size: 54%, cover, cover;
  background-position: center, center, center;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.25);
}
.cat-icon-decoration {
  background-color: #db2777;
  background-image:
    url('../assets/categories/decoration.svg'),
    radial-gradient(circle at 25% 75%, #fbcfe8 0%, transparent 50%),
    linear-gradient(145deg, #f472b6 0%, #ec4899 45%, #db2777 100%);
  background-size: 54%, cover, cover;
  background-position: center, center, center;
  box-shadow: 0 8px 22px rgba(219, 39, 119, 0.25);
}
.cat-icon-leaves {
  background-color: #16a34a;
  background-image:
    url('../assets/categories/leaves.svg'),
    radial-gradient(circle at 30% 20%, #bbf7d0 0%, transparent 50%),
    linear-gradient(145deg, #4ade80 0%, #22c55e 45%, #15803d 100%);
  background-size: 54%, cover, cover;
  background-position: center, center, center;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.25);
}
.cat-icon-pooja-items {
  background-color: #b45309;
  background-image:
    url('../assets/categories/pooja-items.svg'),
    radial-gradient(circle at 50% 20%, #fde68a 0%, transparent 55%),
    linear-gradient(145deg, #fbbf24 0%, #d97706 45%, #92400e 100%);
  background-size: 54%, cover, cover;
  background-position: center, center, center;
  box-shadow: 0 8px 22px rgba(180, 83, 9, 0.25);
}
.img-cat-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.img-cat-2 { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.img-cat-3 { background: linear-gradient(135deg, #f472b6, #db2777); }
.img-cat-4 { background: linear-gradient(135deg, #fb923c, #ea580c); }
.img-cat-5 { background: linear-gradient(135deg, #4ade80, #16a34a); }
.img-cat-6 { background: linear-gradient(135deg, #38bdf8, #0284c7); }

.product-card {
  background: #fff; border: 1px solid #eee; border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.product-image {
  display: block; height: 180px; background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.product-image-photo { background: #f3f4f6; }
.product-photo {
  width: 100%; height: 180px; object-fit: cover; display: block;
}
.product-badge-sale {
  position: absolute; top: .5rem; left: .5rem;
  background: #dc2626; color: #fff; font-size: .7rem; font-weight: 700;
  padding: .2rem .5rem; border-radius: 4px; text-transform: uppercase;
}
.product-detail-photo {
  max-height: 400px; object-fit: cover; border-radius: var(--radius);
}
.img-marigold { background: linear-gradient(160deg, #fbbf24, #ea580c); }
.img-coconut { background: linear-gradient(160deg, #fef3c7, #a16207); }
.img-mango-pulp { background: linear-gradient(160deg, #fde047, #ca8a04); }
.img-gulab-jamun { background: linear-gradient(160deg, #78350f, #451a03); }
.img-aloe { background: linear-gradient(160deg, #86efac, #15803d); }
.img-rice { background: linear-gradient(160deg, #fef9c3, #a3a3a3); }
.img-roses { background: linear-gradient(160deg, #fda4af, #be123c); }
.img-gift-set { background: linear-gradient(160deg, #fcd34d, #b45309); }

.product-body { padding: 1rem; }
.product-title { font-size: 1rem; font-weight: 600; margin-bottom: .35rem; }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { color: var(--brand); }
.product-price { color: var(--brand); font-weight: 600; margin-bottom: .75rem; }
.product-price-lg { font-size: 1.75rem; color: var(--brand); font-weight: 700; }

.product-detail-image { height: 400px; border-radius: var(--radius); background-size: cover; background-position: center; }

.variant-list { display: flex; flex-direction: column; gap: .5rem; }
.variant-option {
  display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem;
  border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; margin: 0;
}
.variant-option:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.variant-option input { accent-color: var(--brand); }

.page-banner { background: var(--brand-light); }
.order-summary { background: #f9fafb; border: 1px solid #eee; }

.site-footer { background: #1a1a1a; color: #e5e7eb; margin-top: 4rem; }
.site-footer h5 { color: #fff; }
.site-footer .footer-text { color: #d1d5db; margin-bottom: 0; }
.site-footer .footer-copy { color: #9ca3af; }
.site-footer hr { border-color: #374151; opacity: 1; }
.footer-links a { color: #d1d5db; text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.contact-list li { margin-bottom: .75rem; }

.section-title { font-weight: 700; }

/* Hero carousel */
.hero-carousel { margin-bottom: 0; }
.hero-carousel .carousel-item { min-height: 520px; }
.hero-slide {
  position: relative; min-height: 520px;
  background-size: cover; background-position: center center;
  display: flex; align-items: center;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(30, 10, 0, 0.82) 0%, rgba(124, 45, 18, 0.55) 45%, rgba(0, 0, 0, 0.25) 100%);
}
.hero-slide-content {
  position: relative; z-index: 2; color: #fff; padding: 4rem 0;
}
.hero-slide-content h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-slide-content .lead { max-width: 36rem; opacity: .95; font-size: 1.1rem; }
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon { filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

/* Auth pages */
.auth-section { background: linear-gradient(180deg, var(--brand-light) 0%, #fff 40%); min-height: 60vh; }
.auth-card {
  background: #fff; border-radius: 16px; padding: 2rem 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.08); border: 1px solid #f0f0f0;
}
.auth-icon { font-size: 2.5rem; color: var(--brand); }
.auth-divider {
  display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--muted); font-size: .85rem;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; border-radius: 8px; padding: .65rem 1rem;
}
.btn-google { background: #fff; border: 1px solid #dadce0; color: #3c4043; }
.btn-google:hover { background: #f8f9fa; border-color: #dadce0; color: #202124; }
.btn-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.btn-facebook:hover { background: #166fe5; border-color: #166fe5; color: #fff; }

/* Account area */
.order-status-panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.order-status-label {
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.order-status-hint { color: #374151; font-size: .95rem; }
.order-status-note {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: .75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: .95rem;
}
.order-status-badge { font-weight: 600; }
.account-section { background: #fafafa; min-height: 60vh; }
.account-sidebar {
  display: flex; flex-direction: column; gap: .25rem;
  background: #fff; border-radius: var(--radius); padding: 1rem; border: 1px solid #eee;
}
.account-sidebar a {
  display: flex; align-items: center; gap: .5rem; padding: .65rem .85rem;
  border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500;
}
.account-sidebar a:hover { background: var(--brand-light); color: var(--brand); }
.account-sidebar a.active { background: var(--brand); color: #fff; }
.account-panel {
  background: #fff; border-radius: var(--radius); padding: 1.75rem;
  border: 1px solid #eee; box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.stat-tile {
  background: #f9fafb; border: 1px solid #eee; border-radius: var(--radius);
  padding: 1.25rem; height: 100%;
}
.stat-tile-accent { background: var(--brand-light); border-color: #fed7aa; }
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--brand); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--muted); }
.account-link { font-size: 1.75rem; color: var(--text); text-decoration: none; }
.account-link:hover { color: var(--brand); }

/* Welcome popup */
.welcome-alert-content { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.welcome-alert-image { min-height: 280px; background-size: cover; background-position: center; }
.welcome-alert-badge { background: var(--brand); color: #fff; font-weight: 600; letter-spacing: .04em; }
