:root {
  --dharani-green: #1b5e3a;
  --dharani-green-light: #2d8659;
  --dharani-green-soft: #e8f5ee;
  --dharani-cream: #f8faf7;
  --dharani-accent: #c9a227;
  --dharani-dark: #0f2418;
  /* Shared storefront background (matches checkout radial + vertical wash) */
  --dharani-site-bg:
    radial-gradient(circle at 10% 0%, rgba(201, 162, 39, 0.12), transparent 22rem),
    radial-gradient(circle at 92% 12%, rgba(45, 134, 89, 0.14), transparent 24rem),
    linear-gradient(180deg, #f8faf7 0%, #eef4f0 50%, #f8faf7 100%);
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--dharani-dark);
  background: var(--dharani-site-bg) !important;
}

.text-dharani {
  color: var(--dharani-green) !important;
}

.bg-dharani {
  background-color: var(--dharani-green) !important;
}

.bg-dharani-soft {
  background-color: var(--dharani-green-soft) !important;
}

.btn-dharani {
  background: var(--dharani-green);
  border-color: var(--dharani-green);
  color: #fff;
}

.btn-dharani:hover {
  background: var(--dharani-green-light);
  border-color: var(--dharani-green-light);
  color: #fff;
}

.btn-outline-dharani {
  color: var(--dharani-green);
  border-color: var(--dharani-green);
}

.btn-outline-dharani:hover {
  background: var(--dharani-green);
  color: #fff;
}

.section-title {
  font-weight: 600;
  color: var(--dharani-green);
  font-size: 16px;
}

.leaf-divider {
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--dharani-green-light),
      transparent);
  border-radius: 2px;
}

.benefit-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--dharani-green-soft);
  color: var(--dharani-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.testimonial-card {
  border-radius: 1rem;
  border: 1px solid rgba(27, 94, 58, 0.12);
  background: #fff;
}

.category-tile {
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(27, 94, 58, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 100%;
}

.category-tile:hover {
  border-color: var(--dharani-green-light);
  box-shadow: 0 0.5rem 1.5rem rgba(27, 94, 58, 0.12);
}

.form-control:focus {
  border-color: var(--dharani-green-light);
  box-shadow: 0 0 0 0.2rem rgba(45, 134, 89, 0.2);
}

.cart-drawer-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--dharani-green-soft) 100%);
  border: 1px solid rgba(27, 94, 58, 0.1);
}

.cart-drawer-item-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ===== MODAL CONTAINER ===== */
#quickProductModal .quick-product-modal-dialog {
  margin: 0.75rem auto;
  max-width: min(1100px, calc(100vw - 1.5rem));
  width: min(90vw, calc(100% - 1.5rem));
}

#quickProductModal .modal-content {
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  max-height: min(92vh, 900px);
}

#quickProductModal .modal-body {
  max-height: min(92vh, 900px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Smooth open/close animation */
#quickProductModal .modal-dialog {
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

#quickProductModal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

/* ===== LEFT IMAGE SECTION ===== */
.quick-product-modal-media {
  background: #f8faf8;
  padding: 30px;
}

.quick-product-modal-image {
  max-height: 320px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.quick-product-modal-media:hover .quick-product-modal-image {
  transform: scale(1.08);
}

/* ===== RIGHT CONTENT ===== */
.quick-product-modal-content {
  background: #fff;
  min-width: 0;
}

/* CATEGORY */
#quickProductModalCategory {
  letter-spacing: 1px;
  font-size: 12px;
  color: #888;
}

/* TITLE */
#quickProductModalLabel {
  font-weight: 600;
  color: #1f2937;
}

/* PRICE */
#quickProductModalPrice {
  font-size: 22px;
  font-weight: 700;
  color: #1b5e3a;
}

#quickProductModalComparePrice {
  font-size: 15px;
}

/* DESCRIPTION — line clamp + ellipsis, no scroll */
.quick-product-modal-desc-wrap {
  margin-bottom: 1rem;
  max-height: 5.5rem;
  min-height: 0;
  overflow: hidden;
}

#quickProductModalDescription.quick-product-modal-desc {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: #6b7280;
  display: -webkit-box;
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 0 !important;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* ===== VARIANTS ===== */
.product-modal-variants {
  display: flex;
  gap: 10px;
}

