/* Responzivní přepisy pro bio-ekofarma.cz
   Soubor se jmenuje zz-responziv.css, aby ho systém (řadí styly podle abecedy) načetl až za style.css.
   Breakpointy od největšího po nejmenší. */


/* tlačítko burger menu – na velkém monitoru skryté */
.burger{display: none; flex: none; position: relative; width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer;}
.burger-cara,
.burger-cara:before,
.burger-cara:after{position: absolute; left: 8px; width: 28px; height: 3px; border-radius: 2px; background: #363e43; transition: all 0.3s ease;}
.burger-cara{top: 20px;}
.burger-cara:before,
.burger-cara:after{content: ""; left: 0;}
.burger-cara:before{top: -9px;}
.burger-cara:after{top: 9px;}
.burger[aria-expanded="true"] .burger-cara{background: none;}
.burger[aria-expanded="true"] .burger-cara:before{top: 0; transform: rotate(45deg);}
.burger[aria-expanded="true"] .burger-cara:after{top: 0; transform: rotate(-45deg);}


/* menší notebook – obsah už se nevejde do pevných 1300 px */
@media screen and (max-width: 1340px) {

  /* kontejner na celou šířku s okrajem 20 px po stranách */
  .o{width: calc(100% - 40px);}
  .o .o{width: auto;}

  /* o farmě (úvodní stránka) – výpočet z 1300 px nahrazen pevným odsazením */
  .o-farme-right-in{width: auto; padding-left: 40px; padding-right: 20px;}

  /* obecná stránka, košík, objednávka */
  .dynamic-page,
  .static-page,
  .kosik-base,
  .order-conversions{width: calc(100% - 40px);}
  .objednavka{width: auto;}

  /* o farmě – fotka v textu se zmenšuje spolu se stránkou */
  .o-farme-img{width: 40%;}

  /* patička – mapa se zmenší, aby zůstala vedle nabídky */
  .pata-2{margin-left: 60px;}
  .pata-3{width: 36%;}
  .mapa img{max-width: 100%; height: auto;}

  /* cookie lišta: odsazení od krajů obrazovky */
  body #cc-main .cm.cm--bar .cm__body{box-sizing: border-box; max-width: 800px; padding: 24px 20px 26px;}

}


/* tablet */
@media screen and (max-width: 1024px) {

  /* šedý pruh – ikony a telefon s plochou pro ťuknutí 44 px */
  .phone{margin-top: 2px;}
  .phone a{line-height: 44px;}

  /* lišta – logo vlevo, burger vpravo, košík pod nimi */
  .top-bar{position: relative; height: auto;}
  .top-bar .o{display: flex; flex-wrap: wrap; align-items: center;}
  .top-bar .o > a{margin-right: auto; max-width: calc(100% - 60px);}
  .top-bar .o > .cl{display: none;}
  .logo{float: none; display: block; width: 300px; max-width: 100%; height: auto; margin-top: 15px;}
  .burger{display: block; margin-top: 15px;}
  .top-right{float: none; width: 100%;}

  /* menu se rozbalí pod lištou */
  .top-right-menu{display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50; margin: 0; padding: 0 20px 10px; background: #fff; border-top: 1px solid #dedede; box-shadow: 0 10px 20px rgba(0,0,0,.15); text-align: left;}
  .top-right-menu.otevrene{display: block;}
  .top-right-menu a{display: block; margin-left: 0; padding-bottom: 0; line-height: 44px; border-bottom: 1px solid #eee;}
  .top-right-menu a:hover{color: #a72e28; border-bottom: 1px solid #eee;}
  .top-right-menu a:last-child,
  .top-right-menu a:last-child:hover{border-bottom: 0;}

  /* košík přes celou šířku */
.top-right-basket {
	float: none;
	width: calc(100% + 40px);
	margin-top: 15px;
	margin-left: -20px;
	border-radius: 0;
}
  .basket-info{float: none; display: flex; align-items: center; margin: 0 16px;}
  .basket-info .text{float: none; margin-top: 0;}
  .basket-info a{float: none; margin: 0 0 0 auto;}

  /* úvodní obrázek */
  .theme{height: 520px;}
  .theme-txt{margin-top: 100px;}
  .motto{font-size: 60px; line-height: 80px;}
  .theme-txt h1{font-size: 30px; margin-top: 25px; margin-bottom: 35px;}

  /* vítejte a dlaždice kategorií – tři vedle sebe, poslední řada na střed */
  .sekce{padding-top: 60px;}
  .sekce.produkty{padding-bottom: 60px;}
  h2{font-size: 40px; margin-bottom: 25px;}
  .boxy{display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; margin-bottom: 0;}
  .boxy .cl{display: none;}
  .boxy .box{float: none; width: calc((100% - 40px) / 3); height: 180px; margin: 0; text-decoration: none;}
  .boxy .box span{display: flex; align-items: center; justify-content: center; height: 100%; padding: 0; font-size: 18px; line-height: 26px;}

  /* o farmě – obrázek nad textem */
  .o-farme{display: block;}
  .o-farme-left{display: block; width: 100%; height: 380px;}
  .o-farme-right{display: block; width: 100%; padding-top: 60px; padding-bottom: 60px;}
  .o-farme-right-in{padding-left: 20px;}
  .o-farme-txt{margin-bottom: 35px;}

  /* galerie na úvodu i na podstránce – tři sloupce */
  .galerie .gallery-item,
  .dynamic-page .gallery-item,
  .product-galerie .gallery-item{width: calc(100% / 3 - 2px); height: auto; aspect-ratio: 4 / 3;}
  .galerie .gallery-item .image1,
  .galerie .gallery-item a,
  .galerie .gallery-item picture,
  .dynamic-page .gallery-item .image1,
  .dynamic-page .gallery-item a,
  .dynamic-page .gallery-item picture,
  .product-galerie .gallery-item .image1,
  .product-galerie .gallery-item a,
  .product-galerie .gallery-item picture{display: block; width: 100%; height: 100%;}
  .galerie .gallery-item img,
  .dynamic-page .gallery-item img,
  .product-galerie .gallery-item img{display: block; width: 100%; height: 100%; object-fit: cover;}

  /* podstránky (O farmě, Galerie, Kontakt, textové stránky) */
  .dynamic-page,
  .static-page{padding-top: 60px; padding-bottom: 60px;}
  .dynamic-page-head h1,
  .static-page-head h1{font-size: 40px; margin-bottom: 25px;}
  .dynamic-page .dynamic-page-block .dev-html-block{margin-bottom: 50px;}
  .dynamic-page .dynamic-page-block:last-child .dev-html-block{margin-bottom: 0;}

  /* o farmě – fotka nad textem */
  .o-farme-img{float: none; display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; margin: 0 0 25px;}

  /* kontakt – sloupce pod sebou */
  .kontakty-left,
  .kontakty-right{float: none; width: 100%; margin-right: 0;}
  .kontakty-right{margin-top: 30px;}

  /* e-shop – rozcestník a výběr kategorie */
  .katalog-page{padding-top: 60px; padding-bottom: 60px;}
  .katalog-page h1{font-size: 40px; margin-bottom: 25px;}
  .vyber-katgorie ul{display: flex; flex-wrap: wrap; gap: 6px;}
  .vyber-katgorie li{display: flex; flex: 1 1 130px;}
  .vyber-katgorie a{float: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; padding: 10px 8px;}

  /* e-shop – výpis produktů ve dvou sloupcích */
  .dev-product-list{display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px;}
  .dev-product-list .empty-list{grid-column: 1 / -1;}
  .dev-product-list .product-item{float: none; width: auto; height: auto; margin: 0;}
  .product-item-img{height: auto; aspect-ratio: 3 / 2;}
  .product-item-img span,
  .product-item-img a,
  .product-item-img picture{display: block; width: 100%; height: 100%;}
  .product-item-img img{display: block; height: 100%; object-fit: cover;}
  .product-item .produkt-koupit{margin-top: 15px; line-height: 24px; padding-top: 10px; padding-bottom: 10px;}

  /* detail produktu – větší plocha pro prst (počet kusů a tlačítka plus a minus zůstávají jako na velkém monitoru) */
  .navigace{margin-top: 10px; margin-bottom: 15px; line-height: 20px;}
  .navigace a{display: inline-block; padding: 12px 0;}
  input.tobasket-btn{padding: 0 25px;}
  .detail-produktu a.share{display: inline-block; line-height: 34px;}
  .product-text{overflow-wrap: break-word;}
  .product-text img{max-width: 100%; height: auto !important;}
  .product-text table{display: block; overflow-x: auto; width: 100% !important;}

  /* okno „Přidáno do košíku“ */
  .pop-box.pop-basket a.btn-to-basket{padding-top: 11px; padding-bottom: 11px;}
  .top-right-basket a.pop-close{padding-top: 13px; padding-bottom: 13px;}

  /* košík – počet, cena a smazání v řádku pod zbožím */
  .kosik-base,
  .objednavka{padding-top: 60px; padding-bottom: 60px;}
  .kosik-base h1,
  .objednavka h1{margin-bottom: 15px;}
  .kosik-polozky{margin-top: 10px;}
  .basketItem{padding: 15px;}
  .basketItem .kosik-item-left,
  .basketItem .kosik-item-right{vertical-align: top;}
  .basketItem .kosik-item-right{width: calc(100% - 160px); margin-left: 15px;}
  .basketItem .kosik-item-bottom{display: flex; align-items: center; gap: 15px; margin-top: 15px;}
  .basketItem .kosik-item-bottom .cl{display: none;}
  .basketItem .input-group.spinner{width: auto; margin-right: 0;}
  .basketItem .count-btn a{width: 44px; height: 44px; line-height: 43px;}
  .basketItem .count-numb input{width: 60px; height: 44px; font-size: 18px;}
  .basketItem .basket-item-price{width: auto; margin-left: auto;}
  .basketItem .remove{width: 44px; margin-left: 0;}
  .basketItem .remove button{width: 44px; height: 44px;}
  .kosik-base .btn.btn-back,
  .kosik-base .btn.btn-ord{min-height: 46px;}
  .tlacitka.prazdny-kos button{min-height: 44px;}

  /* objednávka – formulář a pod ním souhrn */
  .order{float: none; width: auto; margin-top: 20px;}
  .order-right{float: none; width: auto; margin-top: 0;}
  .order-souhrn{width: auto;}
  .delivery-row{display: flex; flex-wrap: wrap; align-items: flex-start;}
  .delivery-row .cl{display: none;}
  .delivery-row input{width: 22px; height: 22px;}
  .delivery-row label{flex: 1; width: auto; min-height: 44px;}
  .delivery-row .price{width: auto; margin-left: 10px;}
  .delivery button,
  .payment button{min-height: 44px; margin-top: 5px;}
  .order-row input:not([type="checkbox"]),
  .form-item-Note textarea{box-sizing: border-box; min-height: 44px; font-size: 16px;}
  .order-row button.btn-email-cont,
  .order-row button.btn-email-change{min-height: 44px;}
  .form-item-ConditionAgreement.order-row input{width: 22px; height: 22px; margin-top: 11px;}
  .form-item-ConditionAgreement.order-row label{box-sizing: border-box; max-width: calc(100% - 40px); padding: 14px 0;}
  .objednavka a.btn.btn-back{padding-top: 13px; padding-bottom: 13px;}
  .order-box-selection-company input{width: 22px; height: 22px;}
  .order-box-selection-company label{padding: 12px 0;}
  body > .cena-info{margin: -40px auto 60px;}

  /* poděkování po objednávce */
  .order-conversions{padding-top: 60px; padding-bottom: 60px;}
  .order-conversions h1{font-size: 40px; margin-bottom: 25px;}

  /* patička – kontakty a nabídka vedle sebe, mapa pod nimi */
  .pata{padding-top: 60px; padding-bottom: 60px;}
  .pata-2{float: right; margin-left: 0;}
  .pata-3{float: none; clear: both; width: auto; padding-top: 50px;}
  .phone-mail a{line-height: 44px;}
  .pata-phone{margin-bottom: 0;}
  .pata-menu a{line-height: 44px; margin-bottom: 0;}

  /* copyright */
  .copy{height: auto; padding-bottom: 20px;}
  .copy-left{margin-top: 33px;}
  .copy-right{margin-top: 20px;}
  .copy-right a{display: inline-block; padding: 12px 0; line-height: 20px;}

}


/* mobil */
@media screen and (max-width: 640px) {

  .logo{width: 250px;}

  /* úvodní obrázek – výška podle obsahu, ztmavení kvůli čitelnosti textu */
  .theme{height: auto; padding: 50px 0 60px; background-image: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), url(images/theme.jpg);background-position: right;}
  .theme-txt{float: none; margin-top: 0;}
  .motto{font-size: 44px; line-height: 62px;}
  .theme-txt h1{font-size: 24px; margin-top: 20px; margin-bottom: 30px;}
  .theme-txt a.btn{display: block; padding-left: 10px; padding-right: 10px; text-align: center;}

  /* vítejte a dlaždice kategorií – po dvou, lichá poslední přes celou šířku */
  .sekce{padding-top: 45px;}
  .sekce.produkty{padding-bottom: 45px;}
  h2{font-size: 34px; margin-bottom: 20px;}
  .sekce-txt{font-size: 18px;}
  .boxy{gap: 12px; margin-top: 30px;}
  .boxy .box{width: calc(50% - 6px); height: 130px;}
  .boxy .box:last-of-type:nth-of-type(odd){width: 100%;}
  .boxy .box span{font-size: 17px; line-height: 24px;}

  /* o farmě */
  .o-farme-left{height: 240px;}
  .o-farme-right{padding-top: 45px; padding-bottom: 45px;}
  .o-farme-txt strong{font-size: 19px;}
  .o-farme-right a.btn{display: block; padding-left: 10px; padding-right: 10px; text-align: center;}

  /* galerie – dva sloupce, lichá poslední fotka přes celou šířku */
  .galerie .gallery-item,
  .dynamic-page .gallery-item,
  .product-galerie .gallery-item{width: calc(50% - 2px);}
  .galerie .gallery-item:last-child:nth-child(odd),
  .dynamic-page .gallery-item:last-child:nth-child(odd),
  .product-galerie .gallery-item:last-child:nth-child(odd){width: calc(100% - 2px); aspect-ratio: 2 / 1;}

  /* podstránky */
  .dynamic-page,
  .static-page{padding-top: 40px; padding-bottom: 45px;}
  .dynamic-page-head h1,
  .static-page-head h1{font-size: 34px; margin-bottom: 20px;}
  .dynamic-page .dynamic-page-block .dev-html-block{margin-bottom: 35px;}
  .dynamic-page .dynamic-page-block:last-child .dev-html-block{margin-bottom: 0;}

  /* obsah vložený v editoru – dlouhá slova, obrázky, videa a tabulky nesmí přetéct */
  .dynamic-page .dev-html-block,
  .static-page{overflow-wrap: break-word;}
  .dynamic-page .dev-html-block img,
  .static-page img{max-width: 100%; height: auto !important;}
  .dynamic-page .dev-html-block iframe,
  .static-page iframe{max-width: 100%;}
  .dynamic-page .dev-html-block table,
  .static-page table{display: block; overflow-x: auto; width: 100% !important;}

  /* dlouhé textové stránky */
  .text-dokument h2{font-size: 20px; line-height: 28px; margin-top: 30px;}
  .text-dokument ul,
  .text-dokument ol{padding-left: 20px;}
  /* tabulka cookies – každý řádek pod sebou, záhlaví se skryje */
  .text-dokument tbody,
  .text-dokument tr,
  .text-dokument td{display: block;}
  .text-dokument tr{margin-bottom: 10px;}
  .text-dokument tr:first-child{display: none;}
  .dynamic-page .dev-html-block .text-dokument table td{border-bottom: 0; font-size: 14px; line-height: 20px;}
  .dynamic-page .dev-html-block .text-dokument table td:last-child{border-bottom: 1px solid #dedede;}
  .text-dokument td:first-child{font-weight: 600; overflow-wrap: anywhere;}
  .text-dokument td:last-child:before{content: "Platnost: ";}

  /* e-shop – kategorie po dvou, produkty pod sebou */
  .katalog-page{padding-top: 40px; padding-bottom: 45px;}
  .katalog-page h1{font-size: 34px; margin-bottom: 20px;}
  .vyber-katgorie{margin-top: 20px; margin-bottom: 25px;}
  .vyber-katgorie li{flex-basis: calc(50% - 6px);}
  .kategorie-detail h1,
  .product-detail-head h1,
  .kosik-base h1,
  .objednavka h1{font-size: 34px; margin-bottom: 20px;}
  .dev-product-list{grid-template-columns: minmax(0, 1fr);}
  .product-item .produkt-koupit{display: block; text-align: center;}

  /* detail produktu – fotka nad popisem */
  .product-img{float: none; width: 100%; margin-right: 0; margin-bottom: 20px;}
  .product-detail-head{float: none; width: 100%; margin-bottom: 30px;}
  .do-kosiku input.tobasket-btn{display: block; clear: both; width: 100%; position: relative; top: 15px; margin-bottom: 15px;}

  /* okno „Přidáno do košíku“ se vejde na displej */
  .pop-box.pop-basket{box-sizing: border-box; width: calc(100% - 20px); max-width: 390px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; margin-top: 20px;}
  .pop-container{padding: 20px;}
  .pop-kosik-img img{max-height: 35vh; object-fit: contain;}

  /* košík */
  .kosik-base,
  .objednavka{padding-top: 40px; padding-bottom: 45px;}
  .basketItem .kosik-produkt-img{width: 90px; height: 70px;}
  .basketItem .kosik-produkt-img img{width: 100%; height: 100%; object-fit: cover;}
  .basketItem .kosik-item-right{width: calc(100% - 110px); margin-left: 12px;}
  .basketItem .kosik-produkt-nazev a{font-size: 18px;}
  .basketItem .kosik-item-bottom{flex-wrap: wrap;}
  .basketItem .remove{order: 2; margin-left: auto;}
  .basketItem .basket-item-price{order: 3; width: 100%; text-align: right;}
  .basket-overall{margin-top: 30px; margin-bottom: 30px; font-size: 20px;}
  .basket-overall table{width: 100%;}
  .basket-overall td:last-child{text-align: right; white-space: nowrap;}
  .kosik-base .btn.btn-back,
  .kosik-base .btn.btn-ord{display: block; box-sizing: border-box; width: 100%; margin-bottom: 10px;}

  /* potvrzovací okno (např. odebrání zboží z košíku) */
  .modal-confirm .modal-content{padding: 8px 8px 0;}
  .modal-confirm .modal-title{padding-right: 48px; font-size: 20px; line-height: 28px;}
  .modal-confirm button.close{width: 44px; height: 44px;}
  .modal-confirm .modal-body{margin-top: 12px; font-size: 16px; line-height: 24px;}
  .modal-confirm .modal-footer{display: flex; gap: 8px; padding: 20px 0 8px;}
  .modal-confirm .modal-footer button{min-width: 64px; min-height: 44px; margin: 0;}

  /* objednávka – popisky nad poli, tlačítka přes celou šířku */
  .dev-order-deliveries,
  .dev-order-payments,
  .order-personal-data-box,
  .order-souhrn{padding: 15px;}
  .order-row .order-name,
  .order-row label{display: block; width: auto; padding-top: 0; margin-bottom: 4px;}
  .order-row input:not([type="checkbox"]),
  .order-row input.order-input-mail,
  .form-item-Note textarea{width: 100%;}
  .order-row button.btn-email-cont,
  .order-row button.btn-email-change{width: 100%; margin: 8px 0 0;}
  .order-basket-summary{font-size: 22px; margin-bottom: 30px;}
  body > .cena-info{margin: -25px auto 45px;}

  /* poděkování po objednávce */
  .order-conversions{padding-top: 40px; padding-bottom: 45px;}
  .order-conversions h1{font-size: 34px; margin-bottom: 20px;}
  .order-conversions a.back-web{display: block; padding-left: 10px; padding-right: 10px;}

  /* patička pod sebou na střed */
  .pata{padding-top: 45px; padding-bottom: 45px;}
  .pata-1,
  .pata-2,
  .pata-3{float: none; width: auto; text-align: center;}
  .pata-2,
  .pata-3{padding-top: 40px;}
  .logo-foot{max-width: 100%; height: auto;}
  .adresa{font-size: 16px;}
  .small-txt{font-size: 12px; line-height: 18px;}
  .pata-cara{margin-left: auto; margin-right: auto; margin-bottom: 15px;}
  .pata-menu a{display: table; margin: 0 auto;}

  /* copyright */
  .copy-left,
  .copy-right{float: none; text-align: center;}
  .copy-left{margin-top: 0; padding-top: 25px; line-height: 20px;}
  .copy-right{margin-top: 5px;}

  /* cookie lišta: nižší, Odmítnout a Přijmout vedle sebe, Podrobné nastavení pod nimi; !important jen proto, že ho na mobilu používá knihovna */
  body #cc-main .cm.cm--bar .cm__body{padding: 18px 20px 20px !important;}
  body #cc-main .cm.cm--bar .cm__title{padding: 0 !important; font-size: 18px;}
  body #cc-main .cm.cm--bar .cm__desc{margin-top: 8px; padding: 0 !important; line-height: 1.5;}
  body #cc-main .cm.cm--bar .cm__btns{display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding: 0 !important; border-top: 0 !important;}
  body #cc-main .cm.cm--bar .cm__btn-group{display: contents !important;}
  body #cc-main .cm.cm--bar .cm__btn{width: auto; min-height: 44px; margin: 0 !important; padding: 11px 4px; font-size: 14px;}
  body #cc-main .cm.cm--bar .cm__btn[data-role="necessary"]{order: 1;}
  body #cc-main .cm.cm--bar .cm__btn[data-role="all"]{order: 2;}
  body #cc-main .cm.cm--bar .cm__btn[data-role="show"]{order: 3; grid-column: 1 / -1;}
  body #cc-main .pm__btn{min-height: 44px;}
  body #cc-main .pm__close-btn{width: 44px; height: 44px;}

}


/* malý mobil */
@media screen and (max-width: 400px) {

  .logo{width: 220px;}

  .basket-info{margin: 0 8px 0 12px; padding-left: 32px;}
  .basket-info .text{margin-right: 8px; font-size: 13px; line-height: 18px;}
  .basket-info .text span{white-space: nowrap;}
  .basket-info a{padding-left: 12px; padding-right: 12px; white-space: nowrap;}

  /* menší nadpisy */
  .motto{font-size: 34px; line-height: 50px;}
  .theme-txt h1{font-size: 21px;}
  h2{font-size: 29px;}
  .dynamic-page-head h1,
  .static-page-head h1{font-size: 29px;}

  .katalog-page h1,
  .kategorie-detail h1,
  .product-detail-head h1,
  .kosik-base h1,
  .objednavka h1,
  .order-conversions h1{font-size: 29px;}

  /* patička – dlouhý e-mail se vejde na jeden řádek */
  .pata-mail{font-size: 12.5px; padding-left: 28px;}

}
