/* ============================================
   Custom Navigation & Header — #035 + #036
   Design: mobile-header-v1.html tokens
   Font: Inter (via Google Fonts)
   ============================================ */

/* ========================================
   DESIGN TOKENS (CSS Custom Properties)
   ======================================== */
:root {
	--es-primary: #F57C00;
	--es-primary-hover: #E65100;
	--es-primary-light: #FFF3E0;
	--es-dark: #1A1A1A;
	--es-text: #333333;
	--es-text-muted: #6B7280;
	--es-border: #E5E7EB;
	--es-bg: #FFFFFF;
	--es-bg-alt: #F8F9FA;
	--es-success: #16A34A;
	--es-danger: #DC2626;
	--es-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', sans-serif;
	--es-radius: 8px;
	--es-radius-lg: 12px;
	--es-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
	--es-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
	--es-transition: 0.2s ease;
}

/* ========================================
   MOBILE ORANGE STRIP
   ======================================== */
.es-mobile-strip {
	display: none;
	background: var(--es-primary);
	color: white;
	font-family: var(--es-font);
	font-size: 0.75rem;
	padding: 6px 0;
	text-align: center;
}

.es-mobile-strip .container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
}

.es-mobile-strip a {
	color: white;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	text-decoration: none;
}

.es-strip-sep {
	width: 1px;
	height: 12px;
	background: rgba(255,255,255,0.4);
}

/* ========================================
   HEADER
   ======================================== */
.es-header {
	background: var(--es-bg);
	border-bottom: 1px solid var(--es-border);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--es-shadow-sm);
}

.es-header-inner {
	display: flex;
	align-items: center;
	gap: 2rem;
}

/* Logo */
.es-logo {
	flex-shrink: 0;
}

.es-logo img {
	height: 48px;
	width: auto;
}

/* Search bar */
.es-search-bar {
	flex: 1;
	max-width: 480px;
	min-width: 200px;
	position: relative;
}

.es-search-bar form {
	position: relative;
}

.es-search-bar input[type="search"] {
	width: 100%;
	padding: 0.9rem 1rem;
	padding-right: 52px;
	border: 2px solid var(--es-border);
	border-radius: var(--es-radius);
	font-size: 14px;
	font-family: var(--es-font);
	color: var(--es-text);
	transition: border-color var(--es-transition);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.es-search-bar input[type="search"]:focus {
	border-color: var(--es-primary);
}

.es-search-bar input[type="search"]:focus::placeholder {
	color: transparent;
}

.es-search-bar button {
	position: absolute;
	right: 4px;
	top: 4px;
	bottom: 4px;
	width: 44px;
	background: var(--es-primary);
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--es-transition);
}

.es-search-bar button:hover {
	background: var(--es-primary-hover);
}

/* Phone */
.es-header-phone {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-family: var(--es-font);
	color: var(--es-dark);
	white-space: nowrap;
	text-decoration: none;
	line-height: 1.3;
	height: 48px;
}

.es-header-phone:hover {
	color: var(--es-dark);
	text-decoration: none;
}

.es-header-phone strong {
	font-size: 15px;
	font-weight: 700;
}

.es-phone-label {
	font-size: 11px;
	color: var(--es-text-muted);
	font-weight: 400;
}

/* Action icons */
.es-header-actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-shrink: 0;
	margin-left: auto;
}

.es-header-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	font-family: var(--es-font);
	font-size: 11px;
	font-weight: 500;
	color: var(--es-text-muted);
	transition: color var(--es-transition);
	cursor: pointer;
	min-width: 48px;
	text-decoration: none;
	height: 48px;
}

.es-header-action:hover {
	color: var(--es-primary);
	text-decoration: none;
}

.es-action-icon {
	position: relative;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--es-radius);
	transition: background var(--es-transition);
}

.es-header-action:hover .es-action-icon {
	background: var(--es-primary-light);
}

