:root {
  --mustard: #d4a017;
  --mustard-dark: #b8860b;
  --brown: #4a2f1c;
  --brown-light: #7a5c3e;
  --cream: #fbf6ee;
  --white: #ffffff;
  --red: #c0392b;
  --green: #2e7d32;
  --border: #e5dcc8;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--cream);
  color: var(--brown);
  min-height: 100vh;
}

a {
  color: var(--mustard-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Nav */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brown);
  padding: 14px 28px;
  color: var(--white);
  flex-wrap: wrap;
  gap: 12px;
}

.navbar .brand {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mustard);
  letter-spacing: 0.5px;
}

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
}

.navbar .brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--white);
  font-size: 0.95rem;
}

.nav-links .muted {
  color: var(--cream);
}

.nav-links a:hover {
  color: var(--mustard);
  text-decoration: none;
}

.nav-badge {
  background: var(--mustard);
  color: var(--brown);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 4px;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.page-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--brown);
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}

.product-card:hover {
  box-shadow: 0 4px 14px rgba(74, 47, 28, 0.12);
}

.product-card img, .product-thumb-fallback {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--cream);
}

.product-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.product-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-body h3 {
  margin: 0;
  font-size: 1rem;
}

.product-price {
  font-weight: 700;
  color: var(--mustard-dark);
  font-size: 1.05rem;
}

.product-stock {
  font-size: 0.8rem;
  color: var(--brown-light);
}

/* Forms */
.form-card {
  max-width: 420px;
  margin: 30px auto;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--brown);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--mustard);
  outline-offset: 1px;
}

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--mustard);
  color: var(--brown);
}

.btn:hover {
  background: var(--mustard-dark);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--brown);
}

.btn-secondary:hover {
  background: var(--cream);
}

.btn-danger {
  background: var(--red);
  color: var(--white);
}

.btn-danger:hover {
  background: #a5291b;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* Messages */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.alert-error {
  background: #fdecea;
  color: var(--red);
  border: 1px solid #f5c6c2;
}

.alert-success {
  background: #eaf6ec;
  color: var(--green);
  border: 1px solid #c5e5c9;
}

.muted {
  color: var(--brown-light);
  font-size: 0.88rem;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

th {
  background: var(--cream);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-admin {
  background: var(--mustard);
  color: var(--brown);
}

.badge-customer {
  background: #e6e6e6;
  color: #444;
}

.badge-active {
  background: #e0f2e2;
  color: var(--green);
}

.badge-inactive {
  background: #f5e0de;
  color: var(--red);
}

/* Cart */
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.cart-row .qty-input {
  width: 70px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 1.15rem;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--brown-light);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.section-gap {
  margin-top: 32px;
}

/* ===== Svarnadhara theme additions ===== */
/* Paste into your existing style.css, or keep as a separate
   stylesheet linked after style.css (as index.html does). */

/* ===== Svarnadhara theme additions ===== */
/* Paste into your existing style.css, or keep as a separate
   stylesheet linked after style.css (as index.html does). */

:root {
  --sd-gold: #D6A429;
  --sd-gold-bright: #F0C240;
  --sd-gold-dark: #9C6B10;
  --sd-brown: #1E140B;
  --sd-brown-soft: #2E2013;
  --sd-cream: #FBF3E3;
  --sd-cream-soft: #F3E7CB;
  --sd-green: #55632B;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

body { font-family: "Poppins", "Segoe UI", Arial, sans-serif; }
h1, h2, h3, h4 { font-family: "Poppins", "Segoe UI", Arial, sans-serif; letter-spacing: -0.01em; }

/* HERO */
.sd-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(214,164,41,0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(85,99,43,0.25), transparent 50%),
    linear-gradient(160deg, var(--sd-brown) 0%, var(--sd-brown-soft) 100%);
  color: var(--sd-cream);
  padding: 100px 20px 70px;
  text-align: center;
}
.sd-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--sd-gold-dark), var(--sd-gold-bright), var(--sd-gold-dark));
}
.sd-hero-inner { max-width: 660px; margin: 0 auto; position: relative; z-index: 1; }
.sd-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sd-gold-bright);
  border: 1px solid rgba(240,194,64,0.4);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}
