/*
 * ============================================================
 * YAHYA AGRICOLA — Cattle Page Styles
 * Developer: Mohammed Imran, Softomatic BD Limited
 * ============================================================
 */

/* ── HERO BANNER ──────────────────────────────────────────── */
.cattle-hero {
  position: relative;
  height: 40vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}

.cattle-hero-bg {
  position: absolute;
  inset: 0;
}

.cattle-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.cattle-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6,15,7,0.90) 0%, rgba(13,31,15,0.72) 60%, rgba(13,31,15,0.40) 100%);
}

.cattle-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-4);
  font-family: var(--font-english);
}

.breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb i { font-size: 0.5rem; color: var(--gold); }

.cattle-hero-content h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.cattle-hero-content h1 span { color: var(--gold); }

.cattle-hero-content p {
  color: rgba(240,237,230,0.75);
  font-size: var(--text-base);
  max-width: 480px;
  margin: 0;
}

/* ── QUICK STATS BAR ──────────────────────────────────────── */
.cattle-stats-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.cattle-stats-bar .container {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cstat-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.cstat-item i { color: var(--gold); font-size: 0.9rem; }
.cstat-item strong { color: var(--text-primary); font-weight: var(--weight-semi); }

/* ── CATEGORY TABS ────────────────────────────────────────── */
.category-tabs {
  background: var(--bg-primary);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
}

.category-tabs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.category-tab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.category-tab-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.category-tab-card:hover,
.category-tab-card.active {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.category-tab-card:hover::before,
.category-tab-card.active::before {
  transform: scaleX(1);
}

.category-tab-card.active {
  background: var(--badge-bg);
}

.cat-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-2);
  display: block;
  color: var(--gold);
}

.cat-name {
  font-family: 'Noto Serif Bengali', 'Cormorant Garamond', serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

body.lang-en .cat-name { font-family: var(--font-heading); }

.cat-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

/* ── MAIN LAYOUT ──────────────────────────────────────────── */
.cattle-main {
  background: var(--bg-primary);
  padding: var(--space-10) 0 var(--space-20);
}

.cattle-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.cattle-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-header {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-header h3 i { color: var(--gold); }

.filter-clear-btn {
  font-size: var(--text-xs);
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-clear-btn:hover { color: var(--gold-light); }

/* Filter group */
.filter-group {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child { border-bottom: none; }

.filter-group-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Checkbox / Radio */
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  font-family: 'Hind Siliguri', sans-serif;
}

.filter-option:hover { color: var(--gold); }

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-count {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Price range slider */
.price-range-wrap {
  padding-top: var(--space-2);
}

.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.price-input {
  padding: 0.4rem 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast);
}

.price-input:focus { border-color: var(--gold); }

.price-slider {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

.price-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ── CATTLE CONTENT AREA ──────────────────────────────────── */
.cattle-content {}

/* Toolbar */
.cattle-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cattle-count-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.cattle-count-text strong { color: var(--gold); }

/* Active filters */
.active-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--badge-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--gold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.active-filter-tag:hover { background: rgba(201,168,76,0.2); }
.active-filter-tag i { font-size: 0.6rem; }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Sort dropdown */
.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: 'Hind Siliguri', sans-serif;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C9A84C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color var(--transition-fast);
}

.sort-select:focus { border-color: var(--gold); }
.sort-select option { background: var(--bg-card); }

/* View toggle */
.view-toggle {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  background: none;
  border: none;
}

.view-btn.active,
.view-btn:hover {
  background: var(--gold);
  color: #0D1F0F;
}

/* ── CATTLE GRID ──────────────────────────────────────────── */
.cattle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  transition: all var(--transition-base);
}

.cattle-grid.list-view {
  grid-template-columns: 1fr;
}

/* ── ECOM CATTLE CARD ─────────────────────────────────────── */
.ecom-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  cursor: pointer;
}

.ecom-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(201,168,76,0.15);
  transform: translateY(-4px);
}

/* Card image */
.ecom-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: none;
}

.ecom-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
  will-change: transform;
  display: block;
}

/* Badges row */
.card-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
}

