
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --green: #174d35;
  --deep: #0b2c1e;
  --cream: #f8f7f0;
  --white: #fff;
  --gold: #d9a441;
  --text: #202820;
  --muted: #68736b;
  --border: #e2e8e1;
  --shadow: 0 14px 38px rgba(11, 44, 30, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: "DM Sans", sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 40px)); margin: auto; }
.section { padding: 82px 0; }
.soft { background: var(--cream); }
.green-section { background: var(--deep); color: white; }

.topbar { background: var(--deep); color: #e5eee7; padding: 8px 0; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 15px; }

.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--green); color: white; font-size: 24px; }
.brand-name { display: block; font: 800 21px/1.2 "Manrope", sans-serif; color: var(--deep); letter-spacing: -.7px; }
.brand-tagline { display: block; color: var(--muted); font-size: 10px; }
.nav-links { display: flex; align-items: center; gap: 21px; font-size: 13px; font-weight: 700; }
.nav-links a:hover, .footer-links a:hover { color: var(--gold); }
.menu-toggle { display: none; background: white; color: var(--green); border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; font-size: 22px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 12px 19px; font-size: 13px; font-weight: 800; transition: .2s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--deep); }
.btn-white { background: white; color: var(--deep); }
.btn-outline { border-color: var(--border); color: var(--green); background: white; }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-block { width: 100%; }

