/* ==========================================================================
   avd.moskva — modern marketplace-style reskin layer
   Loads AFTER stylesheet.css. Pure visual overrides only —
   no structural/JS-driven classes are touched.
   ========================================================================== */

:root {
	--ink: #1b2430;
	--muted: #6b7785;
	--bg: #f2f4f8;
	--card: #ffffff;
	--line: #e7eaf0;
	--accent: #0d6efd;
	--accent-dark: #0b57c9;
	--accent-soft: #eaf2ff;
	--danger: #e63946;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .06);
	--shadow-hover: 0 10px 28px rgba(16, 24, 40, .14);
}

/* ---------- Bootstrap 5 migration shims ----------
   BS5 dropped these BS3 utility/component classes entirely. Rather than
   rewrite every .tpl's markup to BS5's d-none/d-{bp}-block + .card system,
   we keep using the old class NAMES (zero template changes needed) and
   simply re-implement their behavior here with plain CSS. */
@media (max-width: 767px)                  { .hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991px)  { .hidden-sm { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } }
@media (min-width: 1200px)                 { .hidden-lg { display: none !important; } }
.visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; }
@media (max-width: 767px)                  { .visible-xs { display: block !important; } }
@media (min-width: 768px) and (max-width: 991px)  { .visible-sm { display: block !important; } }
@media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } }
@media (min-width: 1200px)                 { .visible-lg { display: block !important; } }

/* BS3 "panel" component (removed in BS5) — kept as a plain custom class */
.panel-title { font-size: 15px; font-weight: 700; margin: 0; color: var(--ink); }
.panel-group .panel { margin-bottom: 10px; }

/* BS5 dropdown/collapse toggle the `.show` class instead of BS3's `.open`/`.in` */
#cart.show > .btn { background: #fff; border: 1px solid var(--line); }
.hdr__account.show .dropdown-menu, .dropdown.show .dropdown-menu { display: block; }

/* ---------- typography & page base ---------- */
body {
	background: var(--bg);
	font-family: 'Manrope', 'Open Sans', sans-serif;
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.55;
}
h1, h2, h3, h4, h5, h6 {
	color: var(--ink);
	font-weight: 700;
	letter-spacing: -0.01em;
}
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

#content { min-height: 600px; padding-bottom: 20px; }

/* generic bootstrap "boxes" used for filters / account sidebar / info panels */
.panel.panel-default {
	border: none;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.panel-default > .panel-heading {
	background: var(--card);
	border-bottom: 1px solid var(--line);
	font-weight: 700;
	font-size: 15px;
	padding: 16px 18px;
	color: var(--ink);
}
.panel-footer {
	background: var(--card);
	border-top: 1px solid var(--line);
	padding: 14px 18px;
}
.list-group a,
.list-group-item {
	border: none;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	padding: 10px 18px;
	background: var(--card);
}
.list-group a.active, .list-group a.active:hover, .list-group a:hover {
	background: var(--accent-soft);
	color: var(--accent-dark);
	border: none;
	border-bottom: 1px solid var(--line);
	text-shadow: none;
}
.checkbox label { font-size: 13.5px; color: var(--ink); }
.checkbox input[type="checkbox"] { margin-top: 3px; }

/* price range slider (noUiSlider) */
.noUi-target { border: none; box-shadow: none; background: #e3e7ee; border-radius: 6px; height: 6px; }
.noUi-connect { background: var(--accent); }
.noUi-handle {
	border-radius: 50%;
	width: 18px !important;
	height: 18px !important;
	top: -6px !important;
	border: 3px solid var(--accent);
	box-shadow: 0 2px 6px rgba(16,24,40,.25);
	background: #fff;
}
.noUi-handle:before, .noUi-handle:after { display: none; }

/* ---------- top utility bar ---------- */
#top {
	background: var(--ink);
	border-bottom: none;
	color: #cdd4dd;
}
#top .btn-link, #top-links li, #top-links a {
	color: #cdd4dd;
	text-shadow: none;
}
#top .btn-link:hover, #top-links a:hover { color: #fff; }