.card-badge {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-available { background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.4); color: #4ade80; }
.badge-sold      { background: rgba(248,113,113,0.15); border: 1px solid rgba(248,113,113,0.4); color: #f87171; }
.badge-reserved  { background: rgba(251,191,36,0.15);  border: 1px solid rgba(251,191,36,0.4);  color: #fbbf24; }
.badge-new       { background: linear-gradient(135deg,var(--gold),var(--gold-dark)); color: #0D1F0F; border: none; }
.badge-featured  { background: rgba(201,168,76,0.15); border: 1px solid var(--border-gold); color: var(--gold); }

/* Recently viewed meta info */
.recent-meta-item {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Action buttons on image */
.card-actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 4;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition-base);
}

.ecom-card:hover .card-actions { opacity: 1; transform: translateX(0); }

.card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.card-action-btn:hover { background: var(--gold); color: #0D1F0F; border-color: var(--gold); }
.card-action-btn.liked { color: #f87171; border-color: rgba(248,113,113,0.4); }
.card-action-btn.compared { color: var(--gold); background: var(--badge-bg); }

/* Sold overlay */
.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.sold-overlay span {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: #f87171;
  padding: 0.5rem 1.5rem;
  border: 2px solid rgba(248,113,113,0.5);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.4);
  transform: rotate(-15deg);
}

/* Zoom lens */
.ecom-card-img .zoom-lens {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.3), 0 4px 20px rgba(0,0,0,0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
  transform: translate(-50%,-50%);
  background: rgba(201,168,76,0.06);
}

.ecom-card-img:hover .zoom-lens { opacity: 1; }

/* Card body */
.ecom-card-body {
  padding: var(--space-4) var(--space-5);
}

.ecom-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  gap: var(--space-2);
}

.ecom-cattle-name {
  font-family: 'Noto Serif Bengali', 'Cormorant Garamond', serif;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  line-height: 1.2;
}

body.lang-en .ecom-cattle-name { font-family: var(--font-heading); }

.ecom-cattle-id {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  white-space: nowrap;
}

.ecom-breed-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.65rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-3);
}

/* Specs row */
.ecom-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.ecom-spec {
  text-align: center;
  padding: var(--space-2) var(--space-1);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.ecom-spec i {
  font-size: 0.75rem;
  color: var(--gold);
  display: block;
  margin-bottom: 3px;
}

.ecom-spec-val {
  font-size: 0.7rem;
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  display: block;
  line-height: 1.3;
}

.ecom-spec-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  display: block;
}

/* Price + CTA row */
.ecom-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  gap: var(--space-2);
}

.ecom-price {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1;
}

.ecom-price.ask {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--text-muted);
  letter-spacing: 0;
}

.ecom-card-btns {
  display: flex;
  gap: var(--space-2);
}

.btn-details {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: 'Hind Siliguri', sans-serif;
}

.btn-details:hover { background: var(--badge-bg); }

.btn-book {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0D1F0F;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-family: 'Hind Siliguri', sans-serif;
}

.btn-book:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-book:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── LIST VIEW CARD ───────────────────────────────────────── */
.cattle-grid.list-view .ecom-card {
  display: grid;
  grid-template-columns: 330px 1fr;
  transform: none !important;
}

.cattle-grid.list-view .ecom-card:hover {
  transform: translateX(4px) !important;
}

.cattle-grid.list-view .ecom-card-img {
  height: 100%;
  min-height: 160px;
  border-radius: 0;
}

.cattle-grid.list-view .ecom-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cattle-grid.list-view .ecom-specs {
  grid-template-columns: repeat(4, 1fr);
}

/* ── EMPTY STATE ──────────────────────────────────────────── */
.cattle-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-20) var(--space-8);
}

.cattle-empty i {
  font-size: 3.5rem;
  color: var(--border-gold);
  display: block;
  margin-bottom: var(--space-4);
}

.cattle-empty h3 {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.cattle-empty p { color: var(--text-muted); }

/* ── LOAD MORE ────────────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  margin-top: var(--space-10);
}

/* ── COMPARE BAR ──────────────────────────────────────────── */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--gold);
  padding: var(--space-4) 0;
  z-index: var(--z-sticky);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
}

.compare-bar.visible { transform: translateY(0); }

.compare-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.compare-bar-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.compare-items {
  display: flex;
  gap: var(--space-3);
  flex: 1;
}

.compare-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-primary);
  min-width: 140px;
}

.compare-item img {
  width: 32px;
  height: 28px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.compare-item-name { flex: 1; font-weight: var(--weight-semi); }

.compare-item-remove {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: color var(--transition-fast);
}

.compare-item-remove:hover { color: #f87171; }

.compare-item.empty {
  border-style: dashed;
  color: var(--text-muted);
  justify-content: center;
  font-style: italic;
}

/* ── RECENTLY VIEWED ──────────────────────────────────────── */
.recently-viewed {
  background: var(--bg-secondary);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border);
}

.recently-viewed h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.recently-viewed h3 i { color: var(--gold); font-size: var(--text-xl); }

.recently-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ── COMPARE MODAL ────────────────────────────────────────── */
.compare-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(6px);
}

.compare-modal.open { opacity: 1; pointer-events: all; }

.compare-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform var(--transition-base);
}

.compare-modal.open .compare-modal-box { transform: scale(1); }