.eyebrow { display: inline-block; background: #e7f0e8; color: var(--green); padding: 7px 13px; border-radius: 30px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.section-heading { max-width: 720px; margin-bottom: 35px; }
.section-heading h2 { font: 800 clamp(29px, 4vw, 43px)/1.2 "Manrope", sans-serif; color: var(--deep); letter-spacing: -1.2px; margin-bottom: 13px; }
.section-heading p { color: var(--muted); font-size: 15px; }

.page-banner { padding: 70px 0; background: var(--cream); }
.page-banner h1 { font: 800 clamp(36px, 5vw, 54px)/1.15 "Manrope", sans-serif; color: var(--deep); letter-spacing: -1.5px; margin-bottom: 15px; }
.page-banner p { color: var(--muted); max-width: 720px; }
.page-banner .eyebrow { margin-bottom: 15px; }

.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: var(--deep); color: white; }
.hero-slides, .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 6s ease; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,30,18,.86), rgba(4,30,18,.58) 48%, rgba(4,30,18,.12)); }
.hero-content { position: relative; z-index: 2; padding: 90px 0; max-width: 730px; }
.hero .eyebrow { background: rgba(255,255,255,.15); color: white; border: 1px solid rgba(255,255,255,.22); }
.hero h1 { font: 800 clamp(42px, 6.5vw, 76px)/1.06 "Manrope", sans-serif; letter-spacing: -2.8px; margin-bottom: 22px; }
.hero h1 span { color: #e8bd61; }
.hero-content p { color: #edf2ed; font-size: 17px; max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.65); color: white; }
.hero-dots { position: absolute; z-index: 3; bottom: 28px; left: max(20px, calc((100% - 1180px) / 2)); display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border: 0; border-radius: 20px; background: rgba(255,255,255,.55); transition: width .3s; }
.hero-dot.active { width: 30px; background: var(--gold); }
.hero-caption { position: absolute; z-index: 3; right: max(20px, calc((100% - 1180px) / 2)); bottom: 28px; color: white; font-size: 11px; background: rgba(0,0,0,.25); padding: 8px 12px; border-radius: 7px; }

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border-radius: 12px; background: #e7f0e8; font-size: 21px; }
.trust-item strong { display: block; color: var(--deep); font-size: 13px; }
.trust-item small { color: var(--muted); font-size: 11px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.card { background: white; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-image { width: 100%; height: 220px; object-fit: cover; background: #e7f0e8; }
.card-body { padding: 22px; }
.card-body h3 { font: 700 19px "Manrope", sans-serif; color: var(--deep); margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 13px; margin-bottom: 15px; }
.text-link { color: var(--green); font-weight: 800; font-size: 13px; }
.text-link:hover { text-decoration: underline; }

.search-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.search-row input, .search-row select { background: white; border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; outline-color: var(--green); }
.search-row input { flex: 1; min-width: 220px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.filter-btn { border: 1px solid var(--border); border-radius: 30px; background: white; color: var(--muted); padding: 9px 14px; font-size: 12px; font-weight: 800; }
.filter-btn.active, .filter-btn:hover { background: var(--green); color: white; border-color: var(--green); }
.notice { padding: 13px 16px; border-radius: 9px; background: #fff5de; color: #765318; font-size: 12px; margin-bottom: 25px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.product-image-wrap { position: relative; height: 215px; overflow: hidden; background: #e7f0e8; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .product-image { transform: scale(1.04); }
.sample-tag { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: 6px; background: white; color: var(--green); font-size: 10px; font-weight: 800; }
.product-type { color: var(--green); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.price { color: var(--green); font: 800 17px "Manrope", sans-serif; }
.price small { display: block; color: var(--muted); font: 11px "DM Sans", sans-serif; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 13px; }
.product-bottom .btn { padding: 9px 11px; font-size: 11px; }
.no-results { display: none; padding: 30px; text-align: center; color: var(--muted); }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.feature-image { width: 100%; height: 420px; object-fit: cover; border-radius: 18px; background: #e7f0e8; }
.feature-copy h2 { font: 800 clamp(29px, 4vw, 42px)/1.2 "Manrope", sans-serif; color: var(--deep); margin-bottom: 16px; }
.feature-copy p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.feature-list { list-style: none; margin: 20px 0; }
.feature-list li { border-bottom: 1px solid var(--border); padding: 9px 0; font-size: 13px; }
.feature-list li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 10px; }

.form-card { background: white; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.form-header { padding: 24px; border-bottom: 1px solid var(--border); }
.form-header h2, .form-header h3 { font: 800 22px "Manrope", sans-serif; color: var(--deep); margin-bottom: 6px; }
.form-header p { color: var(--muted); font-size: 13px; }
.form-body { padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 15px; min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 7px; color: #34453a; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #dce4dc; border-radius: 8px; background: #fcfdfc; outline-color: var(--green); font-size: 13px; }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-note { color: var(--muted); font-size: 11px; margin-top: 12px; }
.form-message { display: none; background: #e7f0e8; color: var(--deep); border-radius: 8px; padding: 12px; margin-top: 14px; font-size: 12px; }

.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step { border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 11px; font-weight: 800; margin-bottom: 15px; }
.step h3 { font: 700 18px "Manrope", sans-serif; color: var(--deep); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13px; }

.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 35px; background: var(--green); color: white; border-radius: 18px; }
.cta-panel h2 { font: 800 clamp(24px, 3.5vw, 35px)/1.2 "Manrope", sans-serif; margin-bottom: 9px; }
.cta-panel p { color: #d9e8dc; font-size: 13px; max-width: 650px; }

.footer { background: var(--deep); color: white; padding: 55px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 35px; }
.footer .brand-name { color: white; }
.footer .brand-tagline { color: #c7d7ca; }
.footer-about { max-width: 290px; color: #c7d7ca; font-size: 12px; margin-top: 15px; }
.footer h4 { font-size: 13px; margin-bottom: 14px; }
.footer-links { display: grid; gap: 9px; color: #c7d7ca; font-size: 12px; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #ffffff24; padding-top: 18px; color: #b9cbbe; font-size: 11px; }
.disclaimer { color: #a9bdae; font-size: 10px; margin-top: 14px; max-width: 850px; }

.whatsapp-float { position: fixed; z-index: 90; bottom: 20px; right: 20px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: white; font-size: 25px; box-shadow: var(--shadow); }

@media (max-width: 1000px) {
  .nav-links { gap: 12px; font-size: 12px; }
  .card-grid, .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 780px) {
  .section { padding: 60px 0; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-extra { display: none; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 15px 22px 22px; background: white; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--border); }
  .hero { min-height: 570px; }
  .hero-content { padding: 80px 0; }
  .hero h1 { letter-spacing: -1.8px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .split-grid { grid-template-columns: 1fr; }
  .feature-image { height: 330px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 28px); }
  .brand-name { font-size: 19px; }
  .hero { min-height: 590px; }
  .hero h1 { font-size: 42px; }
  .hero-content p { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-caption { display: none; }
  .card-grid, .product-grid { grid-template-columns: 1fr; }
  .card-image { height: 205px; }
  .product-image-wrap { height: 230px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-group.full { grid-column: auto; }
  .form-header, .form-body { padding: 19px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-bottom { flex-direction: column; }
}

/* RIKE MART — Beautiful seller form layout */

.seller-page #sellerAuthForm,
.seller-page #sellerProductForm {
  display: block;
}

/* Account and product form cards */
.seller-page .form-card {
  background: #ffffff;
  border: 1px solid #e3eadf;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 14px 40px rgba(26, 68, 40, 0.08);
}

/* Card headings */
.seller-page .form-card h2 {
  font-size: 25px;
  font-weight: 750;
  color: #174c2e;
  margin-bottom: 10px;
}

.seller-page .form-card > p.muted {
  font-size: 14px;
  margin-bottom: 26px;
  line-height: 1.8;
}

/* Space between each field */
.seller-page .field {
  margin-bottom: 22px;
}

.seller-page .field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #304b38;
  margin-bottom: 9px;
}

/* Input fields */
.seller-page #sellerAuthForm input:not([type="file"]),
.seller-page #sellerProductForm input:not([type="file"]),
.seller-page #sellerProductForm select,
.seller-page #sellerProductForm textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 14px 16px;
  background: #f8faf6;
  border: 1px solid #dce6d9;
  border-radius: 12px;
  color: #263c2c;
  font-family: inherit;
  font-size: 14px;
  transition: all .2s ease;
}

.seller-page #sellerProductForm textarea {
  min-height: 130px;
  resize: vertical;
}

.seller-page #sellerAuthForm input:focus,
.seller-page #sellerProductForm input:focus,
.seller-page #sellerProductForm select:focus,
.seller-page #sellerProductForm textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #36804b;
  box-shadow: 0 0 0 4px rgba(54, 128, 75, .12);
}

.seller-page #sellerAuthForm input::placeholder,
.seller-page #sellerProductForm input::placeholder,
.seller-page #sellerProductForm textarea::placeholder {
  color: #9ba89c;
}

/* Product information arranged neatly in columns */
.seller-page #sellerProductForm .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

/* Product image upload area */
.seller-page #sellerProductForm input[type="file"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 25px 18px;
  background: #f4f9f0;
  border: 2px dashed #a9cda5;
  border-radius: 15px;
  color: #47664b;
  font-size: 13px;
  cursor: pointer;
}

.seller-page #sellerProductForm input[type="file"]::file-selector-button {
  padding: 11px 15px;
  margin-right: 12px;
  border: none;
  border-radius: 9px;
  background: #dcefd5;
  color: #205b34;
  font-weight: 700;
  cursor: pointer;
}

.seller-page #imagePreview:not([hidden]) {
  display: block;
  max-width: 100% !important;
  width: 260px;
  max-height: 220px !important;
  object-fit: cover;
  border-radius: 14px !important;
  border: 1px solid #e0e8dc;
}

/* Instructions and trust message */
.seller-page .notice {
  padding: 19px 20px;
  margin-bottom: 28px;
  border-radius: 14px;
  border: 1px solid #d6e8ce;
  background: #f1f8ec;
  color: #426247;
  line-height: 1.8;
}

.seller-page .notice strong {
  color: #205b34;
}

/* Large, attractive action buttons */
.seller-page #sellerAuthForm button,
.seller-page #sellerProductForm button {
  min-height: 50px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.seller-page #sellerAuthForm .btn-primary,
.seller-page #sellerProductForm .btn-primary {
  background: #247343;
  border-color: #247343;
  color: #ffffff;
}

.seller-page #sellerAuthForm .btn-primary:hover,
.seller-page #sellerProductForm .btn-primary:hover {
  background: #185a32;
  transform: translateY(-1px);
}

.seller-page #sellerAuthForm #toggleAuthMode,
.seller-page #sellerAuthForm #sellerLogoutButton {
  margin-top: 10px;
}

/* Form messages */
.seller-page #authMessage,
.seller-page #sellerFormMessage {
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* Mobile layout */
@media (max-width: 600px) {
  .seller-page .form-card {
    padding: 21px;
    border-radius: 16px;
  }

  .seller-page #sellerProductForm .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .seller-page .form-card h2 {
    font-size: 22px;
  }
}


/* RIKE MART seller listing header and progress */

.seller-page .product-listing-card {
  grid-column: 1 / -1;
}

.seller-page .listing-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 34px;
  padding: 20px;
  background: #f5f9f1;
  border: 1px solid #e1ecda;
  border-radius: 15px;
}

.seller-page .progress-step {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.seller-page .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e1e8dd;
  color: #647566;
  font-size: 14px;
  font-weight: 800;
}

.seller-page .progress-step.active .step-number {
  background: #247343;
  color: #fff;
}

.seller-page .step-label {
  color: #68766a;
  font-size: 12px;
  font-weight: 700;
}

.seller-page .progress-step.active .step-label {
  color: #205b34;
}

.seller-page .progress-line {
  flex: 1;
  min-width: 12px;
  height: 2px;
  background: #d8e4d2;
}

.seller-page .listing-heading {
  margin-bottom: 25px;
}

.seller-page .listing-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #34804b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.seller-page .listing-heading h2 {
  margin: 0 0 10px;
  color: #173f2b;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.8px;
}

.seller-page .listing-heading p {
  max-width: 580px;
  margin: 0;
  color: #748075;
  font-size: 14px;
  line-height: 1.8;
}

.seller-page .product-listing-card .notice {
  margin-bottom: 30px;
}

@media (max-width: 520px) {
  .seller-page .listing-progress {
    gap: 5px;
    padding: 13px 9px;
  }

  .seller-page .progress-step {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .seller-page .step-label {
    font-size: 10px;
  }

  .seller-page .progress-line {
    min-width: 8px;
    margin-bottom: 18px;
  }
}

/* Keep seller account and product listing separate */

.seller-page #sellerProductForm {
  display: block;
}

.seller-page .form-card:has(#sellerAuthForm) {
  display: block;
}

.seller-page .form-card:has(#sellerProductForm)[hidden],
.seller-page .form-card:has(#sellerAuthForm)[hidden] {
  display: none !important;
}

.seller-page [hidden] {
  display: none !important;
}

/* Center the seller account card before login */
.seller-page .form-card:has(#sellerAuthForm) {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 540px;
  justify-self: center;
  box-sizing: border-box;
}

/* Keep the listing card full-width after login */
.seller-page .form-card:has(#sellerProductForm) {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}

/* RIKE MART — Verification page */
.verification-container {
  width: min(100% - 32px, 760px);
  margin: 40px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #e5e9e3;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(25, 55, 35, 0.07);
}

.verification-container h1 {
  color: #205c3b;
  margin: 0 0 12px;
  line-height: 1.25;
}

.verification-container p {
  line-height: 1.7;
  color: #536158;
}

#verificationForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

#verificationForm label {
  display: block;
  margin-top: 10px;
  color: #263b2d;
  font-weight: 600;
}

#verificationForm input:not([type="file"]),
#verificationForm textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d3ddd4;
  border-radius: 8px;
  background: #fff;
  color: #243329;
  font: inherit;
}

#verificationForm input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px dashed #b8cbb9;
  border-radius: 8px;
  background: #f8faf6;
  font: inherit;
}

#verificationForm input:focus,
#verificationForm textarea:focus {
  outline: 2px solid #43865a;
  outline-offset: 2px;
}

#verificationForm small {
  color: #66756a;
  line-height: 1.5;
}

