/* ==========================================================================
   product-v2.css — standalone design system for the product page
   (catalog/view/theme/ven/template/product/product.tpl)

   Every rule here is scoped under a v2_* class. Nothing here reads or
   overrides .prd-card / .product-thumb / .panel / etc. from
   modern-reskin.css, and nothing in modern-reskin.css targets v2_*
   classes — the two stylesheets do not intersect.
   ========================================================================== */

:root {
	--v2-ink: #14181f;
	--v2-muted: #6b7280;
	--v2-line: #e5e7eb;
	--v2-bg: #f7f8fa;
	--v2-card: #ffffff;
	--v2-accent: #d81f11;
	--v2-accent-dark: #ad160b;
	--v2-accent-soft: #fdeceb;
	--v2-blue: #0f3a63;
	--v2-radius: 10px;
	--v2-radius-sm: 6px;
	--v2-shadow: 0 1px 3px rgba(20, 24, 31, .05), 0 6px 20px rgba(20, 24, 31, .07);
	--v2-shadow-lg: 0 16px 40px rgba(20, 24, 31, .16);
	--v2-font: 'Manrope', 'Open Sans', sans-serif;
}

.v2_page { font-family: var(--v2-font); color: var(--v2-ink); }
.v2_page * { box-sizing: border-box; }
.v2_page a, .v2_page button, .v2_page .v2_gallery__thumb, .v2_page .v2_badge,
.v2_page .v2_icon_btn, .v2_page .v2_option_value, .v2_page .v2_related_card,
.v2_page .v2_tabs__link {
	transition: color .18s ease, background-color .18s ease, border-color .18s ease,
	            box-shadow .18s ease, transform .18s ease;
}

/* ---------- layout ---------- */
.v2_layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 36px;
	margin-bottom: 32px;
}
@media (max-width: 900px) {
	.v2_layout { grid-template-columns: 1fr; gap: 20px; }
}

.v2_title {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--v2-ink);
	margin: 4px 0 14px;
}

/* ---------- top meta / badges ---------- */
.v2_meta_row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.v2_badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	padding: 6px 12px;
	border-radius: 4px;
	background: var(--v2-bg);
	color: var(--v2-muted);
	border: 1px solid var(--v2-line);
	text-decoration: none;
}
.v2_badge--id { background: #eaf6ec; color: #1c8a3d; border-color: #cdeed4; }
.v2_badge--kp { background: #e9f2fb; color: #0f6dbd; border-color: #d3e7f8; }
.v2_badge--stock { background: #eaf6ec; color: #1c8a3d; border-color: #cdeed4; }
.v2_badge img { width: 13px; height: 13px; }

/* ---------- gallery (fixed square frames so mixed source-photo sizes
   line up uniformly instead of stretching/jumping) ---------- */
/* the old theme's stylesheet.css has a bare ".thumbnails { margin-left: -20px }"
   rule (leftover bootstrap thumbnail-grid spacing) that bleeds into this
   element since we keep the "thumbnails" class for magnificPopup — cancel it */
.thumbnails.v2_gallery { margin-left: 0 !important; }
.v2_gallery { display: flex; gap: 14px; }
.v2_gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: none;
	width: 74px;
}
.v2_gallery__thumb {
	display: block;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius-sm);
	padding: 4px;
	background: var(--v2-card);
	cursor: pointer;
	overflow: hidden;
}
.v2_gallery__thumb:hover { border-color: var(--v2-accent); box-shadow: 0 2px 8px rgba(216,31,17,.15); }
.v2_gallery__thumb.v2_is_active { border-color: var(--v2-accent); border-width: 2px; padding: 3px; }
.v2_gallery__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.v2_gallery__main {
	position: relative;
	flex: 1;
	display: block;
	background: var(--v2-card);
	border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius);
	overflow: hidden;
	text-align: center;
	min-width: 0;
	aspect-ratio: 4 / 3;
}
/* technical corner-bracket accent, like a viewfinder/spec-sheet frame */
.v2_gallery__main::before, .v2_gallery__main::after {
	content: '';
	position: absolute;
	width: 22px;
	height: 22px;
	border: 2px solid var(--v2-accent);
	z-index: 2;
	pointer-events: none;
}
.v2_gallery__main::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.v2_gallery__main::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.v2_gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
@media (max-width: 900px) {
	.v2_gallery__main { aspect-ratio: 1 / 1; }
}

