/* ============================================================
   Capsular Theme - Custom CSS
   Oparty na Bootstrap 5.3.8. Wykorzystuje zmienne CSS (custom
   properties) - pozwala to zmieniać kolory z Customizera.
   ============================================================ */

:root {
	/* Brand palette */
	--cap-primary: #1a4d3a;
	--cap-primary-hover: #225e46;
	--cap-primary-dark: #143d2e;
	--cap-primary-light: #eaf1ed;

	/* Neutrals */
	--cap-bg: #ffffff;
	--cap-bg-soft: #f7f7f5;
	--cap-bg-features: #ece8e4;
	--cap-bg-card: #ffffff;
	--cap-bg-product-img: #f4f4f1;

	--cap-text: #1b1d1c;
	--cap-text-muted: #6c6f6d;
	--cap-text-light: #8a8d8b;
	--cap-border: #e6e6e2;
	--cap-border-light: #f0f0ec;

	/* Accents */
	--cap-price: #d6421d;

	/* Radius & shadows */
	--cap-radius-sm: 8px;
	--cap-radius: 14px;
	--cap-radius-lg: 20px;
	--cap-radius-pill: 999px;

	--cap-shadow-sm: 0 1px 2px rgba(20, 30, 25, 0.04);
	--cap-shadow: 0 4px 16px rgba(20, 30, 25, 0.06);
	--cap-shadow-lg: 0 10px 32px rgba(20, 30, 25, 0.10);
	--cap-shadow-hover: 0 12px 36px rgba(20, 30, 25, 0.14);

	/* Type */
	--cap-font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--cap-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
	font-family: var(--cap-font-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--cap-text);
	background: var(--cap-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--cap-text);
}

a {
	color: var(--cap-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover { color: var(--cap-primary-hover); }

.skip-link {
	position: absolute;
	left: 1rem;
	top: 1rem;
	background: var(--cap-primary);
	color: #fff;
	padding: .5rem 1rem;
	border-radius: var(--cap-radius-sm);
	z-index: 9999;
}

/* ------------------------------------------------------------
   Buttons (Capsular variants)
   ------------------------------------------------------------ */
.btn-capsular,
.btn-primary.btn-capsular {
	background: var(--cap-primary);
	border: 1px solid var(--cap-primary);
	color: #fff;
	font-weight: 500;
	padding: 0.75rem 1.75rem;
	border-radius: var(--cap-radius-sm);
	letter-spacing: 0.01em;
	transition: all 0.25s ease;
	box-shadow: var(--cap-shadow-sm);
}
.btn-capsular:hover,
.btn-primary.btn-capsular:hover,
.btn-capsular:focus,
.btn-primary.btn-capsular:focus {
	background: var(--cap-primary-hover);
	border-color: var(--cap-primary-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--cap-shadow);
}
.btn-capsular:active,
.btn-primary.btn-capsular:active {
	transform: translateY(0);
	background: var(--cap-primary-dark) !important;
	border-color: var(--cap-primary-dark) !important;
}

.btn-outline-capsular {
	background: transparent;
	border: 1.5px solid var(--cap-primary);
	color: var(--cap-primary);
	font-weight: 500;
	padding: 0.75rem 2rem;
	border-radius: var(--cap-radius-pill);
	transition: all 0.25s ease;
}
.btn-outline-capsular:hover,
.btn-outline-capsular:focus {
	background: var(--cap-primary);
	color: #fff;
}

.btn-pill { border-radius: var(--cap-radius-pill); }

.btn-lg { font-size: 1rem; padding: 0.9rem 2.25rem; }

/* ------------------------------------------------------------
   Navbar / Header
   ------------------------------------------------------------ */
.site-header { background: #fff; border-bottom: 1px solid var(--cap-border-light); }

.capsular-navbar {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.navbar-brand .brand-text {
	font-family: var(--cap-font-display);
	font-weight: 600;
	font-size: 1.6rem;
	color: var(--cap-primary);
	letter-spacing: -0.015em;
}
.navbar-brand:hover .brand-text { color: var(--cap-primary-hover); }

.capsular-navbar .custom-logo { max-height: 44px; width: auto; }

.capsular-navbar .navbar-nav .nav-link {
	color: var(--cap-text);
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.5rem 1rem;
	position: relative;
	transition: color 0.2s ease;
}
.capsular-navbar .navbar-nav .nav-link:hover,
.capsular-navbar .navbar-nav .nav-link.active {
	color: var(--cap-primary);
}
.capsular-navbar .navbar-nav .nav-link.active::after {
	content: '';
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: -2px;
	height: 2px;
	background: var(--cap-primary);
	border-radius: 2px;
}

.navbar-actions .cart-link {
	color: var(--cap-text);
	font-size: 1.35rem;
	padding: 0.4rem 0.6rem;
	border-radius: var(--cap-radius-sm);
	transition: all 0.2s ease;
}
.navbar-actions .cart-link:hover {
	color: var(--cap-primary);
	background: var(--cap-primary-light);
}

.cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--cap-primary);
	color: #fff;
	font-size: 0.68rem;
	min-width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	font-weight: 600;
}
.cart-count:empty,
.cart-count[data-cart-count="0"] { display: none; }

.navbar-toggler {
	border: 1px solid var(--cap-border);
	padding: 0.35rem 0.55rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--cap-primary-light); }

/* ------------------------------------------------------------
   Sections - base
   ------------------------------------------------------------ */
section { padding: 5rem 0; }

.section-header {
	text-align: center;
	margin-bottom: 3rem;
}
.section-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 600;
	color: var(--cap-text);
	margin: 0;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero-section {
	background: #fff;
	padding: 3rem 0 5rem;
	overflow: hidden;
}

.hero-image-wrap {
	position: relative;
}
.hero-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 540px;
	object-fit: contain;
}
.hero-image--placeholder {
	background: transparent;
}

