/* IndusHub marketplace skin — Amazon density, Myntra clarity, Alibaba B2B tone */

/* Palette overrides live in design-tokens.css — this file adds layout/component rules only */

.shop-body {
  background: var(--ih-ivory);
  background-image: none;
  color: var(--ih-text);
  font-family: var(--ih-font-body);
}

h1, h2, h3, .shop-section-head h2, .mkt-pdp-title {
  font-family: var(--ih-font-heading);
}

/* —— Header (Amazon-style dark utility bar + dept strip) —— */
.shop-site-header { position: sticky; top: 0; z-index: 220; }

.shop-topbar {
  background: var(--ih-charcoal);
  border-bottom: 1px solid var(--ih-border-strong);
  backdrop-filter: none;
  position: relative;
}

.shop-logo-mark {
  border-radius: var(--ih-radius);
  background: var(--ih-green);
  color: #f5f5f4;
  font-weight: 700;
}

.shop-search {
  border-radius: var(--ih-radius);
  background: var(--ih-ivory);
  border-color: #9ca3af;
}

.shop-search input { color: var(--ih-text); }

.shop-search button {
  background: var(--ih-green);
  color: #fff;
}

.shop-topbar-actions a {
  border-radius: var(--ih-radius);
  color: #e5e5e5;
  transition: none;
}

.shop-topbar-actions a.primary,
.shop-topbar-actions a:hover {
  background: var(--ih-green);
  color: #fff;
  border-color: var(--ih-green);
}

.shop-dept-nav {
  background: #161b22;
  border-bottom: 1px solid var(--ih-border-strong);
}

.shop-dept-nav-inner {
  max-width: var(--ih-max, 1440px);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  padding: 10px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shop-dept-nav-inner::-webkit-scrollbar { display: none; }

.shop-dept-nav a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: #d1d5db;
  white-space: nowrap;
  border: none;
  border-bottom: none;
}

.shop-dept-nav a:hover {
  color: #f5d061;
}

.shop-business-btn {
  background: #eab308;
  color: #0d1117;
  border-color: #eab308;
  font-weight: 700;
}

.shop-business-btn:hover {
  background: #ca9a06;
  color: #0d1117;
}

