@import url(https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap);
/* Import Work Sans font */

/* Jane Widget Styles */
.jane-widget {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  position: relative;
}

.jane-widget-container {
  position: relative;
  padding: 20px 60px;
}

.jane-widget-carousel {
  position: relative;
  overflow: hidden;
}

/* Gradient overlays for smooth edges using opacity mask */
.jane-widget-carousel::before,
.jane-widget-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
  background: inherit;
}

.jane-widget-carousel::before {
  left: 0;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 100%);
  mask-image: linear-gradient(to left, transparent 0%, black 100%);
  backdrop-filter: blur(0px);
}

.jane-widget-carousel::after {
  right: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 100%);
  backdrop-filter: blur(0px);
}

/* Apply mask to the grid to fade out edges */
.jane-widget-carousel {
  -webkit-mask-image: linear-gradient(to right, transparent 0px, black 60px, black calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0px, black 60px, black calc(100% - 60px), transparent 100%);
}

.jane-widget-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px;
  margin: 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.jane-widget-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.jane-widget-card {
  background: #fff;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 0 0 calc(25% - 18px);
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

@media (max-width: 1200px) {
  .jane-widget-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 768px) {
  .jane-widget-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 220px;
  }

  .jane-widget-container {
    padding: 20px 40px;
  }

  .jane-widget-grid {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .jane-widget-card {
    flex: 0 0 calc(70% - 8px);
    min-width: 180px;
    max-width: 240px;
    border-radius: 14px;
  }

  .jane-widget-container {
    padding: 12px 16px;
  }

  .jane-widget-grid {
    gap: 10px;
    padding: 4px 2px;
  }

  .jane-widget-carousel::before,
  .jane-widget-carousel::after {
    width: 20px;
  }

  .jane-widget-carousel {
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 30px, black calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0px, black 30px, black calc(100% - 30px), transparent 100%);
  }

  .jane-widget-image {
    height: 140px;
    min-height: 140px;
  }

  .jane-widget-image img {
    max-width: 140px;
    max-height: 110px;
  }

  .jane-widget-content {
    padding: 12px 14px 14px 14px;
    gap: 2px;
  }

  .jane-widget-name {
    font-size: 14px;
    min-height: 32px;
    height: 32px;
  }

  .jane-widget-price {
    font-size: 24px;
    margin: 0 0 4px 0;
  }

  .jane-widget-shop-btn {
    font-size: 13px;
    padding: 0.5rem 0.4rem;
    border-radius: 10px;
  }

  .jane-widget-savings-badge {
    width: 44px;
    height: 44px;
    top: 6px;
    right: 6px;
  }

  .jane-widget-savings-badge:before,
  .jane-widget-savings-badge:after {
    height: 44px;
    width: 44px;
  }

  .jane-widget-savings-save {
    font-size: 6px;
  }

  .jane-widget-savings-upto {
    font-size: 5px;
  }

  .jane-widget-savings-amount {
    font-size: 10px;
  }

  .jane-widget-category-label {
    font-size: 8px;
    padding: 3px 8px;
    top: 8px;
    left: 8px;
  }

  .jane-widget-brand-badge {
    font-size: 8px;
  }

  .jane-widget-special-badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  .jane-widget-discount-badge {
    font-size: 11px;
  }

  .jane-widget-price-row {
    margin: 0 0 4px 0;
  }
}

.jane-widget-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation Arrows */
.jane-widget-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #003d21;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 61, 33, 0.3);
}

.jane-widget-nav:hover:not(:disabled) {
  background: #005a31;
  box-shadow: 0 6px 20px rgba(0, 61, 33, 0.4);
  transform: translateY(-50%) scale(1.05);
}

.jane-widget-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.jane-widget-nav-prev {
  left: 8px;
}

.jane-widget-nav-next {
  right: 8px;
}

.jane-widget-nav svg {
  width: 22px;
  height: 22px;
  color: #fff;
  stroke-width: 2.5;
}

/* Disabled state for arrows at edge */
.jane-widget-nav-disabled,
.jane-widget-nav:disabled {
  background: #e5e7eb;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.5;
}

.jane-widget-nav-disabled svg,
.jane-widget-nav:disabled svg {
  color: #9ca3af;
}

/* Category Label (top left) - Green Pill */
.jane-widget-category-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  color: white;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  background: #43b97f; /* Green */
  padding: 0.1rem 0.75rem;
  border-radius: 20px;
}

