.cat-btn {
  cursor: pointer;
  font-weight: 600;
}

.category-m-item a {
  display: block;
  padding: 3px 0;
  color: #444;
}

.category-m-item a:hover {
  color: #ff6a00;
}

/* ==================== PRODUCT CARDS ==================== */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  width: 100%;
  height: 230px;
  /* uniform card image height */
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* ensures full image is visible */
  transition: transform 0.3s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

/* Card footer buttons */
.card-footer .btn {
  flex: 1;
  margin: 0 2px;
}

/* Responsive tweak for cards */
@media (max-width: 576px) {
  .product-image {
    height: 180px;
  }
}

/* ==================== CAROUSEL ==================== */
/* =========================
   CAROUSEL IMAGE CLEANUP
   ========================= */

.carousel,
.carousel-inner,
.carousel-item {
  background: transparent !important;
}

/* Remove ALL overlays / gradients */
.carousel-item::before,
.carousel-item::after,
.carousel-inner::before,
.carousel-inner::after {
  display: none !important;
  content: none !important;
}

/* Image itself */
.carousel-item img,
.carousel-full-img {
  width: 100%;
  height: auto;
  max-height: 455px;
  object-fit: cover;
  box-shadow: none !important;
  filter: none !important;
  background: transparent !important;
}

/* Caption – no dark layer */
.carousel-caption {
  background: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  bottom: 20px;
}

/* Buy Now button (keep effect only on hover) */
.carousel-buy-btn {
  background: rgba(255, 193, 7, 0.85);
  color: #000;
  font-weight: bold;
  transition:
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}

.carousel-buy-btn:hover {
  background: rgba(255, 193, 7, 1);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile height */
@media (max-width: 768px) {
  .carousel-item img,
  .carousel-full-img {
    height: 220px;
    object-fit: cover;
  }
}

/* Container */
.category-wrapper {
  background: #fff;
  border: 1px solid #ddd;
  position: relative;
  user-select: none;
}

/* Level1 buttons */
.category-left a {
  display: block;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #444;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.category-left a:hover,
.category-left a.active {
  background: #f6f6f6;
  color: #f68b1e;
}

/* Mega menu */
.category-mega {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 750px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #ddd;
  padding: 25px;
  z-index: 1070;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust for fixed headers if needed */
.category-mega {
  margin-top: calc(var(--topbar-height) + var(--header-height));
}

.category-mega .category-m-item {
  margin-bottom: 20px;
}

.category-mega h6 {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.category-mega a {
  text-decoration: none;
  display: block;
  padding: 3px 0;
  color: #444;
  font-size: 13px;
  transition: color 0.2s;
}

.category-mega a:hover {
  color: #f68b1e;
}

/* Default first menu open */
.category-mega.default-open {
  display: block;
}

/* top rated and hot deals */
:root {
  --brand-orange: #fd7e14;
  --text-dark: #1c1d1f;
  --text-muted: #75757a;
  --border-light: #e6e6e6;
}

/* CARD */
.product-card {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* BADGES */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  z-index: 2;
}

.product-badge.deal {
  right: 8px;
  left: auto;
}

/* IMAGE */
.product-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 10px;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* INFO */
.product-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* TITLE */
.product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  height: 36px;
  overflow: hidden;
}

/* RATING */
.product-rating {
  font-size: 12px;
  color: var(--text-muted);
}

/* PRICE */
.product-prices {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}

.price-discounted {
  font-weight: 700;
  color: var(--text-dark);
}

.price-original {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* DISCOUNT */
.product-discount {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-orange);
}

/* BUTTONS */
.btn-buy,
.btn-outline-buy {
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  display: block;
}

.btn-buy {
  background: var(--brand-orange);
  color: #fff;
  border: none;
}

.btn-outline-buy {
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  background: #fff;
}

.btn-buy:hover,
.btn-outline-buy:hover {
  opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .category-mega {
    position: relative;
    left: 0;
    width: 100%;
    margin-top: 0;
    border-left: none;
  }

  .cat-btn.active + .category-mega {
    display: block;
  }
}
/* =========================
   MOBILE CATEGORY MENU
   ========================= */

@media (max-width: 992px) {
  .category-wrapper {
    border: none;
  }

  /* Level 1 buttons */
  .cat-btn {
    position: relative;
    padding-right: 40px;
  }

  /* Add expand icon */
  .cat-btn::after {
    content: "+";
    position: absolute;
    right: 15px;
    font-size: 18px;
    transition: transform 0.2s ease;
  }

  .cat-btn.active::after {
    content: "−";
  }

  /* Mega menu becomes accordion */
  .category-mega {
    display: none;
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 15px;
    background: #fafafa;
  }

  .category-mega.default-open {
    display: none;
  }

  /* Subcategory spacing */
  .category-m-item {
    margin-bottom: 15px;
  }

  .category-m-item h6 {
    font-size: 14px;
  }

  .category-m-item a {
    padding-left: 10px;
  }
}
@media (max-width: 768px) {
  .carousel-caption {
    bottom: 10px;
    padding: 10px;
  }

  .carousel-caption h2 {
    font-size: 16px;
    line-height: 1.2;
  }

  .carousel-caption p {
    font-size: 13px;
  }

  .carousel-caption .btn {
    font-size: 14px;
    padding: 8px 14px;
  }
}

@media (max-width: 768px) {
  .carousel-buy-btn {
    width: auto;
    min-width: 140px;
    border-radius: 20px;
  }
}