.shop-business-dropdown {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

.shop-business-dropdown a {
  color: #e2e8f0;
}

.shop-business-dropdown a:hover {
  background: rgba(255, 215, 0, 0.1);
  color: #facc15;
}

@media (min-width: 1025px) {
  .shop-dept-nav { display: block; }
}

/* —— Hero (Myntra-style banner + Alibaba promo column) —— */
.home-hero-myntra { padding: 16px 24px 0; }

.home-hero-carousel {
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
  background: var(--ih-ivory);
  box-shadow: none;
  min-height: 380px;
}

.home-hero-slide-shade {
  background: linear-gradient(90deg, rgba(13, 40, 24, 0.75) 0%, rgba(13, 40, 24, 0.2) 55%, transparent 100%);
}

.home-hero-slide-tag {
  border-radius: var(--ih-radius);
  background: rgba(27, 67, 50, 0.9);
  border: 1px solid #2d6a4f;
  color: #ecfdf5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-hero-slide-content h1 {
  color: #fff;
  font-weight: 700;
  text-shadow: none;
}

.home-hero-slide-price { color: #e8e6e1; }
.home-hero-slide-price strong { color: #fff; font-size: 1.25rem; }

.home-hero-slide-cta {
  border-radius: var(--ih-radius);
  background: var(--ih-green);
  color: #fff;
  box-shadow: none;
  transform: none;
}

.home-hero-slide:hover .home-hero-slide-cta {
  transform: none;
  box-shadow: none;
}

.home-hero-nav {
  border-radius: var(--ih-radius);
  background: var(--ih-ivory);
  border: 1px solid var(--ih-border);
  color: var(--ih-text);
}

.home-hero-dot.is-active { background: var(--ih-green); width: 24px; border-radius: var(--ih-radius); }

.home-promo-card {
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
  background: var(--ih-ivory);
  box-shadow: none;
}

.home-promo-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--ih-green);
}

.home-promo-card--deal,
.home-promo-card--quick {
  background: var(--ih-ivory);
}

.home-promo-label { color: var(--ih-green); }
.home-promo-link { color: var(--ih-green); font-weight: 600; }

.home-promo-stats {
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
  background: var(--ih-ivory);
}

.home-promo-stats strong { color: var(--ih-green-dark); }

/* Trust bar — text only, no emoji icons */
.home-trust-pillars-inner {
  background: var(--ih-ivory);
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  box-shadow: none;
}

.home-trust-pillar-icon { display: none; }

.home-trust-pillar strong { color: var(--ih-text); font-size: 12px; }
.home-trust-pillar span { color: var(--ih-muted); }

.home-trust-marquee,
.home-trust-bottom {
  display: none;
}

/* —— Product grid (Amazon card density) —— */
.shop-card {
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
  box-shadow: none;
  background: var(--ih-ivory);
}

.shop-card:hover {
  border-color: var(--ih-green-muted);
  transform: none;
  box-shadow: none;
}

.shop-card-img { background: #fff; border-bottom: 1px solid var(--ih-border); }
.shop-card-price { color: #b12704; font-weight: 700; }
.shop-card-badge,
.shop-cart-badge {
  border-radius: var(--ih-radius);
  background: var(--ih-green);
  color: #fff;
}

.shop-hero h1 { color: var(--ih-text); font-weight: 700; }
.shop-hero p { color: var(--ih-muted); }
.shop-section h2 { font-weight: 700; color: var(--ih-text); }

.shop-rail-wrap {
  background: var(--ih-ivory);
  border-color: var(--ih-border);
}

.shop-rail-pill.active {
  background: var(--ih-green);
  color: #fff;
}

.shop-catalog,
.shop-sidebar {
  background: var(--ih-ivory);
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
}

/* Footer */
.store-footer {
  background: var(--ih-graphite);
  color: #d4d4d8;
  border-top: 1px solid #3a3a3f;
  margin-top: 40px;
}

.store-footer a { color: #a7f3d0; }
.store-footer-copy { border-top: 1px solid #3a3a3f; font-size: 12px; color: #9ca3af; }

/* Policy / cart shells */
.mkt-policy { max-width: var(--ih-max); margin: 0 auto; padding: 16px 24px 48px; }

.mkt-panel {
  background: var(--ih-ivory);
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.mkt-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
}

.mkt-btn-primary { background: var(--ih-green); color: #fff; border-color: var(--ih-green); }
.mkt-btn-secondary { background: var(--ih-ivory); color: var(--ih-text); }

/* Product detail (Alibaba + Amazon PDP) */
.mkt-pdp { max-width: var(--ih-max); margin: 0 auto; padding: 16px 24px 48px; }

.mkt-breadcrumb {
  font-size: 12px;
  color: var(--ih-muted);
  margin-bottom: 12px;
}

.mkt-breadcrumb a { color: var(--ih-link); text-decoration: underline; }

.mkt-pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.mkt-pdp-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.mkt-pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mkt-pdp-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  cursor: pointer;
  background: #fff;
}

.mkt-pdp-thumbs img.is-active { border-color: var(--ih-green); }

.mkt-pdp-main {
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  background: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mkt-pdp-main img { max-width: 100%; max-height: 400px; object-fit: contain; }

.mkt-pdp-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px;
}

.mkt-pdp-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #b12704;
  margin: 8px 0;
}

.mkt-pdp-stock {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  margin-bottom: 16px;
}

.mkt-pdp-stock.in { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.mkt-pdp-stock.out { background: #ffebee; border-color: #ef9a9a; color: #b71c1c; }

.mkt-pdp-buybox {
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  background: var(--ih-ivory);
  padding: 20px;
  margin-top: 12px;
}

.mkt-pdp-actions { display: flex; flex-direction: column; gap: 10px; }

.mkt-pdp-actions a {
  display: block;
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
}

.mkt-pdp-actions .add { background: #f0c14b; border-color: #a88734; color: var(--ih-text); }
.mkt-pdp-actions .buy { background: var(--ih-green); border-color: var(--ih-green-dark); color: #fff; }

.mkt-pdp-trust {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ih-muted);
  line-height: 1.6;
  border-top: 1px solid var(--ih-border);
  padding-top: 12px;
}

.mkt-pdp-tabs {
  margin-top: 32px;
  border-bottom: 1px solid var(--ih-border);
  display: flex;
  gap: 24px;
}

.mkt-pdp-tabs button {
  background: none;
  border: none;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--ih-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.mkt-pdp-tabs button.active {
  color: var(--ih-green);
  border-bottom-color: var(--ih-green);
}

.mkt-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}

.mkt-spec-table th,
.mkt-spec-table td {
  border: 1px solid var(--ih-border);
  padding: 10px 12px;
  text-align: left;
}

.mkt-spec-table th { background: var(--ih-stone); width: 32%; font-weight: 600; }

.mkt-related { margin-top: 40px; }
.mkt-related h2 { font-size: 1.1rem; margin-bottom: 16px; }

.mkt-quick-label {
  max-width: var(--ih-max);
  margin: 0 auto 8px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ih-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mkt-pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0;
}

.mkt-pdp-was {
  font-size: 1rem;
  color: var(--ih-muted);
  text-decoration: line-through;
}

.mkt-pdp-off {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid var(--ih-green);
  border-radius: var(--ih-radius);
  color: var(--ih-green-dark);
  background: #e8f5e9;
}

/* Account — Amazon/Myntra-style form on light panel */
.shop-body--auth {
  background: var(--ih-stone-2);
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--ih-max);
  margin: 0 auto;
  min-height: calc(100vh - 140px);
  border: 1px solid var(--ih-border);
  background: var(--ih-ivory);
}

.auth-brand {
  background: var(--ih-graphite);
  color: #e8e6e1;
  padding: 40px 36px;
  border-right: 1px solid #3a3a3f;
}

.auth-brand-glow { display: none; }

.auth-brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 12px 0;
}

.auth-brand p { color: #b8b8bc; font-size: 14px; line-height: 1.55; }

.auth-brand-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #86efac;
}

.auth-brand-features--plain {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #d4d4d8;
}

.auth-brand-features--plain strong { color: #fff; }

.auth-panel {
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  padding: 28px 24px;
  background: var(--ih-ivory);
  box-shadow: none;
}

.auth-card-head h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ih-text);
  margin: 8px 0;
}

.auth-card-head p { color: var(--ih-muted); font-size: 14px; }

.auth-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ih-green);
}

.auth-tab {
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
  background: var(--ih-stone);
  color: var(--ih-text);
}

.auth-tab.is-active {
  background: var(--ih-green);
  color: #fff;
  border-color: var(--ih-green);
}

.auth-field input {
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  background: #fff;
}

.auth-btn-primary {
  background: var(--ih-green);
  border: 1px solid var(--ih-green-dark);
  color: #fff;
  border-radius: var(--ih-radius);
  box-shadow: none;
}

.auth-btn-ghost {
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  color: var(--ih-text);
}

.auth-alert {
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
}

.auth-trust-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ih-border);
  font-size: 11px;
  color: var(--ih-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-hint a { color: var(--ih-green); }

@media (max-width: 900px) {
  .home-hero-myntra-inner { grid-template-columns: 1fr; }
  .home-trust-pillars-inner { grid-template-columns: 1fr 1fr; }
  .mkt-pdp-grid { grid-template-columns: 1fr; }
  .mkt-pdp-gallery { grid-template-columns: 1fr; }
  .mkt-pdp-thumbs { flex-direction: row; overflow-x: auto; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { border-right: none; border-bottom: 1px solid #3a3a3f; }
}

/* Account hub — buy again, settings */
.mkt-account-page {
  max-width: var(--ih-max);
  margin: 0 auto;
  padding: 16px 24px 48px;
}

.mkt-account-page-head { margin-bottom: 20px; }

.mkt-empty-panel {
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  background: var(--ih-ivory);
  padding: 40px 28px;
  text-align: center;
  max-width: 520px;
  margin: 24px auto;
}

.mkt-empty-panel h2 { font-size: 1.15rem; margin: 0 0 8px; }
.mkt-empty-panel p { color: var(--ih-muted); margin: 0 0 20px; font-size: 14px; }

.mkt-buyagain-search { margin-bottom: 20px; max-width: 480px; }
.mkt-buyagain-search-label { display: block; font-size: 12px; font-weight: 600; color: var(--ih-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.mkt-buyagain-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  font-size: 15px;
  background: #fff;
}

.mkt-buyagain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.mkt-buyagain-card {
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  background: var(--ih-ivory);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.mkt-buyagain-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--ih-green-dark);
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--ih-radius);
  padding: 4px 8px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.mkt-buyagain-img {
  display: block;
  height: 160px;
  text-align: center;
  margin-bottom: 12px;
}
.mkt-buyagain-img img { max-height: 100%; max-width: 100%; object-fit: contain; }

.mkt-buyagain-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 10px;
  flex-grow: 1;
}
.mkt-buyagain-title a { color: var(--ih-text); text-decoration: none; }
.mkt-buyagain-title a:hover { color: var(--ih-green); text-decoration: underline; }

.mkt-buyagain-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--ih-border);
  margin-bottom: 12px;
}

.mkt-buyagain-price { font-size: 18px; font-weight: 700; color: var(--ih-text); }
.mkt-buyagain-count { color: var(--ih-muted); }

.mkt-buyagain-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mkt-buyagain-qty select {
  padding: 8px 10px;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  font-weight: 600;
  background: #fff;
}

.mkt-btn-add {
  flex: 1;
  min-width: 100px;
  background: #f0c14b;
  border-color: #a88734;
  color: var(--ih-text);
}

.mkt-btn-sm { padding: 6px 12px; font-size: 13px; }

.mkt-buyagain-no-match {
  text-align: center;
  color: var(--ih-muted);
  font-size: 14px;
  margin-top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mkt-settings-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.mkt-settings-hero-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mkt-settings-hero-user h1 { font-size: 1.35rem; margin: 4px 0; }
.mkt-settings-hero-user p { margin: 0; color: var(--ih-muted); font-size: 14px; }

.mkt-settings-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ih-border);
}