/* Special Amount Badge - Yellow Callout (above title) */
.jane-widget-special-badge {
  display: inline-block;
  font-size: 12px;
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #FCD34D;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Brand row container - brand badge and special badge on same line */
.jane-widget-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

/* Brand Name Badge (above title in content area) */
.jane-widget-brand-badge {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Price row container */
.jane-widget-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 12px 0;
}

.jane-widget-price-row .jane-widget-price {
  margin: 0;
}

/* Discount Badge - Orange Text (next to price) */
.jane-widget-discount-badge {
  font-size: 16px;
  color: #F59E0B; /* Orange */
  font-weight: 900;
  letter-spacing: 0px;
  text-transform: uppercase;
}

/* Savings Badge (top right) - Golden Scalloped Circle */
.jane-widget-savings-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23E5B648;stop-opacity:1" /><stop offset="100%" style="stop-color:%23C99F38;stop-opacity:1" /></linearGradient></defs><circle cx="50" cy="50" r="45" fill="url(%23grad)"/><circle cx="50" cy="5" r="5" fill="url(%23grad)"/><circle cx="73.5" cy="11.5" r="5" fill="url(%23grad)"/><circle cx="88.5" cy="26.5" r="5" fill="url(%23grad)"/><circle cx="95" cy="50" r="5" fill="url(%23grad)"/><circle cx="88.5" cy="73.5" r="5" fill="url(%23grad)"/><circle cx="73.5" cy="88.5" r="5" fill="url(%23grad)"/><circle cx="50" cy="95" r="5" fill="url(%23grad)"/><circle cx="26.5" cy="88.5" r="5" fill="url(%23grad)"/><circle cx="11.5" cy="73.5" r="5" fill="url(%23grad)"/><circle cx="5" cy="50" r="5" fill="url(%23grad)"/><circle cx="11.5" cy="26.5" r="5" fill="url(%23grad)"/><circle cx="26.5" cy="11.5" r="5" fill="url(%23grad)"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 800;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 8px rgba(212, 175, 55, 0.3));
  z-index: 2;
  letter-spacing: 0.3px;
  text-align: center;
}

.jane-widget-savings-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.jane-widget-savings-save {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.jane-widget-savings-upto {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.jane-widget-savings-amount {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0px;
}

.jane-widget-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
  min-height: 180px;
}

.jane-widget-image img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.jane-widget-card:hover .jane-widget-image img {
  transform: scale(1.08);
}

/* Placeholder with blur effect */
.jane-widget-image-placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  opacity: 0.4;
}

.jane-widget-image-placeholder {
  background-image: url(de89b34eb3d186e8a22b.webp);
  background-size: 80% auto;
  background-position: center;
  filter: blur(3px);
}

/* "Image Coming Soon" text overlay */
.jane-widget-placeholder-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jane-widget-content {
  padding: 1rem 1.75rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  flex: 1;
}

/* Push button to bottom of card */
.jane-widget-content .jane-widget-shop-btn {
  margin-top: auto;
}

.jane-widget-brand {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  line-height: 1.2;
}

.jane-widget-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #003d21;
  margin: 0;
  line-height: 1.1;
  min-height: 52px;
  height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.jane-widget-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: #003d21; /* Very dark green/black */
  margin: 4px 0 12px 0;
  letter-spacing: -1px;
  line-height: 1;
}

