@import url('/media/com_hikashop/css/fontawesome-all.min.css');

/* Gaikanippel template — Joomla 5 */
:root {
	--gk-red: #8a0808;
	--gk-red-bright: #e23525;
	--gk-bg: #f4f4f4;
	--gk-border: #e1e1e1;
	--gk-text: #222;
	--gk-muted: #666;
	--gk-accent-bg: #f2f2f2;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--gk-text);
	background: var(--gk-bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--gk-red); }
a:hover { color: var(--gk-red-bright); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; z-index: 1000; background: #fff; padding: 6px 10px; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 16px; }

/* ---------- Background video layer ---------- */
.bg-video {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	background: url(../images/fon11.png) repeat;
	opacity: .28;
	pointer-events: none;
}
.page-bg { min-height: 100vh; }

/* ---------- Header ---------- */
.site-header {
	background: linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)), url(../images/fon.jpg) no-repeat center top / cover;
	border-bottom: 3px solid var(--gk-red);
}

.slogan {
	background: linear-gradient(90deg, var(--gk-red) 0%, #b32727 50%, var(--gk-red) 100%);
	color: #fff;
	text-align: center;
	font-size: 13px;
	letter-spacing: .3px;
	padding: 5px 10px;
}

.header-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: stretch;
	gap: 14px;
	padding: 6px 0;
}

.header-card {
	border: 1px solid #e3d3d3;
	border-radius: 12px;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 1px 6px rgba(138, 8, 8, .07);
}

.logo {
	grid-column: 1;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1px 10px;
	border: 1px solid #e3d3d3;
	border-radius: 12px;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 1px 6px rgba(138, 8, 8, .07);
}
.logo img { display: block; height: calc(100% - 2px); width: auto; }

.header-banner {
	grid-column: 2;
	display: none;
	justify-self: center;
	align-self: stretch;
	min-width: 0;
	border: 1px solid #e3d3d3;
	border-radius: 12px;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 1px 6px rgba(138, 8, 8, .07);
	padding: 8px 18px;
	align-items: center;
	justify-content: center;
}
.header-banner img { display: block; max-width: 300px; height: auto; }

.header-contacts {
	grid-column: 3;
	text-align: right;
	font-size: 15px;
	align-self: stretch;
	display: flex;
	align-items: center;
	border: 1px solid #e3d3d3;
	border-radius: 12px;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 1px 6px rgba(138, 8, 8, .07);
	padding: 8px 18px;
}
.header-contacts .hc { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; width: 100%; }
.header-contacts .hc { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header-contacts .hc-label { color: var(--gk-muted); font-size: 13px; margin-right: 6px; }
.header-contacts .tel {
	font-size: 23px;
	font-weight: 700;
	color: var(--gk-red);
	text-decoration: none;
	letter-spacing: .5px;
}
.header-contacts .tel::before {
	content: "";
	display: inline-block;
	width: 24px; height: 24px;
	background: url(../images/tele.png) no-repeat center / contain;
	vertical-align: -4px;
	margin-right: 6px;
}
.header-contacts .tel:hover { color: var(--gk-red-bright); }
.header-contacts .email { display: block; color: var(--gk-text); text-decoration: none; font-size: 15px; }
.header-contacts .email:hover { color: var(--gk-red); }
.header-contacts .hc-extra { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--gk-muted); }
.header-contacts .hc-addr { color: var(--gk-muted); text-decoration: none; }
.header-contacts .hc-addr:hover { color: var(--gk-red); }
.header-contacts .hc-vk {
	display: inline-block;
	background: #0077ff;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 12px;
	text-decoration: none;
}
.header-contacts .hc-vk:hover { background: #005fd1; color: #fff; }

/* корзина-иконка в шапке */
.header-cart { flex: 0 0 auto; align-self: center; }
.header-cart .hikashop_cart_module { margin: 0; }
.gk-minicart { position: relative; display: inline-block; }
.gk-minicart-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--gk-red);
	border-radius: 50%;
	text-decoration: none;
	position: relative;
	box-shadow: 0 2px 8px rgba(138, 8, 8, .35);
	transition: background .15s ease, transform .15s ease;
}
.gk-minicart-link:hover { background: var(--gk-red-bright); transform: scale(1.05); }
.gk-minicart-icon { width: 24px; height: 24px; fill: #fff; }
.gk-minicart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	background: #ffb700;
	color: #5a3a00;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 22px;
	text-align: center;
	border-radius: 11px;
	border: 2px solid #fff;
}
.gk-minicart.is-empty .gk-minicart-count { background: #9e9e9e; color: #fff; }
.gk-minicart .hikashop_checkout_loading_elem,
.gk-minicart .hikashop_checkout_loading_spinner { display: none; }

/* ---------- Второе меню (якоря разделов) ---------- */
.second-nav { background: rgba(247, 243, 243, .9); border-bottom: 1px solid var(--gk-border); }
.second-nav .container { display: flex; justify-content: center; }
.second-navigation {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.second-menu-item a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--gk-text);
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 600;
	padding: 9px 14px;
	white-space: nowrap;
}
.second-menu-item a:hover { color: var(--gk-red); }
.second-menu-item .menu-icon { flex: 0 0 auto; }

