/*
 * Gemkibo Clean — Page: Koszyk (/koszyk/)
 *
 * SCOPE: .gk-cart* (BEM strict, NO global selectors, NO override LOCKED components).
 * ISOLATION: hardcoded hex (NO var), conditional enqueue is_page('koszyk') || is_cart().
 *
 * @phase Phase 1.A — Cart celebration per V2.05 + Stitch makieta
 * @lock 2026-05-29 — touch tylko enumerated user tasks
 * @ref wireframes-stitch/desktop-koszyk v2 desktop redesign.html
 */

/* ─────────────────────────────────────────────────────────────────────────
   PAGE WRAPPER + HEADER
   ───────────────────────────────────────────────────────────────────────── */
.gk-cart {
	font-family: 'Inter', system-ui, sans-serif;
	background: #FAF8F4;
	min-height: 60vh;
	padding: clamp(100px, 9vw, 130px) 0 80px;
	color: #1F3D14;
}
.gk-cart__container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 56px);
}

/* Stepper */
.gk-cart__stepper {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.gk-cart__step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	opacity: 0.4;
}
.gk-cart__step.is-active { opacity: 1; }
.gk-cart__step-num {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 1.5px solid #C8CFC2;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #1F3D14;
	background: #FFFFFF;
}
.gk-cart__step.is-active .gk-cart__step-num {
	background: #5DA935;
	border-color: #5DA935;
	color: #FFFFFF;
}
.gk-cart__step-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1F3D14;
}
.gk-cart__step-divider {
	width: 32px;
	height: 1px;
	background: #ECE6DC;
	align-self: center;
}

/* Hero celebration */
.gk-cart__hero {
	text-align: left;
	margin: 0 0 28px;
}
.gk-cart__hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 12px;
	background: rgba(93, 169, 53, 0.10);
	color: #4F9028;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.gk-cart__hero-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	color: #1F3D14;
	margin: 0;
	line-height: 1.1;
	letter-spacing: -0.015em;
}
.gk-cart__hero-meta {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #5A6354;
	margin: 10px 0 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   LAYOUT 2-COL (items | summary sticky)
   ───────────────────────────────────────────────────────────────────────── */
.gk-cart__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}
@media (min-width: 1024px) {
	.gk-cart__layout {
		grid-template-columns: minmax(0, 1fr) 400px;
		gap: 32px;
	}
}

