/* =========================================================
   EMRAN HOSEN LLC — DYNAMIC PRODUCT SECTION
   Responsive WooCommerce product section for EMRAN HOSEN LLC.
========================================================= */

.ehllc-products {
  --eh-primary: #4f46e5;
  --eh-primary-dark: #3730a3;
  --eh-primary-deep: #312e81;
  --eh-accent: #f43f5e;
  --eh-accent-light: #ffe4e6;
  --eh-background-alt: #eef2ff;
  --eh-background: #f8fafc;
  --eh-heading: #111827;
  --eh-text: #475569;
  --eh-muted: #64748b;
  --eh-border: rgba(55, 48, 163, 0.13);
  --eh-white: #ffffff;
  --eh-sale: #e11d48;

  position: relative;
  width: calc(100vw - 20px);
  max-width: none;
  margin-top: 22px;
  margin-right: calc(50% - 50vw + 10px);
  margin-bottom: 22px;
  margin-left: calc(50% - 50vw + 10px);
  padding: clamp(24px, 3vw, 42px);
  box-sizing: border-box;
  overflow: hidden;
  color: var(--eh-text);
  background:
    radial-gradient(circle at 95% 4%, rgba(244, 63, 94, 0.12), transparent 29%),
    radial-gradient(circle at 3% 100%, rgba(79, 70, 229, 0.08), transparent 27%),
    linear-gradient(145deg, #ffffff 0%, #f8fafc 56%, #eef2ff 100%);
  border: 1px solid var(--eh-border);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(22, 33, 29, 0.09);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  isolation: isolate;
}

.ehllc-products,
.ehllc-products * {
  box-sizing: border-box;
}

.ehllc-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 3vw, 42px);
  width: 124px;
  height: 4px;
  background: linear-gradient(90deg, var(--eh-primary), var(--eh-accent), var(--eh-accent-light));
  border-radius: 0 0 999px 999px;
}

.ehllc-products::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.075);
  filter: blur(18px);
  pointer-events: none;
}

.ehllc-products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 28px;
}

.ehllc-products__heading-wrap {
  min-width: 0;
  max-width: 760px;
}

.ehllc-products__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--eh-primary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ehllc-products__eyebrow::before {
  content: "";
  width: 23px;
  height: 3px;
  flex: 0 0 23px;
  background: linear-gradient(90deg, var(--eh-primary), var(--eh-accent));
  border-radius: 999px;
}

.ehllc-products__title {
  margin: 0;
  color: var(--eh-heading);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -1.1px;
}

.ehllc-products__description {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--eh-muted);
  font-size: 14px;
  line-height: 1.65;
}

.ehllc-products__shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 45px;
  padding: 0 20px;
  color: #ffffff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--eh-primary-dark), var(--eh-primary));
  border: 1px solid var(--eh-primary);
  border-radius: 10px;
  box-shadow: 0 9px 22px rgba(79, 70, 229, 0.19);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.ehllc-products__shop-link:hover {
  color: var(--eh-primary-deep) !important;
  background: linear-gradient(135deg, var(--eh-accent), var(--eh-accent-light));
  border-color: var(--eh-accent);
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.25);
  transform: translateY(-2px);
}

.ehllc-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ehllc-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--eh-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(22, 33, 29, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ehllc-product-card:hover {
    border-color: rgba(244, 63, 94, 0.42);
    box-shadow: 0 18px 40px rgba(22, 33, 29, 0.14);
    transform: translateY(-5px);
  }
}

.ehllc-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none !important;
  background: linear-gradient(145deg, #f8fafc, #f3f0e7);
}

.ehllc-product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.001);
  transition: transform 450ms ease, filter 250ms ease;
}

.ehllc-product-card:hover .ehllc-product-card__image {
  transform: scale(1.04);
  filter: saturate(1.035);
}

.ehllc-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--eh-primary-dark), var(--eh-primary));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(22, 33, 29, 0.13);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.7px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ehllc-product-card__badge--sale {
  background: var(--eh-sale);
}

.ehllc-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.ehllc-product-card__title {
  margin: 0;
  min-height: 42px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
}

.ehllc-product-card__title a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--eh-heading);
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ehllc-product-card__title a:hover {
  color: var(--eh-primary);
}

.ehllc-product-card__rating {
  min-height: 18px;
  margin-top: 7px;
  color: var(--eh-accent);
  font-size: 12px;
  letter-spacing: 1px;
}

.ehllc-product-card__rating-count {
  margin-left: 5px;
  color: var(--eh-muted);
  font-size: 10px;
  letter-spacing: 0;
}

.ehllc-product-card__price {
  min-height: 25px;
  margin: 7px 0 13px;
  color: var(--eh-heading);
  font-size: 15px;
  font-weight: 800;
}

.ehllc-product-card__price-old {
  margin-right: 6px;
  color: #9aa39f;
  font-size: 12px;
  font-weight: 600;
  text-decoration: line-through;
}

