.mahitham-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.mahitham-grid .ht-product {
  margin: 0;
}
.mahitham-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.mahitham-cat-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.mahitham-cat-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
.mahitham-cat-card span {
  font-family: var(--rubik, sans-serif);
  font-size: 16px;
  font-weight: 500;
}
@media (max-width: 1024px) {
  .mahitham-grid,
  .mahitham-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .mahitham-grid,
  .mahitham-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Compatibility: Outbuilt swap styles use .wc-product-image:hover, but
   the card markup here wraps the thumbnail in .ht-product-image. */
.ht-product-image .thumbnail-swap .wc-product-image-main {
  opacity: 1;
}
.ht-product-image .thumbnail-swap .wc-product-image-secondary {
  opacity: 0;
  position: absolute;
  inset: 0;
}
.ht-product-image:hover .thumbnail-swap .wc-product-image-main {
  opacity: 0;
}
.ht-product-image:hover .thumbnail-swap .wc-product-image-secondary {
  opacity: 1;
}

/* Category grid parity fallback when slider JS isn't active */
.elementor-widget-mahitham-category-grid .wl-row.product-slider {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 30px;
  margin-left: 0;
  margin-right: 0;
}

.elementor-widget-mahitham-category-grid .wl-col-1 {
  width: auto;
  padding-left: 0;
  padding-right: 0;
}

.elementor-widget-mahitham-category-grid .ht-category-wrap {
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .elementor-widget-mahitham-category-grid .wl-row.product-slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .elementor-widget-mahitham-category-grid .wl-row.product-slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Durable parity lock for category section (no Elementor IDs) */
.elementor-section.mahitham-category-section {
  margin-top: 0 !important;
  margin-bottom: 50px !important;
}

.elementor-section.mahitham-category-section > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: #f9f9f9 !important;
}

.elementor-section.mahitham-category-section .elementor-widget-heading {
  text-align: center;
}

.elementor-section.mahitham-category-section .elementor-widget-heading > .elementor-widget-container {
  margin: 50px 0 20px;
}

.elementor-section.mahitham-category-section .elementor-widget-heading .elementor-heading-title {
  font-family: "Cormorant Garamond", Sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 2em;
  color: #000;
}

/* Durable parity lock for product sections (heading + CTA button) */
.elementor-section.mahitham-product-section .elementor-widget-heading {
  text-align: center;
}

.elementor-section.mahitham-product-section .elementor-widget-heading > .elementor-widget-container {
  margin: 0 0 20px;
}

.elementor-section.mahitham-product-section .elementor-widget-heading .elementor-heading-title {
  font-family: "Cormorant Garamond", Sans-serif;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.5em;
  letter-spacing: 0.4px;
  color: #000;
}

.elementor-section.mahitham-product-section .elementor-widget-button.elementor-align-center > .elementor-widget-container {
  margin: 0 0 50px;
}

.elementor-section.mahitham-product-section .elementor-widget-button .elementor-button {
  background-color: transparent;
  font-family: "Rubik", Sans-serif;
  font-weight: 500;
  color: #000;
  fill: #000;
  border: 0;
  padding: 0;
}

.elementor-section.mahitham-product-section .elementor-widget-button .elementor-button-content-wrapper {
  flex-direction: row-reverse;
}

.elementor-section.mahitham-product-section .elementor-widget-button .elementor-button:hover,
.elementor-section.mahitham-product-section .elementor-widget-button .elementor-button:focus {
  color: #e8d95d;
}

.elementor-section.mahitham-product-section .elementor-widget-button .elementor-button:hover svg,
.elementor-section.mahitham-product-section .elementor-widget-button .elementor-button:focus svg {
  fill: #e8d95d;
}

/* Premium storefront redesign for Mahitham product cards (markup unchanged). */
.elementor-widget-mahitham-product-grid .ht-products {
  font-family: var(--e-global-typography-primary-font-family, inherit) !important;
  row-gap: 3.2rem;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product {
  margin-bottom: 0;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner {
  border: 0.1rem solid #e7e2d8;
  border-radius: 1.2rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0.4rem 1.4rem rgba(22, 18, 12, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner:hover {
  transform: translateY(-0.2rem);
  border-color: #d9ccb4;
  box-shadow: 0 1rem 2rem rgba(22, 18, 12, 0.1);
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-image-wrap {
  position: relative;
  padding: 0;
  background: transparent;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-image-wrap .ht-product-image {
  border-radius: 1.2rem 1.2rem 0 0;
  overflow: hidden;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner:hover .ht-product-image-wrap img {
  transform: scale(1.02);
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-image-wrap .ht-product-label {
  top: 1.2rem;
  border-radius: 999px;
  min-width: 4.2rem;
  min-height: 4.2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-image-wrap .ht-product-label-left {
  left: 1.2rem;
  color: #3f3a33;
  background: rgba(255, 255, 255, 0.92);
  border: 0.1rem solid #e7dfd2;
  min-width: auto;
  min-height: auto;
  padding: 0.5rem 0.9rem;
  font-size: 1.15rem;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-image-wrap .ht-product-label-right {
  right: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, #b9963b 0%, #c8a74b 100%);
  text-align: center;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content {
  padding: 1.4rem 1.6rem 1.6rem;
  background-color: color-mix(in srgb, var(--primary-color, #c09c42) 4%, transparent);
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-title {
  margin: 0;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #22201b;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-title a:hover {
  color: #b8923f;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price {
  margin-top: 0.35rem;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price del,
.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price del .woocommerce-Price-amount {
  font-size: 1.45rem;
  font-weight: 400;
  color: #8d867c;
}

.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price ins,
.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price ins .woocommerce-Price-amount,
.elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price > .woocommerce-Price-amount {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: #2a261f;
}

@media (max-width: 1024px) {
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-title a {
    font-size: 1.5rem;
  }
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price ins,
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price ins .woocommerce-Price-amount,
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price > .woocommerce-Price-amount {
    font-size: 1.8rem;
  }
}

@media (max-width: 767px) {
  .elementor-widget-mahitham-product-grid .ht-products {
    row-gap: 2.2rem;
  }
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content {
    padding: 1.2rem 1.3rem 1.4rem;
  }
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-title a {
    font-size: 1.8rem;
  }
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price del,
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price del .woocommerce-Price-amount {
    font-size: 1.3rem;
  }
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price ins,
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price ins .woocommerce-Price-amount,
  .elementor-widget-mahitham-product-grid .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price .price > .woocommerce-Price-amount {
    font-size: 1.65rem;
  }
}