/* Override PS blockcart styles on cart text */
.es-header-action .ajax_cart_total {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	float: none !important;
	padding: 0 !important;
}

.es-header-action .ajax_cart_quantity {
	float: none !important;
	padding: 0 !important;
}

/* Cart dropdown (moved from blockcart) */
.es-header-action--cart {
	position: relative;
}

.es-header-action--cart .cart_block {
	display: none !important;
	position: absolute !important;
	top: 100% !important;
	right: 0 !important;
	left: auto !important;
	z-index: 300 !important;
	min-width: 380px;
	padding-top: 8px !important;
	background: transparent !important;
	float: none !important;
	width: auto !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Inner wrapper for actual visible dropdown */
.es-header-action--cart .cart_block .block_content {
	background: #fff !important;
	border: 1px solid var(--es-border) !important;
	border-radius: var(--es-radius-lg) !important;
	box-shadow: var(--es-shadow-md) !important;
	overflow: hidden !important;
}

.es-header-action--cart:hover .cart_block {
	display: block !important;
}

/* Cart dropdown restyle — compact Alza-style */
.es-header-action--cart .cart_block,
.es-header-action--cart .cart_block * {
	color: var(--es-text) !important;
	font-family: var(--es-font) !important;
}

.es-header-action--cart .cart_block a {
	color: var(--es-text) !important;
}

.es-header-action--cart .cart_block a:hover {
	color: var(--es-primary) !important;
}

/* Product rows — compact Alza-style */
.es-header-action--cart .cart_block dt {
	background: none !important;
	padding: 8px 14px !important;
	border-bottom: 1px solid var(--es-border) !important;
	display: grid !important;
	grid-template-columns: auto 44px 1fr auto !important;
	gap: 0 8px !important;
	align-items: center !important;
}

.es-header-action--cart .cart_block dt.first_item {
	background: none !important;
}

.es-header-action--cart .cart_block dt.last_item {
	border-bottom: none !important;
}

/* Thumbnail */
.es-header-action--cart .cart_block .cart-images {
	margin: 0 !important;
	float: none !important;
	grid-column: 2 !important;
}

.es-header-action--cart .cart_block .cart-images img {
	width: 44px !important;
	height: 44px !important;
	object-fit: contain !important;
	border-radius: 4px !important;
	border: 1px solid var(--es-border) !important;
	background: #fff !important;
}

/* Product info */
.es-header-action--cart .cart_block .cart-info {
	float: none !important;
	overflow: visible !important;
	padding: 0 !important;
	display: contents !important;
}

.es-header-action--cart .cart_block .cart-info .product-name {
	grid-column: 3 !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1.3 !important;
}

/* Qty — first column, before image */
.es-header-action--cart .cart_block dt > .quantity-formated {
	grid-column: 1 !important;
	color: var(--es-text-muted) !important;
	font-size: 12px !important;
	white-space: nowrap !important;
}

.es-header-action--cart .cart_block .cart-info .product-name .quantity-formated .quantity {
	font-size: 12px !important;
}

.es-header-action--cart .cart_block .cart-info .product-name a.cart_block_product_name {
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: var(--es-text) !important;
	display: block !important;
}

/* Price — last column */
.es-header-action--cart .cart_block .cart-info .price {
	grid-column: 4 !important;
	font-weight: 600 !important;
	color: var(--es-text) !important;
	font-size: 12px !important;
	white-space: nowrap !important;
	text-align: right !important;
}

/* Remove — subtle, top-right corner on hover */
.es-header-action--cart .cart_block .remove_link {
	position: absolute !important;
	right: 6px !important;
	top: 6px !important;
	opacity: 0 !important;
	transition: opacity .15s !important;
}

.es-header-action--cart .cart_block dt:hover .remove_link {
	opacity: 1 !important;
}

.es-header-action--cart .cart_block .remove_link a:before,
.es-header-action--cart .cart_block .ajax_cart_block_remove_link:before {
	color: var(--es-text-muted) !important;
	font-size: 14px !important;
}

.es-header-action--cart .cart_block .remove_link a:hover:before,
.es-header-action--cart .cart_block .ajax_cart_block_remove_link:hover:before {
	color: var(--es-danger) !important;
}

/* Hide dd rows (attributes shown inline already) */
.es-header-action--cart .cart_block dd {
	display: none !important;
}

.es-header-action--cart .cart_block .product-atributes {
	font-size: 11px !important;
	padding: 0 !important;
}

.es-header-action--cart .cart_block .product-atributes a {
	color: var(--es-text-muted) !important;
	font-size: 11px !important;
}

/* Total — single line, no extra borders */
.es-header-action--cart .cart_block .cart-prices {
	background: none !important;
	border-top: 1px solid var(--es-border) !important;
	padding: 10px 14px !important;
	margin: 0 !important;
}

.es-header-action--cart .cart_block .cart-prices .cart-prices-line {
	display: none !important;
}

.es-header-action--cart .cart_block .cart-prices .cart-prices-line.last-line {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	border: none !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	padding: 0 !important;
}

/* Hide tax precision text */
.es-header-action--cart .cart_block .cart-prices p {
	display: none !important;
}

/* Checkout button — full width, modern */
.es-header-action--cart .cart_block .cart-buttons {
	background: none !important;
	padding: 8px 14px 14px !important;
	margin: 0 !important;
	overflow: visible !important;
}

.es-header-action--cart .cart_block .cart-buttons a {
	margin: 0 !important;
	float: none !important;
}

.es-header-action--cart .cart_block .cart-buttons #button_order_cart {
	display: block !important;
	width: 100% !important;
	background: var(--es-primary) !important;
	border: none !important;
	border-radius: var(--es-radius) !important;
	padding: 0 !important;
	text-align: center !important;
	transition: background .15s !important;
}