.ehllc-product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 0 12px;
  color: #ffffff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--eh-primary-dark), var(--eh-primary));
  border: 1px solid var(--eh-primary);
  border-radius: 9px;
  box-shadow: 0 7px 17px rgba(79, 70, 229, 0.17);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.ehllc-product-card__action:hover {
  color: var(--eh-primary-deep) !important;
  background: linear-gradient(135deg, var(--eh-accent), var(--eh-accent-light));
  border-color: var(--eh-accent);
  transform: translateY(-1px);
}

.ehllc-products a.ehllc-product-card__action,
.ehllc-products a.ehllc-product-card__action:hover,
.ehllc-products a.ehllc-product-card__action:focus,
.ehllc-products a.ehllc-product-card__action:active,
.ehllc-products a.ehllc-product-card__action:visited,
.ehllc-products a.add_to_cart_button,
.ehllc-products a.ajax_add_to_cart {
  text-decoration: none !important;
  border-bottom: none !important;
}

.ehllc-product-card__action--disabled {
  color: var(--eh-muted) !important;
  background: #f1f2ee;
  border-color: rgba(55, 48, 163, 0.10);
  box-shadow: none;
  cursor: not-allowed;
}

.ehllc-products__shop-link:focus-visible,
.ehllc-product-card a:focus-visible {
  outline: 3px solid rgba(244, 63, 94, 0.55);
  outline-offset: 3px;
}

.ehllc-products__status {
  display: none;
  min-height: 170px;
  padding: 26px;
  align-items: center;
  justify-content: center;
  color: var(--eh-muted);
  text-align: center;
}

.ehllc-products__status.is-visible {
  display: flex;
}

.ehllc-products__spinner {
  width: 28px;
  height: 28px;
  margin-right: 11px;
  border: 3px solid rgba(244, 63, 94, 0.20);
  border-top-color: var(--eh-primary);
  border-radius: 50%;
  animation: ehllcProductSpin 700ms linear infinite;
}

@keyframes ehllcProductSpin {
  to { transform: rotate(360deg); }
}

.ehllc-product-skeleton {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--eh-border);
  border-radius: 18px;
}

.ehllc-product-skeleton__image {
  aspect-ratio: 1 / 1;
}

.ehllc-product-skeleton__line,
.ehllc-product-skeleton__image {
  position: relative;
  overflow: hidden;
  background: #edf0eb;
}

.ehllc-product-skeleton__line::after,
.ehllc-product-skeleton__image::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.80), transparent);
  animation: ehllcProductShimmer 1.2s infinite;
}

.ehllc-product-skeleton__body {
  padding: 15px;
}

.ehllc-product-skeleton__line {
  height: 13px;
  margin-bottom: 11px;
  border-radius: 999px;
}

.ehllc-product-skeleton__line:nth-child(1) { width: 82%; }
.ehllc-product-skeleton__line:nth-child(2) { width: 50%; }
.ehllc-product-skeleton__line:nth-child(3) { width: 62%; }

.ehllc-product-skeleton__line:nth-child(4) {
  width: 100%;
  height: 40px;
  margin-top: 16px;
  margin-bottom: 0;
  border-radius: 9px;
}

@keyframes ehllcProductShimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 1100px) {
  .ehllc-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ehllc-products {
    width: calc(100vw - 20px);
    margin-top: 14px;
    margin-right: calc(50% - 50vw + 10px);
    margin-bottom: 18px;
    margin-left: calc(50% - 50vw + 10px);
    padding: 25px 13px 28px;
    border-radius: 18px;
  }

  .ehllc-products::before {
    left: 13px;
    width: 78px;
  }

  .ehllc-products__header {
    display: block;
    margin-bottom: 20px;
  }

  .ehllc-products__title {
    font-size: 28px;
    letter-spacing: -0.7px;
  }

  .ehllc-products__description {
    font-size: 13px;
    line-height: 1.6;
  }

  .ehllc-products__shop-link {
    min-height: 40px;
    margin-top: 15px;
    padding: 0 15px;
    font-size: 12px;
  }

  .ehllc-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .ehllc-product-card { border-radius: 14px; }
  .ehllc-product-card__body { padding: 11px; }

  .ehllc-product-card__title {
    min-height: 38px;
    font-size: 13px;
  }

  .ehllc-product-card__rating {
    font-size: 10px;
    letter-spacing: 0.6px;
  }

  .ehllc-product-card__price {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .ehllc-product-card__action {
    min-height: 39px;
    padding: 0 7px;
    font-size: 11px;
  }

  .ehllc-product-card__badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 5px 7px;
    font-size: 8px;
  }
}

@media (max-width: 370px) {
  .ehllc-products__grid {
    grid-template-columns: 1fr;
  }

  .ehllc-product-card__media {
    aspect-ratio: 4 / 3;
  }

  .ehllc-product-card__title {
    min-height: auto;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ehllc-products *,
  .ehllc-products *::before,
  .ehllc-products *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