#submitVerification {
  margin-top: 20px;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: #205c3b;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#submitVerification:hover {
  background: #17472d;
}

#submitVerification:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#verificationStatus {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f2f6ef;
  color: #205c3b;
  font-weight: 600;
}

@media (max-width: 600px) {
  .verification-container {
    width: auto;
    margin: 20px 12px;
    padding: 20px 16px;
  }

  .verification-container h1 {
    font-size: 1.6rem;
  }
}
/* RIKE MART — Admin dashboard buttons */

#adminLoginForm button,
#refreshApplications,
#adminLogout,
#adminLoginForm button[type="submit"] {
  background: #1f5d3a;
  color: #ffffff;
  border: 1px solid #1f5d3a;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}

#adminLoginForm button:hover,
#refreshApplications:hover,
#adminLogout:hover,
#adminLoginForm button[type="submit"]:hover {
  background: #17472d;
  border-color: #17472d;
  box-shadow: 0 4px 10px rgba(31, 93, 58, 0.18);
  transform: translateY(-1px);
}

#adminLoginForm button:focus-visible,
#refreshApplications:focus-visible,
#adminLogout:focus-visible {
  outline: 3px solid #d8b76a;
  outline-offset: 3px;
}

#adminLoginForm button:disabled,
#refreshApplications:disabled,
#adminLogout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#refreshApplications {
  margin-right: 8px;
}

@media (max-width: 480px) {
  #adminLoginForm button,
  #refreshApplications,
  #adminLogout {
    padding: 11px 16px;
    font-size: 14px;
  }

  #refreshApplications {
    margin: 0 0 8px;
  }
}
/* RIKE MART — Admin logout button */

#adminLogout {
  background: #b42318;
  border-color: #b42318;
  color: #ffffff;
}

#adminLogout:hover {
  background: #8f1d14;
  border-color: #8f1d14;
  box-shadow: 0 4px 10px rgba(180, 35, 24, 0.18);
}

