/**
 * GabionSystem Theme - Main Styles
 *
 * @package GabionSystem
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Variables (supplements theme.json)
   ========================================================================== */

:root {
	/* Transitions */
	--transition-fast: 0.15s ease;
	--transition-base: 0.3s ease;
	--transition-slow: 0.5s ease;
	--transition-bounce: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--shadow-primary: 0 10px 40px rgba(255, 77, 0, 0.3);

	/* Z-index layers */
	--z-dropdown: 100;
	--z-sticky: 200;
	--z-fixed: 300;
	--z-modal-backdrop: 400;
	--z-modal: 500;
	--z-tooltip: 600;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: var(--wp--preset--color--background);
}

/* Dark background for pages with dark hero */
body.home,
body.page-template-home {
	background-color: var(--wp--preset--color--secondary);
}

/* xone product / category routes always use the cream page bg even though
   they're served from custom URLs, and need the same top padding as other
   non-hero pages so the fixed header + marquee don't overlap content. */
body.xone-product-page,
body.xone-category-page {
	background-color: var(--wp--preset--color--background);
}
body.xone-product-page .site-main,
body.xone-category-page .site-main {
	padding-top: 144px;
}

/* Subcategory grid — shown on parent categories instead of a flat product
   grid. Each card links into the child category. */
.xone-category-children {
	padding: 32px 0 48px;
}
.xone-category-children__title {
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 700;
	margin: 0 0 24px;
	color: var(--wp--preset--color--text, #1a1a1a);
}
.xone-subcategory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.xone-subcategory-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.xone-subcategory-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.xone-subcategory-card__media {
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--background, #f5f0e8);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.xone-subcategory-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.xone-subcategory-card__placeholder {
	color: var(--wp--preset--color--primary, #ff4d00);
	opacity: 0.6;
}
.xone-subcategory-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.xone-subcategory-card__name {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}
.xone-subcategory-card__count {
	font-size: 13px;
	font-weight: 500;
	color: var(--wp--preset--color--primary, #ff4d00);
}
.xone-subcategory-card__desc {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--wp--preset--color--text-muted, #6b6b6b);
	line-height: 1.45;
}
.xone-subcategory-card__cta {
	margin-top: auto;
	padding-top: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--primary, #ff4d00);
	transition: gap 0.2s ease;
}
.xone-subcategory-card:hover .xone-subcategory-card__cta {
	gap: 10px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	transition: color var(--transition-fast);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

/* Header wrapper - fixed position below marquee */
header.wp-block-template-part {
	position: fixed !important;
	top: 44px !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 9998 !important;
	background: #0a0a0a !important;
	height: 100px !important;
	margin: 0 !important;
	padding: 0 !important;
}

header.wp-block-template-part.scrolled {
	top: 0 !important;
	box-shadow: var(--shadow-md);
}

header.wp-block-template-part.hidden {
	transform: translateY(-100%);
}

/* Site header inside wrapper */
.site-header,
.site-header.wp-block-group,
.wp-block-group.site-header {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	height: 100% !important;
}

/* Header main content */
.header-main,
.header-main.wp-block-group {
	height: 100px !important;
	padding: 0 20px !important;
	margin: 0 auto !important;
	max-width: 1400px !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
}

/* Remove ALL WordPress margins from header elements */
header.wp-block-template-part *,
.site-header *,
.site-header.is-layout-flow > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Push main content below fixed header + marquee - only on pages without hero */
body:not(.has-hero) .site-main:not(.page-produkty-new) {
	padding-top: 144px !important; /* marquee (44px) + header (100px) */
}

/* Products page - remove WP default margins */
body .wp-site-blocks > main.page-produkty-new,
body .wp-site-blocks > .page-produkty-new,
.wp-site-blocks > .page-produkty-new,
.page-produkty-new,
main.page-produkty-new {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
	margin: 0 !important;
}

.page-produkty-new > .produkty-hero,
.page-produkty-new > .produkty-hero.wp-block-group,
.produkty-hero {
	margin-block-start: -24px !important;
	margin-top: -24px !important;
}


/* ==========================================================================
   Heading Colors
   ========================================================================== */

/* Default heading color - black on light backgrounds */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	color: var(--wp--preset--color--secondary);
}

/* ==========================================================================
   Dark Section Text Colors - Force white text on dark backgrounds
   ========================================================================== */

/* White headings on dark backgrounds */
.has-secondary-background-color h1,
.has-secondary-background-color h2,
.has-secondary-background-color h3,
.has-secondary-background-color h4,
.has-secondary-background-color h5,
.has-secondary-background-color h6,
.has-secondary-background-color .wp-block-heading,
.has-secondary-background-color h1.has-text-color,
.has-secondary-background-color h2.has-text-color,
.has-secondary-background-color h3.has-text-color,
.has-secondary-background-color h4.has-text-color,
.has-secondary-background-color .wp-block-heading.has-text-color {
	color: #ffffff !important;
}

/* White text on dark backgrounds */
.has-secondary-background-color p,
.has-secondary-background-color li,
.has-secondary-background-color span,
.has-secondary-background-color label,
.has-secondary-background-color ul {
	color: #a3a3a3 !important;
}

/* Override WordPress has-text-color on dark backgrounds */
.has-secondary-background-color .has-text-color,
.has-secondary-background-color p.has-text-color,
.has-secondary-background-color ul.has-text-color,
.has-secondary-background-color li.has-text-color,
.has-secondary-background-color span.has-text-color {
	color: #a3a3a3 !important;
}

/* Orange emphasis on dark backgrounds */
.has-secondary-background-color em,
.has-secondary-background-color h1 em,
.has-secondary-background-color h2 em,
.has-secondary-background-color h3 em {
	color: var(--wp--preset--color--primary) !important;
}

/* Explicit surface color class */
.has-secondary-background-color .has-surface-color,
.has-secondary-background-color .has-surface-color.has-text-color {
	color: #ffffff !important;
}

/* Text light on dark */
.has-secondary-background-color .has-text-light-color {
	color: #a3a3a3 !important;
}

/* Text muted on dark */
.has-secondary-background-color .has-text-muted-color {
	color: #737373 !important;
}

/* Dark header for dark hero */
.has-dark-hero .site-header {
	color: var(--wp--preset--color--surface);
}

.has-dark-hero .site-header .wp-block-site-title a,
.has-dark-hero .site-header .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.8);
}

.has-dark-hero .site-header .wp-block-navigation-item__content:hover {
	color: #fff;
}

.has-dark-hero .site-header .header-icon {
	color: var(--wp--preset--color--surface);
}

.site-header--transparent {
	position: fixed;
	top: 44px;
	left: 0;
	right: 0;
	background: transparent !important;
	transition: all var(--transition-bounce);
}

.site-header--transparent.scrolled {
	top: 0;
	background: rgba(10, 10, 10, 0.95) !important;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

/* Dark Header Styles */
.site-header--dark {
	color: var(--wp--preset--color--surface);
}

.site-header--dark .wp-block-site-title a {
	color: #fff !important;
}

.wp-block-site-title .title-highlight {
	color: var(--wp--preset--color--primary) !important;
}

.site-header--dark .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.8) !important;
	position: relative;
}

