/* ── OVERLAY ── */
.rc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
	backdrop-filter: blur(2px);
}
.rc-overlay.active {
	opacity: 1;
	pointer-events: all;
}

/* ── PANEL LATERAL ── */
.rc-slide-cart {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 100vw;
	height: 100vh;
	height: 100svh;
	background: #fff;
	z-index: 9001;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.rc-slide-cart.active {
	transform: translateX(0);
}

/* ── HEADER ── */
.rc-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	border-bottom: 1px solid #f0ebe4;
	/* background: #faf7f4; */
	background: var(--theme-palette-color-1);
	flex-shrink: 0;
}
.rc-cart-header-left {
	display: flex;
	align-items: center;
	gap: 10px;
}
.rc-cart-title {
	font-size: 11px;
	font-weight: 700;
	color: #1c1a17;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-family: "Segoe UI", sans-serif;
}
.rc-cart-count {
	background: #b8965a;
	color: #fff;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Segoe UI", sans-serif;
}
.rc-cart-close {
	width: 36px;
	height: 36px;
	border: 1px solid var(--rc-cream-border);
	background: none;
	border-radius: 0;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
	transition: background 0.2s, border-color 0.2s;
}
.rc-cart-close:hover {
	background: var(--rc-ink);
	border-color: var(--rc-ink);
}
.rc-cart-close:hover svg {
	stroke: #fff;
}
.rc-cart-close svg {
	width: 14px;
	height: 14px;
	stroke: var(--rc-ink);
	stroke-width: 1.8;
	stroke-linecap: round;
}

/* ── PROGRESO ENVÍO GRATIS ── */
.rc-progress {
  padding: 13px 20px;
}

.rc-progress-text {
  font-size: 14px;
  color: #1c1a17;
}

.rc-progress-amount {
  color: #1c1a17;
  font-weight: 700;
}

/* Barra */
.rc-progress-bar {
  width: 100%;
  height: 10px;
  background: #ccc;
  border-radius: 999px;
  margin-top: 16px;
  position: relative;
}

/* Progreso */
#rc-progress-fill {
  height: 100%;
  /* background: #b45309; */
  /* background: var(--theme-palette-color-7, #000000); */
  background: var(--rc-ink2);
  width: 0%;
  transition: width 0.4s ease;
  position: relative;
  border-radius: 5px;
}
#rc-cart-bubble {
	position: absolute;
    top: -15px;
    right:-33px;
    fill: #d4af7a;
    /* background-color: var(--theme-palette-color-7, #000000); */
	background-color: var(--rc-ink2);
    color: #d4af7a;
    padding: 0;
    width: 37px;
    height: 37px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: scale(0.92);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.rc-slide-cart.active #rc-cart-bubble {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	transition-delay: 0s;
}
/* ── ITEMS ── */
.rc-cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 0;
}
.rc-cart-items::-webkit-scrollbar {
	width: 3px;
}
.rc-cart-items::-webkit-scrollbar-thumb {
	background: #e8e0d5;
	border-radius: 2px;
}

/* Carrito vacío */
.rc-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 100%;
	min-height: 300px;
	padding: 40px 24px;
	color: #b0a090;
}
.rc-cart-empty p {
	font-size: 14px;
	color: #9a8878;
	font-family: "Segoe UI", sans-serif;
}
.rc-btn-shop {
	background: #1c1a17;
	color: #d4af7a;
	padding: 11px 24px;
	font-size: var(--rc-fs-btn);
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	font-family: "Segoe UI", sans-serif;
	transition: background 0.2s;
	display: inline-block;
}
.rc-btn-shop:hover {
	background: #b8965a;
	color: #fff;
}

/* Item individual */
.rc-item {
	display: flex;
	gap: 14px;
	padding: 16px 20px;
	border-bottom: 1px solid #f5f0ea;
	transition: background 0.15s;
	position: relative;
}
.rc-item:hover {
	background: #fdfbf8;
}

.rc-item-img {
	width: 80px;
	height: 100px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f0ebe4;
	border-radius: 2px;
}

.rc-item-info {
	flex: 1;
	min-width: 0;
}

