/* Mini-cart drawer — Bixoto slide-in from right */

.cc-cartDrawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  visibility: hidden;
}

.cc-cartDrawer--open {
  pointer-events: auto;
  visibility: visible;
}

.cc-cartDrawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.cc-cartDrawer--open .cc-cartDrawer__backdrop {
  opacity: 1;
}

.cc-cartDrawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  max-width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--cc-font-sans);
}

.cc-cartDrawer--open .cc-cartDrawer__panel {
  transform: translateX(0);
}

.cc-cartDrawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px 24px;
  flex-shrink: 0;
}

.cc-cartDrawer__title {
  margin: 0;
  font-family: var(--cc-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cc-bx-accent);
}

.cc-cartDrawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cc-bx-sale);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.cc-cartDrawer__close:hover {
  background: rgba(211, 32, 32, 0.08);
}

.cc-cartDrawer__close .material-symbols-rounded {
  font-size: 28px;
  font-variation-settings: "wght" 500;
}

.cc-cartDrawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px 12px 24px;
  -webkit-overflow-scrolling: touch;
}

.cc-cartDrawer__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--cc-bx-muted);
  font-size: 14px;
}

.cc-cartDrawer__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--cc-bx-border);
  border-top-color: var(--cc-bx-accent);
  border-radius: 50%;
  animation: ccCartDrawerSpin 0.7s linear infinite;
}

@keyframes ccCartDrawerSpin {
  to { transform: rotate(360deg); }
}

.cc-cartDrawer__empty {
  padding: 32px 0 24px 0;
  text-align: center;
}

.cc-cartDrawer__empty p {
  margin: 0 0 16px 0;
  color: var(--cc-bx-muted);
  font-size: 15px;
}

.cc-cartDrawer__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-cartDrawer__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  gap: 0 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.cc-cartDrawer__thumb {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  isolation: isolate;
}

.cc-cartDrawer__thumb img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.cc-cartDrawer__itemTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.cc-cartDrawer__itemCopy {
  min-width: 0;
  flex: 1;
}

.cc-cartDrawer__brand {
  display: block;
  margin: 0 0 3px 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cc-bx-accent);
}

.cc-cartDrawer__name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cc-bx-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-cartDrawer__name:hover {
  color: var(--cc-bx-accent);
}

.cc-cartDrawer__linePrice {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-bx-accent);
  white-space: nowrap;
}

.cc-cartDrawer__linePrice .pret .euro {
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-bx-accent);
}

.cc-cartDrawer__linePrice .pret .lei {
  font-size: 11px;
  color: var(--cc-bx-accent);
  opacity: 0.85;
}

.cc-cartDrawer__controls {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
  grid-column: 2;
  grid-row: 2;
}

.cc-cartDrawer__qtyBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--cc-bx-ink);
  cursor: pointer;
  font-size: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cc-cartDrawer__qtyBtn:first-of-type {
  border-radius: 6px 0 0 6px;
  border-right: 0;
}

.cc-cartDrawer__qtyBtn--plus {
  border-radius: 0 6px 6px 0;
  border-left: 0;
}

.cc-cartDrawer__qtyBtn:hover {
  border-color: rgba(255, 66, 0, 0.25);
  background: var(--cc-bx-accent-soft);
}

.cc-cartDrawer__qtyInput {
  box-sizing: border-box;
  width: 3.2ch;
  min-width: 40px;
  max-width: 48px;
  height: 32px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  color: var(--cc-bx-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}

.cc-cartDrawer__qtyInput:focus {
  outline: none;
  border-top-color: rgba(255, 66, 0, 0.35);
  border-bottom-color: rgba(255, 66, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 66, 0, 0.2);
}

.cc-cartDrawer__qtyInput:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cc-cartDrawer__qtyInput::-webkit-outer-spin-button,
.cc-cartDrawer__qtyInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cc-cartDrawer__removeBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fff;
  color: var(--cc-bx-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cc-cartDrawer__removeBtn:hover {
  border-color: rgba(211, 32, 32, 0.35);
  color: var(--cc-bx-sale);
}

.cc-cartDrawer__foot {
  flex-shrink: 0;
  padding: 16px 20px 24px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.cc-cartDrawer__shipBanner {
  margin: 0 0 16px 0;
  padding: 10px 14px;
  border-radius: 4px;
  background: #e6f6ee;
  color: #1a6b42;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.cc-cartDrawer__shipHint {
  margin: 0 0 16px 0;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--cc-bx-surface);
  color: var(--cc-bx-muted);
  font-size: 12px;
  line-height: 1.45;
}

.cc-cartDrawer__shipBar {
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.cc-cartDrawer__shipBarFill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cc-bx-accent), #ff7a45);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-cartDrawer__totalRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cc-cartDrawer__totalLabel {
  font-size: 14px;
  font-weight: 500;
  color: var(--cc-bx-ink);
}

.cc-cartDrawer__totalVal {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cc-bx-ink);
}

.cc-cartDrawer__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.cc-cartDrawer__trustItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-bx-muted);
}

.cc-cartDrawer__trustItem .material-symbols-rounded {
  font-size: 16px;
  color: var(--cc-bx-muted);
}

.cc-cartDrawer__checkout {
  display: block;
  text-decoration: none;
}

.cc-cartDrawer__checkout .cc-ds-btn {
  width: 100%;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 8px;
  min-height: 48px;
}

.cc-cartDrawer__cartLink {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--cc-bx-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-cartDrawer__cartLink:hover {
  color: var(--cc-bx-accent);
}

body.cc-cartDrawer-open {
  overflow: hidden;
}