.site-header--dark .wp-block-navigation-item__content:hover {
	color: #fff !important;
}

.site-header--dark .wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--primary);
	transition: width 0.3s ease;
}

.site-header--dark .wp-block-navigation-item__content:hover::after {
	width: 100%;
}

.site-header--dark .header-icon {
	color: rgba(255, 255, 255, 0.8);
}

.site-header--dark .header-icon:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.site-header--dark .header-search .wp-block-search__inside-wrapper {
	background: rgba(255, 255, 255, 0.1);
	border-color: transparent;
}

.site-header--dark .header-search .wp-block-search__input {
	color: #fff;
}

.site-header--dark .header-search .wp-block-search__input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

/* Marquee animation */
.marquee-wrapper {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 99999 !important;
	background: #0a0a0a !important;
	color: #ffffff !important;
	height: 44px !important;
	min-height: 44px !important;
	display: flex !important;
	align-items: center !important;
	overflow: hidden !important;
	border-bottom: 1px solid #222;
}

.header-top-bar {
	font-size: var(--wp--preset--font-size--small);
}

.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

.header-logo a {
	display: flex;
	align-items: center;
	text-decoration: none !important;
}

/* Site title - always on one line */
.wp-block-site-title,
.wp-block-site-title a {
	white-space: nowrap !important;
	flex-shrink: 0 !important;
}

.header-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.header-nav .wp-block-navigation__container {
	gap: 16px;
	flex-wrap: nowrap;
}

.header-nav .wp-block-navigation-item__content {
	font-size: 20px !important;
	white-space: nowrap;
}

/* Navigation E-shop button */
.header-nav .nav-button .wp-block-navigation-item__content {
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	padding: 8px 20px !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	transition: all 0.3s ease !important;
}

.header-nav .nav-button .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--primary-dark, #e64500) !important;
	color: #fff !important;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-icons {
	display: flex;
	align-items: center;
	gap: 4px;
}

.header-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	transition: background var(--transition-fast), color var(--transition-fast);
}

.header-icon:hover {
	background: var(--wp--preset--color--surface-alt);
	color: var(--wp--preset--color--primary);
}

.header-icons--light .header-icon {
	color: var(--wp--preset--color--surface);
}

.header-icons--light .header-icon:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--primary);
}

.icon-count {
	position: absolute;
	top: -2px;
	right: -2px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	font-size: 10px;
	font-weight: 600;
	color: #fff;
	background: var(--wp--preset--color--primary);
	border-radius: 9px;
}

.icon-count:empty,
.icon-count[data-count="0"] {
	display: none;
}

/* Header Search */
.header-search {
	max-width: 300px;
}

.header-search .wp-block-search__inside-wrapper {
	border-radius: 6px;
	border: 1px solid var(--wp--preset--color--border);
	overflow: hidden;
}

.header-search .wp-block-search__input {
	border: none;
	padding: 5px 8px;
	width: 200px;
	font-size: 12px;
}

.header-search .wp-block-search__button {
	padding: 10px 16px;
	background: var(--wp--preset--color--primary);
	border: none;
}

/* Live Search Dropdown */
.search-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	z-index: var(--z-modal);
	max-height: 400px;
	overflow-y: auto;
	min-width: 320px;
}

.search-dropdown .search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.15s;
}

.search-dropdown .search-item:hover {
	background: #f9f9f9;
}

.search-dropdown .search-item-img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	background: #f5f5f5;
}

