/*
Theme Name: Archangel NN
Theme URI: https://archangel-nn.ru
Author: Archangel NN
Author URI: https://archangel-nn.ru
Description: Тема WordPress для сайта Archangel NN на базе Bootstrap 5 шаблона Dewi
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: archangel-nn
Tags: custom-colors, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready, bootstrap, responsive-layout
*/

/* Дополнительные стили WordPress для совместимости с Bootstrap 5 */

/* Ограничение размера логотипа в хедере */
.header .logo .custom-logo,
#header .logo .custom-logo,
#header .logo img.custom-logo,
.header .logo img.custom-logo {
	max-height: 60px !important;
	max-width: 120px !important;
	height: auto !important;
	width: auto !important;
	object-fit: contain;
}

/* Ограничение размера логотипа в футере */
#footer .footer-about .logo .custom-logo,
.footer .footer-about .logo .custom-logo,
.footer-about .logo .custom-logo,
#footer .footer-about .logo img.custom-logo,
.footer .footer-about .logo img.custom-logo {
	max-height: 60px !important;
	max-width: 120px !important;
	height: auto !important;
	width: auto !important;
	object-fit: contain;
}

/* Стили для карточек цен */
.pricing-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 0;
	border: 2px solid #e8e8e8;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.pricing-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #ff4a17 0%, #ff6b3d 50%, #ff8c63 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pricing-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	border-color: #ff4a17;
}

.pricing-card:hover::before {
	opacity: 1;
}

