:root {
  --mit-green: #08772f;
  --mit-green-dark: #045822;
  --mit-green-soft: #eaf7ee;
  --mit-gold: #f5a700;
  --mit-text: #181d1a;
  --mit-muted: #6c7570;
  --mit-border: #e6e9e7;
  --mit-bg: #f8faf8;
}

* { box-sizing: border-box; }
/* body {
  background: #fff;
  color: var(--mit-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
} */
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--mit-text); background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.topbar { background: var(--mit-green); color: #fff; }
.topbar a { color: #fff; text-decoration: none; }

.brand { color: #111; font-size: 1.05rem; letter-spacing: .2px; }
.brand span span { color: #111; }
.brand-mark {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.user-profile-image {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #198754;
}
.nav-link { color: #26332b; font-weight: 500; }
.nav-link:hover { color: var(--mit-green); }
.icon-btn { width: 42px; height: 42px; }

.search-box {
  border: 1px solid var(--mit-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.search-box .form-control:focus { box-shadow: none; }
.search-box .btn { border-radius: 0; }

.header-actions a { position: relative; text-decoration: none; color: #111; font-weight: 600; }
.header-actions .count {
  position: absolute; top: -8px; right: -10px;
  min-width: 18px; height: 18px; border-radius: 99px;
  padding: 0 4px; display: grid; place-items: center;
  background: var(--mit-green); color: #fff; font-size: .68rem;
}

.secondary-nav { border-top: 1px solid #f1f1f1; }
.secondary-nav .nav-link { padding: 1rem .7rem; font-weight: 600; }
.secondary-nav .nav-link.active { color: var(--mit-green); border-bottom: 2px solid var(--mit-green); }
.category-btn { min-width: 250px; background: var(--mit-green); border-color: var(--mit-green); }

.breadcrumb a { text-decoration: none; color: #6c757d; }

.filter-card {
  border: 1px solid var(--mit-border);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  position: sticky;
  top: 150px;
}
.filter-section { border-bottom: 1px solid #ecefec; padding: 14px 0; }
.filter-title { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.filter-card .form-check { margin-bottom: 8px; }
.form-check-input:checked { background-color: var(--mit-green); border-color: var(--mit-green); }
.form-range::-webkit-slider-thumb { background: var(--mit-green); }

.sort-select { width: 180px; }
.view-btn { width: 42px; }

.product-card {
  border: 1px solid var(--mit-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.product-img-wrap {
  position: relative;
  background: #f4f4f4;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
}
.product-img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 10px; left: 10px; border-radius: 6px; }
.wishlist-btn {
  position: absolute; right: 10px; top: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); font-size: 1rem;
}
.product-title { font-weight: 700; min-height: 2.4em; }
.product-price { color: var(--mit-green); font-weight: 800; }
.old-price { color: #8a8a8a; text-decoration: line-through; font-size: .82rem; }
.seller-row { font-weight: 600; }

.pagination .page-link { color: #222; border-radius: 6px; margin: 0 3px; }
.pagination .active .page-link { background: var(--mit-green); border-color: var(--mit-green); }

.mobile-filter-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  padding: 10px 14px; background: rgba(255,255,255,.96); border-top: 1px solid var(--mit-border);
}

@media (min-width: 1200px) {
  .product-col { flex: 0 0 20%; max-width: 20%; }
}

@media (max-width: 991.98px) {
  body { padding-bottom: 70px; }
  .category-btn { min-width: auto; }
  .secondary-nav .nav-link.active { border-bottom: 0; }
}

@media (max-width: 575.98px) {
  .product-card .p-3 { padding: .8rem !important; }
  .product-title { font-size: .9rem; }
  .product-price { font-size: .92rem; }
  .sort-select { width: 150px; }
}

/* from another page */

.site-shell { max-width: 1540px; }
.top-strip { background: linear-gradient(90deg, var(--mit-green-dark), var(--mit-green)); }

.brand { gap: 12px; color: #111; line-height: .95; }
/* .brand-mark { width: 50px; height: 50px; border-radius: 14px; background: var(--mit-green); color: #fff; display: grid; place-items: center; font-size: 26px; } */
.brand-text { font-size: 20px; letter-spacing: .02em; }

.search-box .form-control { min-height: 50px; border-radius: 10px 0 0 10px; border-color: #dfe3df; }
.search-btn { width: 62px; background: var(--mit-green); color: #fff; border-radius: 0 10px 10px 0; }
.search-btn:hover { background: var(--mit-green-dark); color: #fff; }

.header-actions .action-link { position: relative; color: #111; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.header-actions .action-link i { font-size: 24px; }
.header-actions .action-link b { position: absolute; top: -10px; left: 17px; background: var(--mit-green); color: #fff; min-width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; }

.category-button { background: var(--mit-green); color: #fff; text-decoration: none; padding: 16px 24px; min-width: 230px; font-weight: 700; }
.navbar .nav-link { padding: 17px 18px !important; font-weight: 600; }
.navbar .nav-link.active { color: var(--mit-green); }
.nav-whatsapp { color: var(--mit-green); font-weight: 700; }

.product-page { background: #fff; }
.breadcrumb a { color: #6e766f; text-decoration: none; }
.main-image-wrap { min-height: 525px; background: #f4f5f3; border-radius: 14px; overflow: hidden; border: 1px solid var(--mit-border); }
.main-product-image { width: 100%; height: 525px; object-fit: cover; }
.discount-badge, .new-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--mit-green); color: #fff; border-radius: 7px; padding: 7px 10px; font-weight: 800; font-size: 13px; }
.wishlist-float, .mini-heart { border: 1px solid #ddd; background: rgba(255,255,255,.94); border-radius: 50%; display: grid; place-items: center; }
.wishlist-float { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; z-index: 2; font-size: 20px; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid #ddd; background: rgba(255,255,255,.92); display: grid; place-items: center; z-index: 2; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.thumbnail-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb-btn { flex: 0 0 82px; width: 82px; height: 72px; padding: 3px; background: #fff; border: 1px solid var(--mit-border); border-radius: 10px; overflow: hidden; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.thumb-btn.active { border: 2px solid var(--mit-green); }

.product-info-panel h1 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; margin-bottom: 16px; }
.verified-pill { background: var(--mit-green-soft); color: var(--mit-green-dark); border-radius: 7px; padding: 5px 10px; font-weight: 700; font-size: 13px; }
.stars { color: var(--mit-gold); letter-spacing: 1px; }
.current-price { font-size: 30px; font-weight: 800; color: var(--mit-green); margin-right: 12px; }
.old-price { color: #8b918d; text-decoration: line-through; font-size: 18px; }
.saving-text { color: var(--mit-green-dark); font-weight: 700; }
.product-summary { color: #565e58; line-height: 1.85; }
.feature-list { display: grid; gap: 14px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.feature-item i { color: #6b4f2c; font-size: 19px; }

.purchase-card { top: 22px; border: 1px solid var(--mit-border); border-radius: 14px; padding: 22px; background: #fff; box-shadow: 0 10px 28px rgba(20,48,29,.08); }
.qty-control { display: inline-flex; border: 1px solid #dfe4e0; border-radius: 9px; overflow: hidden; }
.qty-control button, .qty-control input { width: 48px; height: 42px; border: 0; background: #fff; text-align: center; }
.qty-control input { border-left: 1px solid #e3e7e4; border-right: 1px solid #e3e7e4; appearance: textfield; }
.btn-primary-market { background: var(--mit-green); color: #fff; border: 1px solid var(--mit-green); min-height: 48px; font-weight: 700; }
.btn-primary-market:hover { background: var(--mit-green-dark); color: #fff; }
.btn-outline-market { background: #fff; color: #181d1a; border: 1px solid var(--mit-green); min-height: 48px; font-weight: 700; }
.btn-outline-market:hover { background: var(--mit-green-soft); color: var(--mit-green-dark); border-color: var(--mit-green); }
.availability-box { background: var(--mit-green-soft); color: var(--mit-green-dark); border-radius: 8px; padding: 12px; font-weight: 600; }
.location-row { font-size: 14px; }
.location-row i { color: var(--mit-green); }

.trust-strip { border: 1px solid var(--mit-border); border-radius: 14px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 14px; border-right: 1px solid var(--mit-border); }
.trust-item:last-child { border-right: 0; }
.trust-item > i { font-size: 30px; color: var(--mit-green); }
.trust-item strong, .trust-item span { display: block; }
.trust-item span { color: var(--mit-muted); font-size: 13px; margin-top: 3px; }

.detail-tabs { border-bottom: 1px solid var(--mit-border); gap: 16px; }
.detail-tabs .nav-link { border: 0; color: #303632; padding: 14px 10px; font-weight: 700; border-bottom: 3px solid transparent; }
.detail-tabs .nav-link.active { color: var(--mit-green); border-bottom-color: var(--mit-green); background: transparent; }
.details-content { padding: 26px 8px; line-height: 1.8; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.check-list li::before { content: '✓'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mit-green-soft); color: var(--mit-green); font-weight: 800; margin-right: 9px; }
.spec-grid { display: grid; gap: 10px; }
.spec-grid > div { display: grid; grid-template-columns: 155px 1fr; gap: 12px; }
.spec-grid span { color: #5f6861; }

.seller-card { border: 1px solid var(--mit-border); border-radius: 14px; padding: 22px; box-shadow: 0 8px 25px rgba(20,48,29,.06); }
.seller-rating { font-size: 14px; }
.positive-feedback { color: #3f5045; font-size: 14px; }
.seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--mit-border); padding-top: 18px; text-align: center; }
.seller-stats div { border-right: 1px solid var(--mit-border); }
.seller-stats div:last-child { border-right: 0; }
.seller-stats strong, .seller-stats span { display: block; }
.seller-stats span { color: var(--mit-muted); font-size: 11px; margin-top: 4px; }

.section-heading h2 { font-size: 24px; margin: 0; }
.section-heading a { color: var(--mit-green); text-decoration: none; font-weight: 700; }
.related-card { border: 1px solid var(--mit-border); border-radius: 12px; overflow: hidden; transition: .2s ease; background: #fff; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,48,29,.09); }
.related-image-wrap { position: relative; background: #f4f5f3; }
.related-image-wrap img { width: 100%; height: 230px; object-fit: cover; }
.mini-heart { position: absolute; z-index: 2; right: 12px; top: 12px; width: 34px; height: 34px; }
.related-card h3 { font-size: 17px; margin: 0 0 8px; }
.related-price { color: var(--mit-green); font-weight: 800; }

.site-footer { background: #073f25; color: #fff; }
.footer-brand { font-size: 24px; font-weight: 800; }
.footer-copy { max-width: 420px; color: #d7e3db; }
.site-footer h6 { font-weight: 800; margin-bottom: 14px; }
.site-footer a { display: block; color: #d7e3db; text-decoration: none; margin: 8px 0; }
.footer-bottom { background: #052f1c; color: #c7d6cc; }

@media (max-width: 1199.98px) {
  .purchase-card { position: static !important; }
}

@media (max-width: 991.98px) {
  .category-button { display: inline-block; width: 100%; }
  .trust-strip { grid-template-columns: 1fr; gap: 16px; }
  .trust-item { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--mit-border); padding-bottom: 16px; }
  .trust-item:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 767.98px) {
  .site-shell { padding-left: 16px; padding-right: 16px; }
  .main-image-wrap, .main-product-image { min-height: 360px; height: 360px; }
  .product-info-panel h1 { font-size: 2rem; }
  .current-price { font-size: 25px; display: block; }
  .old-price { display: inline-block; margin-top: 4px; }
  .spec-grid > div { grid-template-columns: 1fr; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid #f0f2f0; }
  .detail-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .detail-tabs .nav-link { white-space: nowrap; }
  .related-image-wrap img { height: 170px; }
}
