/*
Theme Name: Dotek Prádla Child
Template: kadence
Author: Michal Horský / HORSKY Studio
Description: Child theme nad Kadence - přidává banner nad obchodem, filtry a barvy nastavitelné v administraci (Vzhled > Přizpůsobit), beze změny šablon Kadence.
Version: 1.9.0
Text Domain: dotek-pradla-child
*/

:root{
	--dp-accent: #7a1f2b; /* výchozí odhad podle loga - upravte ve Vzhled > Přizpůsobit > Barvy e-shopu */
}

/* ==========================================================================
   Barvy - napojené na standardní WooCommerce třídy, funguje nezávisle
   na tom, jak přesně Kadence pojmenovává svoje interní proměnné
   ========================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button{
	background-color: var(--dp-accent) !important;
	border-color: var(--dp-accent) !important;
	color: #fff !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover{
	filter: brightness(0.9);
}
.woocommerce ins,
.woocommerce .price ins,
.woocommerce-Price-amount{ color: var(--dp-accent); }
.woocommerce span.onsale{ background: var(--dp-accent) !important; }

/* ==========================================================================
   Skrytí šedého nadpisu stránky ("Obchod" / název kategorie) nad výpisem
   produktů - jen na stránce Obchod a v kategoriích, zbytek webu beze změny.
   Kadence obaluje nadpis do <section class="entry-hero"> s vlastním velkým
   odsazením - proto se maže celá tahle sekce, ne jen text uvnitř (jinak
   zůstává prázdné místo v původní výšce sekce).
   ========================================================================== */
body.woocommerce-shop .entry-hero,
body.tax-product_cat .entry-hero,
body.tax-product_tag .entry-hero,
body.woocommerce-shop .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header{
	display: none !important;
}

/* ==========================================================================
   Banner nad obchodem (kategorie / archiv produktů)
   Obsah (obrázek, texty, tlačítko) se nastavuje ve Vzhled > Přizpůsobit > Banner nad obchodem
   ========================================================================== */