.search-dropdown .search-item-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.search-dropdown .search-item-name {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.search-dropdown .search-item-price {
	font-size: 14px;
	font-weight: 700;
	color: #ff4d00;
}

.search-dropdown .search-view-all {
	justify-content: center;
	font-weight: 600;
	color: #ff4d00;
	background: #f9f9f9;
}

.search-dropdown .search-no-results {
	padding: 16px;
	text-align: center;
	color: #888;
	font-size: 14px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.wp-block-navigation .wp-block-navigation-item__content {
	padding: 8px 0;
	font-weight: 500;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}

.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all var(--transition-fast);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.wp-block-button__link:active {
	transform: translateY(0);
}

.is-style-outline .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
}

.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.post-card {
	overflow: hidden;
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.post-card .wp-block-post-featured-image img {
	transition: transform var(--transition-slow);
}

.post-card:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
	margin-top: auto;
	width: 100%;
}

/* Remove any gap below footer */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > .site-main {
	flex: 1;
}

.wp-site-blocks > footer:last-child,
.wp-site-blocks > .site-footer:last-child {
	margin-top: auto;
}

/* Ensure footer background covers full width */
.site-footer.has-secondary-background-color {
	background-color: var(--wp--preset--color--secondary) !important;
}

/* Compact footer - override ALL WP spacing */
.site-footer.wp-block-group {
	padding-top: 24px !important;
	padding-bottom: 0 !important;
}

/* Kill WP global-padding on footer */
.site-footer.has-global-padding {
	padding-left: 40px !important;
	padding-right: 40px !important;
}

/* Kill WP layout gaps inside footer */
.site-footer.is-layout-constrained > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Center footer content */
.site-footer > .wp-block-columns,
.site-footer > .wp-block-group {
	max-width: 1400px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0;
	padding-right: 0;
}

/* Footer columns */
.site-footer .wp-block-columns {
	gap: 0 24px !important;
}

/* Kill WP is-layout-flow 24px margin inside columns */
.site-footer .wp-block-column.is-layout-flow > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Footer headings */
.site-footer h4.wp-block-heading {
	margin: 0 0 8px 0 !important;
	font-family: var(--wp--preset--font-family--primary) !important;
	font-size: 20px !important;
}

.site-footer .wp-block-site-title {
	margin-bottom: 0 !important;
}

/* Footer contact */
.footer-contact.wp-block-group {
	gap: 0 !important;
}

.footer-contact p {
	margin: 0 !important;
	line-height: 1.5 !important;
}

/* Footer menu */
.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0 !important;
}

.footer-menu li {
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: var(--wp--preset--color--text-light);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer-menu a:hover {
	color: var(--wp--preset--color--primary);
}

/* Footer separator - full width line */
.footer-separator {
	opacity: 0.3;
	margin-top: 20px !important;
	margin-bottom: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	border-width: 0;
	height: 2px !important;
}

.footer-copyright {
	margin: 0 !important;
	padding: 14px 0 !important;
	text-align: center;
}

/* Footer bottom bar - kill ALL WP spacing */
.footer-bottom {
	padding: 0 !important;
	margin: 0 !important;
	gap: 8px !important;
}

.footer-bottom p {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
}

.footer-bottom .wp-block-group {
	gap: 20px !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* ==========================================================================
   Marquee Banner
   ========================================================================== */

.marquee {
	display: flex;
	animation: marquee 35s linear infinite;
}

.marquee-content {
	display: flex;
	gap: 48px;
	padding-right: 48px;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	white-space: nowrap;
}

.marquee-content span {
	opacity: 0.8;
	color: #ffffff !important;
}

.marquee-content strong {
	color: var(--wp--preset--color--primary);
}

@keyframes marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
}

.hero-dark {
	min-height: 70vh;
	display: flex;
	align-items: center;
}

.hero-bg-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: clamp(150px, 28vw, 400px);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.03);
	letter-spacing: -15px;
	pointer-events: none;
	white-space: nowrap;
	z-index: 0;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	margin-bottom: var(--wp--preset--spacing--40);
}

.hero-dark .hero-badge {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-dot {
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--success);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(48px, 6vw, 80px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -2px;
	margin-bottom: var(--wp--preset--spacing--40);
	color: #ffffff !important;
}

.hero-title em {
	font-style: italic;
	color: #ff4d00 !important;
}

.hero-dark .hero-desc,
.hero-dark p {
	color: #a3a3a3 !important;
}

.hero-dark .hero-badge p {
	color: #ffffff !important;
}

.hero-desc {
	font-size: var(--wp--preset--font-size--large);
	max-width: 500px;
	margin-bottom: var(--wp--preset--spacing--50);
	line-height: 1.7;
}

.hero-visual {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.hero-image {
	border-radius: 24px;
	overflow: hidden;
	flex: 1;
	display: flex;
}

.hero-image img {
	filter: grayscale(30%);
	transition: filter var(--transition-slow);
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-visual:hover .hero-image img {
	filter: grayscale(0%);
}

.hero-floating-card {
	position: absolute;
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
	padding: 20px;
	box-shadow: var(--shadow-xl);
	animation: float 4s ease-in-out infinite;
}

.hero-card-1 {
	bottom: 40px;
	left: -40px;
}

.hero-card-2 {
	top: 60px;
	right: -30px;
	animation-delay: 2s;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-15px); }
}

.hero-card-stat {
	font-size: 32px;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
	line-height: 1;
}

.hero-card-stat span {
	color: var(--wp--preset--color--primary);
}

.hero-card-label {
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
	margin-top: 4px;
}

/* Hero Dark - Outline Button Fix */
.hero-dark .is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.hero-dark .is-style-outline .wp-block-button__link:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-section {
	border-top: 1px solid #222;
}

.stats-bar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	padding: 0;
}

.stat-item {
	padding: 40px 24px;
	text-align: center;
	border-right: 1px solid #222;
	transition: background var(--transition-base);
}

.stat-item:last-child {
	border-right: none;
}

.stat-item:hover {
	background: #111;
}

.stat-item-number {
	font-size: 48px;
	font-weight: 700;
	color: var(--wp--preset--color--surface);
	letter-spacing: -2px;
	line-height: 1;
}

