/* ==========================================================================
   Ebbie – vzhled podle návrhu ebbie.uxeshop.cz
   Krok 1: barvy, písma, tlačítka, formuláře, WooCommerce základ.
   ========================================================================== */

:root {
	--plum: #4c1869;
	--plum-hover: #6e3d8c;
	--plum-dark: #351049;
	--plum-hand: #805984;
	--ink: #302c32;
	--muted: #69626d;
	--line: #e3dfe4;
	--lilac: #efe8f2;
	--lilac-soft: #f3edf5;
	--lilac-line: #dfd0e5;
	--sand: #f7f3ed;
	--paper: #faf8f5;
	--green: #357248;
	--green-soft: #eef3e9;
	--danger: #a3262a;
	--danger-soft: #fbeeee;
	--star: #f2b01e;
	--field-border: #95879c;
	--white: #ffffff;

	--sans: "DM Sans", "Avenir Next", Arial, sans-serif;
	--display: "Bricolage Grotesque", "Avenir Next", sans-serif;
	--hand: "Caveat", cursive;

	--fs-h1: clamp(40px, 4.8vw, 68px);
	--fs-h2: clamp(27px, 2.6vw, 34px);
	--fs-h3: 21px;

	--radius: 10px;
	--radius-md: 6px;
	--radius-sm: 5px;
	--radius-pill: 20px;

	--shadow-sm: 0 2px 7px #25183217;
	--shadow-md: 0 6px 16px #302c3212;
	--shadow-lg: 0 18px 30px #302c321c;
}

/* ---------- Základ ---------- */
body {
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea, .woocommerce, .btn, .navbar, .dropdown-menu {
	font-family: var(--sans);
}
p { color: var(--ink); }
small, .text-muted { color: var(--muted); }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.page-title, .entry-title, .product_title, .woocommerce-loop-product__title,
.single-title, .widget-title, .widget h2 {
	font-family: var(--display);
	color: var(--ink);
	font-weight: 600;
}
h1, .h1, .page-title, .single-title, .product_title {
	font-size: var(--fs-h2);
	line-height: 1.12;
	letter-spacing: -0.035em;
	font-weight: 600;
	color: var(--plum);
}
h2, .h2 { font-size: var(--fs-h2); line-height: 1.22; letter-spacing: -0.035em; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.4; letter-spacing: -0.02em; }
h4, .h4 { font-size: 18px; letter-spacing: -0.01em; }

/* Ručně psaný akcent – použití: class="ebbie-hand" */
.ebbie-hand { font-family: var(--hand); font-size: 26px; font-weight: 500; color: var(--plum-hand); line-height: 1.1; }

a, a:active, a:focus { color: var(--plum); }
a:hover { color: var(--plum-hover); }
::selection { background: var(--lilac-line); color: var(--plum-dark); }

/* ---------- Tlačítka ---------- */
a.comment-reply-link, button, input#submit, input[type="submit"], .btn-default,
.woocommerce #respond input#submit, .woocommerce #respond input#submit.alt,
.woocommerce a.button, .woocommerce a.button.alt,
.woocommerce button.button, .woocommerce button.button.alt,
.woocommerce input.button, .woocommerce input.button.alt,
.woocommerce .wc-block-components-button, .wp-element-button, .wp-block-button__link,
.elementor-button {
	background-color: var(--plum);
	border: 1px solid var(--plum);
	border-radius: var(--radius-md);
	color: var(--white);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	padding: 12px 22px;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
a.comment-reply-link:hover, button:hover, input#submit:hover, input[type="submit"]:hover, .btn-default:hover,
.woocommerce #respond input#submit:hover, .woocommerce #respond input#submit.alt:hover,
.woocommerce a.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button:hover, .woocommerce button.button.alt:hover,
.woocommerce input.button:hover, .woocommerce input.button.alt:hover,
.woocommerce .wc-block-components-button:hover, .wp-element-button:hover, .wp-block-button__link:hover,
.elementor-button:hover {
	background-color: var(--plum-hover);
	border-color: var(--plum-hover);
	color: var(--white);
}
button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--plum);
	outline-offset: 2px;
}
/* Vedlejší tlačítko (obrysové) */
.woocommerce a.button.ebbie-secondary, .ebbie-btn-outline {
	background: var(--white);
	color: var(--plum);
	border: 1px solid var(--lilac-line);
}
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled],
.woocommerce button.button.alt.disabled, .woocommerce a.button.disabled {
	background-color: var(--plum);
	color: var(--white);
	opacity: .45;
}

