.card-product {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.1);
  border-color: #e8e8e8;
}

.product-card-media-shell {
  position: relative;
  padding: 10px 10px 0;
}

.product-card-media {
  display: block;
  overflow: hidden;
}

.product-card-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 150px;
  padding: 0.85rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f2faf6 100%);
  overflow: hidden;
}

.product-card-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.card-product:hover .product-card-image {
  transform: scale(1.035);
}

.product-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem 0.8rem;
  text-align: left;
}

.product-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.product-card-category {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.product-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.32;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title a {
  color: #111827 !important;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  color: #777;
}

.product-card-stars {
  display: inline-flex;
  gap: 0.08rem;
  color: #f5ad28;
}

.product-card-reviews {
  color: #777;
}

/* .product-card-price {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
} */

.product-card-current-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  line-height: 1;
}

.product-card-old-price {
  font-size: 0.74rem;
  color: #9ca3af;
  text-decoration: line-through;
  line-height: 1;
}

.badge-sale {
  background: #f6d84c;
  color: #4b3a00;
  font-weight: 600;
}

.product-card-sale-badge {
  position: static;
  font-size: 0.62rem;
  line-height: 1;
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
}

.product-card-variant {
  border: 1px solid rgba(27, 94, 58, 0.16);
  background: #fff;
  color: var(--dharani-dark);
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 500;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.product-card-variant.is-active,
.product-card-variant:hover,
.product-card-variant:focus-visible {
  background: var(--dharani-green);
  border-color: var(--dharani-green);
  color: #fff;
}

.product-card-actions {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  margin-top: auto;
  padding: 0;
}

.product-card-select-btn {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 9px;
  background: #2f5d1d;
  border-color: #2f5d1d;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.product-card-select-btn:hover,
.product-card-select-btn:focus-visible {
  background: #274d18;
  border-color: #274d18;
  transform: translateY(-1px);
}

.quick-product-modal-media {
  min-height: 100%;
}

.quick-product-modal-image {
  width: 100%;
  max-height: 28rem;
  object-fit: contain;
  object-position: center;
}

.quick-product-modal-cart-btn,
.quick-product-modal-link-btn {
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-modal-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cart-drawer {
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
}

.cart-drawer .offcanvas-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.cart-drawer-body {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 94, 58, 0.42) rgba(27, 94, 58, 0.08);
}

.cart-drawer-body::-webkit-scrollbar {
  width: 5px;
}

.cart-drawer-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(27, 94, 58, 0.08);
}

.cart-drawer-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(27, 94, 58, 0.42);
}

.cart-drawer-body::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 94, 58, 0.58);
}

.cart-drawer-footer {
  flex-shrink: 0;
  background: #fff;
  padding: 1.2rem 1.25rem 1.4rem;
}

.cart-drawer-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: rgba(15, 36, 24, 0.62);
}

.cart-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-drawer-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.95rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(15, 36, 24, 0.08);
}

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

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

.cart-drawer-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.cart-drawer-item-meta {
  color: rgba(15, 36, 24, 0.55);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.cart-drawer-item-price {
  font-weight: 500;
  color: var(--dharani-green);
}

.cart-drawer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.cart-drawer-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--dharani-green-soft);
  border-radius: 999px;
  padding: 0.3rem;
}

.cart-drawer-qty button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--dharani-green);
  font-weight: 500;
}

.cart-drawer-qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.cart-drawer-remove {
  border: 0;
  background: transparent;
  color: #d6336c;
  font-size: 0.86rem;
  padding: 0;
}

.cart-drawer-skeleton {
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.95rem;
  border-bottom: 1px solid rgba(15, 36, 24, 0.08);
}

.cart-drawer-skeleton-box {
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(232, 245, 238, 0.7), rgba(255, 255, 255, 1), rgba(232, 245, 238, 0.7));
  background-size: 200% 100%;
  animation: cart-drawer-shimmer 1.2s linear infinite;
}

.cart-drawer-skeleton-box.image {
  width: 84px;
  height: 84px;
}

.cart-drawer-skeleton-box.line {
  height: 0.85rem;
  margin-bottom: 0.6rem;
}

.cart-drawer-skeleton-box.line:last-child {
  width: 55%;
  margin-bottom: 0;
}

@keyframes cart-drawer-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 575.98px) {
  .product-card-body {
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .product-card-actions {
    padding: 0;
  }

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