/* StickMe Custom Cart — conversion-optimized, brand-matched */

:root {
  --stickme-red: #d91c22;
  --stickme-red-dark: #b3161b;
  --stickme-text: #1a1a1a;
  --stickme-muted: #6b7280;
  --stickme-border: #eee;
  --stickme-bg-soft: #fdf3f3;
}

.stickme-cart-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 16px 100px;
  font-family: inherit;
  color: var(--stickme-text);
}

/* Trust strip */
.stickme-cart-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
  background: var(--stickme-bg-soft);
  border: 1px solid #f5d9da;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stickme-red-dark);
}

/* Layout */
.stickme-cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .stickme-cart-grid { grid-template-columns: 1fr; }
}

.stickme-cart-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 16px;
}

/* Cart items */
.stickme-cart-items {
  background: #fff;
  border: 1px solid var(--stickme-border);
  border-radius: 12px;
  overflow: hidden;
}

.stickme-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--stickme-border);
  transition: opacity 0.2s;
}
.stickme-cart-item:last-child { border-bottom: none; }
.stickme-cart-item.stickme-updating { opacity: 0.5; pointer-events: none; }

.stickme-cart-item-img img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.stickme-cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.stickme-cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--stickme-text);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stickme-cart-item-name:hover { color: var(--stickme-red); }

.stickme-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stickme-qty-stepper {
  display: inline-flex !important;
  align-items: center;
  border: 1.5px solid var(--stickme-red);
  border-radius: 8px;
  overflow: visible;
  height: 34px;
  background: #fff;
  max-width: 100%;
  flex-shrink: 0;
}
.stickme-qty-stepper button {
  width: 28px !important;
  min-width: 28px;
  height: 34px;
  border: none;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--stickme-red) !important;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.stickme-qty-stepper button:hover { background: var(--stickme-bg-soft); }
.stickme-qty-input {
  width: 40px !important;
  min-width: 40px;
  height: 34px !important;
  border: none;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 34px !important;
  color: var(--stickme-red) !important;
  background: #fff !important;
  opacity: 1 !important;
  -moz-appearance: textfield;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
}
.stickme-qty-input::-webkit-outer-spin-button,
.stickme-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stickme-cart-item-remove {
  border: 1px solid #ddd;
  background: #f7f7f7;
  color: var(--stickme-muted);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}
.stickme-cart-item-remove:hover { color: var(--stickme-red); border-color: var(--stickme-red); background: var(--stickme-bg-soft); }

.stickme-cart-item-price,
.stickme-cart-item-subtotal {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.stickme-cart-item-subtotal { font-weight: 700; }

.stickme-mobile-only { display: none; }
@media (max-width: 640px) {
  .stickme-cart-item { grid-template-columns: 60px 1fr; }
  .stickme-cart-item-subtotal { display: none; }
  .stickme-desktop-only { display: none; }
  .stickme-mobile-only { display: block; order: -1; }
  .stickme-cart-item-img img { width: 60px; height: 60px; }
}

/* Free shipping bar */
.stickme-shipping-bar {
  margin-bottom: 18px;
  padding: 12px;
  background: var(--stickme-bg-soft);
  border-radius: 10px;
}
.stickme-shipping-bar-track {
  width: 100%;
  height: 8px;
  background: #f0d5d6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.stickme-shipping-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--stickme-red), var(--stickme-red-dark));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.stickme-shipping-bar-text {
  margin: 0;
  font-size: 12.5px;
  color: var(--stickme-red-dark);
  font-weight: 600;
}
.stickme-shipping-bar--unlocked { background: #eafaf0; }
.stickme-shipping-bar--unlocked .stickme-shipping-bar-text { color: #1a7a3c; }

/* Sidebar / totals */
.stickme-cart-sidebar { position: sticky; top: 20px; }
.stickme-totals-box {
  background: #fff;
  border: 1px solid var(--stickme-border);
  border-radius: 12px;
  padding: 20px;
}
.stickme-totals-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stickme-coupon-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}
.stickme-coupon-input {
  width: 100%;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
}
.stickme-coupon-btn {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--stickme-red);
  background: #fff;
  color: var(--stickme-red);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.stickme-coupon-btn:hover { background: var(--stickme-red); color: #fff; }
.stickme-coupon-message { font-size: 12px; margin-bottom: 12px; min-height: 16px; }
.stickme-coupon-message.success { color: #1a7a3c; }
.stickme-coupon-message.error { color: var(--stickme-red); }

.stickme-totals-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px dashed var(--stickme-border);
}
.stickme-totals-total {
  font-size: 17px;
  font-weight: 800;
  border-top: 2px solid var(--stickme-text);
  margin-top: 4px;
}

.stickme-btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--stickme-red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.stickme-btn-primary:hover { background: var(--stickme-red-dark); color: #fff; }

.stickme-totals-trust {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--stickme-muted);
  flex-wrap: wrap;
  gap: 6px;
}

/* Empty cart */
.stickme-cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.stickme-cart-empty-icon { font-size: 48px; margin-bottom: 12px; }
.stickme-cart-empty h2 { font-size: 20px; margin: 0 0 8px; }
.stickme-cart-empty p { color: var(--stickme-muted); margin: 0 0 20px; }
.stickme-cart-empty .stickme-btn-primary { display: inline-block; width: auto; padding: 12px 32px; }

/* Sticky mobile checkout bar */
.stickme-sticky-checkout {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--stickme-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}
@media (max-width: 860px) {
  .stickme-sticky-checkout { display: flex; }
}
.stickme-sticky-total { display: flex; flex-direction: column; line-height: 1.2; }
.stickme-sticky-label { font-size: 11px; color: var(--stickme-muted); }
.stickme-sticky-amount { font-size: 17px; font-weight: 800; }
.stickme-sticky-btn {
  background: var(--stickme-red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

/* Progress stepper */
.stickme-progress-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 16px 0;
}
.stickme-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stickme-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.stickme-step--done .stickme-step-circle {
  background: #1a7a3c;
}
.stickme-step-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--stickme-muted);
}
.stickme-step--done .stickme-step-label {
  color: var(--stickme-text);
}
.stickme-step-line {
  width: 60px;
  height: 2px;
  background: #ddd;
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .stickme-step-line { width: 30px; }
}

/* Offers panel */
.stickme-offers-panel {
  margin-bottom: 18px;
  border: 1px solid var(--stickme-border);
  border-radius: 10px;
  overflow: hidden;
}
.stickme-offers-panel-header {
  background: #fafafa;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--stickme-border);
}
.stickme-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.stickme-offer-text {
  font-size: 12.5px;
  color: var(--stickme-text);
  line-height: 1.4;
}
.stickme-offer-apply {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--stickme-red);
  background: #fff;
  color: var(--stickme-red);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.stickme-offer-apply:hover { background: var(--stickme-red); color: #fff; }

/* Sale price display (regular struck-through + sale price) */
.stickme-cart-item-price del,
.stickme-cart-item-subtotal del {
  color: var(--stickme-muted);
  font-weight: 400;
  font-size: 12px;
  text-decoration: line-through;
  margin-right: 4px;
}
.stickme-cart-item-price ins,
.stickme-cart-item-subtotal ins {
  color: var(--stickme-red);
  font-weight: 700;
  text-decoration: none;
}