/* ---------- price / buy box ---------- */
.v2_info { display: flex; flex-direction: column; gap: 18px; }
.v2_price_row {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	flex-wrap: wrap;
}
.v2_price { font-size: 32px; font-weight: 800; color: var(--v2-ink); line-height: 1; }
.v2_price--old { text-decoration: line-through; color: var(--v2-muted); font-weight: 600; font-size: 20px; }
.v2_price_label { font-size: 12.5px; color: var(--v2-muted); margin-top: 4px; }
.v2_offer_btn {
	margin-left: auto;
	background: #fff;
	border: 1px solid var(--v2-line);
	color: var(--v2-muted);
	border-radius: var(--v2-radius-sm);
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.v2_offer_btn:hover { border-color: var(--v2-accent); color: var(--v2-accent); }

.v2_buy_row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.v2_qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius-sm);
	overflow: hidden;
	flex: none;
}
.v2_qty__btn {
	width: 40px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--v2-bg);
	cursor: pointer;
	color: var(--v2-ink);
	font-size: 16px;
	user-select: none;
}
.v2_qty__btn:hover { background: var(--v2-line); }
.v2_qty__input {
	width: 46px;
	height: 48px;
	border: none;
	border-left: 1px solid var(--v2-line);
	border-right: 1px solid var(--v2-line);
	text-align: center;
	font-weight: 700;
	font-size: 15px;
}
.v2_btn_buy, .v2_btn_cart {
	height: 48px;
	border: none;
	border-radius: var(--v2-radius-sm);
	font-weight: 700;
	font-size: 14.5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	flex: 1;
	min-width: 140px;
}
.v2_btn_buy { background: var(--v2-accent); color: #fff; }
.v2_btn_buy:hover { background: var(--v2-accent-dark); }
.v2_btn_buy img { width: 17px; height: 17px; filter: brightness(0) invert(1); }
.v2_btn_cart { background: var(--v2-ink); color: #fff; }
.v2_btn_cart:hover { background: #2b3340; }

.v2_extra_row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2_icon_btn {
	width: 44px;
	height: 44px;
	border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius-sm);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: none;
}
.v2_icon_btn:hover { border-color: var(--v2-accent); background: var(--v2-accent-soft); }
.v2_icon_btn img { width: 17px; height: 17px; }
.v2_icon_btn--buy { background: var(--v2-accent); border-color: var(--v2-accent); }
.v2_icon_btn--buy:hover { background: var(--v2-accent-dark); border-color: var(--v2-accent-dark); }
.v2_rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--v2-muted); }
.v2_rating a { color: var(--v2-blue); text-decoration: none; }
.v2_rating a:hover { text-decoration: underline; }

/* quick specs preview (few attributes shown above the fold) */
.v2_quickspecs { display: flex; flex-direction: column; border-top: 1px solid var(--v2-line); padding-top: 14px; }
.v2_quickspecs__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--v2-line);
}
.v2_quickspecs__row:last-child { border-bottom: none; }
.v2_quickspecs__row span:first-child { color: var(--v2-muted); }
.v2_quickspecs__row span:last-child { font-weight: 700; text-align: right; }

/* ---------- tabs ---------- */
.v2_tabs { margin-top: 8px; }
.v2_tabs__nav {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0 0 18px;
	border-bottom: 1px solid var(--v2-line);
}
.v2_tabs__nav li { margin: 0; }
.v2_tabs__link {
	display: inline-block;
	padding: 12px 18px;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--v2-muted);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}
.v2_tabs__link:hover { color: var(--v2-ink); }
.v2_tabs__nav li.active .v2_tabs__link { color: var(--v2-accent); border-bottom-color: var(--v2-accent); }
.v2_tabs__panel { line-height: 1.7; color: #333; }

/* spec table */
.v2_spec_table { width: 100%; border-collapse: collapse; }
.v2_spec_group { font-weight: 800; font-size: 15px; color: var(--v2-ink); padding: 16px 0 8px; }
.v2_spec_row td { padding: 10px 0; border-bottom: 1px solid var(--v2-line); font-size: 14px; }
.v2_spec_row td:first-child { color: var(--v2-muted); width: 55%; }
.v2_spec_row td:last-child { font-weight: 700; text-align: right; }

/* reviews */
.v2_reviews { display: flex; flex-direction: column; gap: 20px; }
.v2_review_form { background: var(--v2-bg); border-radius: var(--v2-radius); padding: 20px; }
.v2_form_group { margin-bottom: 14px; }
.v2_form_group label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.v2_form_group .form-control { border-radius: var(--v2-radius-sm); border: 1px solid var(--v2-line); }

/* options */
.v2_options { display: flex; flex-direction: column; gap: 16px; }
.v2_option label.control-label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.v2_option_values { display: flex; flex-wrap: wrap; gap: 8px; }
.v2_option_value {
	border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius-sm);
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
	text-align: center;
}
.v2_option_value img { display: block; margin: 0 auto 6px; max-width: 60px; }
.v2_option_price { font-size: 11px; color: var(--v2-accent); font-weight: 700; }