.stat-item-number .has-primary-color {
	color: var(--wp--preset--color--surface) !important;
}

.stats-section .stat-item-number span,
.stats-section .has-primary-color {
	color: var(--wp--preset--color--primary) !important;
}

.stat-item-label {
	font-size: 14px;
	color: var(--wp--preset--color--text-light);
	margin-top: 8px;
}

.stat-item-number span {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Calculator - Light Design
   ========================================================================== */

/* Page header - em color override for white context */
.page-header h1 em {
	color: #fff;
	font-style: italic;
}

/* Calculator page content background */
.kalkulacka-content {
	background: #f5f0e8;
}

/* Benefits section */
.calc-benefits-section {
	background: #f5f0e8;
}

.calc-benefits-section h2 {
	color: #1a1a1a;
}

.calc-benefits-section h2 em {
	color: #ff4d00;
}

.calc-benefit-card {
	background: #fff;
	border: 2px solid #e5e5e5;
	border-radius: 16px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}

.calc-benefit-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.calc-benefit-number {
	font-size: 48px;
	font-weight: 700;
	color: #ff4d00;
	line-height: 1;
	margin: 0;
}

.calc-benefit-card h4 {
	color: #1a1a1a;
}

.calc-benefit-card .has-small-font-size {
	color: #737373;
	margin: 0;
}

/* Suppress wpautop artifacts in calculator */
.gabion-calculator-wrapper > p,
.gabion-calculator-wrapper > br,
.gabion-calculator > p,
.gabion-calculator > br,
.calc-service-tabs > br,
.calc-service-tabs p,
.calc-tab > br,
.calc-selected-banner > br,
.calc-form-card > p,
.calc-form-card > br,
.calc-result > br,
.calc-contact-section > p:empty,
.calc-contact-fields > br {
	display: none !important;
}

/* Main calculator form */
.gabion-calculator {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 720px;
	margin: 0 auto;
}

/* Service tabs - horizontal buttons */
.calc-service-tabs {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.calc-tab {
	cursor: pointer;
	flex: 1;
	min-width: 140px;
	position: relative;
}

.calc-tab input[type="radio"] {
	position: absolute;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
}

.calc-tab span {
	display: block;
	text-align: center;
	padding: 10px 16px;
	background: #1a1a1a;
	border: 2px solid #1a1a1a;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	transition: all 0.2s ease;
}

.calc-tab span:hover {
	background: #333;
	border-color: #333;
}

.calc-tab input:checked + span {
	background: #ff4d00;
	border-color: #ff4d00;
	color: #fff;
}

/* Selected service banner */
.calc-selected-banner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #fff;
	border: 2px solid #ff4d00;
	border-radius: 12px;
	font-size: 14px;
	color: #555;
}

.calc-selected-name {
	color: #ff4d00;
	font-weight: 700;
}

.calc-selected-price {
	margin-left: auto;
	color: #999;
	font-size: 13px;
}

/* White form card */
.calc-form-card {
	background: #fff;
	border: 2px solid #e5e5e5;
	border-radius: 16px;
	padding: 22px;
}

.calc-section-title {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px 0;
}

/* Fields */
.calc-fields-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.calc-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.calc-field--full {
	grid-column: 1 / -1;
}

.calc-field label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #555;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.calc-field select,
.calc-field input[type="text"],
.calc-field input[type="email"],
.calc-field input[type="tel"],
.calc-field input[type="number"],
.calc-field textarea {
	width: 100%;
	padding: 12px 14px;
	background: #faf8f5;
	border: 2px solid #e5e5e5;
	border-radius: 10px;
	color: #1a1a1a;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.calc-field select:focus,
.calc-field input:focus,
.calc-field textarea:focus {
	outline: none;
	border-color: #ff4d00;
	background: #fff;
}

.calc-field select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23737373' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

/* Range slider */
.calc-field input[type="range"] {
	-webkit-appearance: none;
	height: 6px;
	background: #e5e5e5;
	border-radius: 3px;
	border: none;
	padding: 0;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	background: #ff4d00;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(255, 77, 0, 0.3);
}

.calc-field input[type="range"]::-moz-range-thumb {
	width: 22px;
	height: 22px;
	background: #ff4d00;
	border-radius: 50%;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 6px rgba(255, 77, 0, 0.3);
}

.calc-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #999;
}

.calc-length-value {
	color: #ff4d00;
	font-weight: 700;
}

/* Checkboxes */
.calc-extras {
	display: flex;
	gap: 24px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.calc-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #444;
}

.calc-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #ff4d00;
	cursor: pointer;
}

/* Price result */
.calc-result {
	padding: 28px;
	background: #fff;
	border: 2px solid #ff4d00;
	border-radius: 16px;
	text-align: center;
}

.calc-result.updated {
	animation: calcPulse 0.3s ease;
}

@keyframes calcPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.01); }
	100% { transform: scale(1); }
}

.calc-result-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #737373;
	margin-bottom: 8px;
}

.calc-price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	line-height: 1;
}

.calc-price-value {
	font-size: 40px;
	font-weight: 700;
	color: #ff4d00;
}

.calc-price-currency {
	font-size: 18px;
	font-weight: 600;
	color: #999;
}

.calc-explanation {
	font-size: 13px;
	color: #737373;
	margin-top: 12px;
	line-height: 1.5;
}

/* Contact fields */
.calc-contact-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* Submit button */
.calc-submit-btn {
	display: block;
	width: 100%;
	margin: 20px 0 0;
	padding: 14px 32px;
	background: #ff4d00;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease;
}

