/*
Theme Name: Алмаз-Буд
Theme URI: https://almaz-bud.local
Author: Алмаз-Буд
Author URI: https://almaz-bud.local
Description: Тема для сайта аренды и продажи инструмента Алмаз-Буд
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: almaz-bud
Tags: woocommerce, e-commerce, rental, tools
*/

/* Sticky Footer */
html,
body {
	min-height: 100vh;
	background-color: #FAFAFA;
}

/* Header Styles */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.top-header {
	transition: all 0.3s ease;
}

.main-navigation {
	transition: all 0.3s ease;
}

/* Responsive header improvements */
@media (max-width: 640px) {
	.top-header .container {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}
	
	.main-navigation .container {
		padding-left: 0;
		padding-right: 0;
	}
}

@media (min-width: 1024px) {
	.main-navigation a {
		white-space: nowrap;
	}
}

#page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

#content {
	flex: 1;
}

/* Hero Banner Slider - два отдельных слайдера */
.hero-banner-wrap {
	position: relative;
	overflow: hidden;
}
.hero-banner-desktop { display: block; }
.hero-banner-mobile { display: none; }
@media (max-width: 1023px) {
	.hero-banner-desktop { display: none; }
	.hero-banner-mobile { display: block; }
}
.hero-banner-track {
	display: flex;
	flex-wrap: nowrap;
	transition: transform 0.4s ease-out;
}
.hero-banner-slide {
	flex: 0 0 auto;
	min-width: 0;
}
.hero-banner-slide img {
	width: 100%;
	height: auto;
	vertical-align: top;
	display: block;
}
.hero-banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
	color: #1A1A1A;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
}
.hero-banner-arrow:hover {
	background: #fff;
}
.hero-banner-arrow:active {
	opacity: 0.8;
}
.hero-banner-prev { left: 12px; }
.hero-banner-next { right: 12px; }
.hero-banner-dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 5;
}
.hero-banner-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.8);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, border-color 0.2s;
}
.hero-banner-dot:hover {
	background: rgba(255,255,255,0.5);
}
.hero-banner-dot.active {
	background: #fff;
	border-color: #fff;
}

/* Product Card Hover Overlay */
.product-card-hover {
	opacity: 0 !important;
	pointer-events: none !important;
	transition: opacity 0.3s ease;
}

.product-card:hover .product-card-hover {
	opacity: 1 !important;
	pointer-events: auto !important;
}

/* Category Sidebar Width */
@media (min-width: 1024px) {
	.category-sidebar {
		width: 300px !important;
	}
}

/* Mobile Sidebar Styles */
@media (max-width: 1023px) {
	.category-sidebar {
		width: 280px;
		max-width: 85vw;
	}
	
	#mobile-sidebar-overlay {
		opacity: 0;
		transition: opacity 0.3s ease-in-out;
	}
	
	#mobile-sidebar-overlay.opacity-100 {
		opacity: 1;
	}
}

/* Delivery Page Heading - text-4xl fix */
h1.text-4xl {
	font-size: 2.25rem !important; /* 36px = text-4xl */
}

/* Manrope Font - Standard Font */
html,
body {
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
	color: #1A1A1A;
}

* {
	font-family: inherit;
}

/* FAQ Accordion Animation */
.faq-answer {
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
}

.faq-answer:not(.hidden) {
	max-height: 500px;
	opacity: 1;
}

/* Callback Modal Styles */
.callback-modal {
	animation: fadeIn 0.3s ease-out;
}

.callback-modal-overlay {
	backdrop-filter: blur(2px);
}

.callback-modal-content {
	animation: slideUp 0.3s ease-out;
	max-height: 90vh;
	overflow-y: auto;
}

.callback-modal-close {
	top: 1rem;
	right: 1rem;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.callback-modal-close:hover {
	background-color: rgba(0, 0, 0, 0.05);
	color: #1A1A1A;
}

.callback-modal-body {
	position: relative;
}

.callback-form-container .wpcf7-form {
	margin: 0;
}

.callback-form-container .wpcf7-form p {
	margin-bottom: 1rem;
}

.callback-form-container .wpcf7-form p:last-child {
	margin-bottom: 0;
}

.callback-form-container .wpcf7-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #1A1A1A;
}

.callback-form-container .wpcf7-form input[type="text"],
.callback-form-container .wpcf7-form input[type="tel"],
.callback-form-container .wpcf7-form input[type="email"],
.callback-form-container .wpcf7-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #D1D5DB;
	border-radius: 0.5rem;
	font-size: 1rem;
	transition: all 0.2s ease;
}

.callback-form-container .wpcf7-form input[type="text"]:focus,
.callback-form-container .wpcf7-form input[type="tel"]:focus,
.callback-form-container .wpcf7-form input[type="email"]:focus,
.callback-form-container .wpcf7-form textarea:focus {
	outline: none;
	border-color: #F97316;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.callback-form-container .wpcf7-submit {
	width: 100%;
	padding: 0.75rem 1.5rem;
	background-color: #F97316;
	color: white;
	border: 2px solid #F97316;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.callback-form-container .wpcf7-submit:hover {
	background-color: white;
	color: #F97316;
}

.callback-form-container .wpcf7-response-output {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	animation: slideIn 0.3s ease-out;
	border: none!important;
    font-size: 1rem!important;
    padding: 0!important;
    margin: 0!important;
}

.callback-form-container .wpcf7-mail-sent-ok {
	background-color: #D1FAE5;
	border: 1px solid #10B981;
	color: #065F46;
}

.callback-form-container .wpcf7-mail-sent-ok::before {
	content: '✓';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	background-color: #10B981;
	color: white;
	border-radius: 50%;
	font-size: 0.875rem;
	font-weight: bold;
	flex-shrink: 0;
}