/* consultation panel */
.v2_consult {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: rgba(255,255,255,.12);
	color: #fff;
	border-radius: var(--v2-radius);
	padding: 1px;
	margin: 30px 0;
	overflow: hidden;
	background-color: var(--v2-blue);
	background-image: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 40%);
}
@media (max-width: 700px) { .v2_consult { grid-template-columns: 1fr; } }
.v2_consult__item {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	background: var(--v2-blue);
	padding: 24px 28px;
}
.v2_consult__icon {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	color: #fff;
}
.v2_consult__text { flex: 1; min-width: 120px; }
.v2_consult__label { font-size: 13px; color: #9fb4cc; display: block; margin-bottom: 4px; }
.v2_consult__value { font-size: 19px; font-weight: 800; }
.v2_consult__btn {
	background: var(--v2-accent);
	color: #fff;
	border-radius: var(--v2-radius-sm);
	padding: 12px 22px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	flex: none;
}
.v2_consult__btn:hover { background: var(--v2-accent-dark); color: #fff; }

/* USP strip — compact single-line-per-item layout */
.v2_usp {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--v2-line);
	border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius);
	overflow: hidden;
	margin: 14px 0;
}
@media (max-width: 900px) { .v2_usp { grid-template-columns: repeat(2, 1fr); } }
.v2_usp__item {
	background: var(--v2-card);
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
}
.v2_usp__icon {
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 50%;
	background: var(--v2-accent-soft);
	color: var(--v2-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
}
.v2_usp__title { font-size: 11.5px; font-weight: 800; color: var(--v2-ink); line-height: 1.25; }
.v2_usp__sub { font-size: 10.5px; color: var(--v2-muted); line-height: 1.2; }

/* B2B / wholesale line above the USP strip */
.v2_b2b {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--v2-accent-soft);
	border: 1px solid #f4cfcb;
	border-radius: var(--v2-radius-sm);
	padding: 10px 14px;
	margin-top: 18px;
	font-size: 12.5px;
	color: var(--v2-ink);
}
.v2_b2b i { color: var(--v2-accent); font-size: 15px; flex: none; }
.v2_b2b a { color: var(--v2-accent); font-weight: 700; text-decoration: none; }
.v2_b2b a:hover { text-decoration: underline; }