/* Корзина: карточки в стиле темы */
.surface {
	background: var(--surface-color, #fff);
	border: 1px solid color-mix(in srgb, var(--default-color, #444), transparent 85%);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.cart-items-card.surface,
.cart-totals-card.surface {
	padding: 1.5rem 1.5rem 2rem;
}

.cart-item-title-link {
	color: var(--heading-color, #273d4e);
	font-weight: 600;
	text-decoration: none;
}

.cart-item-title-link:hover {
	color: var(--accent-color, #ff4a17);
}

.cart-item-thumb {
	flex-shrink: 0;
	width: 120px;
}

.cart-item-thumb img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
}

.woocommerce .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
}

.woocommerce .cart-collaterals .cart_totals h2 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.woocommerce .cart-collaterals .cart_totals .checkout-button {
	display: inline-block;
	padding: 12px 24px;
	background: var(--accent-color, #ff4a17);
	color: var(--contrast-color, #fff);
	border: none;
	border-radius: 4px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	transition: 0.3s;
}

.woocommerce .cart-collaterals .cart_totals .checkout-button:hover {
	opacity: 0.9;
	color: var(--contrast-color, #fff);
}

/* На странице корзины скрываем дублирующий заголовок из шаблона страницы */
.woocommerce-cart .entry-header {
	display: none;
}

/* Убираем блок «Добавить купоны» на странице корзины (шорткод и блок WooCommerce) */
.woocommerce-cart .coupon,
.woocommerce-cart .cart_totals .coupon,
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block,
.woocommerce-cart .wc-block-components-totals-coupon {
	display: none !important;
}

/* Блок с заголовком «Корзина» на всю ширину страницы (выход из контейнера) */
.woocommerce-cart .entry-content .page-title.section.dark-background {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
	margin-top: -80px;
}

/* Footer: catalog links + contacts */
.footer .footer-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}

.footer .footer-contact-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.footer .footer-contact-list i {
	color: color-mix(in srgb, var(--accent-color), transparent 15%);
	font-size: 16px;
	margin-top: 2px;
}

.footer .footer-contact-list a {
	color: var(--default-color);
	text-decoration: none;
}

.footer .footer-contact-list a:hover {
	color: var(--accent-color);
}

.footer .footer-hotline {
	opacity: 0.8;
	font-size: 12px;
}

.footer .footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--default-color);
	transition: 0.3s;
	width: 34px;
	height: 34px;
	padding: 0;
}

.footer .footer-social-link:hover {
	opacity: 0.85;
	color: var(--default-color);
}

.footer .footer-social-link i {
	font-size: 30px;
	line-height: 1;
}

.footer .footer-social-img {
	width: 32px;
	height: 32px;
	display: block;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.pricing-card-header {
	padding: 20px 25px 15px;
	border-bottom: 2px solid #f5f5f5;
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
	position: relative;
}

.pricing-card-title {
	font-size: 28px;
	font-weight: 700;
	color: #273d4e;
	margin: 0;
	text-align: center;
	letter-spacing: -0.5px;
	position: relative;
	line-height: 1.2;
}

.pricing-card-body {
	padding: 18px 25px 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.pricing-card-description {
	color: #666666;
	font-size: 16px;
	line-height: 1.5;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px dashed #e0e0e0;
}

.pricing-card-includes {
	margin-bottom: 18px;
	flex-grow: 1;
}

.includes-title {
	font-size: 14px;
	font-weight: 700;
	color: #273d4e;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.includes-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.includes-list li {
	color: #555555;
	font-size: 16px;
	line-height: 1.6;
	padding-left: 22px;
	position: relative;
	transition: color 0.2s ease;
}

.includes-list li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--accent-color, #ff4a17);
	font-weight: 700;
	font-size: 14px;
	top: 1px;
}

.includes-list li:hover {
	color: #273d4e;
}

.pricing-card-price {
	text-align: center;
	padding: 18px 0;
	border-top: 2px solid #f0f0f0;
	border-bottom: 2px solid #f0f0f0;
	background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
	border-radius: 8px;
}

.price-amount {
	font-size: 38px;
	font-weight: 800;
	color: #273d4e;
	line-height: 1;
	display: inline-block;
}

.price-currency {
	font-size: 18px;
	font-weight: 600;
	color: #666666;
	vertical-align: top;
	margin-left: 4px;
}

.pricing-card-btn {
	width: 100%;
	padding: 12px 25px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 8px;
	background: var(--accent-color, #ff4a17);
	border: 2px solid var(--accent-color, #ff4a17);
	color: #ffffff;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 74, 23, 0.3);
}

.pricing-card-btn:hover {
	background: var(--accent-color, #ff4a17);
	border-color: var(--accent-color, #ff4a17);
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(255, 74, 23, 0.4);
	transform: translateY(-2px);
	opacity: 0.9;
}

.pricing-card-btn:active {
	transform: translateY(0);
}

.pricing-card:nth-child(3)::before {
	opacity: 1;
}

@media (max-width: 991px) {
	.pricing-card {
		margin-bottom: 30px;
	}
	
	.pricing-card-title {
		font-size: 24px;
	}
	
	.price-amount {
		font-size: 32px;
	}
	
	.pricing-card-header {
		padding: 18px 20px 12px;
	}
	
	.pricing-card-body {
		padding: 15px 20px 20px;
	}
}

/* Стили для карточек категорий товаров WooCommerce */
.product-category-card {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid #e8e8e8;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
	border-color: var(--accent-color, #ff4a17);
}

.product-category-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-category-image-wrapper {
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: #f5f5f5;
	position: relative;
}

.product-category-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.product-category-card:hover .product-category-image {
	transform: scale(1.05);
}

.product-category-title-wrapper {
	padding: 20px;
	text-align: center;
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
}

.product-category-title {
	font-size: 18px;
	font-weight: 600;
	color: #273d4e;
	margin: 0;
	transition: color 0.3s ease;
}

.product-category-card:hover .product-category-title {
	color: var(--accent-color, #ff4a17);
}

@media (max-width: 991px) {
	.product-category-image-wrapper {
		height: 200px;
	}
	
	.product-category-title {
		font-size: 16px;
	}
	
	.product-category-title-wrapper {
		padding: 15px;
	}
}

@media (max-width: 575px) {
	.product-category-image-wrapper {
		height: auto;
		aspect-ratio: 1 / 1;
	}
}

/* Стили для страницы категории товаров */
/* Секция заголовка категории (без фона) */
.category-header-section {
	padding: 60px 0 40px;
	background: #ffffff;
}

.category-header-content {
	color: #273d4e;
}

.category-image-wrapper {
	display: inline-block;
	margin: 0 auto;
}

.category-image {
	max-width: 200px;
	max-height: 200px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	background: #ffffff;
	padding: 15px;
}

.category-title-wrapper {
	text-align: center;
}

.category-title {
	font-size: 36px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px 0;
	line-height: 1.2;
}

.category-description {
	font-size: 16px;
	color: #666666;
	margin: 0;
	line-height: 1.6;
}

/* Секция с фоновым изображением для хлебных крошек */
.page-title-section {
	padding: 40px 0;
	position: relative;
	background-color: #f5f5f5;
}

.page-title-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(39, 61, 78, 0.6);
}

.page-title-content {
	position: relative;
	z-index: 1;
	color: #ffffff;
}

/* Стили для карточек товаров */
.product-card {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid #e8e8e8;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
	border-color: var(--accent-color, #ff4a17);
}

.product-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.product-image-wrapper {
	width: 100%;
	height: 300px;
	overflow: hidden;
	background: #fafafa;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.product-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.product-card:hover .product-image {
	transform: scale(1.05);
}

.product-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
}

.sale-badge {
	background: #dc3545;
	color: #ffffff;
}

.featured-badge {
	background: var(--accent-color, #ff4a17);
	color: #ffffff;
}

.product-info {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.product-title {
	font-size: 18px;
	font-weight: 600;
	color: #273d4e;
	margin: 0 0 12px 0;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.product-card:hover .product-title {
	color: var(--accent-color, #ff4a17);
}

.product-price {
	font-size: 22px;
	font-weight: 700;
	color: #273d4e;
	margin-bottom: 10px;
}

.product-price del {
	font-size: 16px;
	color: #999999;
	margin-right: 8px;
}

.product-price ins {
	text-decoration: none;
	color: var(--accent-color, #ff4a17);
}

.product-stock {
	font-size: 14px;
	margin-top: auto;
	padding-top: 10px;
}

.product-stock.in-stock {
	color: #28a745;
}

.product-stock.out-of-stock {
	color: #dc3545;
}

.product-stock i {
	margin-right: 5px;
}

.product-actions {
	padding: 0 20px 20px;
}

.product-add-to-cart {
	width: 100%;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 6px;
	background: var(--accent-color, #ff4a17);
	border: 2px solid var(--accent-color, #ff4a17);
	color: #ffffff;
	transition: all 0.3s ease;
}

.product-add-to-cart:hover {
	background: transparent;
	color: var(--accent-color, #ff4a17);
}

/* Стили для хлебных крошек */
.breadcrumb-nav {
	margin: 0;
	position: relative;
	z-index: 2;
}

.breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0;
}

.breadcrumb-item {
	color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	pointer-events: auto;
	position: relative;
	z-index: 3;
}

.breadcrumb-item a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.breadcrumb-item.active {
	color: #ffffff;
	font-weight: 600;
}

/* Поверх перекрывающего псевдо-элемента .page-title:before */
.page-title:before {
	pointer-events: none;
}

/* Ссылки-переключатели категорий под хлебными крошками */
.category-switcher a {
	pointer-events: auto;
	position: relative;
	z-index: 3;
}

/* Стили для пагинации */
.woocommerce-pagination {
	text-align: center;
}

.woocommerce-pagination ul {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 8px;
}

.woocommerce-pagination li {
	display: inline-block;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 6px;
	text-decoration: none;
	color: #273d4e;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	transition: all 0.3s ease;
}

.woocommerce-pagination a:hover {
	background: var(--accent-color, #ff4a17);
	color: #ffffff;
	border-color: var(--accent-color, #ff4a17);
}

.woocommerce-pagination .current {
	background: var(--accent-color, #ff4a17);
	color: #ffffff;
	border-color: var(--accent-color, #ff4a17);
}

@media (max-width: 991px) {
	.page-title {
		font-size: 28px;
	}
	
	.page-description {
		font-size: 15px;
	}
	
	.category-image {
		max-width: 120px;
		max-height: 120px;
	}
	
	.category-header {
		flex-direction: column;
		text-align: center;
	}
	
	.category-image-wrapper {
		margin: 0 auto;
	}
	
	.product-image-wrapper {
		height: 250px;
		padding: 15px;
	}
	
	.product-title {
		font-size: 16px;
	}
	
	.product-price {
		font-size: 20px;
	}
}

@media (max-width: 575px) {
	.page-title-section {
		padding: 30px 0;
	}
	
	.page-title {
		font-size: 24px;
	}
	
	.category-image {
		max-width: 100px;
		max-height: 100px;
	}
	
	.product-image-wrapper {
		height: 220px;
		padding: 10px;
	}
}

/* Кнопка «Заказать обратный звонок» в тёмных секциях */
.dark-background .btn-get-started {
	border: 2px solid rgba(255, 255, 255, 0.9);
	color: #fff;
	background: transparent;
	padding: 12px 28px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}
.dark-background .btn-get-started:hover {
	background: #fff;
	color: #000000 !important;
	border-color: #fff;
}

/* SVG-иконки в табах блока features (на главной) */
.features .nav-link i.tab-svg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.features .nav-link i.tab-svg-icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

/* Иллюстрация для блока кремации */
.cremation-hero-illustration {
	background: radial-gradient(circle at top, rgba(255, 255, 255, 0.25) 0, rgba(255, 255, 255, 0) 55%),
		linear-gradient(135deg, #f8fafc, #e2e8f0);
	border-radius: 24px;
	padding: 32px 28px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cremation-hero-icon {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff7a18, #ff4a17);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 42px;
	box-shadow: 0 10px 30px rgba(255, 74, 23, 0.5);
	margin-bottom: 8px;
}

.cremation-pros-list li,
.cremation-cons-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.cremation-pros-list .icon i,
.cremation-cons-list .icon i {
	font-size: 22px;
	color: var(--accent-color, #ff4a17);
	margin-top: 3px;
}

.cremation-pros-list h4,
.cremation-cons-list h4 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}