.hero-content {
	padding-left: 1rem;
}

.hero-title {
	font-family: var(--cap-font-sans);
	font-size: clamp(2.25rem, 5vw, 4.25rem);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--cap-text);
	margin-bottom: 1.5rem;
}

.hero-subtitle {
	font-size: 1rem;
	color: var(--cap-text-muted);
	line-height: 1.6;
	margin-bottom: 2rem;
	max-width: 420px;
}

.hero-cta {
	padding: 0.9rem 2.25rem;
	font-size: 0.95rem;
}

@media (max-width: 991.98px) {
	.hero-content { padding-left: 0; text-align: center; }
	.hero-subtitle { margin-left: auto; margin-right: auto; }
}

/* ------------------------------------------------------------
   Products section
   ------------------------------------------------------------ */
.products-section {
	background: #fff;
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.products-slider {
	position: relative;
}

.products-slider-viewport {
	overflow: hidden;
}

.products-slider-track {
	display: flex;
	gap: 24px;
	transition: transform 0.45s ease;
	will-change: transform;
}

.products-slider-slide {
	flex: 0 0 calc((100% - 72px) / 4);
	min-width: 0;
	display: flex;
}

.product-card {
	background: var(--cap-bg-card);
	border: 1px solid var(--cap-border-light);
	border-radius: var(--cap-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	box-shadow: var(--cap-shadow-sm);
	width: 100%;
	height: 100%;
}
.product-card:hover {
	box-shadow: var(--cap-shadow-hover);
	transform: translateY(-2px);
	border-color: var(--cap-border);
}

.product-card-image,
.product-card-image-link {
	display: block;
	background: var(--cap-bg-product-img);
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
}
.product-card-image-link { text-decoration: none; }
.product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--cap-text-light);
	font-size: 3rem;
}