.sd-hero-title {
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 700;
  margin: 0 0 16px;
  background: linear-gradient(90deg, var(--sd-gold-bright), var(--sd-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sd-hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #EFE3CC;
  margin: 0 auto 32px;
}
.sd-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(214,164,41,0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(214,164,41,0.35); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--sd-gold);
  color: var(--sd-gold-bright);
  box-shadow: none;
}
.btn-outline:hover { background: var(--sd-gold); color: var(--sd-brown); }

/* PROMISE BLOCK */
.sd-promise {
  max-width: 720px;
  margin: 50px auto;
  text-align: center;
  padding: 0 20px;
}
.sd-promise h2 { color: var(--sd-brown); font-size: 1.8rem; margin-bottom: 14px; }
.sd-promise p { color: #4A3C29; font-size: 1.05rem; line-height: 1.75; }

/* TRUST BAR */
.sd-trustbar { background: var(--sd-cream); border-bottom: 1px solid #E6D8B8; }
.sd-trustbar-inner {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 18px 20px;
}
.sd-trust-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sd-brown);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease;
}
.sd-trust-item:hover { transform: translateY(-2px); }

/* SECTIONS */
.sd-section {
  padding: 44px;
  margin: 40px auto;
  max-width: 900px;
  border: 1px solid #EEE1BF;
  box-shadow: 0 12px 30px rgba(36,26,16,0.06);
}
.sd-section h2 { color: var(--sd-brown); margin-top: 0; }
.sd-section-sub { max-width: 560px; margin-bottom: 28px; }

.sd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sd-point {
  padding: 18px;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sd-point:hover { background: var(--sd-cream); transform: translateY(-3px); }
.sd-point h3 { color: var(--sd-gold-dark); margin-bottom: 6px; font-size: 1.05rem; }

/* PROCESS */
.sd-process { list-style: none; margin: 0; padding: 0; }
.sd-process li {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #EEE3CC;
}
.sd-process li:last-child { border-bottom: none; }
.sd-step-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sd-gold);
  min-width: 44px;
}
.sd-process h3 { margin: 0 0 4px; color: var(--sd-brown); }

/* VIDEO SECTION */
.sd-video-frame {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sd-brown);
}
.sd-video-frame video,
.sd-video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}
.sd-video-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--sd-cream-soft);
  background:
    radial-gradient(circle at 30% 30%, rgba(214,164,41,0.15), transparent 55%),
    var(--sd-brown);
}
.sd-video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--sd-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--sd-gold-bright);
}
.sd-video-placeholder p { font-size: 0.95rem; opacity: 0.8; }

/* CTA */
.sd-cta {
  text-align: center;
  padding: 54px;
  margin: 40px auto 60px;
  max-width: 900px;
  background: linear-gradient(135deg, var(--sd-cream) 0%, var(--sd-cream-soft) 100%);
}
.sd-cta h2 { color: var(--sd-brown); }

/* FOOTER */
.sd-footer {
  background: var(--sd-brown);
  color: #D8CAAE;
  margin-top: 40px;
}
.sd-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 20px 40px;
}
.sd-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-img { height: 48px; width: auto; display: block; }
.sd-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sd-gold-bright), var(--sd-gold-dark));
  color: var(--sd-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.sd-logo-text { font-size: 1.25rem; font-weight: 700; color: var(--sd-cream); }
.sd-footer-tagline { max-width: 320px; margin-bottom: 16px; }
.sd-footer-address { font-size: 0.9rem; line-height: 1.8; color: #C9BB9E; }

.sd-footer h4 {
  color: var(--sd-cream);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.sd-footer-links ul { list-style: none; margin: 0; padding: 0; }
.sd-footer-links li { margin-bottom: 10px; }
.sd-footer-links a,
.sd-footer-bottom a { color: #C9BB9E; text-decoration: none; }
.sd-footer-links a:hover { color: var(--sd-gold-bright); }

.sd-social-icons { display: flex; gap: 12px; }
.sd-social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #4A3C29;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-cream);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.sd-social-icons a:hover {
  background: var(--sd-gold);
  border-color: var(--sd-gold);
  color: var(--sd-brown);
  transform: translateY(-2px);
}

.sd-footer-bottom {
  border-top: 1px solid #3A2C1B;
  padding: 18px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9C8C6C;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .sd-footer-inner { grid-template-columns: 1fr 1fr; }
  .sd-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .sd-grid-3 { grid-template-columns: 1fr; }
  .sd-section { padding: 28px 20px; }
  .sd-footer-inner { grid-template-columns: 1fr; }
}