.calc-submit-btn:hover {
	background: #e64400;
}

.calc-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.calc-disclaimer {
	text-align: center;
	font-size: 12px;
	color: #999;
	margin-top: 10px;
}

/* Thank you state */
.calc-thank-you {
	text-align: center;
	padding: 32px 20px;
}

.calc-thank-you-icon {
	font-size: 40px;
	margin-bottom: 12px;
}

.calc-thank-you h3 {
	font-size: 22px;
	color: #1a1a1a;
	margin-bottom: 8px;
}

.calc-thank-you p {
	color: #555;
	font-size: 15px;
}

.calc-thank-you-contact {
	margin-top: 12px;
}

.calc-thank-you-contact a {
	color: #ff4d00;
	font-weight: 600;
}

/* Calculator CTA section (homepage pattern) */
.calc-cta-section {
	background: #f5f0e8;
}

.calc-cta-section h2 {
	color: #1a1a1a;
}

.calc-cta-section h2 em {
	color: #ff4d00;
}

.calc-preview-card .calc-field {
	margin-bottom: 16px;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.services-section .wp-block-columns {
	align-items: stretch;
}

.services-section .wp-block-column {
	display: flex;
}

.service-card {
	padding: var(--wp--preset--spacing--60);
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--border-radius--large);
	transition: transform var(--transition-base), box-shadow var(--transition-base);
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
}

.service-icon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: 16px;
	font-size: 28px;
	margin-bottom: var(--wp--preset--spacing--40);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
	padding: var(--wp--preset--spacing--60);
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--border-radius--large);
}

.testimonial-stars {
	color: var(--wp--preset--color--warning);
	font-size: 20px;
	margin-bottom: var(--wp--preset--spacing--30);
}

.testimonial-text {
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.7;
	margin-bottom: var(--wp--preset--spacing--40);
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.testimonial-name {
	font-weight: 600;
}

.testimonial-location {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
	border-radius: var(--wp--custom--border-radius--2xl);
	text-align: center;
}

.cta-title {
	color: var(--wp--preset--color--surface);
	margin-bottom: var(--wp--preset--spacing--30);
}

.cta-desc {
	color: var(--wp--preset--color--text-light);
	max-width: 600px;
	margin: 0 auto var(--wp--preset--spacing--50);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-item {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.faq-question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--wp--preset--spacing--40) 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	text-align: left;
	color: var(--wp--preset--color--text);
}

.faq-question:hover {
	color: var(--wp--preset--color--primary);
}

.faq-icon {
	transition: transform var(--transition-base);
}

.faq-item.is-open .faq-icon {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--transition-base);
}

.faq-item.is-open .faq-answer {
	max-height: 500px;
}

.faq-answer-inner {
	padding-bottom: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--text-muted);
}

/* ==========================================================================
   Animations
   ========================================================================== */

[data-animate] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
	opacity: 1;
	transform: translateY(0);
}

[data-animate="fade-up"] {
	transform: translateY(30px);
}

[data-animate="fade-left"] {
	transform: translateX(-30px);
}

[data-animate="fade-right"] {
	transform: translateX(30px);
}

[data-animate="scale"] {
	transform: scale(0.95);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--surface);
	border-radius: 12px;
	box-shadow: var(--shadow-xl);
	transform: translateY(100px);
	opacity: 0;
	transition: transform var(--transition-bounce), opacity var(--transition-base);
	z-index: var(--z-tooltip);
}

.toast.show {
	transform: translateY(0);
	opacity: 1;
}

.toast-success {
	background: var(--wp--preset--color--success);
}

.toast-error {
	background: var(--wp--preset--color--error);
}

.toast-close {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: 4px;
	opacity: 0.7;
	transition: opacity var(--transition-fast);
}

.toast-close:hover {
	opacity: 1;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.skeleton {
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--border) 25%,
		var(--wp--preset--color--surface-alt) 50%,
		var(--wp--preset--color--border) 75%
	);
	background-size: 200% 100%;
	animation: skeleton 1.5s ease-in-out infinite;
	border-radius: 4px;
}