.es-header-action--cart .cart_block .cart-buttons #button_order_cart:hover {
	background: var(--es-primary-hover) !important;
	text-decoration: none !important;
}

.es-header-action--cart .cart_block .cart-buttons #button_order_cart span {
	display: block !important;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 11px 20px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #fff !important;
	line-height: 1.4 !important;
}

.es-header-action--cart .cart_block .cart-buttons #button_order_cart span i {
	display: none !important;
}

.es-header-action--cart .cart_block .cart-buttons #button_order_cart:hover span {
	background: none !important;
	border: none !important;
}

/* Hide other cart buttons (continue shopping etc.) */
.es-header-action--cart .cart_block .cart-buttons .button:not(#button_order_cart),
.es-header-action--cart .cart_block .cart-buttons .button_small {
	display: none !important;
}

.es-header-action--cart .cart_block .cart_block_no_products {
	padding: 20px 14px !important;
	text-align: center !important;
	color: var(--es-text-muted) !important;
	font-size: 13px !important;
}

/* Badge (cart count, compare count) */
.es-badge {
	position: absolute !important;
	top: -2px !important;
	right: -2px !important;
	background: var(--es-primary) !important;
	color: white !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	width: 18px !important;
	height: 18px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--es-font) !important;
	line-height: 1 !important;
}

.es-badge--hidden {
	display: none !important;
}

/* Hamburger — hidden on desktop */
.es-hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--es-text);
	padding: 0.5rem;
}

/* Mobile search trigger — hidden on desktop */
.es-mobile-search-trigger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--es-text);
	padding: 0.5rem;
}

/* ========================================
   MAIN NAV BAR
   ======================================== */
.main-nav {
	background: #fff;
	border-top: 1px solid #e4e6ea;
	border-bottom: 1px solid #e4e6ea;
	position: relative;
	z-index: 5;
}

.main-nav-wrap {
	min-height: 58px;
	display: flex;
	align-items: center;
}