/* ---------- header (type_6 layout) ---------- */
.type_6 { background: var(--card); border-bottom: 1px solid var(--line); }
.type_6 .header-top { border-bottom: 1px solid var(--line); }
.type_6 .header-top .languages-block a.btn,
.type_6 .header-top .currencies-block a.btn { color: var(--muted); }
.type_6 .header-center { padding: 22px 0; border-bottom: none; }
.type_6 .phone-contact { color: var(--ink); font-weight: 700; white-space: nowrap; }
.type_6 .phone-contact .inner-info { text-transform: none; white-space: nowrap; }
/* inline font-size:1.4em on these links + our larger base font caused wrapping — rein it in */
.type_6 .phone-contact .inner-info a {
	font-size: 1.1em !important;
	white-space: nowrap;
}

#logo img { border-radius: 6px; }

/* search bar → pill shape */
.type_6 #sosearchpro { margin-top: 0; }
.type_6 #sosearchpro .select_category {
	border-radius: 24px 0 0 24px;
	background: #f4f6f9;
}
.type_6 #sosearchpro .form-control {
	border: 1px solid var(--line);
	min-height: 46px;
	background: #f4f6f9;
}
.type_6 #sosearchpro .button-search,
.type_6 #sosearchpro .button-search:hover {
	background: var(--accent);
	border-color: var(--accent);
	border-radius: 0 24px 24px 0;
	padding: 12px 20px;
}
#search .input-lg {
	height: 46px;
	border-radius: 24px 0 0 24px;
	border: 1px solid var(--line);
	background: #f4f6f9;
	box-shadow: none;
}
#search .btn-lg {
	border-radius: 0 24px 24px 0;
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	text-shadow: none;
}

/* cart widget */
.type_6 .shopping_cart a.top_cart .shopcart .title,
.type_6 .shopping_cart a.top_cart .shopcart .text-shopping-cart { color: var(--ink); }
#cart > .btn {
	background: var(--accent-soft);
	border-radius: 24px;
	color: var(--accent-dark);
	border: none;
	box-shadow: none;
}
#cart.open > .btn { background: #fff; border: 1px solid var(--line); }
#cart .dropdown-menu {
	border-radius: var(--radius);
	border: none;
	box-shadow: var(--shadow-hover);
}

/* ---------- main nav / megamenu (colors only, no structural/JS classes touched) ---------- */
#menu {
	background: var(--ink);
	border: none;
}
.type_6 .horizontal ul.megamenu > li > a,
ul.megamenu > li > a {
	color: #d7dce3;
	text-shadow: none;
	font-weight: 600;
}
ul.megamenu > li > a:hover,
ul.megamenu > li.active > a,
ul.megamenu > li:hover > a,
.type_6 .horizontal ul.megamenu > li.home a,
.type_6 .horizontal ul.megamenu > li.active a,
.type_6 .horizontal ul.megamenu > li:hover a {
	background: rgba(255,255,255,.08);
	color: #fff;
}
ul.megamenu .sub-menu .content {
	border: none;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-hover);
}
#menu #category {
	color: #fff;
	text-shadow: none;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
	background: transparent;
	border: none;
	padding: 12px 0;
	margin: 0 0 16px 0;
}
.breadcrumb > li { text-shadow: none; padding: 0 6px 0 0; }
.breadcrumb > li:after { display: none; }
.breadcrumb > li a { color: var(--muted); font-weight: 500; }
.breadcrumb > li:last-child a { color: var(--ink); }