.gk-cart__main {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.gk-cart__aside {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
@media (min-width: 1024px) {
	.gk-cart__aside {
		position: sticky;
		top: 110px;
		align-self: start;
	}
}

/* ─────────────────────────────────────────────────────────────────────────
   FREE-SHIPPING PROGRESS BAR
   ───────────────────────────────────────────────────────────────────────── */
.gk-cart__shipping-bar {
	background: rgba(93, 169, 53, 0.08);
	border: 1px solid rgba(93, 169, 53, 0.20);
	padding: 16px 18px;
	border-radius: 16px;
}
.gk-cart__shipping-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.gk-cart__shipping-msg {
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	color: #1F3D14;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.gk-cart__shipping-msg svg {
	color: #5DA935;
	flex-shrink: 0;
}
.gk-cart__shipping-pct {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 800;
	color: #4F9028;
	letter-spacing: 0.04em;
}
.gk-cart__shipping-track {
	height: 10px;
	background: #FFFFFF;
	border-radius: 9999px;
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.gk-cart__shipping-fill {
	height: 100%;
	background: linear-gradient(90deg, #5DA935, #4F9028);
	border-radius: 9999px;
	transition: width .5s cubic-bezier(.16, 1, .3, 1);
}
.gk-cart__shipping-bar.is-unlocked {
	background: rgba(0, 150, 104, 0.10);
	border-color: rgba(0, 150, 104, 0.25);
}
.gk-cart__shipping-bar.is-unlocked .gk-cart__shipping-msg {
	color: #009668;
	font-weight: 800;
}
.gk-cart__shipping-bar.is-unlocked .gk-cart__shipping-fill {
	background: linear-gradient(90deg, #009668, #5DA935);
}

/* ─────────────────────────────────────────────────────────────────────────
   ITEMS LIST
   ───────────────────────────────────────────────────────────────────────── */
.gk-cart__items {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gk-cart__item {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: #FFFFFF;
	border: 1px solid rgba(15, 30, 15, 0.06);
	border-radius: 16px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.gk-cart__item:hover {
	border-color: rgba(93, 169, 53, 0.30);
	box-shadow: 0 4px 14px rgba(31, 61, 20, 0.04);
}
.gk-cart__item-image {
	flex-shrink: 0;
	width: 110px;
	height: 110px;
	background: #FAF8F4;
	border-radius: 12px;
	overflow: hidden;
	display: block;
}
.gk-cart__item-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.gk-cart__item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.gk-cart__item-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}
.gk-cart__item-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 18px;
	font-weight: 700;
	color: #1F3D14;
	margin: 0;
	letter-spacing: -0.01em;
	line-height: 1.2;
}
.gk-cart__item-title a {
	color: inherit;
	text-decoration: none;
}
.gk-cart__item-title a:hover { color: #4F9028; }
.gk-cart__item-price {
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 800;
	color: #009668;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.gk-cart__item-price del {
	font-size: 12px;
	font-weight: 500;
	color: #9CA396;
	margin-right: 5px;
}
.gk-cart__item-price ins {
	background: transparent;
	color: #009668;
	text-decoration: none;
}
.gk-cart__item-meta {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #5A6354;
	margin: 0;
}
.gk-cart__item-omnibus {
	font-family: 'Inter', sans-serif;
	font-size: 10.5px;
	font-style: italic;
	color: #8A9282;
	margin: 0;
	letter-spacing: 0.01em;
}
.gk-cart__item-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}
.gk-cart__qty {
	display: inline-flex;
	align-items: center;
	background: #FAF8F4;
	border: 1px solid #ECE6DC;
	border-radius: 9999px;
	padding: 3px;
}
.gk-cart__qty-btn {
	all: unset;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	color: #1F3D14;
	transition: background .15s ease, color .15s ease;
}
.gk-cart__qty-btn:hover {
	background: #FFFFFF;
	color: #4F9028;
}
.gk-cart__qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.gk-cart__qty-val {
	width: 38px;
	text-align: center;
	background: transparent;
	border: 0;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 800;
	color: #1F3D14;
	outline: none;
	-moz-appearance: textfield;
}
.gk-cart__qty-val::-webkit-outer-spin-button,
.gk-cart__qty-val::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.gk-cart__item-remove {
	all: unset;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #9CA396;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.gk-cart__item-remove:hover {
	background: rgba(220, 38, 38, 0.08);
	color: #DC2626;
}
.gk-cart__item-remove svg { pointer-events: none; }

.gk-cart__item.is-removing {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity .2s ease;
}

/* ─────────────────────────────────────────────────────────────────────────
   SUMMARY (sticky right column)
   ───────────────────────────────────────────────────────────────────────── */
.gk-cart__summary {
	background: #1F3D14;
	color: #FFFFFF;
	padding: 24px;
	border-radius: 18px;
	box-shadow: 0 16px 48px rgba(15, 42, 8, 0.20);
}
.gk-cart__summary-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	color: #FFFFFF;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
/* FIX 2026-05-30: `.gk-home h2` nadpisywał biały tytuł na ciemny → niewidoczny
   na ciemnozielonym boxie podsumowania. Wykluczenie 0,2,0. */
.gk-home .gk-cart__summary-title { color: #FFFFFF; }
.gk-cart__summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.75);
	padding: 6px 0;
}
.gk-cart__summary-row strong {
	color: #FFFFFF;
	font-weight: 700;
	font-family: 'Inter', system-ui, sans-serif;   /* czcionka kwot — czytelna, spójna z motywem */
	font-size: 15px;
	letter-spacing: -0.01em;
}
.gk-cart__summary-row--discount {
	color: #74E518;
	font-weight: 600;
}
.gk-cart__summary-total {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
	margin: 16px 0 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.gk-cart__summary-total-label {
	font-family: 'Inter', sans-serif;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.gk-cart__summary-total-val {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	color: #FFFFFF;
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 4px 0 0;
}
.gk-cart__summary-vat {
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.30);
	text-align: right;
}
/* Secondary "Przejdź do kasy" — biały bg + dark green border/text (na ciemnym summary aside).
   Klasa-modyfikator gk-btn--secondary wykluczona z home.css `.gk-home a:not(...)` chainu,
   więc color: #1F3D14 wygrywa bez !important. */
.gk-cart__summary-cta {
	all: unset;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	background: #FFFFFF;
	color: #1F3D14;
	border: 1.5px solid #1F3D14;
	padding: 16px 20px;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, transform .15s ease;
}
.gk-cart__summary-cta:hover {
	background: #1F3D14;
	color: #FFFFFF;
	transform: translateY(-1px);
}
.gk-cart__summary-cta:active { transform: scale(.98); }
.gk-cart__summary-cta svg { flex-shrink: 0; }

.gk-cart__summary-trust {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.gk-cart__summary-trust-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.60);
}
.gk-cart__summary-trust-row svg {
	color: #74E518;
	flex-shrink: 0;
}

/* Shipping calculator — kalkulator dostawy nad kuponem (1:1 z gemkibo.pl PROD) */
.gk-cart__shipping-calc {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.gk-cart__shipping-calc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin: 0 0 12px;
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.85);
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: color .15s ease;
}
.gk-cart__shipping-calc-toggle:hover { color: #74E518; }
.gk-cart__shipping-calc-chevron {
	transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.gk-cart__shipping-calc.is-open .gk-cart__shipping-calc-chevron {
	transform: rotate(180deg);
}
.gk-cart__shipping-calc-form {
	display: none;
}
.gk-cart__shipping-calc.is-open .gk-cart__shipping-calc-form {
	display: block;
}
.gk-cart__shipping-calc-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 8px;
}
.gk-cart__shipping-calc-input {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	padding: 10px 12px;
	color: #FFFFFF;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	min-width: 0;
	transition: border-color .15s ease, background .15s ease;
}
.gk-cart__shipping-calc-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.gk-cart__shipping-calc-input:focus {
	outline: 0;
	border-color: #74E518;
	background: rgba(255, 255, 255, 0.12);
}
/* Secondary button — biały bg + dark green border/text (na ciemnym summary aside) */
.gk-cart__shipping-calc-btn {
	background: #FFFFFF;
	color: #1F3D14;
	border: 1.5px solid #1F3D14;
	border-radius: 8px;
	padding: 10px 16px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	white-space: nowrap;
}
.gk-cart__shipping-calc-btn:hover {
	background: #1F3D14;
	color: #FFFFFF;
	border-color: #1F3D14;
}
.gk-cart__shipping-calc-results {
	list-style: none;
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px dashed rgba(255, 255, 255, 0.12);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.gk-cart__shipping-calc-results li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.78);
}
.gk-cart__shipping-calc-method { flex: 1; min-width: 0; }
.gk-cart__shipping-calc-price {
	color: #74E518;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* Coupon — w summary card */
.gk-cart__coupon {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.gk-cart__coupon-label {
	font-family: 'Inter', sans-serif;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.70);
	margin: 0 0 10px;
}
.gk-cart__coupon-row {
	display: flex;
	gap: 8px;
}
.gk-cart__coupon-input {
	flex: 1;
	min-width: 0;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #FFFFFF;
	padding: 10px 16px;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	outline: none;
	transition: border-color .2s ease, background .2s ease;
}
.gk-cart__coupon-input::placeholder { color: rgba(255, 255, 255, 0.30); }
.gk-cart__coupon-input:focus {
	border-color: #74E518;
	background: rgba(255, 255, 255, 0.12);
}
/* Secondary "Aktywuj" — biały bg + dark green border/text (na ciemnym summary aside) */
.gk-cart__coupon-btn {
	all: unset;
	background: #FFFFFF;
	color: #1F3D14;
	border: 1.5px solid #1F3D14;
	padding: 10px 20px;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	box-sizing: border-box;
}
.gk-cart__coupon-btn:hover {
	background: #1F3D14;
	color: #FFFFFF;
}

.gk-cart__coupon-active {
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 12px;
	background: rgba(116, 229, 24, 0.16);
	border: 1px solid rgba(116, 229, 24, 0.30);
	border-radius: 9999px;
	color: #74E518;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
}
.gk-cart__coupon-remove {
	all: unset;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	color: rgba(116, 229, 24, 0.70);
	transition: color .15s ease;
}
.gk-cart__coupon-remove:hover { color: #FFFFFF; }

/* ─────────────────────────────────────────────────────────────────────────
   EMPTY STATE
   ───────────────────────────────────────────────────────────────────────── */
.gk-cart__empty {
	background: #FFFFFF;
	border: 1px solid rgba(15, 30, 15, 0.06);
	border-radius: 24px;
	padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 56px);
	text-align: center;
	box-shadow: 0 4px 12px rgba(31, 61, 20, 0.04);
	margin: 24px 0;
}
.gk-cart__empty-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	background: rgba(93, 169, 53, 0.10);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #5DA935;
}
.gk-cart__empty-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(26px, 3.5vw, 36px);
	font-weight: 700;
	color: #1F3D14;
	margin: 0 0 12px;
	letter-spacing: -0.015em;
}
.gk-cart__empty-text {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: #5A6354;
	max-width: 500px;
	margin: 0 auto 32px;
	line-height: 1.6;
}
.gk-cart .gk-cart__empty-cta,
a.gk-cart__empty-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1F3D14 !important;
	color: #FFFFFF !important;
	padding: 14px 28px;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background .2s ease, transform .15s ease;
}
.gk-cart .gk-cart__empty-cta:hover,
a.gk-cart__empty-cta:hover {
	background: #5DA935 !important;
	color: #FFFFFF !important;
	transform: translateY(-1px);
}

.gk-cart__empty-picks {
	margin-top: 56px;
}
.gk-cart__empty-picks-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #4F9028;
	margin: 0 0 20px;
}
.gk-cart__empty-picks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────
   CROSS-SELLS (bottom)
   ───────────────────────────────────────────────────────────────────────── */
.gk-cart__cross {
	margin-top: 56px;
}
.gk-cart__cross-eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #4F9028;
	margin: 0 0 8px;
}
.gk-cart__cross-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(22px, 2.8vw, 30px);
	font-weight: 700;
	color: #1F3D14;
	margin: 0 0 24px;
	letter-spacing: -0.01em;
}
.gk-cart__cross-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE TWEAKS
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.gk-cart { padding: 20px 0 60px; }
	.gk-cart__item {
		flex-direction: row;
		gap: 12px;
		padding: 12px;
	}
	.gk-cart__item-image {
		width: 80px;
		height: 80px;
	}
	.gk-cart__item-title { font-size: 16px; }
	.gk-cart__item-price { font-size: 15px; }
	.gk-cart__summary { padding: 20px; }
	.gk-cart__step-divider { width: 18px; }
	.gk-cart__step-label { font-size: 10px; }
	.gk-cart__step-num { width: 26px; height: 26px; font-size: 12px; }
}