.product-card-variant {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.product-card-variant:hover {
  border-color: #1b5e3a;
  color: #1b5e3a;
}

.product-card-variant.is-active {
  background: #1b5e3a;
  color: #fff;
  border-color: #1b5e3a;
}

/* ===== ACTION BUTTONS ===== */
.quick-product-modal-cart-btn {
  width: 52px;
  height: 52px;
  font-size: 20px;
  background: #1b5e3a;
  border: none;
  color: #fff;
  box-shadow: 0 6px 14px rgba(27, 94, 58, 0.25);
  transition: all 0.25s ease;
}

.quick-product-modal-cart-btn:hover {
  background: #14472c;
  transform: translateY(-2px);
}

/* ===== MODAL: conversion helper ===== */
.quick-product-modal-packaging-card {
  background: #f8faf8;
  border: 1px solid rgba(27, 94, 58, 0.12) !important;
  border-radius: 16px;
}

.quick-product-modal-conversion-result {
  border-radius: 14px;
}

.quick-product-modal-full-desc {
  margin-top: 1.25rem;
}

.quick-product-modal-actions {
  margin-top: 1rem;
}

.quick-product-modal-full-desc-body {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.55;
  word-break: break-word;
  max-height: 12.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 94, 58, 0.35) rgba(27, 94, 58, 0.08);
}

.quick-product-modal-full-desc-body p:last-child {
  margin-bottom: 0;
}

.quick-product-modal-full-desc-body::-webkit-scrollbar {
  width: 6px;
}

.quick-product-modal-full-desc-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(27, 94, 58, 0.08);
}

.quick-product-modal-full-desc-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(27, 94, 58, 0.35);
}

/* DETAILS BUTTON */
.quick-product-modal-link-btn {
  width: 52px;
  height: 52px;
  font-size: 18px;
  border: 1px solid #1b5e3a;
  color: #1b5e3a;
  transition: all 0.25s ease;
}

.quick-product-modal-link-btn:hover {
  background: #1b5e3a;
  color: #fff;
}

/* ===== CLOSE BUTTON ===== */
#quickProductModal .btn-close {
  transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  #quickProductModal .quick-product-modal-dialog {
    margin: 0.5rem auto;
    max-width: calc(100vw - 1rem);
    width: calc(100% - 1rem);
  }

  .quick-product-modal-content {
    padding: 1.25rem 1.5rem !important;
  }

  #quickProductModalLabel {
    font-size: 1.35rem;
    line-height: 1.3;
  }
}

@media (max-width: 767.98px) {

  #quickProductModal .modal-content,
  #quickProductModal .modal-body {
    max-height: min(90vh, 820px);
  }

  .quick-product-modal-media {
    min-height: 180px;
    padding: 20px;
  }

  .quick-product-modal-image {
    max-height: 220px;
    width: 100%;
  }

  .quick-product-modal-content {
    padding: 1rem 1.25rem 1.25rem !important;
  }

  #quickProductModalLabel {
    font-size: 1.2rem;
  }

  #quickProductModalPrice {
    font-size: 18px;
  }

  .quick-product-modal-desc-wrap {
    max-height: 5rem;
  }

  .product-modal-variants {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  #quickProductModal .quick-product-modal-dialog {
    margin: 0.35rem auto;
    max-width: calc(100vw - 0.7rem);
    width: calc(100% - 0.7rem);
  }

  #quickProductModal .modal-content {
    border-radius: 14px;
  }

  .quick-product-modal-media {
    min-height: 150px;
    padding: 16px;
  }

  .quick-product-modal-image {
    max-height: 180px;
  }

  #quickProductModalCategory {
    font-size: 11px;
  }

  .quick-product-modal-desc-wrap {
    max-height: 4.25rem;
  }

  #quickProductModalDescription.quick-product-modal-desc {
    -webkit-line-clamp: 3;
    font-size: 0.8125rem;
  }

  .quick-product-modal-cart-btn,
  .quick-product-modal-link-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

/* =========================
   DHARANI NAVBAR
========================= */

.navbar-dharani {
  background: linear-gradient(135deg,
      #fff 0%,
      var(--dharani-green-soft) 100%);
  border-bottom: 1px solid rgba(27, 94, 58, 0.12);
  max-width: 100%;
  overflow: visible;
}

.tooltip.navbar-icon-tooltip {
  z-index: 1060;
}

.tooltip.navbar-icon-tooltip .tooltip-inner {
  white-space: nowrap;
}