.compare-modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compare-modal-header h3 {
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.compare-modal-header h3 i { color: var(--gold); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.compare-table th {
  background: var(--bg-secondary);
  font-weight: var(--weight-semi);
  color: var(--gold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100px;
}

.compare-table td { color: var(--text-secondary); }

.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }

.compare-cattle-img {
  width: 80px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.compare-cattle-name {
  font-family: 'Noto Serif Bengali', 'Cormorant Garamond', serif;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

/* ── MOBILE FILTER TOGGLE ─────────────────────────────────── */
.mobile-filter-btn {
  display: none;
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  font-family: 'Hind Siliguri', sans-serif;
  cursor: pointer;
  margin-bottom: var(--space-4);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .cattle-grid { grid-template-columns: repeat(2, 1fr); }
  .recently-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .cattle-layout { grid-template-columns: 240px 1fr; }
  .category-tabs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .cattle-layout { grid-template-columns: 1fr; }
  .cattle-sidebar { position: static; display: none; }
  .cattle-sidebar.mobile-open { display: block; }
  .mobile-filter-btn { display: flex; }
  .category-tabs-grid { grid-template-columns: repeat(3, 1fr); }
  .recently-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cattle-grid { grid-template-columns: 1fr; }
  .cattle-grid.list-view .ecom-card { grid-template-columns: 140px 1fr; }
  .category-tabs-grid { grid-template-columns: repeat(2, 1fr); }
  .recently-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-items { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════
   CATTLE COLOR — Dot + Swatch Filter
═══════════════════════════════════════════════════════════ */

/* Card color row */
.ecom-color-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* special: white dot needs border to show */
.color-dot.color-white {
  border-color: var(--border);
}

/* multi-color dot (split circle) */
.color-dot.multi {
  background: linear-gradient(135deg, var(--c1, #000) 50%, var(--c2, #fff) 50%);
}

.color-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Hind Siliguri', sans-serif;
}

/* Modal color row */
.modal-color-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-4);
}

.modal-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.modal-color-dot.color-white {
  border-color: var(--border);
}

.modal-color-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
}

.modal-color-sublabel {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-left: auto;
}

/* ── Color Swatch Filter (sidebar) ───────────────────────── */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-2);
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-swatch:hover { transform: scale(1.1); }

.swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.swatch-circle.white-swatch { border-color: var(--border); }

.color-swatch.active .swatch-circle,
.color-swatch:hover .swatch-circle {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.color-swatch.active .swatch-circle::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

.color-swatch.active[data-color="white"] .swatch-circle::after,
.color-swatch.active[data-color="golden"] .swatch-circle::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23333' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.swatch-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 36px;
  word-break: break-all;
}

/* Multi-color swatch */
.swatch-circle.multi-swatch {
  background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%);
}

/* ══════════════════════════════════════════════════════════
   SEASON SELECTOR
══════════════════════════════════════════════════════════ */
.season-selector {
  background: var(--bg-primary);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
}

.season-selector .container {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.season-label-txt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: var(--space-4);
  border-right: 1px solid var(--border);
}

.season-label-txt i {
  color: var(--gold);
  font-size: 1rem;
}

.season-tabs {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Card style — mirrors .category-tab-card */
.season-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
}

/* Gold bottom bar — same as category-tab-card::before */
.season-tab::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.season-tab:hover,
.season-tab.active {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.season-tab:hover::before,
.season-tab.active::before {
  transform: scaleX(1);
}

.season-tab.active {
  background: var(--badge-bg);
}

/* Icon */
.season-tab > i {
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.season-tab-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.season-tab-name {
  font-family: 'Noto Serif Bengali', 'Cormorant Garamond', serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
}

.season-tab-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
}

.season-tab-live {
  color: #16a34a !important;
  font-weight: 600;
}

.season-tab.active .season-tab-name {
  color: var(--gold);
}

.season-tab.active .season-tab-meta { color: var(--text-secondary); }

/* ── ARCHIVE NOTICE BANNER ─────────────────────────────── */
.archive-notice {
  background: linear-gradient(90deg, rgba(var(--gold-rgb,201,168,76),0.12) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-gold, rgba(201,168,76,0.3));
  padding: 0.6rem 0;
}

.archive-notice .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.archive-notice > .container > i {
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.archive-notice > .container > span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex: 1;
}

.archive-notice > .container > span strong {
  color: var(--gold);
}

.archive-notice-link {
  font-size: 0.75rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 3px 12px;
  transition: all 0.2s;
}

.archive-notice-link:hover {
  background: var(--gold);
  color: #fff;
}

/* ── ARCHIVED CARD TAG ─────────────────────────────────── */
.btn-archived-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  cursor: default;
}

.btn-archived-tag i { font-size: 0.6rem; }

@media (max-width: 768px) {
  .season-tab { min-width: 110px; padding: var(--space-4) var(--space-4); }
  .season-tab > i { font-size: 1.2rem; }
  .season-label-txt { border-right: none; padding-right: 0; }
}

@media (max-width: 640px) {
  .season-tabs { gap: var(--space-2); }
  .season-tab { min-width: 90px; padding: var(--space-3) var(--space-3); font-size: 0.72rem; }
  .season-tab > i { font-size: 1rem; }
  .archive-notice > .container { gap: 0.5rem; }
  .archive-notice > .container > span { font-size: 0.72rem; }
}