/* manufacturer trust block */
.v2_trust {
	position: relative;
	display: flex;
	align-items: center;
	gap: 28px;
	background: var(--v2-ink);
	color: #fff;
	border-radius: var(--v2-radius);
	padding: 26px 30px;
	margin: 24px 0;
	overflow: hidden;
}
.v2_trust::after {
	content: '';
	position: absolute;
	top: -40%;
	right: -10%;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(216,31,17,.35) 0%, transparent 70%);
}
.v2_trust__num {
	flex: none;
	font-size: 42px;
	font-weight: 800;
	color: var(--v2-accent);
	line-height: 1;
	position: relative;
	z-index: 1;
}
.v2_trust__num span { display: block; font-size: 12px; font-weight: 600; color: #aab3c0; text-transform: uppercase; margin-top: 4px; }
.v2_trust__body { position: relative; z-index: 1; }
.v2_trust__title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.v2_trust__text { font-size: 13.5px; color: #b7bdc6; max-width: 560px; }
@media (max-width: 700px) { .v2_trust { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* expanded manufacturer block: header + pressure-tier grid + CTA */
.v2_trust2 {
	position: relative;
	background: var(--v2-ink);
	color: #fff;
	border-radius: var(--v2-radius);
	padding: 30px 32px;
	margin: 24px 0;
	overflow: hidden;
}
.v2_trust2::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -8%;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(216,31,17,.32) 0%, transparent 70%);
	pointer-events: none;
}
.v2_trust2__head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.v2_trust2__title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.v2_trust2__text { font-size: 13.5px; color: #b7bdc6; max-width: 620px; }
.v2_trust2__cta {
	flex: none;
	background: var(--v2-accent);
	color: #fff;
	border: none;
	border-radius: var(--v2-radius-sm);
	padding: 13px 24px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}
.v2_trust2__cta:hover { background: var(--v2-accent-dark); }
.v2_trust2__tiers {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}
@media (max-width: 900px) { .v2_trust2__tiers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .v2_trust2__tiers { grid-template-columns: repeat(2, 1fr); } }
.v2_trust2__tier {
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: var(--v2-radius-sm);
	padding: 16px 12px;
	text-align: center;
}
.v2_trust2__tier-icon {
	width: 38px;
	height: 38px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: rgba(216,31,17,.18);
	color: var(--v2-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}
.v2_trust2__tier-bar { font-size: 20px; font-weight: 800; color: #fff; }
.v2_trust2__tier-bar span { font-size: 11px; font-weight: 600; color: #9fb4cc; display: block; }
.v2_trust2__tier-label { font-size: 12px; color: #cbd2da; margin-top: 6px; line-height: 1.35; }

/* compact description + specs (merged tab) */
.v2_desc_specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px 28px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--v2-line);
}
@media (max-width: 700px) { .v2_desc_specs { grid-template-columns: 1fr; } }
.v2_desc_specs__row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 13.5px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--v2-line);
}
.v2_desc_specs__row span:first-child { color: var(--v2-muted); }
.v2_desc_specs__row span:last-child { font-weight: 700; text-align: right; }
.v2_desc_specs__group { grid-column: 1 / -1; font-weight: 800; font-size: 14px; color: var(--v2-ink); margin-top: 8px; }

/* related products */
.v2_related_heading { font-size: 21px; font-weight: 800; margin: 8px 0 18px; }
.v2_related_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}
.v2_related_card {
	background: var(--v2-card);
	border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(20,24,31,.05);
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.v2_related_card:hover { box-shadow: var(--v2-shadow-lg); transform: translateY(-3px); border-color: transparent; }
.v2_related_card__media_wrap { position: relative; }
.v2_related_card__media { display: block; aspect-ratio: 1/1; padding: 18px; position: relative; overflow: hidden; background: #f5f6f8; box-sizing: border-box; }
.v2_related_card__hover_actions {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: flex;
	gap: 6px;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .18s ease, transform .18s ease;
}
.v2_related_card:hover .v2_related_card__hover_actions { opacity: 1; transform: translateY(0); }
.v2_mini_icon_btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255,255,255,.96);
	border: 1px solid var(--v2-line);
	box-shadow: 0 2px 8px rgba(20,24,31,.18);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.v2_mini_icon_btn:hover { border-color: var(--v2-accent); background: var(--v2-accent-soft); }
.v2_mini_icon_btn img { width: 14px; height: 14px; }
.v2_related_card__media img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .25s ease; }
.v2_related_card:hover .v2_related_card__media img { transform: scale(1.06); }
.v2_related_badge { position: absolute; top: 8px; left: 8px; background: var(--v2-accent); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.v2_related_card__body { padding: 0 14px; flex: 1; }
.v2_prd_wrap { height: 100%; display: flex; }
.v2_prd_wrap .v2_related_card { height: 100%; width: 100%; }
.v2_related_card__title_wrap { min-height: 36.5px; display: flex; align-items: center; }
.v2_related_card__title { font-size: 13.5px; line-height: 1.35; font-weight: 700; color: var(--v2-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2_related_card__title:hover { color: var(--v2-accent); }
.v2_related_card__meta { font-size: 11.5px; color: var(--v2-muted); margin: 3px 0 0; }
.v2_related_card__attrs { padding: 10px 0 0; margin: 8px 0 0; list-style: none; min-height: 105px; border-top: 1px solid var(--v2-line); }
.v2_related_card__attrs li {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	font-size: 11.5px;
	color: var(--v2-muted);
	padding: 5px 0;
}
.v2_related_card__attrs li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2_related_card__attrs li span:last-child { font-weight: 700; color: var(--v2-ink); text-align: right; white-space: nowrap; flex: none; }
.v2_related_card__price { font-weight: 800; font-size: 16px; padding: 8px 14px 4px; }
.v2_related_card__actions { padding: 10px 14px 14px; }
.v2_cart_full_btn {
	width: 100%;
	height: 40px;
	background: #0d6efd;
	color: #fff;
	border: none;
	border-radius: var(--v2-radius-sm);
	font-weight: 700;
	font-size: 13.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.v2_cart_full_btn:hover { background: #0b5ed7; transform: translateY(-1px); }

/* gallery main image: subtle zoom-on-hover to hint it opens a lightbox */
.v2_gallery__main:hover img { transform: scale(1.04); }
.v2_gallery__main img { transition: transform .25s ease; }

/* generic link/button lift on hover, layered on top of the color transition above */
.v2_btn_buy:hover, .v2_btn_cart:hover { transform: translateY(-1px); box-shadow: var(--v2-shadow); }
.v2_icon_btn:hover, .v2_option_value:hover { transform: translateY(-1px); }

/* tags */
.v2_tags { font-size: 13px; color: var(--v2-muted); margin-top: 10px; }
.v2_tags a { color: var(--v2-blue); }
