body {
    background-color: #2b2b2b;
    color: white;
}

a {
    color: #ffd700;
    text-decoration: none;
}

a:hover {
    color: white;
    text-decoration: underline;
}

.cmh-page-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1rem;
    /* slight mobile padding */
}



.sale-price {
    color: #ff4d4d;
    font-weight: bold;
    font-size: 1.2rem;
}

.retail-price {
    text-decoration: line-through;
    color: #888;
    margin-left: 5px;
}

/* Homepage Sale Grid */
.sale-product-grid {
    padding: 1rem 2rem;
    background-color: #1e1e1e;
}

.home-grid-title {
    font-size: 1.8rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 1.5rem;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.hg-card-home {
    background-color: #3a3a3a;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hg-card-home:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.hg-card-home img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.hg-card-home .product-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
}

.hg-card-home .brand-name {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.hg-card-home .price {
    font-size: 0.95rem;
}

.hg-card-home .sale {
    color: #ff4d4d;
    font-weight: bold;
}

.hg-card-home .retail {
    text-decoration: line-through;
    color: #aaa;
    margin-left: 5px;
}

.hg-card-home .category-link a {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #ffd700;
    text-decoration: underline;
}
.chs-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.chs-heading {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffd700;
  text-align: center;
}

.chs-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.chs-card {
  min-width: 220px;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  scroll-snap-align: start;
  flex-shrink: 0;
  text-align: left;
}

.chs-card img {
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.chs-card-content {
  padding: 0.75rem;
  min-height: 140px; /* adjust as needed */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
max-width: 300px;
  margin: 0 auto;
}

.chs-card-content h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3em;
  max-height: 2.6em;
}

.chs-brand {
  color: #ccc;
  font-size: 0.9rem;
}

.chs-price {
  margin-top: 0.5rem;
}

.chs-sale-price {
  color: #ff4f4f;
  font-weight: bold;
  margin-right: 0.5rem;
}

.chs-retail-price {
  text-decoration: line-through;
  color: #888;
}

.chs-category {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #ffd700;
}

.explore-more h3 {
  color: #fff;
}
@media (max-width: 768px) {
  .chs-card img,
  .chs-card-content,
  .chs-card-content h3 {
    max-width: 150px;
  }

  .chs-card img {
    max-height: 150px;
  }

  .chs-card-content h3 {
    font-size: 1rem;
    line-height: 1.2em;
    max-height: 2.4em;
  }
}
.home-stats-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  background-color: #1e1e1e;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  text-align: center;
  gap: 0.5rem;
}

.home-stat {
  text-decoration: none;
  color: inherit;
  flex: 1 1 22%;
  max-width: 160px;
}

.home-stat-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffd700;
  display: block;
}

.home-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ccc;
}

.home-stat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.2rem;
}

.home-stat-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffd700;
}

@media (max-width: 600px) {
  .home-stats-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem;
  }

  .home-stat {
    flex: 1 1 40%;
    max-width: 140px;
  }

  .home-stat-number {
    font-size: 1rem;
  }

  .home-stat-label {
    font-size: 0.7rem;
  }

  .home-stat-icon svg {
    width: 18px;
    height: 18px;
  }
}



.home-mygear {
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.home-mygear-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-mygear-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.home-mygear-description {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
}

.home-mygear-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-mygear-description p {
    white-space: nowrap;
  }
}


.hg-success-msg,
.hg-error-msg {
  margin: 1em 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 500;
  max-width: 600px;
}

.hg-success-msg {
  background-color: #e6f5e6;
  color: #267a2f;
  border: 1px solid #b2dfb2;
}

.hg-error-msg {
  background-color: #fdecea;
  color: #b7322c;
  border: 1px solid #f5b2ac;
}
.hg-sms-hidden {
  display: none;
}

.hg-container.compact .hg-card {
  width: 100px;
}
.hg-container.compact .hg-thumb {
  width: 80px;
  height: 80px;
}
.hg-container.compact .hg-prod-name {
  font-size: 12px;
}
.hg-container.compact .hg-scrollable {
  display: flex;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.hg-container.compact .hg-title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.hg-container.compact .hg-scrollable::-webkit-scrollbar {
  display: none;
}
.hg-container.compact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.view-all-categories-link {
  font-size: 0.85rem;
  color: #ffd700;
  text-decoration: underline;
}
.view-all-categories-link:hover {
  color: white;
}
@media (min-width: 768px) {
  .hg-container.compact .hg-scrollable {
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .hg-container.compact .hg-scrollable {
    justify-content: flex-start;
  }
}