.dp-shop-banner{
	position: relative;
	min-height: 260px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	background-color: #f4f2f2;
	margin-bottom: 34px;
	overflow: hidden;
}
.dp-shop-banner::before{
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 60%);
}
.dp-shop-banner-content{
	position: relative;
	z-index: 1;
	padding: 0 40px;
	max-width: 520px;
	color: #fff;
}
.dp-shop-banner-eyebrow{
	text-transform: uppercase;
	letter-spacing: .15em;
	font-size: 12px;
	opacity: .9;
}
.dp-shop-banner-title{
	font-size: 34px;
	line-height: 1.15;
	margin: 8px 0 18px;
	color: #fff;
}
.dp-shop-banner .dp-btn{
	display: inline-block;
	background: #fff;
	color: #222;
	padding: 12px 26px;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
}
.dp-shop-banner .dp-btn:hover{ background: var(--dp-accent); color: #fff; }

@media (max-width: 700px){
	.dp-shop-banner{ min-height: 190px; }
	.dp-shop-banner-title{ font-size: 24px; }
	.dp-shop-banner-content{ padding: 0 24px; }
}

/* ==========================================================================
   Filtr lišta nad mřížkou produktů (podle atributů - Barva, Velikost...)
   Doplňuje (nenahrazuje) stávající řazení a přepínač mřížka/seznam z Kadence.
   ========================================================================== */
.dp-filter-bar{
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	padding: 16px 0;
	margin-bottom: 20px;
	border-top: 1px solid #e5e2e2;
	border-bottom: 1px solid #e5e2e2;
}
.dp-filter-bar > span{
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #767676;
}
.dp-filter-dropdown{ position: relative; }
.dp-filter-dropdown > button{
	background: #fff !important;
	color: #333 !important;
	border: 1px solid #e5e2e2 !important;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
}
.dp-filter-dropdown .dp-filter-panel{
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 6px;
	background: #fff;
	border: 1px solid #e5e2e2;
	padding: 14px;
	min-width: 190px;
	z-index: 20;
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.dp-filter-dropdown.open .dp-filter-panel{ display: block; }
.dp-filter-panel label{
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	font-size: 13px;
	cursor: pointer;
}

/* ==========================================================================
   Hero slider na homepage (rotující obrázky)
   ========================================================================== */
.dp-hero-slider{
	position: relative !important;
	width: 100vw !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	height: 60vh !important;
	min-height: 420px !important;
	max-height: 640px !important;
	overflow: hidden !important;
	margin-bottom: 0;
}
.dp-hero-slides-mask{
	position: absolute;
	inset: 0;
	-webkit-mask-image: linear-gradient(to bottom,
		transparent 0%, rgba(0,0,0,.5) 7%, #000 16%,
		#000 84%, rgba(0,0,0,.5) 93%, transparent 100%);
	        mask-image: linear-gradient(to bottom,
		transparent 0%, rgba(0,0,0,.5) 7%, #000 16%,
		#000 84%, rgba(0,0,0,.5) 93%, transparent 100%);
}
.dp-hero-slide{
	position: absolute !important;
	top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-color: #ececec;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease;
}
.dp-hero-slide.is-active{ opacity: 1 !important; visibility: visible !important; z-index: 1; }
.dp-hero-content{
	position: relative;
	z-index: 1;
	max-width: 480px;
	padding: 0 60px;
	color: #fff;
}
.dp-hero-eyebrow{ text-transform: uppercase; letter-spacing: .2em; font-size: 13px; opacity: .85; }
.dp-hero-title{ font-size: 44px; color: #fff; margin: 10px 0 16px; line-height: 1.15; }
.dp-hero-subtitle{ font-size: 15px; margin: 0 0 22px; max-width: 400px; }
.dp-hero-slider .dp-btn{
	display: inline-block;
	background: rgba(255,255,255,.92);
	color: #222;
	padding: 12px 26px;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
}
.dp-hero-slider .dp-btn:hover{ background: #fff; }
.dp-hero-dots{
	position: absolute;
	bottom: 20%; left: 50%;
	transform: translateX(-50%);
	display: flex; gap: 10px; z-index: 2;
}
.dp-hero-dot{ width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; padding: 0; }
.dp-hero-dot.is-active{ background: #fff; }
@media (max-width: 700px){
	.dp-hero-slider{
		height: auto !important;
		aspect-ratio: 16 / 9 !important;
		min-height: 260px !important;
		max-height: 480px !important;
	}
	.dp-hero-title{ font-size: 28px; }
	.dp-hero-content{ padding: 0 28px; }
}

/* ==========================================================================
   Barevné vzorky v mřížce produktů - vlastní řešení, žádný plugin potřeba
   ========================================================================== */
li.dp-product-card{ position: relative; list-style: none; }
.dp-color-swatches{
	display: flex;
	gap: 6px;
	margin-top: 8px;
}
.dp-color-swatch{
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid #e5e2e2;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}

/* ==========================================================================
   Patička
   ========================================================================== */
.dp-footer{
	background: #fbf7f8;
	margin-top: 60px;
	padding: 50px 0 24px;
	font-size: 13px;
	color: #767676;
}
.dp-footer-inner{ max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.dp-footer-grid{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-bottom: 34px;
}
.dp-footer-grid h4{ font-size: 14px; color: #222; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .05em; }
.dp-footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.dp-footer-grid ul li{ margin-bottom: 9px; }
.dp-footer-grid a{ color: inherit; text-decoration: none; }
.dp-footer-grid a:hover{ color: var(--dp-accent); }
.dp-footer-bottom{
	border-top: 1px solid #e5e2e2;
	padding-top: 18px;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: space-between;
}
.dp-footer-bottom a{ color: inherit; text-decoration: underline; }

/* ==========================================================================
   Zákaznická podpora - accordion
   ========================================================================== */
.dp-support{ padding: 40px 32px 60px; max-width: 900px; }
.dp-support h1{ font-size: 32px; margin-bottom: 10px; }
.dp-support-intro{ color: #767676; margin-bottom: 30px; }
.dp-support-accordion{ border-top: 1px solid #e5e2e2; }
.dp-support-item{ border-bottom: 1px solid #e5e2e2; }
.dp-support-item summary{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 4px;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.dp-support-item summary::-webkit-details-marker{ display: none; }
.dp-support-item summary::after{ content: '+'; font-size: 20px; color: #767676; }
.dp-support-item[open] summary::after{ content: '–'; }
.dp-support-body{ padding: 0 4px 22px; color: #444; line-height: 1.7; }
@media (max-width: 700px){
	.dp-support{ padding: 30px 20px 50px; }
}
@media (max-width: 700px){
	.dp-footer-grid{ grid-template-columns: repeat(2, 1fr); }
}