.product-demo {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.product-demo svg {
	width: 80%;
	height: 80%;
}

.product-card-body {
	padding: 1.25rem 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.product-card-title {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	line-height: 1.3;
}
.product-card-title a {
	color: var(--cap-text);
	text-decoration: none;
}
.product-card-title a:hover { color: var(--cap-primary); }

.product-card-weight {
	font-size: 0.85rem;
	color: var(--cap-text-muted);
	margin-bottom: 0.75rem;
}

.product-card-footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.product-price {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--cap-text);
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.btn-add-to-cart {
	padding: 0.5rem 1.25rem;
	font-size: 0.85rem;
	border-radius: var(--cap-radius-sm);
	white-space: nowrap;
	flex-shrink: 0;
}

/* Arrows */
.products-slider-arrow {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 1px solid var(--cap-border);
	border-radius: 50%;
	background: #fff;
	color: var(--cap-text);
	box-shadow: var(--cap-shadow);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	transition: all 0.2s ease;
}

.products-slider-arrow:hover:not(:disabled) {
	background: var(--cap-primary);
	border-color: var(--cap-primary);
	color: #fff;
}

.products-slider-arrow:disabled {
	opacity: 0.45;
	cursor: default;
	box-shadow: none;
}

.products-slider-arrow-prev {
	left: -22px;
}

.products-slider-arrow-next {
	right: -22px;
}

/* Dots */
.products-slider-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 1.25rem;
}

.products-slider-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d2d7d3;
	opacity: 1;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.products-slider-dot.active {
	background: var(--cap-primary);
	transform: scale(1.18);
}

.products-slider.is-static .products-slider-arrow,
.products-slider.is-static .products-slider-dots {
	display: none;
}

@media (max-width: 991.98px) {
	.products-slider-slide {
		flex-basis: calc((100% - 24px) / 2);
	}

	.products-slider-arrow-prev {
		left: 8px;
	}

	.products-slider-arrow-next {
		right: 8px;
	}
}

@media (max-width: 575.98px) {
	.products-slider-slide {
		flex-basis: 100%;
	}

	.products-slider-arrow {
		width: 40px;
		height: 40px;
		top: 38%;
	}
}

/* ------------------------------------------------------------
   Features section
   ------------------------------------------------------------ */
.features-section {
	background: var(--cap-bg-features);
	padding: 5rem 0;
}

.feature-card {
	padding: 1.5rem 1rem;
}

.feature-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	border: 1.5px solid var(--cap-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cap-primary);
	font-size: 1.75rem;
	background: transparent;
	transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
	background: var(--cap-primary);
	color: #fff;
	transform: scale(1.05);
}

.feature-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--cap-text);
}

.feature-text {
	font-size: 0.92rem;
	color: var(--cap-text-muted);
	line-height: 1.55;
	max-width: 260px;
	margin: 0 auto;
}

/* ------------------------------------------------------------
   Testimonials section
   ------------------------------------------------------------ */
.testimonials-section {
	background: #fff;
	padding: 5rem 0;
}

.testimonial-card {
	background: #fff;
	padding: 2rem 1.5rem 1.75rem;
	border-radius: var(--cap-radius);
	text-align: center;
	border: 1px solid var(--cap-border-light);
	transition: all 0.3s ease;
}
.testimonial-card:hover {
	box-shadow: var(--cap-shadow);
	border-color: var(--cap-border);
}

.testimonial-avatar {
	width: 72px;
	height: 72px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--cap-bg-soft);
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--cap-border-light);
}
.testimonial-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.testimonial-avatar-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cap-text-light);
	font-size: 3.5rem;
	background: var(--cap-bg-soft);
}

.testimonial-body {}

.testimonial-quote {
	font-size: 0.92rem;
	color: var(--cap-text-muted);
	line-height: 1.6;
	font-style: italic;
	margin-bottom: 1rem;
	min-height: 4.5em;
}
.testimonial-quote p { margin: 0; }

.testimonial-author { margin: 0; }
.testimonial-name {
	display: block;
	font-weight: 600;
	color: var(--cap-text);
	font-size: 0.95rem;
}
.testimonial-position {
	display: block;
	font-size: 0.82rem;
	color: var(--cap-text-light);
	margin-top: 0.2rem;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
	background: #fff;
	border-top: 1px solid var(--cap-border-light);
}

.footer-main {
	background: #fff;
}

.footer-map-col {
	min-height: 280px;
}
.footer-map,
.footer-map--placeholder {
	height: 100%;
	min-height: 280px;
	background: #eef1ed;
	position: relative;
	overflow: hidden;
}
.footer-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	border: 0;
}
.map-placeholder { width: 100%; height: 100%; display: flex; }
.map-placeholder svg { width: 100%; height: 100%; }

