/* Side Cart Drawer Styles - Kitchen Pro Premium */

#side-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 43, 0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(4px);
}

#side-cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

#side-cart-drawer {
  position: fixed;
  top: 0;
  right: -1000px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary);
}

#side-cart-drawer.open {
  right: 0;
}

/* Header */
.drawer-header {
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0F172B;
  color: #fff;
}

.drawer-title {
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}

[data-cart-count] {
  font-size: 14px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
  color: #fff;
}

.drawer-close {
  cursor: pointer;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.drawer-close:hover {
  transform: rotate(90deg);
  color: #DD2F2E;
}

/* Items Area */
.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 30px 40px;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item__image-wrapper {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item__product-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.cart-item__link {
  color: #0F172B;
  text-decoration: none;
  transition: color 0.2s;
}

.cart-item__link:hover {
  color: #DD2F2E;
}

.cart-item__variant-title {
  font-size: 13px;
  color: #8E96A3;
  margin-bottom: 8px;
}

.cart-item__price {
  font-size: 15px;
  font-weight: 500;
  color: #0F172B;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  border: 1px solid #DFDFDF;
  border-radius: 50px;
  overflow: hidden;
  height: 34px;
}

.cart-item__qty-btn {
  background: transparent;
  border: none;
  width: 34px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0F172B;
  font-size: 16px;
  transition: background 0.2s;
}

.cart-item__qty-btn:hover {
  background: #F8F9FA;
}

.cart-item__qty-input {
  width: 34px;
  text-align: center;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #0F172B;
  background: transparent;
  padding: 0;
}

.cart-item__remove {
  background: transparent;
  border: none;
  font-size: 12px;
  color: #8E96A3;
  text-decoration: underline;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.cart-item__remove:hover {
  color: #DD2F2E;
}

/* Footer */
.drawer-footer {
  padding: 30px 40px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
  flex-direction: column;
}

.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.drawer-subtotal-label {
  font-size: 16px;
  color: #45556C;
  font-weight: 400;
}

.drawer-subtotal-value {
  font-size: 22px;
  font-weight: 500;
  color: #0F172B;
}

.drawer-info-text {
  font-size: 13px;
  color: #8E96A3;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.4;
}

.drawer-checkout-btn {
  display: block;
  width: 100%;
  background: #DD2F2E;
  color: #fff;
  text-align: center;
  padding: 18px;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 2px solid #DD2F2E;
  cursor: pointer;
  margin-bottom: 0;
}

.drawer-checkout-btn:hover {
  background: #fff;
  color: #DD2F2E;
}

.drawer-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #ccc;
  border-color: #ccc;
  color: #666;
}

.drawer-view-cart-btn {
  display: block;
  width: 100%;
  background: #0F172B;
  color: #fff;
  text-align: center;
  padding: 18px;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 2px solid #0F172B;
  cursor: pointer;
  margin-bottom: 10px;
}

.drawer-view-cart-btn:hover:not(:disabled) {
  background: #fff;
  color: #0F172B;
}

.drawer-view-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #ccc;
  border-color: #ccc;
  color: #666;
}

/* Compliance Terms Checkbox */
.drawer-terms-wrapper,
.kp-cart__terms-wrapper {
  margin-bottom: 20px;
  padding: 10px 0;
}
#open-quote-popup {
	width: 100%;
}
#open-quote-popup:disabled {
	cursor: not-allowed;
}
.drawer-terms-label,
.kp-cart__terms-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: #45556C;
}

.drawer-terms-input,
.kp-cart__terms-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #DD2F2E;
}

.drawer-terms-text a,
.kp-cart__terms-text a {
  color: #DD2F2E;
  text-decoration: underline;
  transition: color 0.2s;
}

.drawer-terms-text a:hover,
.kp-cart__terms-text a:hover {
  text-decoration: none;
}

.drawer-footer-actions {
  text-align: center;
  margin-top: 15px;
}

.drawer-view-cart {
  font-size: 13px;
  color: #8E96A3;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.drawer-view-cart:hover {
  color: #0F172B;
}

/* Empty State */
.drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.drawer-empty svg {
  color: #f1f5f9;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.drawer-empty h3 {
  font-size: 24px;
  font-weight: 300;
  color: #0F172B;
  margin-bottom: 10px;
}

.drawer-empty p {
  font-size: 16px;
  color: #8E96A3;
  margin-bottom: 30px;
}

.drawer-continue-btn {
  background: #0F172B;
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.drawer-continue-btn:hover {
  background: #DD2F2E;
}

/* Scrollbar Style */
.drawer-items::-webkit-scrollbar {
  width: 5px;
}

.drawer-items::-webkit-scrollbar-track {
  background: #fff;
}

.drawer-items::-webkit-scrollbar-thumb {
  background: #f1f5f9;
  border-radius: 10px;
}

.drawer-items::-webkit-scrollbar-thumb:hover {
  background: #e2e8f0;
}

.hidden {
  display: none !important;
}