/* RIKE MART — Artistic seller listing cards */
.seller-page #sellerListingsCard {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(145deg, #ffffff 0%, #f5f8f0 100%);
  border: 1px solid #e0e9dc;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(28, 76, 43, 0.08);
}

.seller-page #sellerListingsCard > h2 {
  color: #174b2c;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}

.seller-page #sellerListingsCard > p {
  color: #657568;
  line-height: 1.8;
  max-width: 650px;
}

.seller-page #sellerListingsContainer > .form-card {
  margin-top: 20px;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid #e4ebe0;
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(31, 73, 41, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.seller-page #sellerListingsContainer > .form-card:hover {
  border-color: #b8d3b7;
  box-shadow: 0 12px 28px rgba(31, 73, 41, 0.09);
}

.seller-page #sellerListingsContainer h3 {
  margin: 0 0 18px;
  color: #174b2c;
  font-size: 23px;
  letter-spacing: -0.4px;
}

.seller-page #sellerListingsContainer p {
  color: #58685b;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.seller-page #sellerListingsContainer strong {
  color: #263f2c;
}

.seller-page #sellerListingsContainer .seller-removal-form {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e8eee4;
  display: grid;
  gap: 16px;
}

.seller-page #sellerListingsContainer .field {
  margin: 0;
}

.seller-page #sellerListingsContainer label {
  display: block;
  margin-bottom: 8px;
  color: #294a32;
  font-weight: 700;
  font-size: 14px;
}

.seller-page #sellerListingsContainer select,
.seller-page #sellerListingsContainer textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #d5e1d2;
  border-radius: 11px;
  background: #fbfcf9;
  color: #243b29;
  font: inherit;
}

.seller-page #sellerListingsContainer select:focus,
.seller-page #sellerListingsContainer textarea:focus {
  outline: 3px solid rgba(36, 115, 67, 0.14);
  border-color: #39804c;
}

.seller-page #sellerListingsContainer textarea {
  min-height: 100px;
  resize: vertical;
}

.seller-page #sellerListingsContainer .seller-removal-form button {
  justify-self: start;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 11px;
  background: #205c3b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.seller-page #sellerListingsContainer .seller-removal-form button:hover {
  background: #17472d;
  transform: translateY(-1px);
}

.seller-page #sellerListingsContainer .seller-removal-form button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.seller-page #sellerListingsContainer .seller-removal-form button:focus-visible {
  outline: 3px solid #d8b76a;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .seller-page #sellerListingsCard {
    padding: 20px 15px;
    border-radius: 17px;
  }

  .seller-page #sellerListingsContainer > .form-card {
    padding: 19px 15px;
    border-radius: 14px;
  }

  .seller-page #sellerListingsContainer .seller-removal-form button {
    width: 100%;
    justify-self: stretch;
  }
}

/* =========================================
   RIKE MART — SELLER PROFILE ENHANCEMENTS
   Scoped to the seller page only
   ========================================= */

body.seller-page #sellerProfileCard {
  position: relative;
  overflow: hidden;
  max-width: 850px;
  margin: 28px auto;
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(145deg, #ffffff 0%, #f8faf6 100%);
  border: 1px solid #e1e9df;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(23, 77, 53, 0.09);
}

body.seller-page #sellerProfileCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #174d35, #5b9b65, #d9a441);
}

body.seller-page #sellerProfileCard .seller-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

body.seller-page #sellerProfileCard .seller-profile-heading h2 {
  margin: 8px 0;
  color: #174d35;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.6px;
}

body.seller-page #sellerProfileCard .seller-profile-heading .eyebrow {
  color: #64836c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.8px;
}

body.seller-page #sellerProfileCard .seller-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 5px solid #e4efe4;
  border-radius: 50%;
  background: linear-gradient(145deg, #174d35, #286c49);
  box-shadow: 0 5px 16px rgba(23, 77, 53, 0.17);
  font-size: 2rem;
}

/* Verification status panel */

body.seller-page #sellerProfileCard .seller-verification-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid #e1e9df;
  border-radius: 16px;
  background: #f3f7f0;
}

body.seller-page #sellerProfileCard .seller-verification-panel > .muted:first-child {
  color: #526b59;
  font-size: 0.9rem;
  font-weight: 700;
}

body.seller-page #sellerProfileCard #sellerVerificationMessage {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #dfe8dc;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Base verification badge */

body.seller-page #sellerProfileCard .verification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1px;
  line-height: 1.2;
}

/* Unverified */

body.seller-page #sellerProfileCard .verification-badge.unverified {
  color: #8a5b00;
  background: #fff3d6;
  border-color: #f0d99b;
}

body.seller-page #sellerProfileCard .verification-badge.unverified::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

/* Pending */

body.seller-page #sellerProfileCard .verification-badge.pending,
body.seller-page #sellerProfileCard .verification-badge.verification_pending {
  color: #2857a4;
  background: #eaf1ff;
  border-color: #c8d8ff;
}

body.seller-page #sellerProfileCard .verification-badge.pending::before,
body.seller-page #sellerProfileCard .verification-badge.verification_pending::before {
  content: "◷";
  font-size: 1.1rem;
}

/* Verified */

body.seller-page #sellerProfileCard .verification-badge.verified {
  color: #17683b;
  background: #e3f6e9;
  border-color: #b5e4c4;
}

body.seller-page #sellerProfileCard .verification-badge.verified::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  background: #21834b;
  font-size: 12px;
}

/* Rejected */

body.seller-page #sellerProfileCard .verification-badge.rejected {
  color: #a12727;
  background: #ffebeb;
  border-color: #f3c5c5;
}

body.seller-page #sellerProfileCard .verification-badge.rejected::before {
  content: "×";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  background: #c33b3b;
  font-size: 16px;
  font-weight: 800;
}

/* Profile form fields */

body.seller-page #sellerProfileCard #sellerProfileForm {
  display: grid;
  gap: 19px;
}

body.seller-page #sellerProfileCard #sellerProfileForm .field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
}

