/*-----------------------------------*\
  #CART DRAWER & FLOATING NOTIFICATIONS
\*-----------------------------------*/

/* Cart Drawer Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.33, 0.85, 0.4, 0.96), visibility 0.3s;
}

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

/* Cart Drawer Panel */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  z-index: 1001;
  transform: translateX(100%);
  visibility: hidden;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.33, 0.85, 0.4, 0.96), visibility 0.35s;
}

.cart-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

/* Header */
.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.cart-drawer-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.3px;
  margin: 0;
}

.cart-drawer-count {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--hoockers-green, #425c5a);
}

.cart-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #555555;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.cart-close-btn:hover {
  background: #f0f0f0;
  color: #111111;
}

/* Items List */
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-drawer-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f2f2f2;
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 1px solid #eee;
  overflow: hidden;
  background: #fafafa;
  flex-shrink: 0;
}

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

.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-title {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.cart-item-title a {
  color: #111111;
  transition: color 0.15s;
}

.cart-item-title a:hover {
  color: var(--hoockers-green, #425c5a);
}

.cart-item-remove {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #999999;
  cursor: pointer;
  padding: 2px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: #d82c0d;
}

.cart-item-brand {
  font-size: 1.1rem;
  color: var(--hoockers-green, #425c5a);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cart-item-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-item-unit-price {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
}

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.cart-qty-btn {
  background: #fafafa;
  border: none;
  width: 26px;
  height: 26px;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cart-qty-btn:hover {
  background: #ececec;
}

.cart-qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111111;
}

.cart-item-subtotal {
  font-size: 1.2rem;
  color: #777777;
  margin-top: 2px;
}

.cart-item-subtotal strong {
  color: #111111;
}

/* Empty State */
.cart-empty-state {
  text-align: center;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-empty-icon {
  font-size: 56px;
  color: #cccccc;
  margin-bottom: 16px;
}

.cart-empty-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 8px;
}

.cart-empty-sub {
  font-size: 1.35rem;
  color: #888888;
  line-height: 1.5;
  max-width: 280px;
}

/* Drawer Footer */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid #ebebeb;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: #444444;
}

.cart-summary-total {
  font-size: 2rem;
  font-weight: 800;
  color: #111111;
}

.cart-whatsapp-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background-color: #25D366;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
  transition: background-color 0.2s, transform 0.15s;
}

.cart-whatsapp-order-btn:hover {
  background-color: #1ebe57;
  transform: translateY(-1px);
}

.cart-whatsapp-order-btn ion-icon {
  font-size: 20px;
}

.cart-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.cart-continue-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #666666;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}

.cart-continue-btn:hover {
  color: #111111;
}

.cart-clear-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #999999;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

.cart-clear-btn:hover {
  color: #d82c0d;
}

/* Toast Floating Notification */
.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  width: calc(100% - 48px);
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  border-left: 4px solid #25D366;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.33, 0.85, 0.4, 0.96), opacity 0.3s;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-toast-icon {
  font-size: 26px;
  color: #25D366;
  flex-shrink: 0;
}

.cart-toast-content strong {
  display: block;
  font-size: 1.35rem;
  color: #111111;
}

.cart-toast-content p {
  font-size: 1.2rem;
  color: #666666;
  margin: 0;
}

.cart-toast-btn {
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.cart-toast-btn:hover {
  background: var(--hoockers-green, #425c5a);
}

/* Card Add To Cart Quick Action */
.shop-card .card-add-cart-btn {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--hoockers-green, #425c5a);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-3, 3px);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.shop-card .card-add-cart-btn:hover {
  background-color: #2d413f;
  transform: translateY(-1px);
}

.shop-card .card-add-cart-btn ion-icon {
  font-size: 16px;
}