.footer-contacts-col,
.footer-social-col {
	padding: 2.5rem 1.5rem;
	display: flex;
	align-items: center;
}

.footer-block { width: 100%; }

.footer-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--cap-text);
	margin-bottom: 1.25rem;
}

.contact-list {
	margin: 0;
	font-size: 0.95rem;
	color: var(--cap-text-muted);
}
.contact-list li {
	margin-bottom: 0.6rem;
	display: flex;
	align-items: flex-start;
}
.contact-list li i {
	color: var(--cap-primary);
	margin-top: 0.2rem;
	flex-shrink: 0;
}
.contact-list a {
	color: var(--cap-text-muted);
	text-decoration: none;
}
.contact-list a:hover { color: var(--cap-primary); }

.social-list .social-link {
	color: var(--cap-text-muted);
	font-size: 0.95rem;
	text-decoration: none;
	transition: color 0.2s ease;
}
.social-list .social-link:hover { color: var(--cap-primary); }

.social-icon-wrap {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--cap-primary-light);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cap-primary);
	font-size: 0.95rem;
	transition: all 0.2s ease;
}
.social-link:hover .social-icon-wrap {
	background: var(--cap-primary);
	color: #fff;
}

.footer-bottom {
	background: #fff;
	border-top: 1px solid var(--cap-border-light);
	font-size: 0.85rem;
	color: var(--cap-text-light);
}
.footer-copyright { color: var(--cap-text-light); }
.footer-nav .menu {
	padding-left: 0;
	list-style: none;
	margin: 0;
	display: flex;
	gap: 1.5rem;
}
.footer-nav .menu a {
	color: var(--cap-text-muted);
	text-decoration: none;
	font-size: 0.85rem;
}
.footer-nav .menu a:hover { color: var(--cap-primary); }

@media (max-width: 991.98px) {
	.footer-map-col { min-height: 240px; }
	.footer-contacts-col,
	.footer-social-col { padding: 2rem 1.5rem; text-align: center; }
	.contact-list li { justify-content: center; }
}

/* ------------------------------------------------------------
   Alerts & generic UI tweaks
   ------------------------------------------------------------ */
.alert-info {
	background: var(--cap-primary-light);
	border: 1px solid rgba(26, 77, 58, 0.15);
	color: var(--cap-primary-dark);
	border-radius: var(--cap-radius-sm);
}
.alert-info a { color: var(--cap-primary); font-weight: 600; }

/* Pagination */
.pagination .page-item .page-link {
	color: var(--cap-primary);
	border-color: var(--cap-border);
}
.pagination .page-item.active .page-link {
	background: var(--cap-primary);
	border-color: var(--cap-primary);
	color: #fff;
}

/* Generic forms */
.form-control:focus,
.form-select:focus {
	border-color: var(--cap-primary);
	box-shadow: 0 0 0 0.2rem rgba(26, 77, 58, 0.15);
}

/* Single page / post */
.page-title,
.single-product .entry-title,
.single-post-entry .entry-title {
	font-weight: 600;
	color: var(--cap-text);
}

.single-product-image {
	background: var(--cap-bg-product-img);
	border-radius: var(--cap-radius);
	padding: 2rem;
}

/* Widgets */
.widget-title {
	color: var(--cap-text);
	font-weight: 600;
}

/* 404 */
.error-404 {
	text-align: center;
	padding: 6rem 0;
}
.error-404 .error-code {
	font-size: 8rem;
	font-weight: 700;
	color: var(--cap-primary);
	line-height: 1;
	font-family: var(--cap-font-display);
}

/* Toast adjustments */
.toast.text-bg-success { background: var(--cap-primary) !important; }

/* Responsive tweaks */
@media (max-width: 575.98px) {
	section { padding: 3rem 0; }
	.hero-section { padding: 2rem 0 3rem; }
	.section-header { margin-bottom: 2rem; }
	.product-card-body { padding: 1rem; }
	.product-card-footer {
		flex-wrap: wrap;
	}
	.product-price {
		font-size: 1.2rem;
	}
}

/* WordPress admin bar compensation */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}