/* Sticky navbar */
.navbar-dharani.sticky-top {
  z-index: 1030;
  background: linear-gradient(135deg,
      #164a2f 0%,
      var(--dharani-green, #1b5e3a) 38%,
      var(--dharani-green-light, #2d8659) 100%);
  color: white;
}

/* Dropdowns */
.navbar-dharani .dropdown-menu {
  z-index: 1040;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Full width */
.navbar-dharani>.container-fluid {
  max-width: 100%;
}

/* =========================
   BRAND
========================= */

.navbar-dharani__brand-logo {
  height: 2.5rem;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.navbar-dharani__brand-text {
  max-width: 11rem;
  color: white;
  font-weight: 600;
}

/* =========================
   NAV LINKS
========================= */

.navbar-expand-lg .navbar-nav .nav-link {
  color: white !important;
  transition: all 0.2s ease;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  font-weight: 500;
}



/* Active */
.navbar-expand-lg .navbar-nav .nav-item.active>.nav-link,
.navbar-expand-lg .navbar-nav .nav-link.active,
.navbar-expand-lg .navbar-nav .show>.nav-link {
  color: white !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* =========================
   SEARCH
========================= */

.navbar-dharani__search .form-control {
  min-height: 34px;
  border-radius: 0.5rem;
  border: none;
  box-shadow: none;
}

.navbar-dharani__search .form-control:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

.navbar-dharani__search .btn {
  min-height: 34px;
  padding-inline: 0.8rem;
}

/* =========================
   UTILITIES
========================= */

.navbar-dharani .navbar-nav .btn-link.nav-link {
  text-decoration: none;
}

/* Cart badge — overlaps top-right corner of cart icon */
.navbar-dharani #navbarCartLink {
  display: inline-flex;
  align-items: center;
  padding-right: 0.45rem;
}

.navbar-dharani .navbar-cart-badge,
#cartCountBadge {
  position: absolute;
  top: 0.05rem;
  right: -0.2rem;
  left: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  border: none;
  box-shadow: none;
  outline: none;
}

/* =========================
   MOBILE
========================= */

.navbar-toggler {
  border: none;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 576px) {
  .navbar-dharani__brand-logo {
    max-width: 9.5rem;
  }

  .navbar-dharani__brand-text {
    max-width: 16rem;
  }
}

@media (min-width: 1200px) {
  .navbar-dharani__brand-text {
    max-width: 22rem;
  }
}

/* =========================
   DESKTOP NAVBAR
========================= */
@media (min-width: 992px) {



  /* REMOVE CONTAINER PADDING */

  .navbar-dharani .container-fluid {

    padding-left: 8px !important;

    padding-right: 12px !important;

  }



  /* MOVE LOGO + BRAND LEFT */

  .navbar-brand {

    margin-right: 4px !important;

    padding-left: 0 !important;

    gap: 8px !important;

  }



  /* LOGO SIZE */

  .navbar-dharani__brand-logo {

    width: 38px;

    height: 38px;

    margin-left: 0 !important;

  }



  /* BRAND TEXT */

  .navbar-dharani__brand-text {

    font-size: 14px;

    font-weight: 700;

    margin-right: 6px;

  }



  /* MAIN NAVBAR */

  .navbar-dharani .navbar-collapse {

    gap: 6px !important;

  }



  /* LEFT NAV */

  .navbar-dharani__primary {

    gap: 0 !important;

    margin-left: 8px !important;

  }



  /* RIGHT NAV */

  .navbar-dharani__utilities {

    gap: 0 !important;

    margin-left: auto !important;

  }



  /* NAV LINKS */

  .navbar-expand-lg .navbar-nav .nav-link {

    padding: 6px 7px !important;

    font-size: 14px !important;

  }



  /* SEARCH SMALLER */

  .navbar-dharani__search {

    max-width: 240px !important;

    min-width: 140px !important;

    margin-left: 4px !important;

    margin-right: 4px !important;

  }



  .navbar-dharani__search .form-control {

    height: 36px;

    font-size: 13px;

    padding: 0 10px;

  }



  .navbar-dharani__search .btn {

    height: 36px;

    width: 40px;

  }



  /* ICONS */

  .navbar-dharani .bi-heart,

  .navbar-dharani .bi-cart3 {

    font-size: 17px !important;

  }

}



/* =========================
   MOBILE COLLAPSE
========================= */

@media (max-width: 991.98px) {

  .navbar-dharani .navbar-collapse {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 0.7rem 0.8rem;
  }

  .navbar-dharani__search {
    margin-block: 0.75rem;
  }
}

.footer-dharani {
  background: var(--dharani-dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer-dharani a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-dharani a:hover {
  color: #fff;
}