/* Shop Now Button */
.jane-widget-shop-btn {
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
  background-color: #43b97f; /* Button secondary green */
  background-image: linear-gradient(#ffffff1f, #fff0);
  color: #fff;
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02rem;
  line-height: 1.2;
  text-align: center;
  padding: 0.7rem 0.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  transition-property: background-color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
  margin-top: 4px;
  box-shadow:
    inset 0 -8px 20px #1a192514,
    0 8px 12px -4px #1a19250f,
    0 4px 8px -4px #1a19251f,
    0 2px 4px -1px #1a19251f,
    0 1px 1.5px -0.5px #1a19251f,
    0 0.75px 0.75px #1a19251f,
    0 0.25px 0.25px #1a19253d,
    inset 0 1px 3px #ffffff14,
    inset 0 0.75px 0.75px #ffffff14,
    inset 0 0.25px 0.25px #ffffff1f;
  pointer-events: none; /* Prevent button from intercepting clicks when card is clickable */
}

.jane-widget-card:hover .jane-widget-shop-btn {
  background-color: #5a9464;
}

.jane-widget-loading,
.jane-widget-error {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.jane-widget-spinner {
  border: 3px solid #f3f4f6;
  border-top-color: #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: jane-widget-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes jane-widget-spin {
  to { transform: rotate(360deg); }
}

.jane-widget-error {
  color: #dc2626;
}

/* ===== GRID LAYOUT ===== */
.jane-widget-layout-grid .jane-widget-container-grid {
  padding: 20px;
}

.jane-widget-static-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Grid layout card adjustments */
.jane-widget-layout-grid .jane-widget-card {
  flex: none;
  min-width: unset;
  max-width: none;
  width: 100%;
}

/* Grid responsive breakpoints */
@media (max-width: 1200px) {
  .jane-widget-static-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .jane-widget-static-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .jane-widget-static-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .jane-widget-layout-grid .jane-widget-container-grid {
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .jane-widget-static-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .jane-widget-layout-grid .jane-widget-card {
    max-width: 100%;
    border-radius: 12px;
  }

  .jane-widget-layout-grid .jane-widget-container-grid {
    padding: 10px 8px;
  }
}

/* ===== DEAL COLLECTIONS LAYOUT ===== */
.jane-widget-deals .jane-widget-deal-card {
  position: relative;
  /* Ensure consistent card height with flexbox */
  display: flex;
  flex-direction: column;
}

/* Discount badge - top right corner */
.jane-widget-deal-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Deal image styling - fixed height */
.jane-widget-deal-image {
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
}

/* Deal content area - flex grow to fill remaining space */
.jane-widget-deal-content {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Deal title - fixed height for consistency */
.jane-widget-deal-title {
  font-size: 1.25rem;
  min-height: 4.5rem; /* Fixed height for ~3 lines */
  height: 4.5rem;
  margin-bottom: 8px;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product count text */
.jane-widget-deal-product-count {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Deal type badge */
.jane-widget-deal-type-badge {
  font-size: 12px;
  color: white;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #6b7280;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  align-self: center;
}

/* Push the button to the bottom */
.jane-widget-deal-content .jane-widget-shop-btn {
  margin-top: auto;
}

/* Deal card responsive */
@media (max-width: 768px) {
  .jane-widget-deal-discount-badge {
    font-size: 12px;
    padding: 4px 10px;
  }

  .jane-widget-deal-title {
    font-size: 1.1rem;
    min-height: 4rem;
    height: 4rem;
  }

  .jane-widget-deal-product-count {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .jane-widget-deal-discount-badge {
    font-size: 11px;
    padding: 4px 8px;
    top: 8px;
    right: 8px;
  }

  .jane-widget-deal-image {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }

  .jane-widget-deal-title {
    font-size: 1rem;
    min-height: 3.5rem;
    height: 3.5rem;
  }
}

/* ===== SPECIALS LAYOUT (Jane API) ===== */
.jane-widget-specials .jane-widget-special-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Special image styling */
.jane-widget-special-image {
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
}

.jane-widget-special-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Special content area - match product card styling */
.jane-widget-special-content {
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.75rem 1.25rem 1.75rem;
  gap: 4px;
}

/* Special title - match product name styling */
.jane-widget-special-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #003d21;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  line-height: 1.1;
  min-height: 4.5rem;
  height: 4.5rem;
  margin: 0 0 4px 0;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Special description */
.jane-widget-special-description {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 8px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Special type badge */
.jane-widget-special-type {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Push the button to the bottom */
.jane-widget-special-content .jane-widget-shop-btn {
  margin-top: auto;
}

/* Special card responsive */
@media (max-width: 768px) {
  .jane-widget-special-title {
    font-size: 1.1rem;
    min-height: 4rem;
    height: 4rem;
  }

  .jane-widget-special-description {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 480px) {
  .jane-widget-special-image {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
  }

  .jane-widget-special-content {
    padding: 12px 16px 16px 16px;
    gap: 2px;
  }

  .jane-widget-special-title {
    font-size: 0.875rem;
    min-height: 2.5rem;
    height: 3rem;
    -webkit-line-clamp: 2;
    margin-bottom: 2px;
  }

  .jane-widget-special-description {
    font-size: 11px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    margin-bottom: 4px;
  }

  .jane-widget-special-type {
    font-size: 10px;
    margin-bottom: 6px;
  }

  /* Compact specials button on mobile */
  .jane-widget-specials .jane-widget-shop-btn {
    font-size: 13px;
    padding: 0.5rem 0.4rem;
    border-radius: 10px;
  }
}