/* ---------- Formulářová pole ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="date"], textarea, select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .select2-container--default .select2-selection--single {
	border: 1px solid var(--field-border);
	border-radius: var(--radius-md);
	background: var(--white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	min-height: 44px;
	padding: 10px 14px;
	box-shadow: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--plum); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 22px; color: var(--ink); padding-left: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
label { font-weight: 600; color: var(--ink); }

/* ---------- Menu šablony (barvy) ---------- */
.current-page-parent:after, .nav > li.active > a:after { background-color: var(--plum); }
.dropdown-menu > .active > a, .dropdown-menu > .active > a:focus, .dropdown-menu > .active > a:hover { background-color: var(--plum); color: var(--white); }
.navbar-default .navbar-nav > li > a { color: var(--ink); font-weight: 500; text-transform: none; }
.navbar-default .navbar-nav > li > a:hover { color: var(--plum); }

/* ---------- WooCommerce: ceny, štítky, sklad, hlášky ---------- */
.woocommerce div.product p.price, .woocommerce div.product span.price,
.woocommerce ul.products li.product .price, .price {
	color: var(--ink);
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -0.02em;
}
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 30px; }
.price del { color: var(--muted); font-weight: 400; opacity: .8; }
.price ins { text-decoration: none; color: var(--danger); }

.woocommerce span.onsale {
	background-color: var(--danger);
	border-radius: var(--radius-sm);
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	min-height: 0;
	min-width: 0;
	line-height: 1;
	padding: 6px 9px;
}
.woocommerce div.product .stock, .woocommerce .stock.in-stock { color: var(--green); font-weight: 500; }
.woocommerce .stock.out-of-stock { color: var(--danger); }
.star-rating span::before, .woocommerce .star-rating span::before { color: var(--star); }

.cart-contents span.count { background-color: var(--plum); font-family: var(--sans); }

.woocommerce-message, .woocommerce-info, .woocommerce-error,
.woocommerce-noreviews, p.no-comments {
	border-top: 0;
	border-left: 4px solid var(--plum);
	border-radius: var(--radius);
	background: var(--lilac-soft);
	color: var(--ink);
	font-size: 15px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--plum); }
.woocommerce-error { border-left-color: var(--danger); background: var(--danger-soft); }
.woocommerce-error::before { color: var(--danger); }
.woocommerce-message .button, .woocommerce-info .button {
	background: var(--white); color: var(--plum); border: 1px solid var(--lilac-line); padding: 8px 16px;
}
.woocommerce-message .button:hover, .woocommerce-info .button:hover { background: var(--plum); color: var(--white); }

/* Záložky na stránce produktu */
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--muted); text-transform: none; font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li:hover a { border-bottom-color: var(--plum); color: var(--plum); }

/* Posuvník ceny ve filtrech */
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle,
.woocommerce .widget_price_filter .ui-slider .ui-slider-range { background-color: var(--plum); }

/* Drobečková navigace */
.woocommerce .woocommerce-breadcrumb, .breadcrumb, .breadcrumbs { color: var(--muted); font-size: 14px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--plum); }

/* Tabulky (košík, objednávky) */
.woocommerce table.shop_table { border-color: var(--line); border-radius: var(--radius); }
.woocommerce table.shop_table th { font-weight: 600; color: var(--ink); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top-color: var(--line); }

/* ==========================================================================
   Krok 2: hlavička (horní lišta, logo, vyhledávání, telefon, účet, košík, menu)
   ========================================================================== */
.ebbie-wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.ebbie-ico { display: block; flex: none; }

/* Horní fialová lišta */
.ebbie-topbar { background: var(--plum); color: var(--white); font-size: 13px; font-weight: 500; }
.ebbie-topbar__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 34px; gap: 16px; }
.ebbie-topbar__center { text-align: center; }
.ebbie-topbar__right { justify-self: end; color: var(--white) !important; font-weight: 600; }
.ebbie-topbar__right:hover { text-decoration: underline; }