.nav-list {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* --- Nav links (pill-shaped hover, codex style) --- */
.nav-link {
	display: block;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 700;
	font-family: var(--es-font);
	color: #1f242b;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease;
}

.nav-link:hover {
	background: #f2f3f5;
	color: #1f242b;
	text-decoration: none;
}

/* Akcie a výpredaj — accent */
.nav-link--sale {
	color: #d86700;
}

.nav-link--sale:hover {
	color: #d86700;
	background: #fff5eb;
}

/* Active item while dropdown is open */
.nav-item:hover > .nav-link {
	background: #f2f3f5;
}

.nav-item--sale:hover > .nav-link {
	background: #fff5eb;
}

/* --- Dropdown panel --- */
.nav-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 200;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
	pointer-events: none;
}

.nav-item:hover > .nav-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
	pointer-events: auto;
}

/* Hover bridge — invisible area between nav link and dropdown */
.nav-dropdown::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 14px;
}

.nav-dropdown-inner {
	background: #fff;
	border: 1px solid #e4e6ea;
	border-top: none;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 12px 34px rgba(33, 40, 48, 0.08);
	padding: 24px;
}

/* --- Group layout (image + title + links as one block) --- */
.nav-groups {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px 32px;
}

.nav-group {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.nav-group > img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	flex-shrink: 0;
}

.nav-group-body {
	min-width: 0;
}

.nav-group-body .nav-col-title {
	padding-bottom: 6px;
	margin-bottom: 4px;
}

.nav-group-body .nav-sub a {
	padding: 3px 0;
	font-size: 13px;
}

/* --- Image cards row --- */
.nav-cards {
	display: flex;
	gap: 16px;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid #f0f1f3;
}

/* No border/margin when cards are the only content (e.g. Práčky) */
.nav-cards:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.nav-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 120px;
	max-width: 140px;
	padding: 12px;
	border-radius: 12px;
	text-decoration: none;
	color: #1f242b;
	transition: background .2s ease;
}

.nav-card:hover {
	background: #f2f3f5;
	text-decoration: none;
	color: #1f242b;
}

.nav-card img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	border-radius: 8px;
}

.nav-card span {
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	line-height: 1.3;
}

/* --- Columns row (text links) --- */
.nav-cols-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 24px;
}

/* --- Columns inside dropdown --- */
.nav-col {
	min-width: 0;
}

.nav-col-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #1f242b;
	text-decoration: none;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid #f0f1f3;
}

a.nav-col-title:hover {
	color: #f57c00;
	text-decoration: none;
}

/* Multiple titles in one column */
.nav-col .nav-col-title + .nav-col-title {
	margin-top: 16px;
}

/* --- Subcategory links --- */
.nav-sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-sub li {
	margin: 0;
	padding: 0;
}

.nav-sub a {
	display: block;
	padding: 5px 0;
	font-size: 14px;
	font-weight: 400;
	color: #4d5763;
	text-decoration: none;
	transition: color .15s ease;
}

.nav-sub a:hover {
	color: #f57c00;
	text-decoration: none;
}

/* --- Section label --- */
.section-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9aa1ab;
	margin-bottom: 16px;
}

/* ===== AKCIE DROPDOWN ===== */
.akcie-layout {
	display: grid;
	grid-template-columns: 240px 1px 1fr;
	gap: 0 28px;
}

.akcie-divider {
	background: #f0f1f3;
}

/* -- Stále ponuky (left column) -- */
.stale-akcie {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.stale-akcie-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #9aa1ab;
	margin-bottom: 4px;
}

.stale-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	text-decoration: none;
	color: #1f242b;
	font-weight: 600;
	font-size: 14px;
	transition: background .15s, border-color .15s, transform .15s;
	border: 1px solid #f0f1f3;
}

.stale-link:hover {
	transform: translateX(2px);
	text-decoration: none;
	color: #1f242b;
}

