/*
Theme Name: Akademia Pedagoga
Author: Dawid Grochalski
Updated for better sales engagement + mobile slider
*/

:root {
	/* FONTS */
	--font-size-1: 66px;
	--font-size-2: 46px;
	--font-size-3: 36px;
	--font-size-4: 26px;
	--font-size-5: 22px;
	--font-size-6: 18px;
	--font-size-7: 16px;
	--font-size-8: 14px;
	--font-size-9: 12px;
	--font-size-10: 10px;

	/* FONT FAMILY */
	--primary-font-family: 'Montserrat', sans-serif;

	/* COLORS */
	--main-bg-color: #fff;
	--second-bg-color: #fbf9f7;
	--font-color: #222;
	--primary-color: #304166;
	--highlight-color: #dda101;
	--btn-bg-color: linear-gradient(135deg, #304166 0%, #4768a2 100%);
	--btn-hover-color: linear-gradient(135deg, #f5b301 0%, #ffcf40 100%);
	--btn-color: #fff;
	--svg-icons-color: var(--primary-color);
	--text-section-after: var(--second-bg-color);
	--banner-after: #ffffff94;
	--banner-bg-color: #e9e9e9;
	--banner-font-color: var(--font-color);
	--video-banner-after: #ffffff94;
	--video-banner-font-color: #333;
	--slick-dots-color: var(--highlight-color);
	--slick-arrow-bg: var(--primary-color);
	--slick-arrow-color: #fff;
	--cta-bg-color: #304166;
	--contact-form-borders: #bfbfbf;
	--template-separator-color: var(--primary-color);
	--header-bg-color: #fff;
	--header-second-bg-color: #304166;
	--header-color: var(--font-color);
	--footer-bg-color: #f7f7f7;
	--footer-color: #333;

    --icons-filter: none;

    --def-btn-font-size: 18px;
    --def-btn-padding: 17px 65px;

	--small-padding: 50px;
	--big-padding: 100px;
	--desc-margin: 15px 0 0;
	--border-radius: 6px;
	--template-separator-height: 5px;

	--header-padding: 15px 0;
	--logo-size: 160px;
	--logo-scrolled-size: 100px;
	--logo-mobile-size: 100px;
	--logo-scrolled-mobile: 80px;

	--footer-logo-size: 160px;
	--footer-mobile-logo-size: 100px;

	--fw-type-1: 500;
	--fw-type-2: 600;
	--fw-type-3: 600;
	--fw-type-4: 600;
	--fw-type-5: 600;

	--transition-fast: 0.3s ease;
}

/* TYPOGRAFIA */
.er-title-1,
.er-title-2,
.er-title-3,
.er-title-4,
.er-title-5,
.er-title-6,
.er-title-7,
h1,
h2,
h3,
h4,
h5,
h6 {
	letter-spacing: 1px;
	font-weight: 600;
	color: var(--primary-color);
}

.er-title-2 {
	text-transform: uppercase;
	font-weight: 700;
	color: var(--primary-color);
}

/* Sekcje ogólne */
section.simple-banner-section {
	padding: 30px 0;
}

section.main-cta,
section.main-cta .desc *,
section.main-cta .line-btn a {
	color: #fff;
}

section.main-cta .def-btn a {
	color: #fff;
	background: var(--highlight-color);
	box-shadow: 0 4px 15px rgba(245,179,1,0.3);
	border-radius: var(--border-radius);
	transition: all var(--transition-fast);
}

section.main-cta .def-btn a:hover {
	background: #ffcf40;
	color: #111;
	transform: translateY(-3px);
}

section.icons-section .tmp-separator {
	display: none;
}

section.home-products .tmp-separator {
	margin: 0 auto 30px;
	max-width: 150px;
}

/* Menu */
header.main-header-section .desktop-nav .header-main-row .menu-links-column ul.menu>li.current-menu-item >a::after {
	opacity: 1;
}

/* Baner */
section.new-banner {
	padding: 0;
}
section.new-banner img {
	width: 100%;
}

/* Footer */
footer {
	border-top: 5px solid var(--highlight-color);
	background: var(--footer-bg-color);
	color: var(--footer-color);
	padding-top: 40px;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
	margin-top: auto;
	flex-shrink: 0;
}
footer.main-footer-section-t3-v1 .footer-newsletter form .nws-wrapper button[type="submit"] .icon svg {
	fill: #fff;
}

/* Produkty */
section.wc-page .er-wc-gallery-single .woocommerce-product-gallery__image a img {
	object-fit: contain;
}
.woocommerce .single-prod-show-more.def-btn a {
	padding: 10px 20px;
	margin-top: 30px;
}
.er-single-product {
	border-top: 4px solid var(--primary-color);
}
section.wc-page .woocommerce ul.products li.product .product-image-box img {
	object-fit: contain;
	transition: none; 
}
section.wc-page .woocommerce ul.products li.product {
	text-align: center;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	padding: 20px;
	transition: all var(--transition-fast);
	margin: 5px;
}
section.wc-page .woocommerce ul.products li.product:hover {
	box-shadow: 0 8px 25px rgba(0,0,0,0.08);
	transform: translateY(-5px);
}
section.wc-page .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: var(--font-size-7);
	min-height: 32px;
	font-weight: 600;
	color: var(--font-color);
	margin-top: 10px;
}
.woocommerce ul.products li.product .price {
	color: #ffba00;
	font-size: 18px;
	font-weight: 700;
	margin-top: 10px;
}
.woocommerce ul.products li.product .button {
	padding: 15px 45px;
	background: var(--btn-bg-color);
	color: var(--btn-color);
	font-size: var(--def-btn-font-size);
	font-weight: 600;
	border-radius: var(--border-radius);
	text-transform: uppercase;
	box-shadow: 0 4px 15px rgba(48,65,102,0.25);
	transition: all var(--transition-fast);
}
.woocommerce ul.products li.product .button:hover {
	background: var(--btn-hover-color);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(245,179,1,0.4);
}

/* CTA Sekcja */
section.main-cta {
	background: linear-gradient(135deg, #304166, #4768a2);
	color: #fff;
	text-align: center;
	padding: 80px 0;
}

/* Header */
header.main-header-section {
	background: var(--header-bg-color);
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* GLOBAL MEDIA */

@media screen and (min-width: 1200px) {
	header.main-header-section .desktop-nav .header-main-row .menu-links-column ul.sub-menu>li:hover {
		background-color: var(--second-bg-color);
	}
}
@media screen and (max-width: 1499px) {
	:root {
		--font-size-1: 64px;
		--font-size-2: 44px;
		--font-size-3: 34px;
		--font-size-4: 24px;
		--font-size-5: 20px;
		--font-size-6: 18px;
		--font-size-7: 16px;
		--font-size-8: 14px;
		--font-size-9: 12px;
		--font-size-10: 10px;
        --def-btn-font-size: 15px;
        --def-btn-padding: 17px 35px;
	}
}

html, body {
	height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
}

body > * {
	flex-shrink: 0;
}

main,
#main,
.site-content,
section.wc-page {
	flex: 1 0 auto;
}

@media screen and (max-width: 1199px) {
	:root {
		--font-size-1: 60px;
		--font-size-2: 40px;
		--font-size-3: 30px;
		--font-size-4: 22px;
		--font-size-5: 18px;
		--font-size-6: 16px;
		--font-size-7: 14px;
		--font-size-8: 13px;
		--font-size-9: 12px;
		--font-size-10: 10px;
	}
	.def-btn a {
		padding: 14px 55px;
	}
}
@media screen and (max-width: 991px) {
	:root {
		--font-size-1: 54px;
		--font-size-2: 36px;
		--font-size-3: 28px;
		--font-size-4: 20px;
		--def-btn-font-size: 14px;
        --small-padding: 60px;
        --big-padding: 120px;
	}
	body {
		font-size: var(--font-size-7);
	}
}

/* 🔹 MOBILE OPTIMIZATION + SLIDER 🔹 */
@media screen and (max-width: 767px) {
	:root {
		--font-size-1: 36px;
		--font-size-2: 26px;
		--font-size-3: 20px;
		--font-size-4: 18px;
		--font-size-5: 16px;
		--font-size-6: 15px;
		--font-size-7: 14px;
		--def-btn-font-size: 14px;
		--def-btn-padding: 14px 25px;
		--small-padding: 40px;
	}

	section.wc-page .woocommerce ul.products li.product {
		width: 100%;
		margin: 10px 0;
		padding: 15px;
		box-shadow: 0 4px 10px rgba(0,0,0,0.05);
	}

	section.wc-page .woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 15px;
		line-height: 1.3;
		min-height: unset;
		margin-top: 10px;
	}

	.woocommerce ul.products li.product .price {
		font-size: 16px;
		margin-top: 8px;
	}

	.woocommerce ul.products li.product .button {
		display: block;
		width: 100%;
		max-width: 100%;
		text-align: center;
		padding: 14px 0;
		margin-top: 12px;
		font-size: 15px;
		font-weight: 600;
		border-radius: 8px;
		background: var(--btn-bg-color);
		color: var(--btn-color);
		box-shadow: 0 3px 10px rgba(48,65,102,0.25);
		transition: all 0.3s ease;
	}
	.woocommerce ul.products li.product .button:hover {
		transform: translateY(-1px);
		box-shadow: 0 5px 15px rgba(245,179,1,0.3);
		background: var(--btn-hover-color);
	}

	section.main-cta { padding: 50px 20px; }
	footer { padding: 30px 15px; text-align: center; }
	footer img { max-width: var(--footer-mobile-logo-size); margin-bottom: 10px; }

	/* 🔹 SLIDER NA STRONIE GŁÓWNEJ 🔹 */
	.mobile-slider-products {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scroll-padding: 15px;
		padding: 10px 0 15px 10px;
		margin: 0;
		gap: 15px;
	}
	.mobile-slider-products li.product {
		flex: 0 0 85%;
		scroll-snap-align: start;
		border-radius: 10px;
		box-shadow: 0 4px 15px rgba(0,0,0,0.05);
		background: #fff;
		padding: 15px;
		transition: transform 0.3s ease;
	}
	.mobile-slider-products li.product:hover { transform: translateY(-3px); }
	.mobile-slider-products::-webkit-scrollbar { display: none; }
	.mobile-slider-products { scrollbar-width: none; -ms-overflow-style: none; }
}
