/* SOCO Cart — slide-out drawer */

body.soco-cart-open {
  overflow: hidden;
}

#soco-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 99998;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#soco-cart-overlay.open {
  display: block;
  opacity: 1;
}

#soco-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 48px rgba(15, 23, 42, 0.12);
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
}

#soco-cart-panel.open {
  transform: translateX(0);
}

.soco-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #ece8e1;
  flex-shrink: 0;
}

.soco-cart-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #141414;
  margin: 0;
  letter-spacing: -0.02em;
}

.soco-cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f0eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #141414;
  transition: background 0.2s;
}

.soco-cart-close:hover {
  background: #e8e4dd;
}

.soco-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 16px;
  -webkit-overflow-scrolling: touch;
}

.soco-cart-body::-webkit-scrollbar {
  width: 4px;
}

.soco-cart-body::-webkit-scrollbar-thumb {
  background: #ddd8d0;
  border-radius: 2px;
}

.soco-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: #8a8278;
  text-align: center;
  gap: 10px;
  padding: 24px 0;
}

.soco-cart-empty-icon {
  opacity: 0.35;
  color: #141414;
}

.soco-cart-empty p {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  margin: 0;
}

.soco-cart-empty-sub {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: #8a8278 !important;
}

.soco-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #f3f0eb;
}

.soco-cart-item:last-child {
  border-bottom: none;
}

.soco-cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f4ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.soco-cart-img-placeholder {
  font-size: 1.75rem;
  opacity: 0.45;
}

.soco-cart-item-info {
  min-width: 0;
}

.soco-cart-item-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #141414;
  line-height: 1.35;
}

.soco-cart-item-sub {
  font-size: 0.75rem;
  color: #8a8278;
  margin-top: 2px;
}

.soco-cart-item-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #141414;
  margin-top: 6px;
}

.soco-cart-item-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8a8278;
}

.soco-cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.soco-cart-remove {
  background: none;
  border: none;
  color: #c4bdb4;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.soco-cart-remove:hover {
  color: #666;
}

.soco-cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e0d8;
  border-radius: 999px;
  padding: 4px 10px;
}

.soco-cart-qty span {
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.soco-cart-qty-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  font-weight: 700;
}

.soco-cart-qty-btn:hover {
  color: #141414;
}

.soco-cart-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid #ece8e1;
  flex-shrink: 0;
  background: #fff;
}

.soco-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.soco-cart-subtotal span:first-child {
  font-size: 0.875rem;
  color: #666;
}

.soco-cart-total-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: #141414;
}

.soco-cart-disclaimer {
  font-size: 0.75rem;
  color: #aaa;
  margin: 0 0 16px;
  line-height: 1.5;
}

.soco-cart-checkout {
  width: 100%;
  background: #141414;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 10px;
}

.soco-cart-checkout:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.soco-cart-continue {
  width: 100%;
  background: transparent;
  color: #666;
  border: 1px solid #e5e0d8;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.soco-cart-continue:hover {
  border-color: #141414;
  color: #141414;
}

#soco-cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #141414;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 100000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

#soco-cart-toast.show {
  transform: translateX(-50%) translateY(0);
}

.soco-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #141414;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}

.ro-nav-cart {
  position: relative;
}

@media (max-width: 768px) {
  #soco-cart-panel {
    width: 100vw;
  }

  .soco-cart-header,
  .soco-cart-body,
  .soco-cart-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Homepage mirror product carousel CTAs */
.soco-home-product-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.5rem !important;
  width: 100%;
}

.soco-home-product-actions > a,
.soco-home-product-actions > .soco-home-cart-btn {
  width: 100% !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  height: 2.75rem !important;
  min-height: 2.75rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.soco-home-product-actions > a .rds-button-content,
.soco-home-product-actions > a [class*="Content-sc-b655ccb2"] {
  line-height: 1.2 !important;
}

.soco-home-product-price {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.soco-home-cart-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: #141414;
  border: 1px solid #e5e0d8;
  cursor: pointer;
}

.soco-home-cart-btn:hover {
  border-color: #141414;
  color: #141414;
}