/* Hlavní řádek */
.ebbie-header { background: var(--white); border-bottom: 1px solid var(--line); }
.ebbie-header__in { display: flex; align-items: center; gap: 32px; min-height: 78px; }
.ebbie-burger { display: none; color: var(--ink) !important; }
.ebbie-logo { flex: none; }
.ebbie-logo img, .ebbie-logo .custom-logo { display: block; width: auto; max-height: 40px; height: auto; }
.ebbie-logo__text { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--plum) !important; letter-spacing: -0.03em; }

.ebbie-search { flex: 1 1 auto; position: relative; max-width: 720px; margin: 0; }
.ebbie-search input[type="search"] {
	width: 100%; height: 44px; min-height: 44px; padding: 0 48px 0 16px;
	background: var(--lilac-soft); border: 1px solid var(--lilac-line); border-radius: var(--radius-md);
	font-size: 15px; color: var(--ink);
}
.ebbie-search input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.ebbie-search input[type="search"]:focus { background: var(--white); border-color: var(--plum); }
.ebbie-search button {
	position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; padding: 0;
	display: grid; place-items: center; background: transparent; border: 0; color: var(--plum);
}
.ebbie-search button:hover { background: var(--lilac); color: var(--plum); }

.ebbie-phone { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; flex: none; }
.ebbie-phone .ebbie-ico { color: var(--plum); }
.ebbie-phone span { display: flex; flex-direction: column; line-height: 1.2; }
.ebbie-phone small { font-size: 13px; color: var(--muted); }
.ebbie-phone strong { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.ebbie-phone:hover strong { color: var(--plum); }

.ebbie-icons { display: flex; align-items: center; gap: 22px; margin-left: auto; flex: none; }
.ebbie-icon-link { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink) !important; font-size: 12px; font-weight: 500; }
.ebbie-icon-link:hover { color: var(--plum) !important; }
.ebbie-cart-icon { position: relative; display: block; }
.ebbie-cart-count {
	position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--plum); color: var(--white); font-size: 11px; font-weight: 700;
	line-height: 18px; text-align: center; box-sizing: border-box;
}

/* Menu kategorií (druhý řádek) */
.main-menu.ebbie-nav { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: none; }
.ebbie-nav .navbar { margin: 0; min-height: 0; border: 0; background: transparent; border-radius: 0; }
.ebbie-nav__in { display: flex; align-items: center; min-height: 46px; }
.ebbie-nav .menu-container { flex: 1 1 auto; }
.ebbie-nav .navbar-nav { float: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.ebbie-nav .navbar-nav > li { float: none; }
.ebbie-nav.main-menu .navbar-nav > li > a,
.ebbie-nav .navbar-default .navbar-nav > li > a {
	padding: 13px 12px; font-size: 14px; font-weight: 500; color: var(--ink); text-transform: none; line-height: 20px; background: transparent;
}
.ebbie-nav .navbar-nav > li:first-child > a { padding-left: 0; }
.ebbie-nav .navbar-nav > li > a:hover, .ebbie-nav .navbar-nav > li.open > a,
.ebbie-nav .navbar-default .navbar-nav > .open > a, .ebbie-nav .navbar-default .navbar-nav > .open > a:hover { color: var(--plum); background: transparent; }
.ebbie-nav .current-page-parent:after, .ebbie-nav .nav > li.active > a:after { display: none; }
.ebbie-nav .navbar-nav > li.active > a, .ebbie-nav .navbar-nav > li.current-menu-item > a { color: var(--plum); font-weight: 600; }
.ebbie-nav .dropdown-menu {
	border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; min-width: 220px; margin-top: 0;
}
.ebbie-nav .dropdown-menu > li > a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink); white-space: normal; }
.ebbie-nav .dropdown-menu > li > a:hover, .ebbie-nav .dropdown-menu > .active > a { background: var(--lilac-soft); color: var(--plum); }
.ebbie-nav .caret { margin-left: 4px; border-top-color: currentColor; opacity: .6; }
.ebbie-nav__right { flex: none; font-size: 14px; font-weight: 500; color: var(--ink) !important; padding: 13px 0; }
.ebbie-nav__right:hover { color: var(--plum) !important; }