@media (min-width: 1200px) {
	.header-banner { display: flex; }
}

@media (max-width: 1199px) {
	.header-row { grid-template-columns: auto 1fr auto auto; }
	.header-contacts { grid-column: 2; }
	.header-cart { grid-column: 3; }
	.burger { grid-column: 4; }
}

.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px; height: 44px;
	background: var(--gk-red);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	margin-left: auto;
}
.burger span { display: block; height: 3px; background: #fff; border-radius: 2px; }

/* ---------- Top nav ---------- */
.main-nav { background: var(--gk-red); }
.main-nav .container { display: flex; align-items: center; gap: 4px; justify-content: center; }
.main-nav ul.mod-menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: stretch; flex-wrap: wrap;
	flex: 1 1 auto;
	justify-content: space-between;
	max-width: 1180px;
}
.main-nav .menu-ico { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.main-nav ul.mod-menu > li > a { gap: 9px; }
.main-nav ul.mod-menu > li { position: relative; }
.main-nav ul.mod-menu > li > a {
	display: flex; align-items: center; gap: 8px;
	color: #fff; text-decoration: none;
	padding: 12px 18px; font-size: 15px;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}
.main-nav ul.mod-menu > li > a:hover,
.main-nav ul.mod-menu > li.active > a,
.main-nav ul.mod-menu > li.current > a {
	background: var(--gk-red-bright);
	border-bottom-color: #fff;
}
.main-nav .gk-topmenu > li:last-child > a {
	background: #fff;
	color: var(--gk-red);
	font-weight: 700;
	border-radius: 6px;
	margin: 6px 0 6px 14px;
	padding: 6px 16px;
	border-bottom: none;
}
.main-nav .gk-topmenu > li:last-child > a .menu-ico { fill: var(--gk-red); }
.main-nav .gk-topmenu > li:last-child > a:hover { background: #ffe8e8; color: var(--gk-red-bright); }
.main-nav .menu-cart { margin-left: auto; display: flex; align-items: center; }
.main-nav .menu-cart a { color: #fff; padding: 8px 12px; display: flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---------- Layout ---------- */
.layout { display: flex; gap: 24px; padding-top: 20px; padding-bottom: 40px; }

.sidebar-left { flex: 0 0 262px; min-width: 0; }

.main-content { flex: 1 1 auto; min-width: 0; background: rgba(255, 255, 255, .88); border: 1px solid var(--gk-border); padding: 24px 28px; }

/* ---------- Left catalog menu ---------- */
.pmenu-head {
	background: #2b2b2b;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	padding: 10px 12px;
	border-radius: 6px 6px 0 0;
}
.product-menu .pmenu-section-title,
.product-menu .pmenu-group-title {
	margin: 0;
}
.product-menu .pmenu-section-title a,
.product-menu .pmenu-group-title a {
	display: block;
	background: var(--gk-red);
	color: #fff;
	text-decoration: none;
	padding: 8px 10px;
	font-size: 13.5px;
	font-weight: 700;
	text-transform: uppercase;
}
.product-menu .pmenu-group-title a {
	background: #b32727;
	font-size: 13px;
	font-weight: 600;
}
.product-menu .pmenu-section-title a:hover,
.product-menu .pmenu-group-title a:hover { background: var(--gk-red-bright); }

.product-menu .pmenu-items {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
	background: var(--gk-accent-bg);
	padding: 6px;
}
.product-menu .pmenu-items a {
	display: flex; flex-direction: column; align-items: center;
	text-align: center;
	font-size: 11px;
	color: var(--gk-text);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--gk-border);
	padding: 4px 2px;
}
.product-menu .pmenu-items a:hover { border-color: var(--gk-red); color: var(--gk-red); }
.product-menu .pmenu-items img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.product-menu .pmenu-items .caption { line-height: 1.15; margin-top: 2px; }

/* ---------- Cart widget ---------- */
.cart-widget { margin-bottom: 12px; }
.cart-widget .cart-box {
	background: #fff; border: 1px solid var(--gk-border);
	padding: 10px 12px; font-size: 13.5px;
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cart-widget .cart-box .cart-link {
	background: var(--gk-red); color: #fff; text-decoration: none;
	padding: 6px 12px; border-radius: 4px; white-space: nowrap;
}
.cart-widget .cart-box .cart-link:hover { background: var(--gk-red-bright); }

/* ---------- Price table ---------- */
.price-table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.price-table th, .price-table td {
	border: 1px solid var(--gk-border);
	padding: 6px 8px;
	text-align: center;
	vertical-align: middle;
}
.price-table thead th { position: sticky; top: 0; z-index: 2; }
.price-table th { background: var(--gk-red); color: #fff; font-weight: 600; }
.price-table tbody tr:hover td { background: #fdf0f0; }
.price-table tr:nth-child(even) td { background: #fafafa; }
.price-table tbody tr:nth-child(even):hover td { background: #fdf0f0; }
.price-table .col-name { text-align: left; font-weight: 600; white-space: nowrap; }
.price-table .price-now { font-weight: 700; color: var(--gk-red); white-space: nowrap; }
.price-table .price-on-request { color: var(--gk-muted); font-style: italic; white-space: nowrap; }
.price-table input.qty { width: 56px; padding: 4px; text-align: center; border: 1px solid #ccc; border-radius: 4px; }
.price-table .btn-cart {
	display: inline-flex; align-items: center; gap: 5px;
	background: var(--gk-red); color: #fff; border: none;
	padding: 6px 10px; border-radius: 4px; cursor: pointer;
	font-size: 13px; white-space: nowrap;
}
.price-table .btn-cart:hover { background: var(--gk-red-bright); }
.price-table .btn-cart svg { width: 14px; height: 14px; fill: #fff; }

/* ---------- Category page ---------- */
.gk-category-head { display: flex; gap: 20px; margin-bottom: 16px; }
.gk-category-head img {
	max-width: 260px;
	align-self: flex-start;
	border: 1px solid #e3d3d3;
	border-radius: 12px;
	box-shadow: 0 1px 6px rgba(138, 8, 8, .07);
	margin-right: 8px;
}
.gk-category-head h1 { margin: 0 0 10px; font-size: 24px; color: var(--gk-red); }
.gk-category-desc { font-size: 14.5px; }

/* карточка товара: рамка и скругление у изображения + отступ от описания */
.hikashop_product_left_part .hikashop_product_main_image img,
img#hikashop_main_image {
	border: 1px solid #e3d3d3;
	border-radius: 12px;
	box-shadow: 0 1px 6px rgba(138, 8, 8, .07);
}
#hikashop_product_left_part {
	padding-right: 24px;
}

/* ---------- Content ---------- */
.item-page h2, .item-page h1 { color: var(--gk-red); }
.blog-item { margin-bottom: 28px; }

/* скрыть информацию о материале (Автор/Категория/Дата/Просмотры) */
.com-content-article dl.article-info,
.item-page dl.article-info,
.com-content-article .article-info,
.item-page .article-info,
.item-page .article-details,
.item-page .item_info,
.item-page .info { display: none !important; }

/* скрыть навигацию "Следующий/Вперед" между материалами */
.com-content-article nav.pagenavigation,
.item-page nav.pagenavigation,
.item-page ul.pagenav,
.item-page .pagenav { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: #2b2b2b; color: #ddd; margin-top: 20px; font-size: 13.5px; border-top: 4px solid var(--gk-red); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 24px; }
.footer-grid h4 { color: #fff; margin: 0 0 8px; font-size: 15px; }
.footer-grid ul { margin: 0; padding: 0; list-style: square inside; }
.footer-grid a { color: #ddd; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #444; padding: 12px 0; color: #aaa; font-size: 12.5px; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
	.layout { flex-direction: column; }
	.sidebar-left { flex: 0 0 auto; }
	.footer-grid { grid-template-columns: 1fr; gap: 18px; }
	.header-contacts { font-size: 13px; text-align: left; }
	.header-contacts .hc { align-items: flex-start; }
	.header-contacts .tel { font-size: 16px; }
	.logo img { height: 56px; }
}

@media (max-width: 760px) {
	.burger { display: flex; }
	.main-nav .container { flex-direction: column; align-items: stretch; }
	.main-nav .menu-cart { margin-left: 0; order: -1; }
	.main-nav { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
	.main-nav.open { max-height: 600px; overflow-y: auto; }
	.main-nav ul.mod-menu { flex-direction: column; }
	.main-nav ul.mod-menu > li > a { padding: 10px 14px; }
	.second-navigation { justify-content: center; flex-wrap: wrap; gap: 2px 8px; padding: 4px 0; }
	.second-menu-item a { font-size: 12px; padding: 6px 8px; gap: 5px; }
	.gk-minicart-link { width: 42px; height: 42px; }
	.header-row { flex-wrap: wrap; gap: 10px; }
	.logo, .header-banner, .header-contacts { border-radius: 10px; }
	.logo { padding: 2px 8px; }
	.header-contacts { padding: 6px 10px; }
	.header-banner { padding: 6px 10px; }
	.gk-category-head { flex-direction: column; }
	.gk-category-head img { max-width: 100%; }
	.main-content { padding: 16px 12px; }
	.price-table { font-size: 12.5px; }
	.price-table th, .price-table td { padding: 4px 5px; }
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
	outline: 3px solid #ffb700;
	outline-offset: 1px;
}

/* ---------- Home video ---------- */
.home-video { margin-bottom: 18px; }
.home-video video {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	background: #000;
}

/* ---------- HikaShop: кнопки в цвет сайта ---------- */
.hikabtn,
.hikabtn.hikacart,
button.hikacart,
input.hikabtn[type="submit"],
.hikabtn-success,
.hikashop_cart_input_button,
.hikashop_product_quantity_field_change,
.hikashop_container .btn-primary,
.hikashop_container .btn-success {
	background: var(--gk-red) !important;
	border-color: var(--gk-red) !important;
	color: #fff !important;
	text-shadow: none !important;
}
.hikabtn:hover,
.hikabtn.hikacart:hover,
button.hikacart:hover,
input.hikabtn[type="submit"]:hover,
.hikabtn-success:hover,
.hikashop_cart_input_button:hover,
.hikashop_product_quantity_field_change:hover,
.hikashop_container .btn-primary:hover,
.hikashop_container .btn-success:hover {
	background: var(--gk-red-bright) !important;
	border-color: var(--gk-red-bright) !important;
	color: #fff !important;
}

/* ---------- Корзина checkout: обводка-карточки вокруг товаров ---------- */
.hikashop_checkout_cart .table {
	border-collapse: separate;
	border-spacing: 0 12px;
	background: transparent;
}
.hikashop_checkout_cart .table tbody tr td {
	border-top: 1px solid #e3d3d3;
	border-bottom: 1px solid #e3d3d3;
	background: #fff;
	box-shadow: 0 1px 6px rgba(138, 8, 8, .06);
}
.hikashop_checkout_cart .table tbody tr td:first-child {
	border-left: 1px solid #e3d3d3;
	border-radius: 12px 0 0 12px;
}
.hikashop_checkout_cart .table tbody tr td:last-child {
	border-right: 1px solid #e3d3d3;
	border-radius: 0 12px 12px 0;
}
.hikashop_checkout_cart .table tbody tr.margin td {
	border: none;
	background: transparent;
	box-shadow: none;
}

/* ---------- Цена по запросу ---------- */
.price-on-request {
	color: var(--gk-muted);
	font-style: italic;
	white-space: nowrap;
}

/* ---------- HikaShop: форма покупателя в оформлении ---------- */
.gk-guest-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	max-width: 460px;
	background: rgba(255, 255, 255, .9);
	border: 1px solid #e3d3d3;
	border-radius: 12px;
	padding: 18px 20px;
}
.gk-guest-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.gk-guest-field .req { color: var(--gk-red); }
.gk-guest-field input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 15px;
}
.gk-guest-field input:focus { border-color: var(--gk-red); outline: none; box-shadow: 0 0 0 3px rgba(138, 8, 8, .12); }
.gk-guest-hint { font-size: 12.5px; color: var(--gk-muted); margin-top: 4px; }
.gk-guest-submit {
	justify-self: start;
	padding: 10px 26px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
}

/* ---------- HikaShop: кастомное оформление заказа ---------- */
.gk-checkout-note {
	background: #fdf3f3;
	border: 1px solid #f0c9c9;
	border-radius: 10px;
	color: var(--gk-red);
	font-weight: 600;
	padding: 12px 16px;
	margin-bottom: 18px;
}
.gk-checkout-h { color: var(--gk-red); font-size: 20px; margin: 22px 0 10px; }
.gk-checkout-form { max-width: 560px; }
.gk-field { margin-bottom: 14px; }
.gk-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.gk-field .req { color: var(--gk-red); }
.gk-field input[type="text"],
.gk-field input[type="tel"],
.gk-field input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 15px;
}
.gk-field input:focus { border-color: var(--gk-red); outline: none; box-shadow: 0 0 0 3px rgba(138, 8, 8, .12); }
.gk-field.invalid input {
	border-color: #d93025;
	background: #fff5f5;
	box-shadow: 0 0 0 3px rgba(217, 48, 37, .12);
}
.gk-field .gk-field-error { display: none; color: #d93025; font-size: 13px; margin-top: 4px; }
.gk-field.invalid .gk-field-error { display: block; }
.gk-hint { font-size: 12.5px; color: var(--gk-muted); margin-top: 4px; }
.gk-consent .gk-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.gk-consent .gk-check input { margin-top: 4px; }
.gk-consent .gk-check a { font-weight: 600; }
.gk-submit {
	background: var(--gk-red);
	color: #fff;
	border: none;
	font-size: 16px;
	font-weight: 700;
	padding: 13px 34px;
	border-radius: 10px;
	cursor: pointer;
	margin-top: 8px;
}
.gk-submit:hover { background: var(--gk-red-bright); }
.gk-update {
	background: #f2f2f2;
	border: 1px solid #ccc;
	color: var(--gk-text);
	font-size: 14px;
	font-weight: 600;
	padding: 9px 20px;
	border-radius: 8px;
	cursor: pointer;
	margin-top: 10px;
}
.gk-update:hover { background: #e8e8e8; }
.gk-row-actions { text-align: center; }
.gk-del {
	display: inline-block;
	color: #d93025;
	font-weight: 700;
	text-decoration: none;
	font-size: 16px;
	padding: 2px 8px;
}
.gk-del:hover { color: #a50e05; }
.gk-checkout .price-table input.qty { width: 64px; }

/* ---------- HikaShop: спиннеры загрузки скрыть ---------- */
.hikashop_checkout_loading_spinner,
.hikashop_checkout_loading_elem {
	display: none !important;
}

/* ---------- HikaShop: скрыть купон в оформлении ---------- */
.hikashop_checkout_coupon,
.hikashop_coupon_block,
#hikashop_coupon_block,
.hikashop_coupon_form,
.hikashop_checkout_block[data-checkout-step="coupon"],
.hikashop_coupon_box { display: none !important; }

/* ---------- HikaShop: скрыть соцсети/шаринг ---------- */
.hikashop_social_links,
.hikashop_social_buttons,
.hikashop_socials,
.hikashop_share,
.social_buttons,
.hikashop_product_social { display: none !important; }

@media print {
	.site-header, .main-nav, .sidebar-left, .site-footer, .burger { display: none; }
	.main-content { border: none; }
}
