/* ==========================================================================
   Halwa Haweli — Authentic Kerala Halwa E-Commerce Stylesheet
   Direct Replica of Clean Modern halwahaweli.com UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-brand-orange: #FFA000;
  --color-brand-orange-hover: #E68A00;
  --color-brand-dark: #1E1E24;
  --color-brand-gray: #6B7280;
  --color-border: #E5E7EB;
  --color-border-subtle: #F3F4F6;
  --color-bg-page: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-rating-green: #0C7A60;
  --color-whatsapp: #25D366;

  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-card: 14px;
  --radius-pill: 9999px;
  --radius-btn: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-page);
  color: #1F2937;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Strip with Continuous Marquee Animation */
.haweli-top-bar {
  background-color: #111827;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-container {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marqueeScroll 22s linear infinite;
  padding-left: 100%;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Movable Hero Carousel Slider (First Section in Header/Home) */
.haweli-hero-slider-section {
  padding: 16px 0 20px;
  background: #FAFAFA;
  border-bottom: 1px solid var(--color-border);
}

.hero-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  background: #FFFFFF;
}

.slider-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 15;
}

.slider-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-brand-orange);
  transition: width 0.04s linear, background-color 0.4s ease;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.hero-slide-item {
  min-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding: 44px 50px;
  gap: 32px;
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF8EE 100%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  position: relative;
}

.slide-theme-2 {
  background: linear-gradient(135deg, #FBF8FF 0%, #F5EEFD 100%);
}

.slide-theme-3 {
  background: linear-gradient(135deg, #F6FFF9 0%, #EEFBF3 100%);
}

.slide-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-brand-orange);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.slide-main-heading {
  font-size: 34px;
  font-weight: 800;
  color: #111827;
  line-height: 1.18;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.slide-main-heading span {
  color: var(--color-brand-orange);
}

.slide-sub-text {
  font-size: 15px;
  color: #4B5563;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 500px;
}

.btn-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-brand-orange);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 160, 0, 0.35);
  transition: all 0.2s;
}

.btn-slide-cta:hover {
  background: var(--color-brand-orange-hover);
  transform: translateY(-2px);
}

.slide-image-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
}

.slide-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Nav Arrows */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 10;
  transition: all 0.2s;
}

.slider-arrow-btn:hover {
  background: #FFFFFF;
  color: var(--color-brand-orange);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow-prev {
  left: 16px;
}

.slider-arrow-next {
  right: 16px;
}

/* Slider Pagination Dots */
.slider-dots-row {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-orange);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link-item {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  transition: color 0.2s;
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--color-brand-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #F3F4F6;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-header-cart:hover {
  background: #E5E7EB;
}

.cart-pill-count {
  background: var(--color-brand-orange);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* Category Arrow Strip */
.category-arrow-bar {
  padding: 20px 0 10px;
}

.category-arrow-list {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-arrow-link {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.category-arrow-link:hover, .category-arrow-link.active {
  color: var(--color-brand-orange);
  background: #FFFBEB;
}

/* Section Title */
.haweli-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin: 24px 0 28px;
  letter-spacing: -0.5px;
}

/* Product Cards Grid */
.haweli-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.haweli-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.haweli-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #F9FAFB;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.haweli-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* Orange Discount Badge (Top Right) */
.badge-discount-orange {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-brand-orange);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* Sale / Sold Out Badge (Bottom Left of Image) */
.badge-state-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #111827;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.badge-state-pill.sold-out {
  background: #374151;
}

.card-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 40px;
}

/* Teal Star Rating */
.card-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars-teal {
  color: var(--color-rating-green);
  font-size: 14px;
  letter-spacing: 1px;
}

.review-count-text {
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}

/* Pricing Row */
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.price-strikethrough {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.price-active-bold {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

/* Weight Selection Dropdown & Add Button */
.card-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.weight-select-dropdown {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #FFFFFF;
  outline: none;
  cursor: pointer;
}

.btn-add-cart-orange {
  padding: 9px 12px;
  background: var(--color-brand-orange);
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-cart-orange:hover {
  background: var(--color-brand-orange-hover);
}

.btn-add-cart-orange.disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

/* Trust Badges Hexagonal Row */
.trust-badges-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 40px 0 60px;
}

.trust-badge-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.trust-icon-hex {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.trust-label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

/* Spotlight Heritage Box Section (From 2nd Screenshot) */
.spotlight-heritage-section {
  padding: 40px 0 70px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.spotlight-image-card {
  position: relative;
  background: #F9FAFB;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.spotlight-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.packaging-callout {
  position: absolute;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  pointer-events: none;
}

.callout-top-right {
  top: 40px;
  left: 120px;
}

.callout-bottom-left {
  bottom: 20px;
  left: 20px;
}

.callout-bottom-right {
  bottom: 20px;
  right: 40px;
}

.spotlight-content .brand-subtitle-tag {
  font-size: 13px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.spotlight-content .spotlight-title {
  font-size: 34px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 12px;
}

.spotlight-content .price-large-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 8px;
}

.price-large-strikethrough {
  font-size: 16px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.price-large-active {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.badge-sale-black {
  background: #111827;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.shipping-note {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 20px;
}

.weight-selection-group {
  margin-bottom: 24px;
}

.weight-btn-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #111827;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  margin-top: 6px;
}

.quantity-stepper-row {
  margin-bottom: 24px;
}

.stepper-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #FFFFFF;
  margin-top: 6px;
}

.step-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
}

.step-value {
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.btn-spotlight-add {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-brand-orange);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  transition: background 0.2s;
  margin-bottom: 12px;
}

.btn-spotlight-add:hover {
  background: var(--color-brand-orange-hover);
}

/* Floating WhatsApp Button */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.08);
}

.whatsapp-floating-btn svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

/* Slide-out Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  z-index: 1001;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer-backdrop.active .cart-drawer-panel {
  transform: translateX(0);
}

.cart-drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-head h3 {
  font-size: 18px;
  font-weight: 800;
}

.btn-close-cart {
  font-size: 18px;
  color: #6B7280;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items-container {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #F3F4F6;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-drawer-foot {
  padding: 18px 20px;
  background: #F9FAFB;
  border-top: 1px solid var(--color-border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

.btn-checkout-haweli {
  width: 100%;
  padding: 14px;
  background: var(--color-brand-orange);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  transition: background 0.2s;
}

.btn-checkout-haweli:hover {
  background: var(--color-brand-orange-hover);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #FFFFFF;
  width: 100%;
  max-width: 540px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .haweli-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .trust-badges-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-slide-item {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    text-align: center;
    gap: 20px;
  }
  .slide-main-heading {
    font-size: 24px;
  }
  .slide-sub-text {
    font-size: 14px;
    margin: 0 auto 18px;
  }
  .btn-slide-cta {
    justify-content: center;
    margin: 0 auto;
  }
  .slider-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .slider-arrow-prev { left: 8px; }
  .slider-arrow-next { right: 8px; }
}

@media (max-width: 640px) {
  .haweli-products-grid {
    grid-template-columns: 1fr;
  }
  .header-nav {
    display: none;
  }
  .trust-badges-bar {
    grid-template-columns: 1fr 1fr;
  }
}
