/* Dukan side cart */
.dkc {
	--dkc-ink: #2f3851;
	--dkc-ink-2: #4b556f;
	--dkc-muted: #7a8193;
	--dkc-line: #e3e6ec;
	--dkc-soft: #f6f7f9;
	--dkc-accent: #f6c33b;
	position: fixed;
	inset: 0;
	z-index: 100002;
	color: var(--dkc-ink);
}
.dkc[hidden] { display: none; }
.dkc *, .dkc *::before, .dkc *::after { box-sizing: border-box; }
.dkc-overlay { position: absolute; inset: 0; background: rgb(20 26 40 / 45%); opacity: 0; transition: opacity .25s ease; }
.dkc-panel {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(460px, 100vw);
	background: #fff;
	box-shadow: 0 0 40px rgb(0 0 0 / 18%);
	transform: translateX(100%);
	transition: transform .3s ease;
}
.dkc.is-open .dkc-overlay { opacity: 1; }
.dkc.is-open .dkc-panel { transform: none; }
body.admin-bar .dkc-panel { top: var(--wp-admin--admin-bar--height, 32px); }
body.dkc-lock { overflow: hidden; }

.dkc-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--dkc-line); }
.dkc .dkc-title { margin: 0; font-size: 24px; font-weight: 800; color: var(--dkc-ink); }
.dkc .dkc-close { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1.5px solid var(--dkc-ink); border-radius: 50%; background: #fff; color: var(--dkc-ink); cursor: pointer; }
.dkc .dkc-close:hover { background: var(--dkc-soft); }

.dkc-content { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.dkc-content.is-busy::after { content: ""; position: absolute; inset: 0; background: rgb(255 255 255 / 55%); }
.dkc-scroll { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px; overscroll-behavior: contain; }

.dkc-ship { margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--dkc-line); border-radius: 10px; background: var(--dkc-soft); }
.dkc-ship-top { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.dkc-ship small { display: block; margin-top: 8px; color: var(--dkc-muted); font-size: 12px; }
.dkc-bar { height: 6px; margin-top: 12px; border-radius: 99px; background: var(--dkc-line); overflow: hidden; }
.dkc-bar span { display: block; height: 100%; border-radius: inherit; background: var(--dkc-ink); transition: width .3s ease; }

.dkc-items { margin: 0; padding: 0; list-style: none; }
.dkc-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--dkc-line); }
.dkc .dkc-item-img { flex: 0 0 84px; line-height: 0; }
.dkc .dkc-item-img img { width: 84px; height: 104px !important; object-fit: cover; border-radius: 8px; background: var(--dkc-soft); }
.dkc-item-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dkc .dkc-item-name { color: var(--dkc-ink); font-weight: 700; line-height: 1.5; text-decoration: none; }
.dkc-item-price { font-weight: 800; font-size: 14px; }
.dkc-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.dkc-qty { display: inline-flex; align-items: center; border: 1px solid var(--dkc-line); border-radius: 6px; overflow: hidden; }
.dkc .dkc-qty button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--dkc-ink); cursor: pointer; }
.dkc .dkc-qty button:hover:not([disabled]) { background: var(--dkc-soft); }
.dkc .dkc-qty button[disabled] { opacity: .35; cursor: not-allowed; }
.dkc-qty-val { min-width: 40px; text-align: center; font-weight: 700; border-inline: 1px solid var(--dkc-line); line-height: 34px; }
.dkc .dkc-remove { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dkc-muted); cursor: pointer; }
.dkc .dkc-remove:hover { background: #fdecec; color: #c0392b; }

.dkc-recs { margin-top: 20px; }
.dkc-recs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dkc .dkc-recs-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--dkc-ink); }
.dkc-arrows { display: inline-flex; gap: 6px; }
.dkc .dkc-arrows button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--dkc-line); border-radius: 50%; background: #fff; color: var(--dkc-ink); cursor: pointer; }
.dkc-rec-track { display: flex; gap: 10px; margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; }
.dkc-rec { flex: 0 0 160px; display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; border: 1px solid var(--dkc-line); border-radius: 10px; overflow: hidden; scroll-snap-align: start; }
.dkc .dkc-rec-img { line-height: 0; }
.dkc .dkc-rec-img img { width: 100%; height: 190px !important; object-fit: cover; background: var(--dkc-soft); }
.dkc .dkc-rec-name { padding: 0 10px; color: var(--dkc-ink); font-size: 13px; font-weight: 700; line-height: 1.5; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.dkc-rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 10px; margin-top: auto; }
.dkc-rec-price { font-size: 12px; font-weight: 800; }
.dkc-rec-price del { color: var(--dkc-muted); font-weight: 400; }

.dkc-foot { padding: 16px 22px 20px; border-top: 1px solid var(--dkc-line); background: #fff; }
.dkc-subtotal { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 16px; }
.dkc-subtotal strong { font-size: 18px; }
.dkc-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }

.dkc .dkc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 10px 18px;
	border: 1.5px solid var(--dkc-ink);
	border-radius: 8px;
	background: transparent;
	color: var(--dkc-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.dkc .dkc-btn-primary { background: var(--dkc-ink); color: #fff; }
.dkc .dkc-btn-primary:hover { background: #222a3f; color: #fff; }
.dkc .dkc-btn-outline:hover { background: var(--dkc-soft); color: var(--dkc-ink); }
.dkc .dkc-btn-xs { min-height: 30px; padding: 4px 12px; font-size: 13px; border-radius: 6px; }
.dkc .dkc-btn[disabled] { opacity: .5; }
.dkc button:focus-visible, .dkc a:focus-visible { outline: 2px solid var(--dkc-ink); outline-offset: 2px; }

.dkc-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 0 10px; color: var(--dkc-muted); text-align: center; }
.dkc-empty p { margin: 0; font-size: 17px; font-weight: 700; color: var(--dkc-ink); }

.dkc-msg { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 10px 18px; border-radius: 8px; background: var(--dkc-ink); color: #fff; font-size: 14px; white-space: nowrap; }

@media (max-width: 480px) {
	.dkc-head, .dkc-scroll, .dkc-foot { padding-inline: 16px; }
	.dkc .dkc-btn { font-size: 15px; padding: 10px 12px; }
	.dkc-rec { flex-basis: 140px; }
	.dkc .dkc-rec-img img { height: 170px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.dkc-panel, .dkc-overlay { transition: none; }
}