/* ---------- buttons, flattened ---------- */
.btn {
	border-radius: var(--radius-sm);
	box-shadow: none;
	font-weight: 600;
	border: 1px solid transparent;
}
.btn-primary {
	background: var(--accent);
	background-image: none;
	border-color: var(--accent);
	text-shadow: none;
}
.btn-primary:hover, .btn-primary:active, .btn-primary.active {
	background: var(--accent-dark);
	background-image: none;
	border-color: var(--accent-dark);
}
.btn-default {
	background: #fff;
	background-image: none;
	border-color: var(--line);
	color: var(--ink);
	text-shadow: none;
}
.btn-default:hover { background: #f4f6f9; }
.btn-danger {
	background: var(--danger);
	background-image: none;
	border-color: var(--danger);
	text-shadow: none;
}
.btn-success {
	background: #1aa260;
	background-image: none;
	border-color: #1aa260;
	text-shadow: none;
}

/* site-specific CTA classes (also carry .btn.btn-primary) — restore their original
   color semantics (red primary "Купить", light secondary actions) instead of letting
   the generic .btn-primary rule above flatten everything to one blue */
.btn-to-cart, .btn-2lvl {
	background: #fff;
	color: var(--muted);
	border-color: var(--line);
}
.button-bz {
	background: var(--danger);
	color: #fff;
	border-color: var(--danger);
}

/* ---------- product cards (category grid/list + related products) ---------- */
.product-thumb {
	background: var(--card);
	border: none;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform .18s ease, box-shadow .18s ease;
	padding-bottom: 4px;
}
.product-thumb:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}
.product-thumb .image { padding: 14px 14px 0; }
.product-thumb .image a:hover { opacity: 1; }
.product-thumb .image img { border-radius: var(--radius-sm); }
.product-thumb h4 { font-weight: 700; font-size: 14.5px; }
.product-thumb h4 a { color: var(--ink); }
.product-thumb .caption { padding: 6px 16px 14px; }
.product-thumb .rating { padding-bottom: 6px; }
.product-thumb .price { font-size: 17px; font-weight: 800; color: var(--ink); }
.product-thumb .price-new { font-weight: 800; }
.product-thumb .price-old { color: #a7afba; }
.product-thumb .button-group {
	border-top: 1px solid var(--line);
	background: transparent;
	padding: 10px 12px 4px;
}
.product-thumb .button-group button {
	background: var(--accent);
	color: #fff;
	border-radius: var(--radius-sm);
	line-height: 34px;
	font-weight: 700;
	text-transform: none;
}
.product-thumb .button-group button:hover { background: var(--accent-dark); color: #fff; }
.product-thumb .button-group button + button {
	background: #f4f6f9;
	color: var(--muted);
	border-left: none;
	margin-left: 6px;
	border-radius: var(--radius-sm);
}
.product-thumb .button-group button + button:hover { background: #e9edf2; color: var(--ink); }

/* ---------- homepage: category tiles + "Наши работы" gallery (.shop / .shop-img / .shop-body) ---------- */
.section_title.lines_section_title {
	font-weight: 800;
	color: var(--ink);
	position: relative;
}
.section_title.lines_section_title span {
	background: var(--bg);
	padding: 0 18px;
	position: relative;
	z-index: 1;
}
.shop {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	margin-bottom: 20px;
	transition: transform .18s ease, box-shadow .18s ease;
}
.shop:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}
.shop-img img { display: block; width: 100%; }
.shop-body {
	padding: 14px 16px;
	text-align: center;
}
.shop-body h3 {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
	margin: 0;
}

/* ---------- product page ---------- */
.thumbnails > li { }
.image-additional a {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	transition: border-color .15s ease;
}
.image-additional a:hover { border-color: var(--accent); }
#content .nav-tabs > li.active > a,
#content .nav-tabs > li.active > a:hover,
#content .nav-tabs > li.active > a:focus {
	border: 1px solid var(--line);
	border-bottom-color: transparent;
	color: var(--accent-dark);
	font-weight: 700;
}
.nav-tabs > li > a { border-radius: var(--radius-sm) var(--radius-sm) 0 0; color: var(--muted); }
.nav-tabs { border-bottom: 1px solid var(--line); }
h2.price, .price { color: var(--ink); }
#content .list-unstyled .text-success { color: #1aa260; font-weight: 600; }

/* badges on product page (ID / brand / stock pills), generic label styling */
.label, .label-default {
	border-radius: 20px;
	font-weight: 600;
	padding: 4px 10px;
}

/* ---------- footer ---------- */
footer {
	background: var(--ink);
	border-top: none;
	color: #aab2bd;
}
footer.nb-footer .footer-info-single .title {
	border-left: 3px solid var(--accent);
	font-weight: 700;
}
footer.nb-footer .about .social-media ul li a {
	border-color: rgba(255,255,255,.15);
	background: rgba(255,255,255,.05);
	transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
footer.nb-footer .about .social-media ul li a:hover {
	background: linear-gradient(135deg, #7952b3, #6610f2, #0d6efd);
	border-color: transparent;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(13,110,253,.35);
}
footer.nb-footer .footer-info-single ul li a:hover { color: #fff; }
footer.nb-footer .copyright {
	background: #10161f;
}

/* ---------- form controls everywhere (cart/checkout/account share these) ---------- */
select.form-control, textarea.form-control, input.form-control {
	border-radius: var(--radius-sm);
	border: 1px solid var(--line);
	box-shadow: none;
}
select.form-control:focus, textarea.form-control:focus, input.form-control:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ==========================================================================
   REDESIGN 2.0 — new hand-built components (prd-card, grid, hero, badges)
   used by the rebuilt .tpl files (component/prd_cart.tpl, category.tpl,
   product.tpl related section, header.tpl, footer.tpl, home DB modules).
   ========================================================================== */

/* ---------- product card grid ---------- */
.prd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
	margin: 0 0 24px;
}
.prd-card {
	position: relative;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.prd-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-hover);
}
.prd-card__media {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	background: #fbfbfd;
	padding: 18px;
}
.prd-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.prd-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 2;
}
.prd-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 20px;
	background: var(--ink);
	color: #fff;
}
.prd-badge--sale { background: var(--danger); }
.prd-badge--new { background: #1aa260; }
.prd-card__body {
	padding: 4px 16px 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.prd-card__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.35;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.prd-card__title:hover { color: var(--accent); }
.prd-card__desc {
	font-size: 12.5px;
	color: var(--muted);
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.prd-card__rating { margin-bottom: 6px; }
.prd-card__price {
	margin-top: auto;
	font-size: 18px;
	font-weight: 800;
	color: var(--ink);
	padding: 8px 0 12px;
}
.prd-card__price .price-old {
	font-size: 13px;
	font-weight: 500;
	color: #a7afba;
	text-decoration: line-through;
	margin-left: 6px;
}
.prd-card__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px 16px;
}
.prd-buy-btn {
	flex: 1;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: var(--radius-sm);
	height: 38px;
	font-weight: 700;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
}
.prd-buy-btn:hover { background: var(--accent-dark); }
.prd-buy-btn img { width: 15px; height: 15px; filter: brightness(0) invert(1); }
.prd-icon-btn {
	width: 38px;
	height: 38px;
	flex: none;
	border: 1px solid var(--line);
	background: #fff;
	border-radius: var(--radius-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.prd-icon-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.prd-icon-btn img { width: 16px; height: 16px; }

/* ---------- section title (used by rebuilt headings) ---------- */
.section-heading {
	font-size: 22px;
	font-weight: 800;
	color: var(--ink);
	margin: 0 0 18px;
}

/* ---------- category toolbar ---------- */
.cat-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 12px 16px;
	margin-bottom: 18px;
}
.cat-toolbar__group { display: flex; align-items: center; gap: 10px; }
.cat-toolbar select.form-control { min-width: 140px; }
.cat-toolbar .btn-group .btn { border-radius: var(--radius-sm) !important; }

/* ---------- new header shell (rebuilt header.tpl) ---------- */
.hdr {
	background: var(--ink);
}
.hdr__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
	padding: 16px 20px;
	gap: 24px;
}
.hdr__logo { flex: none; display: flex; align-items: center; }
.hdr__logo img { max-height: 46px; }
.hdr__search { flex: 1; max-width: 640px; }
.hdr__contacts { flex: none; color: #fff; text-align: right; white-space: nowrap; font-weight: 700; }
.hdr__contacts a { color: #fff; }
.hdr__contacts .hdr__email { display: block; font-size: 12.5px; font-weight: 500; color: #aab2bd; }
.hdr__account, .hdr__wishlist {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
}
.hdr__account:hover, .hdr__wishlist:hover { background: rgba(255,255,255,.16); color: #fff; }
.hdr__account .dropdown-menu { border-radius: var(--radius-sm); border: none; box-shadow: var(--shadow-hover); }
.hdr__top .shopping_cart#cart_pc { flex: none; width: auto; float: none; padding: 0; }

/* ---------- new footer shell (rebuilt footer.tpl) ---------- */
footer.nb-footer.ftr {
	position: relative;
	background: linear-gradient(135deg, #1f2937 0%, #1b2430 45%, #10151d 100%);
	color: #aab2bd;
	padding: 40px 0 0;
	overflow: hidden;
}
.ftr::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #7952b3, #6610f2, #0d6efd, #0dcaf0);
}
.ftr::after {
	content: '';
	position: absolute;
	top: -120px; right: -120px;
	width: 320px; height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(13,110,253,.18), transparent 70%);
	pointer-events: none;
}
.ftr__grid {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 28px;
}
.ftr__col h5 {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 14px;
	border-left: 3px solid var(--accent);
	padding-left: 10px;
}
.ftr__col ul { list-style: none; margin: 0; padding: 0; }
.ftr__col ul li { margin-bottom: 8px; }
.ftr__col a { color: #aab2bd; }
.ftr__col a:hover { color: #fff; }
.ftr__bottom {
	position: relative;
	margin-top: 30px;
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 16px 20px;
	text-align: center;
	font-size: 12.5px;
	color: #7c8797;
}

/* ---------- home page section blocks (rebuilt DB html modules) ---------- */
.home-section { max-width: 1400px; margin: 0 auto 36px; padding: 0 20px; }
.cat-tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.cat-tile {
	display: block;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	text-align: center;
	transition: transform .18s ease, box-shadow .18s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cat-tile__label { padding: 12px 10px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.gallery-grid img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* ---------- cart page (checkout/cart.tpl "one-page" branch) ---------- */
.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.cart-item {
	display: grid;
	grid-template-columns: 90px 1fr auto auto;
	gap: 16px;
	align-items: center;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 14px 18px;
}
.cart-item__media { display: block; flex: none; }
.cart-item__media img { width: 90px; height: 90px; object-fit: contain; border-radius: var(--radius-sm); background: #fbfbfd; }
.cart-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item__title { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.cart-item__title:hover { color: var(--accent); }
.cart-item__meta, .cart-item__model { font-size: 12px; color: var(--muted); }
.cart-item__qty { display: flex; align-items: center; gap: 6px; }
.cart-item__qty input.form-control { width: 56px; text-align: center; padding: 6px; }
.cart-item__price { text-align: right; min-width: 110px; }
.cart-item__unit { display: block; font-size: 12px; color: var(--muted); }
.cart-item__total { display: block; font-weight: 800; font-size: 16px; color: var(--ink); }
.prd-icon-btn--danger:hover { border-color: var(--danger); background: #fdeceec; color: var(--danger); }

.cart-kp-dropdown { margin-bottom: 20px; }

.checkout-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	align-items: start;
}
.checkout-grid__col { display: flex; flex-direction: column; gap: 18px; }
.checkout-grid__full { grid-column: 1 / -1; }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.cart-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	padding: 8px 0;
	font-size: 14px;
}
.cart-summary__row:last-child { border-bottom: none; font-size: 17px; font-weight: 800; color: var(--ink); }

.checkout-submit {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 10px;
}
.checkout-submit__agree { font-size: 13px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.checkout-submit__agree input { margin-top: 3px; }
.checkout-submit__btn { flex: none; min-width: 220px; height: 46px; font-size: 15px; }

@media (max-width: 900px) {
	.checkout-grid { grid-template-columns: 1fr; }
	.cart-item { grid-template-columns: 70px 1fr; grid-template-areas: "media body" "qty price"; }
	.cart-item__qty { grid-column: 1; }
	.cart-item__price { grid-column: 2; text-align: left; }
}

/* ---------- responsive tweaks ---------- */
@media (max-width: 767px) {
	.product-thumb .button-group button,
	.product-thumb .button-group button + button {
		margin-left: 0;
	}
}