.stale-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.stale-info {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.stale-label {
	font-size: 11px;
	font-weight: 400;
	color: #9aa1ab;
}

/* Výpredaj — red */
.stale-link--vypredaj {
	background: #fef2f2;
	border-color: #fecaca;
}
.stale-link--vypredaj:hover {
	background: #fee2e2;
	border-color: #fca5a5;
}
.stale-link--vypredaj .stale-icon {
	background: #e53935;
	color: #fff;
}

/* Otvorený obal — orange */
.stale-link--obal {
	background: #fff5eb;
	border-color: #fde8d0;
}
.stale-link--obal:hover {
	background: #fde8d0;
	border-color: #f5c98a;
}
.stale-link--obal .stale-icon {
	background: #f57c00;
	color: #fff;
}

/* Všetky akcie — neutral */
.stale-link--all {
	background: #f8f9fa;
	border-color: #e4e6ea;
}
.stale-link--all:hover {
	background: #f0f1f3;
	border-color: #d1d5db;
}
.stale-link--all .stale-icon {
	background: #4d5763;
	color: #fff;
}

/* -- Aktuálne akcie (right column) -- */
.akcie-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.akcie-card {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
	color: #1f242b;
	transition: background .15s, border-color .15s;
	border: 1px solid #f0f1f3;
}

.akcie-card:hover {
	background: #fff5eb;
	border-color: #fde8d0;
	text-decoration: none;
	color: #1f242b;
}

.akcie-card img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	background: #f5f5f5;
}

.akcie-card-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.akcie-see-all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: #d86700;
	text-decoration: none;
}
.akcie-see-all:hover {
	text-decoration: underline;
	color: #d86700;
}

/* ===== VÝHODNÉ SETY DROPDOWN ===== */
.sety-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.sety-card {
	display: block;
	text-decoration: none;
	color: #1f242b;
	border: 1px solid #f0f1f3;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.sety-card:hover {
	border-color: #fde8d0;
	box-shadow: 0 8px 24px rgba(245, 124, 0, 0.1);
	transform: translateY(-2px);
	text-decoration: none;
	color: #1f242b;
}

.sety-card img {
	width: 100%;
	height: 160px;
	object-fit: contain;
	display: block;
	background: #ffffff;
}

.sety-card-body {
	padding: 14px 16px;
	text-align: center;
}

.sety-card-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 4px;
}

.sety-card:hover .sety-card-title {
	color: #d86700;
}

.sety-card-sub {
	font-size: 12px;
	color: #9aa1ab;
}

.sety-sub-links {
	display: flex;
	gap: 8px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f0f1f3;
	flex-wrap: wrap;
}

.sety-sub-links .section-label {
	width: 100%;
	margin-bottom: 4px;
}

.sety-sub-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: #4d5763;
	background: #f8f9fa;
	text-decoration: none;
	border: 1px solid #e4e6ea;
	transition: background .15s, border-color .15s, color .15s;
}

.sety-sub-link:hover {
	background: #fff5eb;
	border-color: #fde8d0;
	color: #d86700;
	text-decoration: none;
}

/* ===== MEGA MENU (category dropdowns) ===== */
.mega-grid {
	display: grid;
	gap: 16px;
}
.mega-grid--5 { grid-template-columns: repeat(5, 1fr); }
.mega-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mega-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mega-grid--2 { grid-template-columns: repeat(2, 1fr); }

