/* Emperor Cargo Shop: storefront. Design shared with the WordPress theme. */
/* ---------- Tokens ---------- */
:root {
	/* Taken from the Emperor Cargo logo */
	--navy: #293647;
	--navy-deep: #1E2836;
	--navy-soft: #34465C;
	--blue: #2C99D4;
	--blue-strong: #1C76AE;
	--blue-hover: #176A9E;
	--blue-light: #7CC4EA;
	--blue-tint: #EAF5FB;
	--paper: #FFFFFF;
	--mist: #F3F5F8;
	--line: #E1E5EC;
	--ink: #16213A;
	--slate: #586277;

	--display: "Marcellus", "Times New Roman", serif;
	--body: "Manrope", "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1200px;
	--r-s: 4px;
	--r-m: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-strong); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.15;
	color: var(--navy);
	margin: 0 0 .5em;
	letter-spacing: .005em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--blue-strong); color: #fff; padding: .75rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.sr {
	clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
	height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important;
}


/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .85rem 1.5rem; border-radius: var(--r-s); border: 1px solid transparent;
	font: 600 .95rem/1.2 var(--body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue-strong); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-line { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-line:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }


/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: #D3D9E4; font-size: .85rem; text-align: center; padding: .5rem 0; }

.site-header {
	background: #fff; color: var(--navy);
	position: sticky; top: 0; z-index: 50;
	box-shadow: 0 1px 0 var(--line);
}

.header-inner { display: flex; align-items: center; gap: 1.75rem; min-height: 88px; }
.brand { flex-shrink: 0; }
.brand { display: block; }
.brand img { display: block; height: 60px; width: auto; }
.brand-text { font-family: var(--display); font-size: 1.4rem; color: var(--navy); text-decoration: none; }

/* Header search: the main way to find things in a large catalogue */
.header-search { flex: 1; min-width: 0; max-width: 620px; margin-inline: auto; }
.header-search form { display: flex; max-width: none; gap: 0; }
.header-search input {
	flex: 1; min-width: 0; height: 46px; padding: 0 1rem;
	border: 1px solid #C9D0DB; border-right: 0; border-radius: var(--r-s) 0 0 var(--r-s);
	background: #fff; color: var(--ink); font: 400 .95rem var(--body);
}
.header-search input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.header-search button {
	height: 46px; padding: 0 1.25rem; border: 0; border-radius: 0 var(--r-s) var(--r-s) 0;
	background: var(--blue-strong); color: #fff; font: 600 .92rem var(--body); cursor: pointer;
}
.header-search button:hover { background: var(--blue-hover); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.header-actions a { color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; }
.header-actions a:hover { color: var(--blue-strong); }
.cart-count {
	background: var(--blue-strong); color: #fff; font-weight: 700; font-size: .75rem;
	min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px;
	display: inline-grid; place-items: center;
}

/* Second row: menu */
.nav-bar { background: var(--navy); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block; padding: .8rem 0 .7rem; color: #E3E8F0; text-decoration: none;
	font-weight: 500; font-size: .93rem; border-bottom: 1px solid transparent;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue); border-bottom-width: 2px; }
.primary-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: -1rem; min-width: 220px; z-index: 5;
	flex-direction: column; gap: 0; padding: .5rem 1rem;
	background: var(--navy); border: 1px solid rgba(44,153,212,.35); border-radius: 0 0 var(--r-s) var(--r-s);
}
.primary-nav .sub-menu a { padding: .5rem 0; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: flex; }

.menu-toggle { display: none; }

@media (max-width: 900px) {
	.site-header { position: relative; }
	.header-inner { flex-wrap: wrap; gap: .75rem 1rem; min-height: 0; padding: .75rem 0; }
	.brand img { height: 44px; }
	.menu-toggle {
		display: inline-flex; order: 2; margin-left: auto; cursor: pointer;
		background: none; color: var(--navy); font: 600 .9rem var(--body);
		border: 1px solid #C9D0DB; border-radius: var(--r-s); padding: .45rem .8rem;
	}
	.header-actions { order: 3; }
	.header-actions .label { display: none; }
	.header-search { order: 4; flex-basis: 100%; max-width: none; }
	.header-search input, .header-search button { height: 44px; }
	.primary-nav { display: none; padding: .25rem 0 1rem; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 0; }
	.primary-nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.primary-nav .sub-menu { display: flex; position: static; border: 0; padding: 0 0 0 1rem; background: none; }
}