/* Skrýt staré prvky rodičovské hlavičky, pokud by se někde objevily */
.header-part, .site-heading .site-description { display: none; }

/* Mobil */
@media (max-width: 991px) {
	.ebbie-phone { display: none; }
	.ebbie-header__in { gap: 20px; }
}
@media (max-width: 767px) {
	.ebbie-wrap { padding: 0 16px; }
	.ebbie-topbar__left, .ebbie-topbar__right { display: none; }
	.ebbie-topbar__in { grid-template-columns: 1fr; }
	.ebbie-header__in { flex-wrap: wrap; gap: 10px 14px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
	.ebbie-burger { display: grid; place-items: center; width: 40px; height: 40px; order: 0; }
	.ebbie-logo { order: 1; flex: 1 1 auto; display: flex; justify-content: center; }
	.ebbie-logo img, .ebbie-logo .custom-logo { max-height: 34px; }
	.ebbie-icons { order: 2; margin-left: 0; gap: 14px; }
	.ebbie-icon-link > span:last-child { display: none; }
	.ebbie-search { order: 3; flex: 1 1 100%; max-width: none; }
	.main-menu.ebbie-nav { display: none; }
}
.ebbie-nav .navbar-nav > li > a .caret, .ebbie-nav .navbar-nav > li > a:after { position: static; display: inline-block; vertical-align: middle; margin-left: 6px; }
.ebbie-nav .navbar-nav > li.dropdown > a { padding-right: 12px; }
.ebbie-burger.hc-nav-trigger { position: static; top: auto; width: 40px; min-height: 40px; z-index: auto; }
.ebbie-burger span { display: none; }

/* ==========================================================================
   Krok 2b: patička
   ========================================================================== */
.ebbie-help { background: var(--lilac); margin-top: 64px; }
.ebbie-help__in { display: flex; align-items: center; gap: 32px; min-height: 96px; padding-top: 20px; padding-bottom: 20px; }
.ebbie-help__text { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; }
.ebbie-help__text .ebbie-ico { width: 26px; height: 26px; color: var(--plum); }
.ebbie-help__text strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.ebbie-help__text span { font-size: 14px; color: var(--muted); }
.ebbie-help__phone { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--plum) !important; letter-spacing: -0.01em; flex: none; }
.ebbie-help__link, .ebbie-footer__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--plum) !important; }
.ebbie-help__link .ebbie-ico, .ebbie-footer__more .ebbie-ico { width: 16px; height: 16px; }
.ebbie-help__link { flex: none; margin-left: 48px; }

.ebbie-footer { background: var(--paper); color: var(--ink); font-size: 14px; }
.ebbie-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.ebbie-footer__brand .custom-logo { max-height: 36px; width: auto; height: auto; margin-bottom: 18px; display: block; }
.ebbie-footer__brand p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.ebbie-footer__brand a:not(.custom-logo-link) { color: var(--ink); font-weight: 500; }
.ebbie-footer__title { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0; margin: 4px 0 16px; }
.ebbie-footer__links { list-style: none; margin: 0; padding: 0; }
.ebbie-footer__links li { margin: 0 0 10px; }
.ebbie-footer__links a { color: var(--muted) !important; }
.ebbie-footer__links a:hover { color: var(--plum) !important; }
.ebbie-footer__col p { color: var(--muted); margin: 0 0 12px; }
.ebbie-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.ebbie-footer__bottom a { color: var(--muted) !important; text-decoration: underline; }
.ebbie-footer__bottom span:last-child { margin-left: auto; }

@media (max-width: 991px) {
	.ebbie-footer__grid { grid-template-columns: 1fr 1fr; }
	.ebbie-help__in { flex-wrap: wrap; gap: 12px 24px; }
	.ebbie-help__link { margin-left: 0; }
}
@media (max-width: 575px) {
	.ebbie-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
	.ebbie-help__text { flex-basis: 100%; }
	.ebbie-footer__bottom span:last-child { margin-left: 0; }
}
.ebbie-nav .navbar-nav > li > a.dropdown-toggle::after {
	content: ''; display: inline-block; position: static; width: 6px; height: 6px; margin: 0 0 3px 8px;
	border: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg); background: none; opacity: .55; vertical-align: middle;
}