body.seller-page #sellerProfileCard #sellerProfileForm label {
  color: #294b36;
  font-size: 0.92rem;
  font-weight: 700;
}

body.seller-page #sellerProfileCard #sellerProfileForm input {
  box-sizing: border-box;
  width: 100%;
  min-height: 49px;
  padding: 13px 15px;
  border: 1px solid #d7e2d5;
  border-radius: 11px;
  outline: none;
  background: #ffffff;
  color: #263d2e;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.seller-page #sellerProfileCard #sellerProfileForm input:focus {
  border-color: #43865a;
  box-shadow: 0 0 0 4px rgba(67, 134, 90, 0.12);
}

body.seller-page #sellerProfileCard #sellerProfileForm input[readonly] {
  background: #f0f3ef;
  color: #647267;
  cursor: default;
}

body.seller-page #sellerProfileCard #sellerProfileForm small {
  font-size: 0.82rem;
  line-height: 1.6;
}

body.seller-page #sellerProfileCard #saveSellerProfile {
  width: 100%;
  min-height: 49px;
  margin-top: 4px;
  border-radius: 12px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.seller-page #sellerProfileCard #saveSellerProfile:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(23, 77, 53, 0.16);
}

body.seller-page #sellerProfileCard #saveSellerProfile:focus-visible {
  outline: 3px solid #d9a441;
  outline-offset: 3px;
}

/* Mobile layout */

@media (max-width: 600px) {
  body.seller-page #sellerProfileCard {
    margin: 18px auto;
    padding: 22px 17px;
    border-radius: 17px;
  }

  body.seller-page #sellerProfileCard .seller-profile-heading {
    gap: 12px;
  }

  body.seller-page #sellerProfileCard .seller-avatar {
    width: 58px;
    height: 58px;
    border-width: 4px;
    font-size: 1.6rem;
  }

  body.seller-page #sellerProfileCard .seller-verification-panel {
    padding: 15px;
    gap: 12px;
  }

  body.seller-page #sellerProfileCard .verification-badge {
    padding: 7px 9px;
    font-size: 0.76rem;
  }
}

/* RIKE MART seller profile: faint real produce photo */
body.seller-page #sellerProfileCard {
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.91),
      rgba(248, 250, 245, 0.94)
    ),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;

  backdrop-filter: blur(2px);
}

/* Keep the profile information clear and readable */
body.seller-page #sellerProfileCard .seller-profile-heading,
body.seller-page #sellerProfileCard .seller-verification-panel,
body.seller-page #sellerProfileCard #sellerProfileForm {
  position: relative;
  z-index: 1;
}

/* Keep the faint produce image subtle on mobile too */
@media (max-width: 600px) {
  body.seller-page #sellerProfileCard {
    background-position: center;
  }
}

/* RIKE MART: signed-in account indicator */
body.seller-page .seller-login-status:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 185px;
  max-width: 245px;
  padding: 10px 15px;
  margin-left: auto;
  border: 1px solid #d5e5d4;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2f8ef, #e7f0e5);
  box-shadow: 0 4px 14px rgba(23, 77, 53, 0.07);
}

body.seller-page .seller-login-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #286c49, #103b29);
  color: #ffffff;
  font-size: 25px;
}

body.seller-page .seller-login-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.seller-page .seller-login-welcome {
  color: #68796c;
  font-size: 0.76rem;
}

body.seller-page #sellerLoginName {
  overflow: hidden;
  color: #174d35;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.seller-page .seller-login-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #466c50;
  font-size: 0.74rem;
}

body.seller-page .seller-login-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #359653;
  box-shadow: 0 0 0 3px rgba(53, 150, 83, 0.12);
}

@media (max-width: 850px) {
  body.seller-page .seller-login-status:not([hidden]) {
    min-width: 0;
    max-width: 100%;
    margin: 12px 0;
  }
}

/* RIKE MART brand identity */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 49px;
  height: 49px;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  color: #176B45;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
}

.brand-tagline {
  color: #647067;
  font-size: 0.7rem;
  line-height: 1.3;
}

.footer .brand-logo {
  width: 43px;
  height: 43px;
}

@media (max-width: 480px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }
}

/* RIKE MART: Control product image size */
.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