.mega-card {
	border: 1px solid #f0f1f3;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}
.mega-card:hover {
	border-color: #fde8d0;
	box-shadow: 0 6px 20px rgba(245, 124, 0, 0.08);
}

.mega-card-img {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: contain;
	background: #ffffff;
	padding: 10px 16px;
}

.mega-card-body {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mega-card-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #1f242b;
	text-decoration: none;
	margin-bottom: 10px;
	line-height: 1.3;
	text-align: center;
}
.mega-card-title:hover {
	color: #f57c00;
	text-decoration: none;
}

.mega-card-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.mega-card-links a {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #4d5763;
	text-decoration: none;
	padding: 3px 0;
	transition: color .15s, padding-left .15s;
}
.mega-card-links a::before {
	content: '';
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #e4e6ea;
	flex-shrink: 0;
	transition: background .15s;
}
.mega-card-links a:hover {
	color: #f57c00;
	padding-left: 4px;
	text-decoration: none;
}
.mega-card-links a:hover::before {
	background: #f57c00;
}

/* Solo cards (no subcategories) */
.mega-card--solo .mega-card-body {
	padding: 12px 16px;
}
.mega-card--solo .mega-card-title {
	margin-bottom: 0;
	font-size: 13px;
}

/* Bottom row with chips */
.mega-bottom-row {
	display: grid;
	gap: 16px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f0f1f3;
}
.mega-bottom-row--2 { grid-template-columns: repeat(2, 1fr); }
.mega-bottom-row--3 { grid-template-columns: repeat(3, 1fr); }
.mega-bottom-row--4 { grid-template-columns: repeat(4, 1fr); }
.mega-bottom-row--5 { grid-template-columns: repeat(5, 1fr); }
.mega-bottom-row--6 { grid-template-columns: repeat(3, 1fr); }

.mega-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #f0f1f3;
	border-radius: 10px;
	text-decoration: none;
	color: #1f242b;
	font-size: 13px;
	font-weight: 600;
	transition: background .15s, border-color .15s;
}
.mega-chip:hover {
	background: #fff5eb;
	border-color: #fde8d0;
	color: #d86700;
	text-decoration: none;
}
.mega-chip img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 8px;
	background: #ffffff;
	flex-shrink: 0;
	padding: 2px;
}

/* ===== RESPONSIVE: TABLET (< 1200px) ===== */
/* Compact nav for smaller desktops */
@media (max-width: 1199px) and (min-width: 992px) {
	.nav-link {
		font-size: 13px;
		padding: 8px 10px;
	}
}

@media (max-width: 991px) {
	/* Hide original PS search block */
	.search_block_top {
		display: none !important;
	}

	/* Hide desktop nav, show hamburger in nav bar */
	.nav-list {
		display: none;
	}

	/* Show mobile nav row inside nav bar */
	.mobile-nav-row {
		display: flex;
		align-items: center;
		gap: 8px;
		width: 100%;
	}

	.mobile-menu-btn {
		display: flex;
		align-items: center;
		gap: 8px;
		background: none;
		border: none;
		padding: 10px 4px;
		font-size: 15px;
		font-weight: 700;
		color: #1f242b;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		flex-shrink: 0;
	}

	.mobile-search {
		display: flex;
		align-items: center;
		flex: 1;
		min-width: 0;
		background: #f2f3f5;
		border-radius: 999px;
		padding: 0 4px 0 14px;
		height: 40px;
	}

	.mobile-search-input {
		flex: 1;
		min-width: 0;
		border: none;
		background: transparent;
		font-size: 14px;
		font-family: var(--es-font);
		color: #1f242b;
		outline: none;
		padding: 0;
		-webkit-appearance: none;
	}

	.mobile-search-input::placeholder {
		color: #9aa1ab;
	}

	.mobile-search-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		background: none;
		border: none;
		color: #6b7280;
		cursor: pointer;
		padding: 0;
		flex-shrink: 0;
		-webkit-tap-highlight-color: transparent;
	}

	/* Header: hide phone */
	.es-header-phone {
		display: none;
	}
}

/* Hide mobile nav elements on desktop (must be inside media query to not override 991px block) */
@media (min-width: 992px) {
	.mobile-nav-row,
	.mobile-menu-btn,
	.mobile-search {
		display: none;
	}
}

/* ========================================
   MOBILE BOTTOM NAV (base — hidden by default)
   ======================================== */
.es-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--es-bg);
	border-top: 1px solid var(--es-border);
	padding: 0.5rem 0 env(safe-area-inset-bottom, 0.5rem);
	z-index: 200;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.es-bottom-nav-list {
	display: flex;
	justify-content: space-around;
	list-style: none;
	margin: 0;
	padding: 0;
}

