/* ================================
   GENERAL CAROUSEL CARD STYLES
================================ */
.carousel-cards {
  width: calc(100% - 40px);
  margin: auto;
  border-radius: 7px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-cards h4 {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
}

.carousel-cards .img-box {
  border-radius: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--theme-border, silver) !important;
  background: var(--theme-surface, #ffffff) !important;
}

/* ======================================
   PRODUCT TITLE - MULTILINE TRUNCATION
====================================== */
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  margin: 0;
  font-size: 15px;
  height: 55px;
  font-weight: 500 !important;
}

/* ======================================
   DYNAMIC CATEGORY CAROUSEL
====================================== */
.dynamic-carousel-cards {
  width: calc(100% - 40px);
  margin: auto;
  border-radius: 7px;
  overflow: hidden;
  text-align: left;
}

.dynamic-carousel-cards .item {
  border-radius: 7px;
  border: 1px solid var(--theme-border, whitesmoke) !important;
  background: var(--theme-surface, #ffffff) !important;
  color: var(--theme-text, #111827) !important;
}

.dynamic-carousel-cards h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 1rem 0;
  color: var(--theme-text, #111827) !important;
}

.image-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.dynamic-carousel-cards .image-container {
  aspect-ratio: 1 / 1;
  margin: auto;
  border-top-right-radius: 7px;
  border-top-left-radius: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--theme-border, #f5f5f5) !important;
  background: var(--theme-surface, #ffffff) !important;
}

@media (max-width: 768px) {
  .image-container {
    height: 120px;
  }
}

.see-all-link {
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: bold;
  color: var(--theme-primary, #0d6efd) !important;
}

.see-all-link:hover,
.see-all-link:focus {
  color: rgba(var(--theme-primary-rgb, 13, 110, 253), 0.85) !important;
}

/* ================================
   AMAZON STYLE PRICE BLOCK
   (Modified to always show annotation in next line)
================================ */
.amazon-price {
  font-family: 'Amazon Ember', Arial, sans-serif;
  display: flex;
  flex-direction: column;       /* stack price + annotation */
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
  margin-top: 10px;
  color: var(--theme-text, #111827) !important;
}

.selling-price {
  color: var(--theme-text, #111827) !important;
  font-size: 18px;
  font-weight: 550;
}

.price-annotation {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  font-size: 14px;
  color: var(--theme-text-muted, #565959) !important;
  transform: none;              /* no vertical adjustment */
  white-space: nowrap;         /* keep discount and MRP together */
}

.discount {
  color: var(--theme-primary, #0d6efd) !important;
}

.mrp del {
  text-decoration: line-through !important;
}

/* MOBILE PRICE FONT TWEAKS */
@media (max-width: 768px) {
  .selling-price {
    font-size: 14px;
  }

  .price-annotation {
    font-size: 11px;
  }
}

@media (max-width: 320px) {
  .selling-price {
    font-size: 12px;
  }

  .price-annotation {
    font-size: 9px;
  }
}

/* ================================
   QUANTITY SELECTOR & CART BUTTONS
================================ */
.quantity-selector button {
  width: 30px;
  background-color: transparent !important;
}

.quantity-controls button:focus {
color: var(--theme-text) !important;
  background-color: transparent;
}

.quantity-display {
  width: 30px;
  line-height: 30px;
  text-align: center;
}

/* ================================
   FIXED BOTTOM CART BAR
================================ */
.cart-row {
  position: fixed;
  bottom: 15px;
  left: 15px;
  right: 65px;
  z-index: 99998;
  background: rgb(247, 195, 84);
  width: calc(100% - 80px);
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.4s;
  padding: 0 10px;
}

.bottom-cart-bar {
  position: fixed;
  bottom: 15px;
  left: 15px;
  width: calc(100% - 80px);
  background-color: #28a745;
  color: #fff;
  padding: 0px 15px;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

.bottom-cart-bar .cart-info {
  font-size: 0.9rem;
}

.bottom-cart-bar .cart-items,
.bottom-cart-bar .cart-total-price {
  font-weight: 600;
}

.bottom-cart-bar .cart-total-price {
  margin-top: 2px;
}

.bottom-cart-bar a.btn {
  font-weight: 600;
  color: #28a745;
  background: #fff;
  border: none;
  border-radius: 4px;
}

.bottom-cart-bar a.btn:hover {
  background: #f1f1f1;
  color: #28a745;
}

/* ================================
   CART ICON
================================ */
.cart-icon {
  font-size: 1.5rem;
}

/* ================================
   NEW CART DESIGN
================================ */
.btn-container {
  position: relative;
  display: inline-block;
}

.quantity-controls {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.quantity-controls.show {
  opacity: 1;
  pointer-events: auto;
}

.add-to-cart-btn.hide {
  opacity: 0;
  pointer-events: none;
}

.add-to-cart-btn {
  transition: opacity 0.2s ease;
}

/* ================================
   INPUT CLEANUP
================================ */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.qtyField {
  height: 28px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  background-color: transparent !important;
}

.out-of-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}
.addToCartQtyBtn{
  width: 110px;
  height: 31px;
}