/* ---------- Hero: from sourcing to shipping ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--navy); color: #CBD3DF;
	padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
/* The globe from the logo, drawn large and faint behind the headline */
.hero-globe {
	position: absolute; z-index: -1; pointer-events: none;
	right: max(-160px, calc(50% - 760px)); top: 50%; transform: translateY(-58%);
	width: min(720px, 90vw); height: auto;
	fill: none; stroke: var(--blue); stroke-width: 1; opacity: .22;
}
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 15ch; }
.hero-lead { font-size: 1.12rem; max-width: 46ch; color: #C3CCD9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-meta { margin: 1.25rem 0 0; font-size: .92rem; color: var(--blue-light); }

/* The journey: a real sequence, so it is numbered by its stops */
.journey {
	position: relative; list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.journey::before, .journey::after {
	content: ""; position: absolute; top: 23px; left: 23px; right: calc(25% - 23px); height: 0;
}
.journey::before { border-top: 1.5px dashed rgba(255,255,255,.22); }
.journey::after {
	border-top: 2px solid var(--blue);
	transform: scaleX(0); transform-origin: left;
	animation: ec-journey 2.4s cubic-bezier(.45,.05,.25,1) .4s forwards;
}
@keyframes ec-journey { to { transform: scaleX(1); } }
.journey li { position: relative; z-index: 1; }
.journey .stop {
	display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem;
	border-radius: 50%; background: var(--navy); border: 1.5px solid var(--blue); color: #fff;
}
.journey li:last-child .stop { background: var(--blue); }
.journey strong { display: block; color: #fff; font-weight: 600; margin-bottom: .25rem; }
.journey span.txt { display: block; font-size: .9rem; color: #A9B4C5; max-width: 26ch; }

@media (prefers-reduced-motion: reduce) {
	.journey::after { animation: none; transform: scaleX(1); }
}
@media (max-width: 820px) {
	.journey { grid-template-columns: 1fr; gap: 1.5rem; }
	.journey::before, .journey::after { top: 23px; bottom: 23px; left: 22px; right: auto; height: auto; width: 0; border-top: 0; }
	.journey::before { border-left: 1.5px dashed rgba(255,255,255,.22); }
	.journey::after { border-left: 2px solid var(--blue); transform: scaleY(0); transform-origin: top; animation-name: ec-journey-v; }
	.journey li { display: grid; grid-template-columns: 46px 1fr; column-gap: 1rem; align-items: start; }
	.journey .stop { grid-row: span 2; margin: 0; }
	.journey strong { padding-top: .2rem; }
	.hero-globe { opacity: .14; top: 0; transform: none; right: -220px; }
}
@keyframes ec-journey-v { to { transform: scaleY(1); } }
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
	.journey::after { animation: none; transform: scaleY(1); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-mist { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--slate); max-width: 52ch; margin: 0; }
.link-more { font-weight: 600; }
.empty-note { color: var(--slate); padding: 1.5rem; background: var(--mist); border-radius: var(--r-m); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 1.5rem 1.25rem; }
.cat-card { display: block; color: var(--ink); text-decoration: none; }
.cat-card .thumb {
	display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m);
}
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .thumb-empty { font-family: var(--display); font-size: 2.4rem; color: var(--blue-strong); }
.cat-card .name { display: block; margin-top: .65rem; font-weight: 600; }
.cat-card .count { display: block; color: var(--slate); font-size: .85rem; }
.cat-card:hover .name { color: var(--blue-strong); }

/* Assurance band */
.assure { background: var(--navy); color: #C3CBD9; }
.assure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.assure-item { border-top: 2px solid var(--blue); padding-top: 1.25rem; }
.assure h3 { color: #fff; font-size: 1.3rem; }
.assure p { margin: 0; max-width: 36ch; }
@media (max-width: 800px) { .assure-grid { grid-template-columns: 1fr; gap: 2rem; } }


/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #A9B4C6; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: .9rem; }
.site-footer a { color: #DCE2EC; text-decoration: none; }
.site-footer a:hover { color: var(--blue-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-about p { max-width: 42ch; }
.footer-logo { display: inline-block; margin-bottom: 1rem; padding: .7rem .9rem; background: #fff; border-radius: var(--r-s); }
.footer-logo img { display: block; height: 46px; width: auto; }
.footer-logo .brand-text { color: var(--navy); }
.footer-bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
	margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* WhatsApp button */
.wa-float {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
	width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center;
	background: #25D366; box-shadow: 0 6px 18px rgba(20,28,40,.28);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }


/* Category chips above the shop grid */
.cat-chips { margin: 0 0 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-chips ul { list-style: none; margin: 0; padding: 0 0 .25rem; display: flex; gap: .5rem; width: max-content; }
.cat-chips a {
	display: block; padding: .45rem .95rem; white-space: nowrap;
	border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; background: #fff;
}
.cat-chips a:hover { border-color: var(--blue); color: var(--navy); }
.cat-chips a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }


/* =========================================================
   Storefront (PHP shop)
   ========================================================= */
.header-search form, form.header-search { display: flex; }
.header-actions, .header-cart { color: var(--navy); }
.header-cart { display: inline-flex; align-items: center; gap: .45rem; color: var(--navy); text-decoration: none; font-weight: 600; flex-shrink: 0; }
.header-cart:hover { color: var(--blue-strong); }
@media (max-width: 900px) {
	.header-cart { order: 3; }
	.header-cart .label { display: none; }
}

.page-head { background: var(--mist); padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0; }
.page-head .muted { margin: .35rem 0 0; }
.content { padding: 2rem 0 4.5rem; }
.narrow { max-width: 560px; }
.muted { color: var(--slate); }
.small { font-size: .88rem; }
.prose { max-width: 72ch; }
.prose h3 { margin-top: 1.5rem; }
.btn-block { width: 100%; }
.empty-note { padding: 1.5rem; background: var(--mist); border-radius: var(--r-m); color: var(--slate); }
.empty-note p:last-child { margin: 0; }
.notice { padding: .9rem 1.1rem; border-radius: var(--r-s); margin: 1.25rem 0 0; font-weight: 500; }
.notice ul { margin: 0; padding-left: 1.1rem; }
.notice-ok { background: #E7F5EE; color: #1F7A4D; border: 1px solid #B9E0CB; }
.notice-error { background: #FCEBEA; color: #B3261E; border: 1px solid #F0C2BE; }
.content > .notice:first-child { margin-top: 0; margin-bottom: 1.25rem; }

/* Forms */
.content label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.content label small { font-weight: 400; color: var(--slate); }
.content input[type="text"], .content input[type="tel"], .content input[type="email"], .content input[type="number"], .content select, .content textarea {
	display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem;
	border: 1px solid #C9D0DB; border-radius: var(--r-s); background: #fff; font: 400 1rem var(--body); color: var(--ink);
}
.content input:focus, .content select:focus, .content textarea:focus { border-color: var(--navy); outline: 2px solid var(--blue); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.card-form { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-m); }

/* Product grid */
.products { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; } }
.card-product a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; height: 100%; }
.card-img { display: block; aspect-ratio: 1; border-radius: var(--r-m); background: var(--mist); overflow: hidden; margin-bottom: .85rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-weight: 600; font-size: .97rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: .35rem; font-weight: 700; color: var(--navy); }
.card-product a:hover .card-title { color: var(--blue-strong); }

.sortbar { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin: 0 0 1.5rem; }
.sortbar label { margin: 0; font-weight: 500; color: var(--slate); }
.sortbar select { width: auto; margin: 0; padding: .5rem .7rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.pager a { font-weight: 600; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; }
.pager a:hover { border-color: var(--navy); }

/* Product page */
.crumbs { font-size: .85rem; color: var(--slate); margin-bottom: 1.5rem; }
.crumbs a { color: var(--slate); }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 1; background: var(--mist); border-radius: var(--r-m); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; margin-top: .75rem; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-s); background: var(--mist); cursor: pointer; overflow: hidden; aspect-ratio: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.summary h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.summary .price { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: 0 0 .75rem; }
.price-ship { margin: 0 0 1.25rem; padding: .85rem 1.1rem; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-s); }
.ps-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; padding: .3rem 0; }
.ps-row small { display: block; color: var(--slate); font-size: .82rem; font-weight: 400; }
.ps-total { margin-top: .35rem; padding-top: .6rem; border-top: 1px solid var(--line); font-weight: 600; }
.ps-total strong { font-size: 1.35rem; color: var(--navy); }
.ps-missing { margin: 0; color: var(--slate); font-size: .92rem; }
.buy label { margin-bottom: .85rem; }
.buy-row { display: flex; gap: .75rem; align-items: stretch; }
.buy-row .qty { margin: 0; width: 90px; }
.buy-row .qty input { margin: 0; height: 100%; text-align: center; }
.buy-row .btn { flex: 1; }
.ship-note { margin: 1.5rem 0 0; padding: 1rem 1.25rem; background: var(--blue-tint); border-left: 2px solid var(--blue); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: .93rem; }
.ship-note p { margin: 0 0 .35rem; }
.ship-note p:last-child { margin: 0; }
.ship-route { font-weight: 700; color: var(--navy); }
.details { margin-top: 3rem; max-width: 820px; }
.details h2 { font-size: 1.5rem; margin-top: 2rem; }
.features { padding-left: 1.2rem; }
.features li { margin-bottom: .35rem; }

/* Cart */
.cart-grid, .checkout-grid, .order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .cart-grid, .checkout-grid, .order-layout { grid-template-columns: 1fr; } }
.lines { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 96px 1fr 84px 96px 36px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line-img { display: block; width: 96px; height: 96px; border-radius: var(--r-s); background: var(--mist); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-info a { color: var(--ink); text-decoration: none; }
.line-info small { display: block; color: var(--slate); }
.line .qty { margin: 0; }
.line .qty input { margin: 0; text-align: center; }
.line-total { text-align: right; }
.line-remove { width: 36px; height: 36px; border: 0; background: none; font-size: 1.5rem; color: var(--slate); cursor: pointer; border-radius: var(--r-s); }
.line-remove:hover { background: #FCEBEA; color: #B3261E; }
@media (max-width: 600px) {
	.line { grid-template-columns: 72px 1fr 70px; }
	.line-img { width: 72px; height: 72px; }
	.line-total { grid-column: 2; text-align: left; }
	.line-remove { grid-column: 3; justify-self: end; }
}
.totals { position: sticky; top: 9rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.totals h2 { font-size: 1.4rem; }
.t-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.t-row small { color: var(--slate); font-weight: 400; }
.t-total { border-bottom: 0; font-size: 1.15rem; font-weight: 700; }
.t-total strong { color: var(--navy); font-size: 1.35rem; }
.totals .btn-block { margin-top: 1rem; }
.continue { display: block; text-align: center; margin-top: .9rem; font-weight: 600; }
.mini-lines { list-style: none; margin: 0 0 .5rem; padding: 0; }
.mini-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.mini-lines small { display: block; color: var(--slate); }
@media (max-width: 900px) { .totals { position: static; } }

/* Checkout */
.checkout-form h2 { font-size: 1.4rem; margin-top: 1.75rem; }
.checkout-form h2:first-child { margin-top: 0; }
.pay-options { display: grid; gap: .6rem; }
.pay-option { display: flex !important; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid #C9D0DB; border-radius: var(--r-s); cursor: pointer; margin: 0 !important; }
.pay-option:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.pay-option input { margin-top: .25rem; accent-color: var(--blue-strong); }
.pay-option small { display: block; font-weight: 400; color: var(--slate); margin-top: .15rem; }

/* Order */
.timeline { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; counter-reset: st; }
.timeline li { counter-increment: st; position: relative; padding-top: 2.4rem; font-size: .85rem; color: var(--slate); text-align: center; }
.timeline li::before { content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); border: 1.5px solid var(--line); font-weight: 700; color: var(--slate); }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done::before { background: var(--navy); border-color: var(--navy); color: #fff; }
.timeline li.now::before { background: var(--blue-strong); border-color: var(--blue-strong); }
@media (max-width: 700px) { .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 1.25rem; } }
.pay-box { padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r-s); background: #fff; }
.pay-box h2 { font-size: 1.3rem; }
.pay-box p:last-child { margin: 0; }
.btn:not(.btn-primary):not(.btn-line) { background: #fff; border-color: #C9D0DB; color: var(--navy); }
.btn:not(.btn-primary):not(.btn-line):hover { border-color: var(--navy); }