.es-bottom-nav-list li {
	position: relative;
}

.es-bottom-nav-list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	font-family: var(--es-font);
	font-size: 10px;
	color: var(--es-text-muted);
	padding: 0.25rem 0.75rem;
	text-decoration: none;
}

.es-bottom-nav-list a:hover,
.es-bottom-nav-list a:active {
	color: var(--es-text-muted);
	text-decoration: none;
}

.es-bottom-nav-list a.is-active {
	color: var(--es-primary);
}

.es-bnav-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.es-bnav-badge {
	position: absolute;
	top: -4px;
	right: -8px;
	background: var(--es-primary);
	color: white;
	font-size: 9px;
	font-weight: 700;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--es-font);
}

/* ========================================
   MOBILE SEARCH OVERLAY (base — hidden by default)
   ======================================== */
.es-search-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--es-bg);
	z-index: 300;
	flex-direction: column;
}

.es-search-overlay.is-active {
	display: flex;
}

.es-search-overlay-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--es-border);
}

.es-search-overlay-header input {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 2px solid var(--es-primary);
	border-radius: var(--es-radius);
	font-size: 1rem;
	font-family: var(--es-font);
	outline: none;
	-webkit-appearance: none;
}

.es-search-overlay-close {
	background: none;
	border: none;
	color: var(--es-text);
	font-size: 0.875rem;
	font-family: var(--es-font);
	cursor: pointer;
	padding: 0.5rem;
	white-space: nowrap;
}

.es-search-overlay-body {
	padding: 1rem;
	flex: 1;
	overflow-y: auto;
}

.es-search-label {
	font-size: 0.75rem;
	color: var(--es-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.75rem;
	font-weight: 600;
	font-family: var(--es-font);
}

.es-search-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.es-search-suggestions a {
	padding: 0.5rem 1rem;
	background: var(--es-bg-alt);
	border: 1px solid var(--es-border);
	border-radius: 20px;
	font-size: 0.875rem;
	font-family: var(--es-font);
	color: var(--es-text);
	cursor: pointer;
	text-decoration: none;
}

.es-search-suggestions a:hover {
	border-color: var(--es-primary);
	color: var(--es-primary);
	text-decoration: none;
}

/* ===== RESPONSIVE: MOBILE (< 768px) ===== */
@media (max-width: 767px) {
	/* Show orange strip */
	.es-mobile-strip {
		display: flex !important;
	}

	/* Header adjustments */
	.es-header {
		padding: 0.75rem 0;
	}

	.es-header-inner {
		flex-wrap: nowrap;
		gap: 0.75rem;
		justify-content: space-between;
	}

	/* Show hamburger */
	.es-hamburger {
		display: block;
		order: -1;
	}

	/* Logo: centered, flexible */
	.es-logo {
		flex: 1;
		display: flex;
		justify-content: center;
	}

	.es-logo img {
		height: 36px !important;
	}

	/* Hide desktop elements */
	.es-search-bar {
		display: none;
	}

	.es-header-actions {
		display: none;
	}

	/* Show mobile search trigger */
	.es-mobile-search-trigger {
		display: flex;
		margin-left: auto;
	}

	/* Hide desktop nav */
	.main-nav {
		display: none;
	}

	/* Show bottom nav */
	.es-bottom-nav {
		display: block;
	}

	/* Add bottom padding to body so content isn't hidden behind bottom nav */
	body {
		padding-bottom: 64px;
	}
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s .3s;
}

.mobile-menu.is-open {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

/* --- Header --- */
.mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e4e6ea;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 2;
}

.mobile-menu-title {
	font-size: 18px;
	font-weight: 700;
	color: #1f242b;
}

.mobile-menu-close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f3f5;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	color: #4d5763;
	cursor: pointer;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
}

/* --- Panels container --- */
.mobile-menu-panels {
	position: fixed;
	top: 0;
	left: 0;
	width: 85%;
	max-width: 380px;
	height: 100%;
	background: #fff;
	overflow: hidden;
	transform: translateX(-100%);
	transition: transform .3s ease;
}