.mkt-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.mkt-settings-tile {
  display: block;
  padding: 20px 18px;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  background: var(--ih-ivory);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mkt-settings-tile:hover {
  border-color: var(--ih-green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mkt-settings-tile h2 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
.mkt-settings-tile p { margin: 0; font-size: 13px; color: var(--ih-muted); line-height: 1.45; }

.mkt-settings-tile--muted h2 { color: var(--ih-muted); }

/* Academy */
.shop-hero--compact { padding-bottom: 8px; }

.mkt-academy-filters {
  max-width: var(--ih-max);
  margin: 0 auto;
  padding: 0 24px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mkt-filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--ih-border);
  background: var(--ih-ivory);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ih-text);
}

.mkt-filter-pill:hover,
.mkt-filter-pill.is-active {
  background: var(--ih-green);
  border-color: var(--ih-green-dark);
  color: #fff;
}

.mkt-academy-section { padding-top: 0; }

.mkt-academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.mkt-academy-card {
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  background: var(--ih-ivory);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mkt-academy-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ih-green-dark);
  margin-bottom: 8px;
}

.mkt-academy-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.35;
}

.mkt-academy-card h3 a { color: var(--ih-text); text-decoration: none; }
.mkt-academy-card h3 a:hover { color: var(--ih-green); text-decoration: underline; }

.mkt-academy-expert { font-size: 13px; color: var(--ih-muted); margin: 0 0 6px; }
.mkt-academy-cat { font-size: 12px; color: var(--ih-muted); margin: 0 0 12px; }

.mkt-academy-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ih-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mkt-academy-duration { font-size: 12px; color: var(--ih-muted); }