.rc-item-cat {
	font-size: var(--rc-fs-tag);
	color: #b0a090;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-family: "Segoe UI", sans-serif;
	margin-bottom: 4px;
}
.rc-item-name {
	font-size: var(--rc-fs-reading);
	font-weight: 500;
	color: #1c1a17;
	line-height: 1.35;
	margin-bottom: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: "Segoe UI", sans-serif;
}
.rc-item-meta {
	font-size: 11px;
	color: #9a8878;
	font-family: "Segoe UI", sans-serif;
	margin-bottom: 10px;
}
.rc-item-badges {
	display: flex;
	gap: 5px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.rc-badge {
	font-size: var(--rc-fs-tag);
	padding: 2px 8px;
	border-radius: 20px;
	font-weight: 600;
	font-family: "Segoe UI", sans-serif;
}
.rc-badge-ship {
	background: #e8f5ed;
	color: #2d7a4a;
}
.rc-badge-disc {
	background: var(--rc-bg-danger);
	color: var(--rc-text-danger);
}

.rc-item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Controles de cantidad */
.rc-qty-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}
.rc-qty-btn {
	background: #f5f0ea;
	border: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #5a4a3a;
	transition: background 0.15s;
	font-family: "Segoe UI", sans-serif;
}
.rc-qty-btn:hover {
	background: #e8dfd0;
}
.rc-qty-num {
	font-size: var(--rc-fs-reading);
	font-weight: 600;
	color: #1c1a17;
	min-width: 18px;
	text-align: center;
	font-family: "Segoe UI", sans-serif;
}

/* Precio */
.rc-item-price {
	text-align: right;
}
.rc-price-orig {
	font-size: 11px;
	color: #b0a090;
	text-decoration: line-through;
	font-family: "Segoe UI", sans-serif;
	display: block;
}
.rc-price-final {
	font-size: 15px;
	font-weight: 600;
	color: #1c1a17;
	font-family: "Segoe UI", sans-serif;
}
.rc-price-final.on-sale {
	color: #b8965a;
}

/* Botón eliminar */
.rc-item-remove {
	position: absolute;
	top: 6px;
	right: 16px;
	background: none;
	border: none;
	cursor: pointer;
	color: #ccc;
	font-size: 16px;
	line-height: 1;
	transition: color 0.2s;
	padding: 0;
}
.rc-item-remove:hover {
	color: #b8965a;
}
.rc-item-remove .rc-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	display: block;
}

/* ── FOOTER ── */
.rc-cart-footer {
	padding: 13px 20px;
	border-top: 1px solid #f0ebe4;
	/* background: #faf7f4; */
	background: var(--theme-palette-color-1);
	flex-shrink: 0;
	
}

.rc-discount-banner {
	background: linear-gradient(90deg, #1c1a17, #2d1f0a);
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #d4af7a;
	font-size: 11px;
	font-family: "Segoe UI", sans-serif;
	font-weight: 600;
}
.rc-discount-banner svg {
	flex-shrink: 0;
	stroke: #b8965a;
}

.rc-totals {
	margin-bottom: 10px;
}
.rc-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	font-family: "Segoe UI", sans-serif;
}
.rc-total-row span:first-child {
	font-size: var(--rc-fs-reading);
	color: #9a8878;
}
.rc-total-row span:last-child {
	font-size: var(--rc-fs-reading);
	font-weight: 600;
	color: #1c1a17;
}
.rc-discount-row span:last-child {
	color: #b8965a !important;
}
.rc-total-final {
	padding-top: 12px !important;
}
.rc-total-final span:first-child {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #1c1a17 !important;
}
.rc-total-final span:last-child {
	font-size: 17px !important;
	font-weight: 700 !important;
}

.rc-view-shipping-cart{

    height: 25px;
}

.rc-secure-text {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: var(--rc-fs-btn);
	color: #b0a090;
	font-family: "Segoe UI", sans-serif;
	margin: 0px;
}
.rc-secure-text svg {
	stroke: #b0a090;
	flex-shrink: 0;
}

/* ── LOADING STATE ── */
.rc-cart-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	height: 200px;
}
.rc-spinner {
	width: 28px;
	height: 28px;
	border: 2px solid #f0ebe4;
	border-top-color: #b8965a; 
	border-radius: 50%;
	animation: rc-spin 0.7s linear infinite;
}
@keyframes rc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 480px) {
	.rc-slide-cart {
		width: 100%;
	}
	.rc-item-img {
		width: 68px;
		height: 85px;
	}
}