/* RIKE MART web application navigation */
.navbar {
  gap: 18px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-actions[hidden],
.cart-count[hidden] {
  display: none;
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #174d35;
  color: #fff;
  font-size: 12px;
}

.nav-login {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.nav-register {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .nav-actions {
    gap: 12px;
  }

  .account-actions {
    gap: 8px;
  }

  .nav-register {
    padding: 10px 12px;
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-actions {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: 0;
  }

  .nav-links {
    order: 4;
    width: 100%;
  }

  .nav-links:not(.open) {
    display: none;
  }
}

/* =========================================
   RIKE MART — AUTHENTICATION PAGE STYLING
   ========================================= */

body:has(#buyerRegisterForm),
body:has(#buyerLoginForm),
body:has(#buyerAccountPanel) {
  min-height: 100vh;
  background: #f5f7f2;
}

/* Consistent header */
body:has(#buyerRegisterForm) .header,
body:has(#buyerLoginForm) .header,
body:has(#buyerAccountPanel) .header {
  background: #fff;
  border-bottom: 1px solid #e5eadf;
  box-shadow: 0 3px 14px rgba(25, 65, 42, 0.04);
}

body:has(#buyerRegisterForm) .navbar,
body:has(#buyerLoginForm) .navbar,
body:has(#buyerAccountPanel) .navbar {
  min-height: 82px;
}

/* Page background */
body:has(#buyerRegisterForm) main,
body:has(#buyerLoginForm) main,
body:has(#buyerAccountPanel) main {
  min-height: calc(100vh - 82px);
  padding: 64px 0;
  background:
    radial-gradient(ellipse at top left, rgba(215, 231, 207, 0.5), transparent 48%),
    #f5f7f2;
}

/* Form card */
body:has(#buyerRegisterForm) .form-card,
body:has(#buyerLoginForm) .form-card,
body:has(#buyerAccountPanel) .form-card {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 38px;
  background: #fff;
  border: 1px solid #e5eadf;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(25, 65, 42, 0.08);
}

/* Headings */
body:has(#buyerRegisterForm) .form-card h1,
body:has(#buyerLoginForm) .form-card h1,
body:has(#buyerAccountPanel) .form-card h1 {
  margin: 8px 0 12px;
  color: #174d35;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.8px;
}

body:has(#buyerRegisterForm) .eyebrow,
body:has(#buyerLoginForm) .eyebrow,
body:has(#buyerAccountPanel) .eyebrow {
  color: #9a7424;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

body:has(#buyerRegisterForm) .form-card > .muted,
body:has(#buyerLoginForm) .form-card > .muted,
body:has(#buyerAccountPanel) .form-card > .muted {
  color: #68766b;
  line-height: 1.7;
}

/* Form fields */
body:has(#buyerRegisterForm) .field,
body:has(#buyerLoginForm) .field {
  margin: 22px 0;
}

body:has(#buyerRegisterForm) .field label,
body:has(#buyerLoginForm) .field label {
  display: block;
  margin-bottom: 8px;
  color: #253c2e;
  font-size: 14px;
  font-weight: 700;
}

body:has(#buyerRegisterForm) .field input,
body:has(#buyerLoginForm) .field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #23372a;
  background: #fbfcf9;
  border: 1px solid #dce4d8;
  border-radius: 10px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

body:has(#buyerRegisterForm) .field input:focus,
body:has(#buyerLoginForm) .field input:focus {
  background: #fff;
  border-color: #28754e;
  box-shadow: 0 0 0 3px rgba(40, 117, 78, 0.12);
}

body:has(#buyerRegisterForm) .field input::placeholder,
body:has(#buyerLoginForm) .field input::placeholder {
  color: #a0aaa0;
}

body:has(#buyerRegisterForm) .field small,
body:has(#buyerLoginForm) .field small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
}

/* Primary action */
body:has(#buyerRegisterForm) #buyerRegisterButton,
body:has(#buyerLoginForm) #buyerLoginButton {
  width: 100%;
  min-height: 49px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: #174d35;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

body:has(#buyerRegisterForm) #buyerRegisterButton:hover,
body:has(#buyerLoginForm) #buyerLoginButton:hover {
  background: #236844;
  transform: translateY(-1px);
}

body:has(#buyerRegisterForm) #buyerRegisterButton:disabled,
body:has(#buyerLoginForm) #buyerLoginButton:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Links */
body:has(#buyerRegisterForm) .form-card a,
body:has(#buyerLoginForm) .form-card a {
  color: #176440;
  font-weight: 700;
  text-decoration: none;
}

body:has(#buyerRegisterForm) .form-card a:hover,
body:has(#buyerLoginForm) .form-card a:hover {
  text-decoration: underline;
}

/* Feedback messages */
body:has(#buyerRegisterForm) .result,
body:has(#buyerLoginForm) .result,
body:has(#buyerAccountPanel) .result {
  margin: 14px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body:has(#buyerRegisterForm) .result.error,
body:has(#buyerLoginForm) .result.error,
body:has(#buyerAccountPanel) .result.error {
  padding: 12px 14px;
  color: #922f2f;
  background: #fff0f0;
  border: 1px solid #f0d1d1;
  border-radius: 9px;
}

body:has(#buyerRegisterForm) .result.success,
body:has(#buyerLoginForm) .result.success,
body:has(#buyerAccountPanel) .result.success {
  padding: 12px 14px;
  color: #185d39;
  background: #eef8f0;
  border: 1px solid #d4ead9;
  border-radius: 9px;
}

/* Space below forms */
body:has(#buyerRegisterForm) .form-card form + p,
body:has(#buyerLoginForm) .form-card form + p {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
}

body:has(#buyerRegisterForm) .form-card p.small,
body:has(#buyerLoginForm) .form-card p.small,
body:has(#buyerAccountPanel) .form-card p.small {
  font-size: 12px;
  line-height: 1.7;
}

/* Account details */
body:has(#buyerAccountPanel) .seller-verification-panel {
  margin: 24px 0;
  padding: 20px;
  background: #f7faf5;
  border: 1px solid #e0e9dc;
  border-radius: 12px;
}

body:has(#buyerAccountPanel) .seller-verification-panel p {
  margin: 12px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body:has(#buyerAccountPanel) .seller-verification-panel p strong {
  display: inline-block;
  min-width: 125px;
  color: #244b32;
}

body:has(#buyerAccountPanel) .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

body:has(#buyerAccountPanel) .hero-actions .btn {
  flex: 1 1 140px;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

/* Mobile layout */
@media (max-width: 600px) {
  body:has(#buyerRegisterForm) main,
  body:has(#buyerLoginForm) main,
  body:has(#buyerAccountPanel) main {
    padding: 32px 0;
  }

  body:has(#buyerRegisterForm) .form-card,
  body:has(#buyerLoginForm) .form-card,
  body:has(#buyerAccountPanel) .form-card {
    padding: 25px 20px;
    border-radius: 15px;
  }

  body:has(#buyerAccountPanel) .seller-verification-panel p strong {
    display: block;
    min-width: 0;
    margin-bottom: 3px;
  }

  body:has(#buyerAccountPanel) .hero-actions {
    flex-direction: column;
  }

  body:has(#buyerAccountPanel) .hero-actions .btn {
    width: 100%;
  }
}

/* RIKE MART marketplace account navigation */
.navbar {
  gap: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-actions[hidden],
.marketplace-user-badge[hidden] {
  display: none !important;
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 50px;
  background: #176b45;
  color: #fff;
  font-size: 12px;
}

.nav-login {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.marketplace-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marketplace-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.marketplace-user-greeting {
  font-size: 12px;
  opacity: 0.75;
}

.marketplace-user-details strong {
  font-size: 14px;
}

.marketplace-user-role {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 4px;
  background: #e6f3eb;
  color: #176b45;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .nav-actions {
    gap: 10px;
  }

  .marketplace-user-badge {
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-actions {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .nav-links {
    order: 4;
    width: 100%;
  }
}

/* RIKE MART product details */
.product-details-layout {
  max-width: 1000px;
  margin: 24px auto;
}

.product-details-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}

.product-details-image {
  min-height: 350px;
  background: #f5f5f5;
}

.product-details-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.product-details-content {
  padding: 28px;
}

.product-details-content h1 {
  margin: 12px 0;
}

.product-details-content .price {
  font-size: 1.5rem;
  font-weight: 700;
}

.product-details-content .price small {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
}

.product-detail-note {
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 0.9rem;
}

.product-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.product-card {
  cursor: pointer;
}

.product-card button {
  cursor: pointer;
}

@media (max-width: 700px) {
  .product-details-card {
    grid-template-columns: 1fr;
  }

  .product-details-image,
  .product-details-image img {
    min-height: 250px;
  }

  .product-details-content {
    padding: 20px;
  }
}

/* =========================================
   RIKE MART — SELLER LOGIN STATUS
   ========================================= */

body.seller-page .seller-login-status:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: min(100%, 420px);
  min-width: 0;
  margin: 14px 0;
  padding: 12px 16px;
  background: #f8faf6;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
}

body.seller-page .seller-login-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  font-size: 21px;
  background: var(--green);
}

body.seller-page .seller-login-details {
  min-width: 0;
  gap: 3px;
}

body.seller-page .seller-login-welcome {
  color: var(--muted);
  font-size: 12px;
}

body.seller-page #sellerLoginName {
  display: block;
  max-width: 100%;
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.seller-page .seller-login-indicator {
  font-size: 12px;
  color: var(--green);
}

/* =========================================
   RIKE MART — SELLER PICKUP ADDRESS
   Match profile and product form styling
   ========================================= */

body.seller-page #sellerProfileCard .seller-pickup-section {
  position: relative;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

body.seller-page #sellerProfileCard .seller-pickup-section h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

body.seller-page #sellerProfileCard .seller-pickup-section > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

body.seller-page #sellerPickupForm {
  display: grid;
  gap: 18px;
}

body.seller-page #sellerPickupForm .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

body.seller-page #sellerPickupForm label {
  display: block;
  margin: 0;
  color: #294b36;
  font-size: 13px;
  font-weight: 700;
}

body.seller-page #sellerPickupForm input,
body.seller-page #sellerPickupForm textarea {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #d7e2d5;
  border-radius: 11px;
  background: #fff;
  color: #263d2e;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

body.seller-page #sellerPickupForm input {
  min-height: 49px;
}

body.seller-page #sellerPickupForm textarea {
  min-height: 105px;
  resize: vertical;
}

body.seller-page #sellerPickupForm input:focus,
body.seller-page #sellerPickupForm textarea:focus {
  outline: none;
  border-color: #43865a;
  box-shadow: 0 0 0 4px rgba(67, 134, 90, .12);
}

body.seller-page #sellerPickupForm input::placeholder,
body.seller-page #sellerPickupForm textarea::placeholder {
  color: #9ba89c;
}

body.seller-page #sellerPickupForm .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

body.seller-page #sellerPickupForm .result {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
}

body.seller-page #sellerPickupForm #savePickupButton {
  width: 100%;
  min-height: 49px;
  padding: 13px 18px;
  border: 1px solid var(--green);
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

body.seller-page #sellerPickupForm #savePickupButton:hover {
  background: var(--deep);
  transform: translateY(-1px);
}

body.seller-page #sellerPickupForm #savePickupButton:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

body.seller-page #sellerPickupForm #savePickupButton:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  body.seller-page .seller-login-status:not([hidden]) {
    width: 100%;
    max-width: 100%;
    padding: 11px 13px;
  }

  body.seller-page #sellerProfileCard .seller-pickup-section {
    margin-top: 24px;
    padding-top: 23px;
  }

  body.seller-page #sellerPickupForm .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Seller verification indicator */
body.seller-page .seller-verification-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  cursor: help;
}

body.seller-page .seller-verification-status.is-verified {
  background: #18864b;
}

body.seller-page .seller-verification-status.is-unverified {
  background: #b7791f;
}

body.seller-page .seller-verification-status svg {
  width: 19px;
  height: 19px;
}

body.seller-page .seller-verification-status:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* RIKE MART — Consistent seller form field styling */
body.seller-page #sellerPickupForm input,
body.seller-page #sellerPickupForm select,
body.seller-page #sellerPickupForm textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8e0d8;
  border-radius: 10px;
  background-color: #fff;
  color: #26352b;
  font-family: inherit;
  font-size: 14px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Give the State dropdown a clean, consistent appearance */
body.seller-page #sellerPickupForm select {
  min-height: 46px;
  cursor: pointer;
  appearance: auto;
}

/* Keep text areas comfortable to use */
body.seller-page #sellerPickupForm textarea {
  min-height: 110px;
  resize: vertical;
}

/* Match the focus style across every field */
body.seller-page #sellerPickupForm input:focus,
body.seller-page #sellerPickupForm select:focus,
body.seller-page #sellerPickupForm textarea:focus {
  border-color: #287a45;
  box-shadow: 0 0 0 3px rgba(40, 122, 69, 0.12);
}

/* Make field labels consistent */
body.seller-page #sellerPickupForm label {
  display: block;
  margin-bottom: 8px;
  color: #26352b;
  font-size: 13px;
  font-weight: 600;
}

/* Keep dropdown options readable */
body.seller-page #sellerPickupForm select option {
  background-color: #fff;
  color: #26352b;
}

/* Keep the fields neat on smaller screens */
@media (max-width: 600px) {
  body.seller-page #sellerPickupForm input,
  body.seller-page #sellerPickupForm select,
  body.seller-page #sellerPickupForm textarea {
    font-size: 16px;
  }
}

/* RIKE MART — Pickup instructions box */
body.seller-page #pickupInstructions {
  width: 100%;
  min-height: 100px;
  padding: 14px 15px;
  box-sizing: border-box;
  border: 1px solid #d8e0d8;
  border-radius: 10px;
  background: #fff;
  color: #26352b;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.seller-page #pickupInstructions::placeholder {
  color: #929b93;
  opacity: 1;
}

body.seller-page #pickupInstructions:focus {
  border-color: #287a45;
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 122, 69, 0.12);
}

/* =========================================
   RIKE MART — App welcome screen
========================================= */

.app-splash[hidden],
.install-app-button[hidden] {
  display: none !important;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #103c2b 0%, #17633e 55%, #247d4a 100%);
  color: #fff;
  opacity: 1;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.app-splash.is-leaving {
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 2;
  width: min(88%, 380px);
  text-align: center;
  animation: splash-rise 0.7s ease both;
}

.splash-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  padding: 10px;
  margin-bottom: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.splash-overline {
  margin: 0 0 12px;
  color: #d8edb0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
}

.splash-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 10vw, 56px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
}

.splash-content h1 span {
  color: #f4c95d;
}

.splash-tagline {
  margin: 16px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.splash-loader {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 38px;
}

.splash-loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4c95d;
  animation: splash-pulse 0.9s ease-in-out infinite alternate;
}

.splash-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.splash-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

.splash-decoration {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.splash-decoration-one {
  width: 360px;
  height: 360px;
  top: -160px;
  right: -130px;
}

.splash-decoration-two {
  width: 460px;
  height: 460px;
  bottom: -260px;
  left: -180px;
}

@keyframes splash-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splash-pulse {
  from { opacity: 0.35; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.15); }
}

/* Logo-only install button */
.install-app-button {
  position: fixed;
  z-index: 9990;
  right: 18px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 5px;
  border: 2px solid #f4c95d;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.install-app-button:hover {
  transform: translateY(-3px);
}

.install-app-button img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .splash-content,
  .splash-loader span {
    animation: none;
  }

  .app-splash {
    transition: none;
  }
}

/* RIKE MART — Improved mobile marketplace layout */

#productGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

#productGrid > * {
  min-width: 0;
  max-width: 100%;
}

#productGrid img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

#productGrid h3,
#productGrid p {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  #productGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #productGrid > * {
    padding: 10px;
  }

  #productGrid h3 {
    font-size: 15px;
    line-height: 1.4;
  }

  #productGrid p {
    font-size: 14px;
    line-height: 1.5;
  }

  #productGrid button {
    max-width: 100%;
    white-space: normal;
  }
}

/* RIKE MART — Mobile homepage layout fix */
@media screen and (max-width: 600px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .header .navbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    max-width: 100%;
    min-width: 0;
  }

  .brand-logo {
    max-width: 48px;
    height: auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .nav-actions {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .hero,
  .hero-content,
  .hero-inner {
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero img,
  .hero-slide img,
  .section img {
    max-width: 100%;
  }

  .hero .btn,
  .cta-panel .btn {
    max-width: 100%;
    white-space: normal;
  }

  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* RIKE MART — Marketplace and Cart mobile layout */
@media screen and (max-width: 600px) {

  /* Marketplace content */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }

  .product-card img {
    width: 100%;
    max-width: 100%;
    height: 140px;
    object-fit: cover;
  }

  .product-card h3,
  .product-card p {
    overflow-wrap: anywhere;
  }

  .product-card h3 {
    font-size: 15px;
    line-height: 1.35;
  }

  .product-card .btn,
  .product-card button {
    max-width: 100%;
    white-space: normal;
  }

  /* Search, sort and category controls */
  #productSearch,
  #sortProducts {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Cart items and cart content */
  .cart-container,
  .cart-content,
  .cart-items,
  .cart-summary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cart-item {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .cart-item img {
    max-width: 100%;
    object-fit: cover;
  }

  .cart-item button,
  .cart-summary button,
  .cart-container button {
    max-width: 100%;
    white-space: normal;
  }

  /* Prevent wide tables or cart sections from breaking the screen */
  .cart-container table,
  .cart-content table {
    width: 100%;
    max-width: 100%;
  }

  /* Avoid horizontal page scrolling */
  body {
    overflow-x: hidden;
  }
}

/* RIKE MART — Mobile menu for marketplace and cart */
.mobile-page-menu {
  display: none;
}

@media screen and (max-width: 600px) {
  .mobile-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mobile-page-menu {
    display: block;
    position: relative;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 24px;
    cursor: pointer;
  }

  .mobile-menu-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    min-width: 180px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .mobile-menu-links.open {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-links a {
    display: block;
    padding: 11px 12px;
    color: #222;
    text-decoration: none;
    border-radius: 6px;
  }

  .mobile-menu-links a:hover {
    background: #f3f5f2;
  }

  /* Hide the original navigation links on these pages only.
     Apply this class to the existing navigation container. */
  .marketplace-page .desktop-nav,
  .cart-page .desktop-nav {
    display: none;
  }
}

/* RIKE MART marketplace mobile navigation */

.mobile-menu-button {
  display: none;
}

@media screen and (max-width: 600px) {
  .header .navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .header .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-menu-button {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    background: #fff;
    color: #176B45;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
  }

  .mobile-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    max-height: 75vh;
    overflow-y: auto;
  }

  .mobile-menu-panel.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .mobile-menu-panel .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .mobile-menu-panel .nav-links a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
  }

  .mobile-menu-panel .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .mobile-menu-panel .nav-cart,
  .mobile-menu-panel .nav-login,
  .mobile-menu-panel .nav-register {
    display: block;
    width: 100%;
    text-align: left;
  }

  .mobile-menu-panel .marketplace-user-badge {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .mobile-menu-panel .marketplace-user-details {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media screen and (min-width: 601px) {
  .mobile-menu-panel {
    display: contents;
  }
}