.callback-form-container .wpcf7-mail-sent-ng,
.callback-form-container .wpcf7-validation-errors,
.callback-form-container .wpcf7-spam {
	background-color: #FEE2E2;
	border: 1px solid #EF4444;
	color: #991B1B;
}

.callback-form-container .wpcf7-mail-sent-ng::before,
.callback-form-container .wpcf7-validation-errors::before,
.callback-form-container .wpcf7-spam::before {
	content: '✕';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	background-color: #EF4444;
	color: white;
	border-radius: 50%;
	font-size: 0.875rem;
	font-weight: bold;
	flex-shrink: 0;
}

.formatted-paragraphs p {
	margin-bottom: 1rem;
	line-height: 1.7;
}
.formatted-paragraphs ul {
	margin: 0.75rem 0 1rem;
	padding-left: 1.25rem;
	list-style: disc;
}
.formatted-paragraphs ol {
	margin: 0.75rem 0 1rem;
	padding-left: 1.25rem;
	list-style: decimal;
}
.formatted-paragraphs li {
	margin-bottom: 0.5rem;
}
.formatted-paragraphs h1,
.formatted-paragraphs h2,
.formatted-paragraphs h3,
.formatted-paragraphs h4 {
	margin-top: 1.25rem;
	margin-bottom: 0.75rem;
	line-height: 1.35;
	font-weight: 700;
	color: #1A1A1A;
}
.formatted-paragraphs h2 {
	font-size: 1.375rem;
}
.formatted-paragraphs h3 {
	font-size: 1.125rem;
}
.formatted-paragraphs h4 {
	font-size: 1rem;
}
.formatted-paragraphs a {
	color: #FF6B35;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.formatted-paragraphs a:hover {
	color: #E55A24;
}

@keyframes slideIn {
	from {
		transform: translateY(-10px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Language switcher in header - right, styled */
.lang-switcher-header {
	margin-left: auto;
}
.lang-switcher-header .wpm-language-switcher {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lang-switcher-header .wpm-switcher-dropdown > li {
	position: relative;
}
.lang-switcher-header .wpm-item-language-main > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.lang-switcher-header .wpm-item-language-main > span:hover {
	border-color: #FF6B35;
	background: #FFF5F0;
	color: #FF6B35;
	box-shadow: 0 2px 4px rgba(255,107,53,0.2);
}
.lang-switcher-header .wpm-item-language-main > span img {
	width: 18px;
	height: 14px;
	object-fit: contain;
	border-radius: 2px;
}
.lang-switcher-header .wpm-item-language-main > span::after {
	content: "";
	width: 0;
	height: 0;
	margin-left: 4px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.7;
}
.lang-switcher-header .wpm-language-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 4px;
	min-width: 140px;
	padding: 6px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	list-style: none;
	margin: 0;
	display: none;
	z-index: 100;
}
.lang-switcher-header .wpm-switcher-dropdown > li:hover .wpm-language-dropdown {
	display: block;
}
.lang-switcher-header .wpm-language-dropdown li {
	margin: 0;
}
.lang-switcher-header .wpm-language-dropdown a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 0.8125rem;
	color: #374151;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.lang-switcher-header .wpm-language-dropdown a:hover {
	background: #FFF5F0;
	color: #FF6B35;
}
.lang-switcher-header .wpm-language-dropdown a img {
	width: 18px;
	height: 14px;
	object-fit: contain;
	border-radius: 2px;
}

/* Category description rich text */
.category-description-rich {
	line-height: 1.75;
	color: #374151;
}
.category-description-rich h2,
.category-description-rich h3,
.category-description-rich h4 {
	color: #1A1A1A;
	font-weight: 700;
	line-height: 1.3;
	margin-top: 1.4rem;
	margin-bottom: 0.75rem;
}
.category-description-rich h2 {
	font-size: 1.5rem;
}
.category-description-rich h3 {
	font-size: 1.25rem;
}
.category-description-rich h4 {
	font-size: 1.125rem;
}
.category-description-rich p {
	margin: 0.75rem 0;
	font-size: 0.95rem;
}
.category-description-rich ul,
.category-description-rich ol {
	margin: 0.75rem 0 1rem;
	padding-left: 1.25rem;
}
.category-description-rich ul {
	list-style: disc;
}
.category-description-rich ol {
	list-style: decimal;
}
.category-description-rich li {
	margin-bottom: 0.45rem;
	padding-left: 0.2rem;
}
.category-description-rich a {
	color: #FF6B35;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}
.category-description-rich a:hover {
	color: #E55A24;
}
.category-description-rich strong {
	font-weight: 700;
	color: #111827;
}
.category-description-rich em {
	font-style: italic;
}
.category-description-rich blockquote {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border-left: 3px solid #FF6B35;
	background: #fff7f3;
	border-radius: 0.25rem;
}
.category-description-rich hr {
	margin: 1.25rem 0;
	border: 0;
	border-top: 1px solid #e5e7eb;
}

/* Ensure native select options remain readable across browsers/OS themes */
.brand-filter-select {
	color: #111827;
	background-color: #ffffff;
}

.brand-filter-select option {
	color: #111827;
	background-color: #ffffff;
}

/* WooCommerce product reviews */
.product-reviews .commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.product-reviews .commentlist li {
	border-bottom: 1px solid #e5e7eb;
	padding: 0.75rem 0;
}

.product-reviews .commentlist li:last-child {
	border-bottom: 0;
}

.product-reviews .comment-form {
	display: grid;
	gap: 0.75rem;
}

.product-reviews .comment-form input[type="text"],
.product-reviews .comment-form input[type="email"],
.product-reviews .comment-form textarea,
.product-reviews .comment-form select {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	padding: 0.6rem 0.75rem;
}