@keyframes skeleton {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ==========================================================================
   Full Width Layout - Centered
   ========================================================================== */

.wp-site-blocks {
	padding: 0 !important;
}

.site-main {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

/* Full-width sections with centered content */
.hero,
.stats-section,
.services-section,
.testimonials-section,
.cta-section,
.eshop-section,
.realizations-section,
.wp-block-group.alignfull {
	width: 100%;
	max-width: 100%;
}

/* Center all content inside sections */
.hero > .wp-block-group,
.stats-section > .wp-block-columns,
.stats-section .wp-block-columns,
.services-section > .wp-block-group,
.testimonials-section .wp-block-columns,
.cta-section > .wp-block-group,
.section-inner,
.wp-block-group.is-layout-constrained > * {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 40px;
	padding-right: 40px;
}

/* Hero specific centering */
.hero-dark > .wp-block-group {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

/* Stats bar full width but content centered */
.stats-section .stats-bar {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Large Desktop (1400px+) - content stays centered */
@media (min-width: 1401px) {
	.hero > .wp-block-group,
	.stats-section .wp-block-columns,
	.services-section > .wp-block-group,
	.testimonials-section .wp-block-columns,
	.cta-section > .wp-block-group {
		max-width: 1400px;
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* Desktop (1024px - 1400px) */
@media (max-width: 1400px) {
	.hero > .wp-block-group,
	.stats-section .wp-block-columns,
	.services-section > .wp-block-group,
	.testimonials-section .wp-block-columns,
	.cta-section > .wp-block-group {
		max-width: 100%;
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* Tablet Landscape (1024px - 1200px) */
@media (max-width: 1200px) {
	.hero-visual-column {
		display: none;
	}

	.hero-dark .wp-block-columns {
		text-align: center;
	}

	.hero-dark .wp-block-column {
		flex-basis: 100% !important;
	}

	.hero-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-dark .wp-block-buttons {
		justify-content: center;
	}

	/* Services grid */
	.services-grid .wp-block-columns {
		flex-wrap: wrap;
	}

	.services-grid .wp-block-column {
		flex-basis: calc(50% - 12px) !important;
	}

	/* Benefits */
	.calc-benefits-section .wp-block-columns {
		flex-wrap: wrap;
	}

	.calc-benefits-section .wp-block-column {
		flex-basis: calc(50% - 12px) !important;
	}

	/* Testimonials */
	.testimonials-grid .wp-block-columns {
		flex-direction: column;
	}
}

/* Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) {
	.hero > .wp-block-group,
	.stats-section .wp-block-columns,
	.services-section > .wp-block-group,
	.testimonials-section .wp-block-columns,
	.cta-section > .wp-block-group {
		padding-left: 24px;
		padding-right: 24px;
	}

	.calc-contact-fields {
		grid-template-columns: 1fr 1fr;
	}

	.stats-bar {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-item {
		padding: 32px 20px;
	}

	.stat-item-number {
		font-size: 36px;
	}

	/* Navigation */
	.header-nav {
		display: none;
	}

	.header-search {
		display: none;
	}

	/* Hero */
	.hero-title {
		font-size: clamp(36px, 7vw, 56px) !important;
	}

	.hero-bg-text {
		font-size: clamp(100px, 22vw, 200px);
		letter-spacing: -8px;
	}

	/* Service cards */
	.service-card {
		padding: var(--wp--preset--spacing--50);
	}
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
	/* Full width sections - less padding on mobile */
	.hero > .wp-block-group,
	.stats-section .wp-block-columns,
	.services-section > .wp-block-group,
	.testimonials-section .wp-block-columns,
	.cta-section > .wp-block-group,
	.eshop-section > .wp-block-group,
	.realizations-section > .wp-block-group {
		padding-left: 16px;
		padding-right: 16px;
	}

	/* Marquee */
	.marquee-wrapper {
		padding: 10px 0;
	}

	.marquee-content {
		font-size: 11px;
		gap: 24px;
		padding-right: 24px;
		letter-spacing: 1px;
	}

	/* Header */
	.site-header {
		top: 36px;
		padding: 12px 0;
	}

	.site-header.scrolled {
		padding: 10px 0;
	}

	.header-main {
		padding-left: 16px !important;
		padding-right: 16px !important;
		gap: var(--wp--preset--spacing--30);
	}

	.header-nav {
		display: none;
	}

	.header-search {
		display: none;
	}

	.header-icons {
		gap: var(--wp--preset--spacing--20);
	}

	.header-icon {
		width: 36px;
		height: 36px;
	}

	.header-icon svg {
		width: 20px;
		height: 20px;
	}

	/* Hero */
	.hero-dark {
		min-height: auto;
		padding-top: 100px !important;
		padding-bottom: 60px !important;
	}

	.hero-title {
		font-size: clamp(28px, 8vw, 42px) !important;
		letter-spacing: -1px !important;
	}

	.hero-bg-text {
		font-size: clamp(60px, 18vw, 120px);
		letter-spacing: -3px;
	}

	.hero-badge {
		padding: 6px 12px;
		font-size: 11px;
	}

	.hero-desc {
		font-size: 16px !important;
	}

	.hero-floating-card {
		display: none;
	}

	/* Buttons */
	.hero-dark .wp-block-buttons {
		flex-direction: column;
		width: 100%;
	}

	.hero-dark .wp-block-button {
		width: 100%;
	}

	.hero-dark .wp-block-button__link {
		width: 100%;
		justify-content: center;
		padding: 14px 24px !important;
	}

	/* Stats */
	.stats-bar {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-item {
		padding: 24px 16px;
		border-bottom: 1px solid #222;
	}

	.stat-item:nth-child(2n) {
		border-right: none;
	}

	.stat-item:nth-last-child(-n+2) {
		border-bottom: none;
	}

	.stat-item-number {
		font-size: 28px;
		letter-spacing: -1px;
	}

	.stat-item-label {
		font-size: 12px;
	}

	/* Services */
	.services-grid .wp-block-columns {
		flex-direction: column;
	}

	.services-grid .wp-block-column {
		flex-basis: 100% !important;
	}

	.service-card {
		padding: var(--wp--preset--spacing--40);
	}

	.service-icon {
		width: 56px;
		height: 56px;
		font-size: 24px;
	}

	/* Calculator mobile */
	.calc-service-tabs {
		flex-direction: column;
	}

	.calc-tab {
		min-width: auto;
	}

	.calc-form-card {
		padding: 20px;
	}

	.calc-fields-grid {
		grid-template-columns: 1fr;
	}

	.calc-extras {
		flex-direction: column;
		gap: 12px;
	}

	.calc-price-value {
		font-size: 32px;
	}

	.calc-contact-fields {
		grid-template-columns: 1fr;
	}

	.calc-benefits-section .wp-block-columns {
		flex-direction: column;
	}

	.calc-benefits-section .wp-block-column {
		flex-basis: 100% !important;
	}

	/* Testimonials */
	.testimonial-card {
		padding: var(--wp--preset--spacing--40);
	}

	.testimonial-text {
		font-size: 15px;
	}

	/* CTA */
	.cta-section {
		padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
		border-radius: 0;
	}

	.cta-section h2 {
		font-size: clamp(28px, 7vw, 40px);
	}

	/* Toast */
	.toast {
		left: 16px;
		right: 16px;
		bottom: 16px;
	}

	/* Footer */
	.site-footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.site-footer > .wp-block-columns,
	.site-footer > .wp-block-group {
		padding-left: 16px;
		padding-right: 16px;
	}

	.site-footer .wp-block-columns {
		flex-direction: column;
		gap: 24px !important;
	}

	.site-footer .wp-block-column {
		flex-basis: 100% !important;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	margin-left: 8px;
}

.hamburger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
}

.hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--wp--preset--color--secondary);
	z-index: calc(var(--z-fixed) - 1);
	padding: 100px 24px 40px;
	flex-direction: column;
	justify-content: space-between;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
	opacity: 1;
	visibility: visible;
}

.mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mobile-nav a {
	display: block;
	padding: 16px 0;
	font-size: 24px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid #222;
	transition: color 0.3s ease;
}

.mobile-nav a:hover {
	color: var(--wp--preset--color--primary);
}

.mobile-menu-cta {
	margin-top: auto;
	padding-top: 24px;
}

.mobile-phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 24px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 12px;
	transition: background 0.3s ease;
}

.mobile-phone:hover {
	background: var(--wp--preset--color--primary-dark);
}

/* Show mobile menu toggle on tablet and mobile */
@media (max-width: 1023px) {
	.mobile-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.mobile-menu {
		display: flex;
		opacity: 0;
		visibility: hidden;
	}

	.mobile-menu.is-open {
		opacity: 1;
		visibility: visible;
	}
}

/* Body scroll lock when menu is open */
body.menu-open {
	overflow: hidden;
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
	.hero-title {
		font-size: 26px !important;
	}

	.hero-bg-text {
		font-size: 50px;
		letter-spacing: -2px;
	}

	.stat-item-number {
		font-size: 24px;
	}

	.stats-bar {
		grid-template-columns: 1fr 1fr;
	}

	.marquee-content {
		font-size: 10px;
		gap: 16px;
		padding-right: 16px;
	}

	.header-icon {
		width: 32px;
		height: 32px;
	}

	.header-icon svg {
		width: 18px;
		height: 18px;
	}
}

/* ==========================================================================
   Chatbot Widget
   ========================================================================== */

.chatbot-widget {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 1000;
	font-family: var(--wp--preset--font-family--primary);
}

/* Trigger Button — pill with headset icon + label */
.chatbot-trigger {
	min-height: 56px;
	padding: 0 20px 0 16px;
	border: none;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #ff4d00);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	box-shadow: 0 6px 22px rgba(255, 77, 0, 0.32);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	position: relative;
}

.chatbot-trigger:hover {
	background: var(--wp--preset--color--primary-dark, #cc3d00);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(255, 77, 0, 0.45);
}

.chatbot-trigger:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.chatbot-trigger-icon,
.chatbot-trigger-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.chatbot-trigger-close {
	position: absolute;
	left: 16px;
	opacity: 0;
	transform: rotate(-90deg) scale(0.6);
}

.chatbot-widget.is-open .chatbot-trigger {
	width: 56px;
	min-height: 56px;
	padding: 0;
	justify-content: center;
}
.chatbot-widget.is-open .chatbot-trigger-icon,
.chatbot-widget.is-open .chatbot-trigger-label {
	opacity: 0;
	transform: scale(0.6);
	pointer-events: none;
}
.chatbot-widget.is-open .chatbot-trigger-close {
	opacity: 1;
	transform: rotate(0) scale(1);
	left: auto;
	position: static;
}

.chatbot-trigger-label {
	white-space: nowrap;
}

.chatbot-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: var(--wp--preset--color--error, #d63638);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	transition: all 0.3s ease;
}

.chatbot-widget.is-open .chatbot-badge {
	opacity: 0;
	transform: scale(0);
}

/* Phones — collapse to a round icon-only button */
@media (max-width: 480px) {
	.chatbot-trigger {
		width: 56px;
		min-height: 56px;
		padding: 0;
		justify-content: center;
	}
	.chatbot-trigger-label {
		display: none;
	}
}

/* Chat Window */
.chatbot-window {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 380px;
	max-height: 600px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.95);
	transition: all 0.3s ease;
}

.chatbot-widget.is-open .chatbot-window {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

/* Header */
.chatbot-header {
	background: var(--wp--preset--color--secondary);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.chatbot-header-avatar {
	width: 44px;
	height: 44px;
	background: var(--wp--preset--color--primary, #ff4d00);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.chatbot-header-info h4 + .chatbot-status {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}
.chatbot-header-info .status-dot {
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--success, #22c55e);
	border-radius: 50%;
	animation: pulse-dot 2s infinite;
}

.chatbot-header-info {
	flex: 1;
}

.chatbot-header-info h4 {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

.chatbot-status {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--wp--preset--color--success);
	font-size: 13px;
}

.status-dot {
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--success);
	border-radius: 50%;
	animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.chatbot-minimize {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.chatbot-minimize:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Messages */
.chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-height: 350px;
	background: #f8f8f8;
}

.chat-message {
	display: flex;
	gap: 10px;
	max-width: 85%;
	animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.chat-message.bot {
	align-self: flex-start;
}

.chat-message.user {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.message-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

.chat-message.user .message-avatar {
	background: var(--wp--preset--color--secondary);
}

.message-content {
	background: #fff;
	padding: 12px 16px;
	border-radius: 16px;
	border-bottom-left-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message.user .message-content {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: 16px;
	border-bottom-right-radius: 4px;
}

.message-content p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.message-time {
	display: block;
	font-size: 11px;
	color: var(--wp--preset--color--text-muted);
	margin-top: 4px;
}

.chat-message.user .message-time {
	color: rgba(255, 255, 255, 0.7);
}

/* Quick Actions */
.chat-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 4px 8px;
}

.quick-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #e0e0e0);
	color: var(--wp--preset--color--text, #1a1a1a);
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.quick-action:hover {
	border-color: var(--wp--preset--color--primary, #ff4d00);
	color: var(--wp--preset--color--primary, #ff4d00);
	background: rgba(255, 77, 0, 0.06);
	transform: translateY(-1px);
}

.quick-action__icon {
	font-size: 14px;
	line-height: 1;
}

/* Typing Indicator */
.typing-indicator {
	display: flex;
	gap: 4px;
	padding: 12px 16px;
	background: #fff;
	border-radius: 16px;
	border-bottom-left-radius: 4px;
	align-self: flex-start;
}

.typing-indicator span {
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--text-muted);
	border-radius: 50%;
	animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
	0%, 60%, 100% { transform: translateY(0); }
	30% { transform: translateY(-6px); }
}

/* Input */
.chatbot-input {
	display: flex;
	gap: 12px;
	padding: 16px 20px;
	border-top: 1px solid var(--wp--preset--color--border);
	background: #fff;
}

.chatbot-input input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 24px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s ease;
}

.chatbot-input input:focus {
	border-color: var(--wp--preset--color--primary);
}

.chatbot-input input::placeholder {
	color: var(--wp--preset--color--text-muted);
}

.chatbot-send {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.chatbot-send:hover {
	background: var(--wp--preset--color--primary-dark);
	transform: scale(1.05);
}

/* Footer */
.chatbot-footer {
	padding: 10px 20px;
	background: #f8f8f8;
	text-align: center;
	font-size: 11px;
	color: var(--wp--preset--color--text-muted);
	border-top: 1px solid var(--wp--preset--color--border);
}

/* Mobile Responsive */
@media (max-width: 480px) {
	.chatbot-widget {
		bottom: 16px;
		right: 16px;
	}

	.chatbot-trigger {
		width: 56px;
		height: 56px;
	}

	.chatbot-window {
		position: fixed;
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		max-height: 85vh;
		border-radius: 20px 20px 0 0;
	}

	.chatbot-messages {
		max-height: calc(85vh - 200px);
	}
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.site-header,
	.site-footer,
	.chatbot-widget,
	.toast {
		display: none !important;
	}
}

/* ==========================================================================
   Categories Dropdown (E-shop Navigation)
   ========================================================================== */

.categories-dropdown {
	position: relative;
}

.categories-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.categories-trigger:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.25);
}

.categories-trigger svg {
	width: 18px;
	height: 18px;
}

.categories-trigger .chevron {
	width: 14px;
	height: 14px;
	transition: transform var(--transition-fast);
}

.categories-dropdown:hover .chevron {
	transform: rotate(180deg);
}

.categories-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin-top: 8px;
	padding: 8px 0;
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--shadow-xl);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all var(--transition-fast);
	z-index: var(--z-dropdown);
}

.categories-dropdown:hover .categories-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.categories-menu a {
	display: block;
	padding: 10px 20px;
	color: var(--wp--preset--color--secondary);
	font-size: 14px;
	text-decoration: none;
	transition: all var(--transition-fast);
}

.categories-menu a:hover {
	background: var(--wp--preset--color--surface-alt);
	color: var(--wp--preset--color--primary);
	padding-left: 24px;
}

.categories-menu a.highlight {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin-top: 4px;
	padding-top: 14px;
}

.categories-menu a.highlight:hover {
	background: rgba(255, 77, 0, 0.1);
}

/* Header nav wrapper */
.header-nav-wrapper {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* ==========================================================================
   E-shop Product Cards
   ========================================================================== */

.product-card {
	position: relative;
	overflow: hidden;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.sale-badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
}

.category-card {
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.category-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.category-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.category-card-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

/* ==========================================================================
   Benefit Cards
   ========================================================================== */

.benefit-card {
	text-align: center;
	transition: transform var(--transition-fast);
}

.benefit-card:hover {
	transform: translateY(-4px);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.newsletter-email {
	font-family: inherit;
}

.newsletter-email::placeholder {
	color: var(--wp--preset--color--text-muted);
}

/* ==========================================================================
   Flash Sales Countdown
   ========================================================================== */

.countdown-timer {
	display: flex;
	align-items: center;
	gap: 4px;
}

.countdown-item {
	text-align: center;
}

.countdown-number {
	display: block;
	line-height: 1;
	margin-bottom: 4px;
}

/* ==========================================================================
   Brand Wordmark — used in header and footer instead of wp:site-title
   ========================================================================== */

.site-brand {
	display: inline-flex;
	align-items: baseline;
	font-weight: 700;
	font-size: clamp(20px, 1.6vw, 26px);
	letter-spacing: -0.02em;
	text-decoration: none;
	line-height: 1;
}

.site-brand__primary {
	color: var(--wp--preset--color--surface, #fff);
}

.site-brand__accent {
	color: var(--wp--preset--color--primary, #ff4d00);
}

.site-brand:hover .site-brand__accent,
.site-brand:focus .site-brand__accent {
	color: var(--wp--preset--color--primary-light, #ff6a2a);
}

.site-brand--footer {
	font-size: 26px;
}