.mobile-menu.is-open .mobile-menu-panels {
	transform: translateX(0);
}

/* --- Individual panels (drill-down) --- */
.mobile-menu-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding-top: 73px; /* header height */
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	transform: translateX(100%);
	transition: transform .3s ease;
	visibility: hidden;
}

.mobile-menu-panel.is-active {
	transform: translateX(0);
	visibility: visible;
}

.mobile-menu-panel.is-exit {
	transform: translateX(-30%);
	visibility: visible;
}

/* --- Main level items --- */
.mobile-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-menu-item {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 20px;
	background: none;
	border: none;
	border-bottom: 1px solid #f0f1f3;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background .15s;
}

.mobile-menu-item:active {
	background: #f2f3f5;
}

.mobile-menu-img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 10px;
	flex-shrink: 0;
	background: #f8f9fa;
}

.mobile-menu-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.mobile-menu-icon--sale {
	background: #fff5eb;
	color: #d86700;
}

.mobile-menu-icon--neutral {
	background: #f2f3f5;
	color: #4d5763;
}

.mobile-menu-label {
	flex: 1;
	font-size: 15px;
	font-weight: 600;
	color: #1f242b;
}

.mobile-menu-item--sale .mobile-menu-label {
	color: #d86700;
}

.mobile-menu-chevron {
	flex-shrink: 0;
	color: #9aa1ab;
}

/* --- Back button --- */
.mobile-menu-back {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 16px 20px;
	background: #f8f9fa;
	border: none;
	border-bottom: 1px solid #e4e6ea;
	font-size: 15px;
	font-weight: 700;
	color: #1f242b;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* --- "Zobraziť všetko" link --- */
.mobile-menu-link--all {
	display: block;
	padding: 14px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #f57c00;
	text-decoration: none;
	border-bottom: 1px solid #f0f1f3;
}

.mobile-menu-link--all:active {
	background: #fff5eb;
}

/* --- Group titles --- */
.mobile-menu-group-title {
	padding: 12px 20px 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #9aa1ab;
}

/* --- Sub-panel links --- */
.mobile-menu-link {
	display: block;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 400;
	color: #4d5763;
	text-decoration: none;
	border-bottom: 1px solid #f0f1f3;
	-webkit-tap-highlight-color: transparent;
}

.mobile-menu-link:active {
	background: #f2f3f5;
	color: #4d5763;
	text-decoration: none;
}

/* --- Card-style links (with image) --- */
.mobile-menu-link--card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px;
	font-weight: 500;
	color: #1f242b;
}

.mobile-menu-link--card img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 8px;
	flex-shrink: 0;
	background: #f8f9fa;
}

.mobile-menu-link--card span {
	font-size: 14px;
}

/* --- Promo links (Výpredaj, Otvorený obal) --- */
.mobile-menu-link--promo {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	font-weight: 600;
	font-size: 15px;
	border-radius: 10px;
	margin: 4px 12px;
	border-bottom: none;
}

.mobile-menu-link--promo svg {
	flex-shrink: 0;
}

.mobile-menu-link--vypredaj {
	background: #fef0f0;
	color: #c62828;
}

.mobile-menu-link--vypredaj:active {
	background: #fce4e4;
	color: #c62828;
	text-decoration: none;
}

.mobile-menu-link--obal {
	background: #fff5eb;
	color: #d86700;
}

.mobile-menu-link--obal:active {
	background: #ffecdb;
	color: #d86700;
	text-decoration: none;
}

/* --- Desktop: hide mobile-only elements --- */
@media (min-width: 992px) {
	.mobile-menu {
		display: none !important;
	}
	.es-bottom-nav {
		display: none !important;
	}
	.es-mobile-strip {
		display: none !important;
	}
	.es-hamburger {
		display: none !important;
	}
	.es-mobile-search-trigger {
		display: none !important;
	}
}
