/*
Theme Name: Electronics Marketplace
Theme URI: https://www.buywptemplates.com/products/free-marketplace-wordpress-theme
Author: Buywptemplates
Author URI: https://www.buywptemplates.com
Description: Electronics Marketplace is an ideal free theme for an electronics store, tech shop, gadget sales, digital products, mobile store, device retail, e-commerce, computer shop, hardware store, consumer electronics, tech marketplace, smart devices, electronic goods and digital marketplace. Its personalization options let you use it as a multipurpose theme for getting you a strong website. You will be able to get a fully responsive website that can be seen with precision on every screen. This theme is made user-friendly allowing users with or without coding skills to create their own website. It has got a beautiful banner and internal sections such as Blog, Team, Testimonial, and a lot more. Achieving better conversions is just a breeze now as you get many Call to Action Buttons (CTA) that will also guide the audience to take the next course of action. You will always get a phenomenal performance even if your website is seeing high traffic thanks to the optimized codes included in its core. You will witness huge traffic coming to your website as this theme is made SEO-friendly. It delivers faster page load time and its Bootstrap framework makes it robust. WPML and RTL compliance of this theme makes your website translation ready and most importantly, you will get to use the various social media icons for effectively using social media in promoting your products. View full demo here: https://demos.buywptemplates.com/electronics-marketplace-pro/
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.8.9
license: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: electronics-marketplace
Template: ecommerce-solution
Tags: left-sidebar, right-sidebar, one-column, two-columns, three-columns, four-columns, grid-layout, flexible-header, wide-blocks, block-styles, custom-background, custom-logo, custom-menu, custom-header, editor-style, featured-images, footer-widgets, sticky-post, full-width-template, theme-options, threaded-comments, post-formats, translation-ready, rtl-language-support, blog, e-commerce, food-and-drink
*/
body{
	position: static !important;
}
:root {
	--first-theme-color: #233A95;
	--second-theme-color: #2BBEF9;
}  
input[type="search"]{
	color: #000;
}
.topbar a.call1, .topbar span {
	background-color: transparent;
	color: #FFF;
}
.topbar, span.cart-value, .login-box a:hover, #slider .carousel-control-prev-icon:hover, #slider .carousel-control-next-icon:hover, .more-btn a:hover, .woocommerce span.onsale, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .pagination .current, .pagination a:hover, .page-links a:hover, .page-links .post-page-numbers.current span, #comments a.comment-reply-link, #comments input[type="submit"].submit, .postbtn a:hover, nav.woocommerce-MyAccount-navigation ul li, .page-content .read-moresec a.button, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce-account .addresses .title .edit {
	background: var(--first-theme-color);
}
.logo a, .logo p a, p.logged-in-as a, .nav-links a, td.product-name a:hover {
	color: var(--first-theme-color);
}
.page-content .read-moresec a.button {
	border-color: var(--first-theme-color);
}
.copyright-wrapper a, span.cart-value, .login-box a:hover, #slider .carousel-control-prev-icon:hover, #slider .carousel-control-next-icon:hover, .more-btn a:hover, .woocommerce span.onsale, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .copyright-wrapper p, .pagination .current, .pagination a:hover, .page-links a:hover, .page-links .post-page-numbers.current span, #comments a.comment-reply-link, #comments input[type="submit"].submit, .postbtn a:hover, .postbtn a:hover i, nav.woocommerce-MyAccount-navigation ul li a, .page-content .read-moresec a.button, .woocommerce nav.woocommerce-pagination ul li a, #blog_sec a:hover i, .woocommerce-account .addresses .title .edit {
	color: #fff;
}
#slider img{
	opacity: 1;
}
.more-btn a:hover{
	border-color: var(--first-theme-color);
}
.postbtn:hover i{
	color: #000;
}
.inner-service .wp-block-button .wp-block-button__link:hover{
	color: var(--second-theme-color) !important;
	border-color: var(--second-theme-color);
}
.wp-block-button.is-style-outline .wp-block-button__link{
	border: 1px solid #000;
}
.login-box a:hover i {
	color: #000;
}
#sidebar input[type="submit"]:hover, .login-box i, .cat-content, #scrollbutton i, .footer-wp h3:after, .footer-wp input[type="submit"], .footer-wp button, #sidebar button, .footer-wp .tagcloud a:hover, .copyright-wrapper, .blog-section h2:after, #sidebar h3:after, #sidebar .tagcloud a:hover, #tag-cloud a:hover, .tags a:hover, .nav-next a:hover, .nav-previous a:hover, .widget_calendar tbody a, .primary-navigation ul ul a:hover, .primary-navigation ul ul a:focus, input[type="submit"], #sidebar .widget_block .wp-block-tag-cloud a:hover, .content_box .tag-test-tag .wp-block-tag-cloud a:hover, .footer-wp .widget_block .wp-block-tag-cloud a:hover {
	background: var(--second-theme-color);
	color: #fff;
}
.footer-wp .textwidget p a, #sidebar .textwidget p a:hover, .footer-wp h3, .footer-wp li a:hover, .footer-wp a.rsswidget, .blog-section h2 a:hover, .metabox a:hover {
	color: var(--second-theme-color);
}
#scrollbutton i, #blog_sec .sticky {
	border-color: var(--second-theme-color);
}
#scrollbutton i {
	box-shadow: 0px 0px 0px var(--first-theme-color), 0px 5px 0px 0px var(--first-theme-color), 0px 5px 4px #000;
}
.cat-content {
	font-family: 'Fjalla One', sans-serif;
}
.menu-header {
	background: transparent;
	border-top: 1px solid #E3E4E6;
	border-bottom: 1px solid #E3E4E6;
}
.menu-header .primary-navigation ul li a {
	padding: 10px 12px;
	border-right-color: #E3E4E6;
	font-family: 'Fjalla One', sans-serif;
	font-size: 15px;
	font-weight: 500;
}
.menu-header .primary-navigation ul ul li a {
	padding: 15px;
}
.primary-navigation ul ul {
	top: 32px;
}
#slider .carousel-content {
	border: 0;
}
#slider .carousel-control-prev-icon, #slider .carousel-control-next-icon {
	padding: 13px 20px;
}
.products li, .woocommerce ul.products li.product .woocommerce-loop-product__title {
	text-align: left;
	padding: 10px 0;
}
.products li {
  border: solid 1px #e7e7e7 !important;
  text-align: center;
  box-shadow: 2px 2px 5px #eee !important;
  font-family: 'Fjalla One', sans-serif;
}
.woocommerce .products .star-rating {
	margin: 0 0 10px;
}
/* Niebieskie „pigułki” tylko poza kartą produktu (na produkcie: .dostudni-product-meta) */
body:not(.single-product) .woocommerce span.posted_in a,
.woocommerce-MyAccount-content .woocommerce-Address-title.title a {
	background: var(--first-theme-color);
	color: #ffffff;
}
#new-collection .woocommerce .products .type-product a.button.product_type_simple.add_to_cart_button{
	display: none;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	padding: 0 !important;
	border: 0;
	box-shadow: none;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-onsale, .wp-block-woocommerce-empty-cart-block .wp-block-button a{
	background: var(--first-theme-color) !important;
	border-color: var(--first-theme-color) !important;
	color: #fff !important;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title{
	margin-bottom: 0 !important;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title, .wp-block-woocommerce-empty-cart-block .price, .wp-block-woocommerce-empty-cart-block .wp-block-button{
	text-align: left;
}
.woocommerce ul.products li.product a.button{
	float: left;
}
.wp-block-woocommerce-empty-cart-block .wp-block-button a,
.wp-block-woocommerce-cart .wc-block-components-totals-coupon a,
.wp-block-woocommerce-cart .wc-block-components-totals-coupon button,
.wp-block-woocommerce-cart .wc-block-cart__submit-container a,
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon a,
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon button,
.wp-block-woocommerce-checkout .wc-block-checkout__actions_row a {
	background: #1794de !important;
	border: 1px solid #1794de !important;
	color: #fff !important;
	border-radius: 4px;
	opacity: 1 !important;
	box-shadow: none !important;
}
.wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button:not(:disabled):hover,
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-button:not(:disabled):hover,
.wp-block-woocommerce-cart .wc-block-components-totals-coupon button:not(:disabled):hover,
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon button:not(:disabled):hover {
	background: #1280c4 !important;
	border-color: #1280c4 !important;
	color: #fff !important;
}
.wp-block-woocommerce-empty-cart-block .price{
	font-family: 'Roboto', sans-serif;
}
#new-collection {
	text-align: center;
}
#new-collection strong {
	position: relative;
	display: inline-block;
}
#new-collection strong:after, #new-collection strong:before {
	content: '';
	background: var(--first-theme-color);
	width: 80px;
	height: 2px;
	border: 0;
	position: absolute;
	left: -110px;
	top: 50%!important;
	transform: translateY(-50%);
}
#new-collection strong:after {
	left: auto;
	right: -110px;
}
.woocommerce ul.products li.product .price {
  font-family: "Roboto", sans-serif;
  text-align: left;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.entry-date:hover i, .entry-date:hover a, .entry-author:hover i, .entry-author:hover a {
	color: var(--second-theme-color) !important;
}
#sidebar input[type="submit"], #sidebar ul li:before, .metabox .fa-calendar-alt:before, .metabox .fa-user:before, .metabox .fa-comments:before, .metabox .fa-clock:before, .metabox i:before{
	background: var(--second-theme-color);
}
#sidebar ul li a:hover{
	color: var(--second-theme-color);
}
.fixed-header{
	background: #fff;
	position: fixed;
}
.inner-service input#url{
	padding: 12px 10px;
  font-size: 18px;
  margin: 20px 0 0 0;
  width: 100%;
  border: 1px solid #bcbcbc;
}
#sidebar ol.wp-block-latest-comments{
	padding: 10px !important;
}
form.woocommerce-form.woocommerce-form-login.login {
  display: inline-block;
}
.woocommerce a.added_to_cart{
	background: var(--first-theme-color);
	color: #fff;
	float: left;
}
/* Breadcrumb */
.bradcrumbs a{
  background:var(--second-theme-color);
  color: #fff;
}
.bradcrumbs span{
	background:var(--second-theme-color);
	color: #fff;
}
.bradcrumbs span:hover{
	background:#000;
  color: #fff;
}
.single-post-page .category a {
  color: #fff;
  background: var(--first-theme-color);
}
footer .socialicons a{
  color: #fff;
}
#slider .carousel-control-prev-icon, #slider .carousel-control-next-icon {
  padding: 15px 18px 16px 18px !important;;
}
@media screen and (max-width: 1000px) {
	.toggle-menu{
		margin: 15px 0;
	}
	.toggle-menu .mobiletoggle{
		font-size: 16px;
	}
	.toggle-menu i{
		font-size: 20px;
		padding-bottom: 0 !important;
    padding-top: 0 !important;
	}
	.menu-header .primary-navigation ul li a {
		padding: 15px;
	}
	.topbar .menu-brand.resp-menu span, .topbar .menu-brand.resp-menu a.call1 {
		color: #000;
	}
	.search-cat-box button[type="submit"] {
		padding: 8px 22px;
	}
  .nav-next a, .nav-previous a{
		margin: 15px 10px;
	}
}
@media screen and (max-width: 720px) {
	#slider .carousel-control-prev-icon, #slider .carousel-control-next-icon {
		padding: 9px 15px;
	}
	#new-collection strong:after, #new-collection strong:before {
		display: none;
	}
	.product-cat {
		width: 100%;
	}
	span.cart-value{
		width: 25px;
	  padding: 2px 7px !important;
	}
}
@media screen and (max-width: 400px) and (min-width: 320px){
	#slider img {
        height: 150px !important;
    }
}	
@media screen and (max-width: 992px) and (min-width: 720px){
	#slider .carousel-caption h1{
		display: block !important;
	}
}
.woocommerce a.added_to_cart{
	margin-top: 1em !important;
}
.woocommerce a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.added{
	margin-right: 10px;
}
.wc-block-checkout__actions_row button.wc-block-components-checkout-place-order-button{
    font-size: 18px;
    background: var(--first-theme-color);
    color: #fff;
    font-weight: 500;
    padding: 10px 20px!important;
    border: none;
}
.wc-block-checkout__actions_row button.wc-block-components-checkout-place-order-button:hover{
    background:#212529;
}
/* Sticky copyright base */
.sticky-copyright {
    width: 100%;
    transition: all 0.3s ease;
}
.fixed-copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 999999;
}
.close-sticky {
    position: static;
}
/* Prevent footer content from hiding behind sticky copyright */
.footer-wp {
    padding-bottom: 50px !important; 
}
.footer-wp ul li {
    list-style: none;
    padding: 5px 0;
	display: flex;
}
/* ===============================================
  Progress Bar
=============================================== */
#elemento-progress-bar {
  background-color: var(--first-theme-color);
  position: fixed;
  width: 0;
  height: 4px;
  z-index: 99999;
}

#elemento-progress-bar.top {
  top: 0;
}

.admin-bar #elemento-progress-bar.top {
  top: 32px;
}

/* Admin bar responsive fix */
@media only screen and (max-width: 782px) {
  .admin-bar #elemento-progress-bar.top {
    top: 46px;
  }
}

@media only screen and (max-width: 600px) {
  .admin-bar #elemento-progress-bar.top {
    top: 0;
  }
}
/* Product card hover effect */
.woocommerce ul.products li.product{
    overflow: visible;
}
.woocommerce ul.products li.product a{
    display: block;
}
.woocommerce ul.products li.product a:has(img){
    position: relative;
    overflow: hidden;
}
.woocommerce ul.products li.product a img{
    display: block;
    width: 100%;
    transition: transform 0.4s ease;
}
.woocommerce ul.products li.product a:hover img{
    transform: scale(1.1);
}

/* Dedicated custom archive cards */
.dostudni-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dostudni-product-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dostudni-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dostudni-card:hover {
  border-color: rgba(23, 148, 222, 0.55);
  box-shadow: 0 2px 14px rgba(23, 148, 222, 0.16), 0 0 0 2px rgba(23, 148, 222, 0.10);
}

.dostudni-card__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dostudni-card__image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.dostudni-card__title {
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.dostudni-card__title a {
  color: #111;
  text-decoration: none;
}

.dostudni-card__reference {
  margin-top: 4px;
  color: #8c97a0;
  font-size: 12px;
  line-height: 1.2;
}

.dostudni-card__rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.dostudni-card__stars {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 15px;
  letter-spacing: 2px;
}

.dostudni-card__stars-base {
  color: #c8cdd3;
}

.dostudni-card__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f3c54b;
}

.dostudni-card__reviews-link {
  color: #49afe6;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
}

.dostudni-card__price,
.dostudni-card__price .price {
  color: #49afe6;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  margin: 0;
}

.dostudni-card__price ins {
  text-decoration: none;
}

.dostudni-card__price del {
  color: #8f8f8f;
  font-size: 13px;
  margin-right: 6px;
}

.dostudni-card__highlights {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: #666;
  font-size: 11px;
  line-height: 1.35;
}

.dostudni-card__highlights li + li {
  margin-top: 4px;
}

.dostudni-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.dostudni-card__stock,
.dostudni-card__shipping {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  background: transparent !important;
}

.dostudni-card__stock.is-instock {
  color: #2f8d49;
}

.dostudni-card__stock.is-outofstock {
  color: #c73a3a;
}

.dostudni-card__shipping {
  color: #6c7f90;
  position: relative;
  padding-left: 14px;
}

.dostudni-card__shipping::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: #b9c7d3;
  transform: translateY(-50%);
}

.dostudni-card__extras {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.dostudni-card__extra-item {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}

.dostudni-card__extra-item a,
.dostudni-card__extra-item button,
.dostudni-card__extra-item .yith-wcwl-add-to-wishlist a,
.dostudni-card__extra-item .compare {
  color: #7a8791 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.dostudni-card__extra-item .compare,
.dostudni-card__extra-item .yith-wcwl-add-to-wishlist a {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

.dostudni-card__extra-item .compare::before,
.dostudni-card__extra-item .yith-wcwl-add-to-wishlist a::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid #9aa7b2;
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 12px;
}

.dostudni-card__extra-item .yith-wcwl-add-to-wishlist a::before {
  border-radius: 999px;
}

.dostudni-card__extra-item a:hover,
.dostudni-card__extra-item .compare:hover,
.dostudni-card__extra-item .yith-wcwl-add-to-wishlist a:hover {
  color: #49afe6 !important;
}

.dostudni-card__button.button {
  float: none !important;
  display: inline-block !important;
  background: #49afe6 !important;
  border-color: #49afe6 !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 11px 14px !important;
  line-height: 1.2;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin: 0 !important;
}

.dostudni-card__button.button:hover {
  background: #278fc8 !important;
  border-color: #278fc8 !important;
}

.dostudni-card--featured {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dostudni-card--featured .dostudni-card__image {
  min-height: 160px;
  height: 160px;
  background: #fff;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.dostudni-card--featured .dostudni-card__image img {
  max-height: 100%;
  max-width: 100%;
  width: auto !important;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.dostudni-card--featured .dostudni-card__title {
  font-size: 13px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.dostudni-card--featured .dostudni-card__price,
.dostudni-card--featured .dostudni-card__price .price {
  font-size: 13px;
}

.dostudni-card--featured .dostudni-card__highlights {
  display: none;
}

.dostudni-card--featured .dostudni-card__button.button {
  width: 100%;
  min-height: 34px;
}

.dostudni-card--list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 176px;
  gap: 22px;
  align-items: center;
  padding: 14px 18px;
}

.dostudni-card--list .dostudni-card__image {
  width: 180px;
  height: 180px;
  background: #fff;
  border: 1px solid #edf1f5;
  border-radius: 4px;
}

.dostudni-card--list .dostudni-card__image img {
  max-height: 150px;
  width: 150px;
  object-fit: contain;
}

.dostudni-card--list .dostudni-card__body {
  min-width: 0;
}

.dostudni-card--list .dostudni-card__title {
  font-size: 24px;
  line-height: 1.08;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
}

.dostudni-card--list .dostudni-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-width: 168px;
  width: 168px;
  border-left: 1px solid #edf1f5;
  padding-left: 16px;
}

.dostudni-card--list .dostudni-card__price,
.dostudni-card--list .dostudni-card__price .price {
  display: block;
  width: 100%;
  font-size: 28px;
  text-align: center;
  color: #66add8;
  line-height: 1;
  margin-bottom: 2px;
}

.dostudni-card--list .dostudni-card__button.button {
  width: 100%;
  font-size: 11px;
  padding: 9px 10px !important;
  min-height: 34px;
}

.dostudni-card--list .dostudni-card__extras {
  width: 100%;
  gap: 8px;
}

.dostudni-card--list .dostudni-card__extra-item {
  width: 100%;
}

@media only screen and (max-width: 720px) {
  .dostudni-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dostudni-card--list {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .dostudni-card--list .dostudni-card__image {
    width: 72px;
    height: 72px;
  }

  .dostudni-card--list .dostudni-card__image img {
    width: 72px;
    max-height: 72px;
  }

  .dostudni-card--list .dostudni-card__title {
    font-size: 16px;
  }

  .dostudni-card__reference {
    font-size: 11px;
  }

  .dostudni-card__rating-row {
    gap: 8px;
    margin-top: 4px;
  }

  .dostudni-card__stars {
    font-size: 13px;
  }

  .dostudni-card--list .dostudni-card__price,
  .dostudni-card--list .dostudni-card__price .price {
    font-size: 18px;
    text-align: left;
    margin-top: 4px;
  }

  .dostudni-card--list .dostudni-card__actions {
    grid-column: 1 / -1;
    align-items: stretch;
    width: 100%;
    border-left: 0;
    padding-left: 0;
    padding-top: 8px;
  }

  .dostudni-card--list .dostudni-card__button.button {
    width: 100%;
  }

  .dostudni-card__extras {
    gap: 8px;
  }
}

/* Visual tuning closer to dostudni.pl */
.dostudni-shop-page {
  max-width: 1320px;
}

.dostudni-shop-breadcrumb-wrap {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}

.dostudni-shop-breadcrumb-wrap .woocommerce-breadcrumb {
  margin: 0 0 6px 0;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
}

.dostudni-shop-breadcrumb-wrap .woocommerce-breadcrumb a {
  color: #2271b1;
  text-decoration: none;
}

.dostudni-shop-breadcrumb-wrap .woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

.dostudni-filter-nav-up {
  margin-bottom: 10px;
}

.dostudni-filter-nav-up__link {
  font-size: 13px;
  font-weight: 600;
  color: #2271b1;
  text-decoration: none;
}

.dostudni-filter-nav-up__link:hover {
  text-decoration: underline;
}

.dostudni-filter-clear-wrap {
  margin: 0 0 14px 0;
}

.dostudni-filter-clear-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 6px;
  border: 2px solid #2271b1;
  background: #e8f4fc;
  color: #1d2327;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dostudni-filter-clear-btn:hover,
.dostudni-filter-clear-btn:focus {
  background: #2271b1;
  border-color: #135e96;
  color: #fff;
  text-decoration: none;
}

.dostudni-filter-card--price .dostudni-wc-price-slider-form .price_slider {
  margin: 10px 0 14px;
}

.dostudni-filter-card--price .dostudni-wc-price-slider-form .price_slider .ui-slider-range {
  background: #2271b1;
}

.dostudni-filter-card--price .dostudni-wc-price-slider-form .price_slider .ui-slider-handle {
  border-color: #2271b1;
  background: #fff;
  cursor: grab;
}

.dostudni-filter-card--price .dostudni-price-slider-submit,
.dostudni-filter-card--price .dostudni-price-filter--fallback button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  font-weight: 700;
  border-radius: 6px;
  box-sizing: border-box;
}

.dostudni-filter-card--price .price_label {
  font-size: 13px;
  color: #50575e;
  margin-top: 6px;
}

.dostudni-filter-count {
  font-weight: 700;
  color: #6d7278;
}

.dostudni-archive-header {
  margin-bottom: 18px;
}

.dostudni-archive-header .page-title {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  line-height: 1.12;
  padding-bottom: 8px;
  font-weight: 700;
}

.dostudni-shop-layout {
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 18px;
}

.dostudni-filter-card {
  border-radius: 6px;
  border-color: #dfe6ee;
  box-shadow: none;
  padding: 14px;
  margin-bottom: 14px;
}

.dostudni-filter-card h3 {
  font-size: 15px;
  line-height: 1.2;
  text-transform: none;
  padding-bottom: 10px;
  font-weight: 700;
}

.dostudni-filter-list a,
.dostudni-filter-list li,
.dostudni-filter-card label,
.dostudni-filter-card small {
  font-size: 13px;
  line-height: 1.45;
}

.dostudni-filter-list .dostudni-filter-count {
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
}

.dostudni-filter-list a {
  padding: 6px 0;
}

.dostudni-price-filter__hint {
  font-size: 12px;
  line-height: 1.4;
  color: #646970;
  margin: 0 0 10px 0;
}

.dostudni-filter-card--price .dostudni-price-filter label span {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.dostudni-price-filter input {
  padding: 8px 10px;
  border-radius: 4px;
}

.dostudni-price-filter button {
  border-radius: 4px;
  padding: 10px 12px;
}

.dostudni-section-heading h2 {
  font-size: 21px;
  line-height: 1.1;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.dostudni-featured-grid {
  gap: 12px;
}

.dostudni-card--featured {
  padding: 12px;
  border-radius: 8px;
}

.dostudni-card--featured .dostudni-card__image {
  min-height: 160px;
  height: 160px;
  background: #fff;
  border: 1px solid #edf1f5;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.dostudni-card--featured .dostudni-card__image img {
  max-height: 100%;
  max-width: 100%;
  width: auto !important;
  object-fit: contain;
  object-position: center;
}

.dostudni-card--featured .dostudni-card__title {
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  word-break: break-word;
  min-height: calc(1.2em * 4);
}

.dostudni-card--featured .dostudni-card__price,
.dostudni-card--featured .dostudni-card__price .price {
  font-size: 12px;
  color: #66add8;
}

.dostudni-card--featured .dostudni-card__button.button {
  border-radius: 4px !important;
  padding: 9px 10px !important;
  font-size: 10px;
  letter-spacing: 0.2px !important;
}

.dostudni-shop-toolbar {
  margin-bottom: 12px;
}

.dostudni-shop-toolbar .woocommerce-result-count {
  font-size: 13px;
  color: #666;
}

.dostudni-shop-toolbar .woocommerce-ordering select {
  min-width: 190px;
  border: 1px solid #dfe6ee;
  border-radius: 4px;
  padding: 8px 30px 8px 10px;
  font-size: 13px;
  background-color: #fff;
}

.dostudni-product-rows {
  gap: 10px;
}

.dostudni-card--list {
  grid-template-columns: 82px minmax(0, 1fr) 90px 142px;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: none;
}

.dostudni-card--list .dostudni-card__image {
  width: 82px;
  height: 82px;
  background: #fbfbfb;
  border: 1px solid #edf1f5;
  border-radius: 4px;
}

.dostudni-card--list .dostudni-card__image img {
  max-height: 62px;
  width: 62px;
}

.dostudni-card--list .dostudni-card__title {
  font-size: 14px;
  line-height: 1.18;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
}

.dostudni-card--list .dostudni-card__price,
.dostudni-card--list .dostudni-card__price .price {
  font-size: 14px;
  font-weight: 600;
  color: #1794de;
}

.dostudni-card--list .dostudni-card__button.button {
  width: 126px;
  border-radius: 4px !important;
  padding: 9px 10px !important;
  font-size: 11px;
  letter-spacing: 0.2px !important;
}

@media only screen and (max-width: 720px) {
  .dostudni-archive-header .page-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .dostudni-card--featured .dostudni-card__title {
    font-size: 13px;
  }

  .dostudni-card--list {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 10px;
  }

  .dostudni-card--list .dostudni-card__title {
    font-size: 15px;
  }

  .dostudni-card--list .dostudni-card__price,
  .dostudni-card--list .dostudni-card__price .price {
    font-size: 14px;
  }
}

/* Final product layout overrides */
.dostudni-featured-products ul.products li.product.dostudni-product-card,
.dostudni-product-list ul.products li.product.dostudni-product-card {
  padding: 0 !important;
  overflow: visible;
}

/* Siatka sklepu + podobne / upsell: czytelna ramka karty */
.woocommerce ul.products li.product.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) {
  border: 1px solid #e8edf3 !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: none !important;
}

/* Równe wysokości kart w rzędzie (flex zamiast float / inline-table z motywu nadrzędnego) */
.woocommerce ul.products {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.woocommerce ul.products li.product.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) {
  float: none !important;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.related.products .woocommerce ul.products li.product.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured),
.up-sells .woocommerce ul.products li.product.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) {
  display: flex !important;
  flex-direction: column;
  float: none !important;
}

/* Karty „featured” w tym samym ul.products — ten sam flex, żeby wysokości się zgadzały */
.woocommerce ul.products li.product.dostudni-product-card--featured {
  float: none !important;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.dostudni-product-card .dostudni-product-card__inner {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Karty siatkowe (sklep, podobne, upsell): niższa miniaturka | tytuł+cena; przycisk na całą szerokość pod spodem */
.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__inner {
  display: grid;
  grid-template-columns: minmax(72px, 34%) 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: start;
  align-content: stretch;
  padding: 14px 16px;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
}

.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__image {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin: 0 !important;
  max-height: 118px;
  min-height: 0;
  overflow: hidden;
}

.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__image img {
  max-height: 110px;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
}

.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__title {
  margin: 0 0 6px 0;
  padding: 0;
  font-size: 15px !important;
  line-height: 1.25 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  word-break: break-word;
  min-height: calc(1.25em * 4);
}

.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__actions {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  margin: 0 !important;
  padding: 0 !important;
}

.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__actions .button {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  border-radius: 8px !important;
  background: #1794de !important;
  border: 1px solid #1794de !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__actions .button:hover {
  background: #233a95 !important;
  border-color: #233a95 !important;
  color: #fff !important;
}

@media only screen and (max-width: 520px) {
  .dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: stretch;
    flex: 1 1 auto;
  }

  .dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__image {
    grid-column: 1;
    grid-row: 1;
    max-width: 160px;
    justify-self: center;
  }

  .dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__content {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .dostudni-product-card:not(.dostudni-product-card--list):not(.dostudni-product-card--featured) .dostudni-product-card__actions {
    grid-column: 1;
    grid-row: 3;
  }
}

.dostudni-product-card .dostudni-product-card__image,
.dostudni-product-card .dostudni-product-card__content,
.dostudni-product-card .dostudni-product-card__actions {
  float: none !important;
}

.dostudni-product-card .dostudni-product-card__image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dostudni-product-card .dostudni-product-card__image img {
  width: auto !important;
  max-width: 100%;
  height: auto;
  transform: none !important;
}

.dostudni-product-card .dostudni-product-card__title,
.dostudni-product-card .dostudni-product-card__title a {
  font-family: "Fjalla One", sans-serif;
  letter-spacing: 0;
  color: #111;
  text-decoration: none;
}

.dostudni-product-card .dostudni-product-card__price,
.dostudni-product-card .dostudni-product-card__price .price {
  font-family: "Roboto", sans-serif;
  color: #1794de;
  font-weight: 700;
}

/* Przycisk na listach poziomych (np. archiwum lista) — nadal osobna reguła niżej */
.dostudni-product-card .dostudni-product-card__actions .button {
  float: none !important;
  display: inline-block !important;
  margin: 0 !important;
  background: #1794de !important;
  border-color: #1794de !important;
  color: #fff !important;
  border-radius: 8px !important;
  text-align: center;
  font-weight: 700 !important;
}

.dostudni-product-card .dostudni-product-card__actions .button:hover {
  background: #233a95 !important;
  border-color: #233a95 !important;
  color: #fff !important;
}

.dostudni-product-card--featured .dostudni-product-card__inner {
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.dostudni-product-card--featured .dostudni-product-card__image {
  min-height: 150px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.dostudni-product-card--featured .dostudni-product-card__image img {
  max-height: 120px;
}

.dostudni-product-card--featured .dostudni-product-card__content {
  display: block;
}

.dostudni-product-card--featured .dostudni-product-card__title {
  font-size: 18px !important;
  line-height: 1.1 !important;
  margin: 0 0 8px;
  padding: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  word-break: break-word;
  min-height: calc(1.1em * 4);
}

.dostudni-product-card--featured .dostudni-product-card__price,
.dostudni-product-card--featured .dostudni-product-card__price .price {
  font-size: 18px;
  margin: 0;
}

.dostudni-product-card--featured .dostudni-product-card__actions .button {
  width: 100%;
  padding: 10px 12px !important;
  font-size: 14px;
}

.dostudni-product-card--list .dostudni-product-card__inner {
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
}

.dostudni-product-card--list .dostudni-product-card__image {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  background: #fff;
}

.dostudni-product-card--list .dostudni-product-card__image img {
  max-height: 100px;
}

.dostudni-product-card--list .dostudni-product-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.dostudni-product-card--list .dostudni-product-card__title {
  font-size: 26px !important;
  line-height: 0.98 !important;
  margin: 0 0 8px;
  padding: 0;
}

.dostudni-product-card--list .dostudni-product-card__price,
.dostudni-product-card--list .dostudni-product-card__price .price {
  font-size: 24px;
  margin: 0;
}

.dostudni-product-card--list .dostudni-product-card__actions {
  flex: 0 0 180px;
  display: flex;
  justify-content: flex-end;
}

.dostudni-product-card--list .dostudni-product-card__actions .button {
  width: 180px;
  padding: 12px 14px !important;
  font-size: 15px;
}

@media only screen and (max-width: 720px) {
  .dostudni-product-card--list .dostudni-product-card__inner {
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
  }

  .dostudni-product-card--list .dostudni-product-card__image {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .dostudni-product-card--list .dostudni-product-card__image img {
    max-height: 72px;
  }

  .dostudni-product-card--list .dostudni-product-card__title {
    font-size: 18px !important;
    line-height: 1.05 !important;
  }

  .dostudni-product-card--list .dostudni-product-card__price,
  .dostudni-product-card--list .dostudni-product-card__price .price {
    font-size: 18px;
  }

  .dostudni-product-card--list .dostudni-product-card__actions {
    flex: 0 0 132px;
  }

  .dostudni-product-card--list .dostudni-product-card__actions .button {
    width: 132px;
    font-size: 13px;
    padding: 10px 12px !important;
  }
}

/* ===============================================
  DoStudni-inspired storefront refresh
=============================================== */
:root {
  --first-theme-color: #1794DE;
  --second-theme-color: #235992;
  --muted-border: #e5e7eb;
  --surface-soft: #f7f7f8;
  --text-muted: #555;
}

body {
  background: #fff;
  color: #1f2937;
}

.topbar:not(.dostudni-topbar) {
  background: #121212;
  border-bottom: 1px solid #2d2d2d;
}

.dostudni-topbar {
  background: transparent;
  border-bottom: none;
  padding: 0;
}

/* Górny pasek informacji (4 segmenty). Blok jest #header > .dostudni-info-bar (poza .topbar). */
.dostudni-info-bar {
  background: #1794DE;
  color: #fff;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dostudni-info-bar__inner {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.dostudni-info-bar__cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.dostudni-info-bar__cell:last-child {
  border-right: none;
}

/* Reset motywu nadrzędnego: .topbar span { inline-block, tło, duży padding } psuje układ */
.dostudni-info-bar .dostudni-info-bar__cell span,
.dostudni-info-bar .dostudni-info-bar__cell i {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  color: inherit !important;
}

.dostudni-info-bar .dostudni-info-bar__label {
  display: inline !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: inherit !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.dostudni-info-bar__icon-ring {
  flex-shrink: 0;
  flex-grow: 0;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.dostudni-info-bar__icon {
  font-size: 13px !important;
  line-height: 1 !important;
  opacity: 0.95;
}

.dostudni-topbar-legacy {
  background: #121212;
  border-bottom: 1px solid #2d2d2d;
}

.dostudni-topbar-legacy .topbar a.call1,
.dostudni-topbar-legacy .topbar span,
.dostudni-topbar-legacy a.call1,
.dostudni-topbar-legacy span {
  color: #fff;
  font-weight: 600;
}

@media (min-width: 992px) {
  .dostudni-topbar-legacy {
    display: none !important;
  }
}

@media (max-width: 991px) and (min-width: 576px) {
  .dostudni-info-bar__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dostudni-info-bar__cell {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 12px 14px;
    font-size: 13px;
    justify-content: flex-start;
  }

  .dostudni-info-bar__cell:nth-child(2n) {
    border-right: none;
  }

  .dostudni-info-bar__cell:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 575px) {
  .dostudni-info-bar__inner {
    grid-template-columns: 1fr;
  }

  .dostudni-info-bar__cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 10px 16px;
    font-size: 13px;
    justify-content: flex-start;
  }

  .dostudni-info-bar__cell:last-child {
    border-bottom: none;
  }
}

.topbar a.call1,
.topbar span {
  color: #fff;
  font-weight: 600;
}

.dostudni-topbar.topbar a.call1,
.dostudni-topbar.topbar span {
  color: inherit;
}

.menu-header {
  border-top: 0;
  border-bottom: 1px solid var(--muted-border);
}

.menu-header .primary-navigation ul li a {
  font-size: 14px;
  letter-spacing: 0.2px;
}

.menu-header .primary-navigation ul li a:hover,
.menu-header .primary-navigation .current-menu-item > a {
  color: #0d3d5c;
  background: #e8f4fc;
}

.search-cat-box {
  border-radius: 999px;
  border-color: #d1d5db;
}

/* Rozwijana lista kategorii (.product-cat) jest position:absolute — rodzic nie może mieć overflow:hidden, inaczej lista jest „niewidoczna” po kliknięciu */
.mid-header .search-cat-box {
  overflow: visible !important;
}
.mid-header .border-cat {
  position: relative;
  z-index: 10050;
}
.mid-header .border-cat .product-cat {
  z-index: 10051;
  background: #fff;
}

/* Wyszukiwarka: wybór kategorii = przyciski (bez linku do archiwum) */
.search-cat-box .product-cat li.drp_dwn_menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.search-cat-box .product-cat button.dostudni-search-pick-cat {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  font: inherit;
  text-align: left;
  color: #3f3f3f;
  cursor: pointer;
}
.search-cat-box .product-cat button.dostudni-search-pick-cat:hover,
.search-cat-box .product-cat button.dostudni-search-pick-cat:focus {
  color: var(--first-theme-color, #1794de);
  outline: none;
}
.search-cat-box button.product-btn .dostudni-search-cat-label {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.logo a,
.logo p a {
  color: #111;
}

.cat-content {
  background: #111;
  color: #fff;
}

/* Product listing cards - archive layout */
.woocommerce.archive,
.woocommerce-page.archive {
  background: #f7f7f7;
}

.dostudni-shop-page {
  padding-top: 26px !important;
}

.dostudni-archive-header {
  margin-bottom: 22px;
}

.dostudni-archive-description {
  max-width: 1100px;
  margin-top: 14px;
  color: var(--text-muted);
}

.dostudni-section-heading h2 {
  font-size: 28px;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.dostudni-shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dostudni-shop-sidebar {
  position: sticky;
  top: 24px;
}

.dostudni-filter-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.dostudni-filter-card h3 {
  font-size: 20px;
  letter-spacing: 0;
  padding-bottom: 12px;
  margin-bottom: 0;
}

.dostudni-filter-list {
  list-style: none;
  margin: 0;
}

.dostudni-filter-list li + li {
  border-top: 1px solid #efefef;
}

.dostudni-filter-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  color: #111;
  padding: 10px 0;
  text-decoration: none;
}

.dostudni-filter-list li.is-active > a {
  font-weight: 700;
}

.dostudni-filter-list--checks a {
  justify-content: flex-start;
}

.dostudni-filter-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #bbb;
  border-radius: 3px;
  flex: 0 0 16px;
  background: #fff;
}

.dostudni-filter-list li.is-active .dostudni-filter-checkbox {
  background: var(--first-theme-color);
  border-color: #111;
}

.dostudni-price-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dostudni-price-filter label {
  display: block;
}

.dostudni-price-filter span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.dostudni-price-filter input {
  width: 100%;
  margin: 0;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  padding: 10px 12px;
}

.dostudni-price-filter button {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 700;
  padding: 11px 14px;
}

.dostudni-featured-products {
  margin-bottom: 28px;
}

.dostudni-featured-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dostudni-product-list ul.products {
  display: block !important;
}

.dostudni-featured-products ul.products li.product,
.dostudni-product-list ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #e4e4e4 !important;
  border-radius: 12px;
  box-shadow: none !important;
  background: #fff;
  padding: 14px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transform: none !important;
}

.dostudni-product-list ul.products li.product {
  display: flex !important;
  gap: 22px;
  align-items: center;
  min-height: 0;
  margin-bottom: 14px !important;
}

.dostudni-featured-products ul.products li.product:hover,
.dostudni-product-list ul.products li.product:hover {
  box-shadow: none !important;
  border-color: #d7d7d7 !important;
}

.dostudni-featured-products ul.products li.product a:has(img),
.dostudni-product-list ul.products li.product a:has(img) {
  background: #fff;
  border-radius: 8px;
  min-height: 170px;
  height: 170px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
}

.dostudni-featured-products ul.products li.product a img,
.dostudni-product-list ul.products li.product a img {
  max-height: 100%;
  width: auto !important;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none !important;
}

.dostudni-featured-products ul.products li.product a:hover img,
.dostudni-product-list ul.products li.product a:hover img {
  transform: none !important;
}

.dostudni-product-list ul.products li.product a:has(img) {
  min-height: 0;
  display: grid !important;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: transparent;
  padding: 0;
  flex: 1 1 auto;
}

.dostudni-product-list ul.products li.product a img {
  max-height: 100px;
  width: 100px !important;
  object-fit: contain;
}

.dostudni-featured-products ul.products li.product .woocommerce-loop-product__title,
.dostudni-product-list ul.products li.product .woocommerce-loop-product__title {
  font-size: 21px;
  line-height: 1.1;
  min-height: 56px;
  color: #101010;
  margin-top: 12px;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.dostudni-product-list ul.products li.product .woocommerce-loop-product__title {
  min-height: 0;
  margin: 0;
  font-size: 24px;
  line-height: 0.98;
}

.dostudni-featured-products ul.products li.product .price,
.dostudni-product-list ul.products li.product .price {
  font-family: "Roboto", sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #4aa4d8;
  margin-bottom: 0;
  line-height: 1.1;
}

.dostudni-featured-products ul.products li.product .price ins,
.dostudni-product-list ul.products li.product .price ins {
  text-decoration: none;
}

.dostudni-featured-products ul.products li.product .price del,
.dostudni-product-list ul.products li.product .price del {
  color: #8f8f8f;
  font-size: 13px;
  margin-right: 6px;
}

.woocommerce span.onsale {
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-checkout__actions_row button.wc-block-components-checkout-place-order-button {
  border-radius: 8px;
  border: 1px solid #111;
  padding: 10px 14px !important;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px !important;
  transition: all 0.2s ease;
}

.dostudni-featured-products ul.products li.product a.button,
.dostudni-product-list ul.products li.product a.button {
  width: 100%;
  margin-top: auto;
  text-align: center;
  background: #49afe6 !important;
  color: #fff !important;
  border-color: #49afe6 !important;
  float: none !important;
  display: inline-block !important;
}

.dostudni-product-list ul.products li.product a.button {
  margin: 0;
  align-self: center;
  width: 180px;
  min-width: 180px;
  padding: 12px 16px !important;
  font-size: 16px;
  line-height: 1.2;
  border-radius: 6px;
}

.dostudni-product-list ul.products li.product .price {
  justify-self: center;
  text-align: left;
  font-size: 24px;
  min-width: 120px;
  margin-left: auto;
  margin-right: 0;
}

.dostudni-featured-products ul.products li.product a.button {
  display: none !important;
}

.dostudni-product-list ul.products li.product .woocommerce-loop-product__title,
.dostudni-product-list ul.products li.product .price {
  padding: 0;
}

.dostudni-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dostudni-shop-toolbar .woocommerce-result-count {
  margin: 0;
  color: #444;
}

.dostudni-shop-toolbar .woocommerce-ordering {
  float: none;
  margin: 0;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-checkout__actions_row button.wc-block-components-checkout-place-order-button:hover {
  background: #278fc8 !important;
  color: #fff !important;
  border-color: #278fc8 !important;
}

/* Product page — layout closer to dostudni.pl */
.single-product .product {
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  padding: 24px 24px 28px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.single-product .woocommerce-breadcrumb {
  font-size: 15px;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 16px 0;
  padding: 10px 0 0;
  line-height: 1.5;
}

.single-product .woocommerce-breadcrumb a {
  color: #233a95;
  font-weight: 600;
}

.single-product .woocommerce-breadcrumb a:hover {
  color: #1794de;
}

.single-product .woocommerce-breadcrumb .breadcrumb-separator,
.single-product nav.woocommerce-breadcrumb .delimiter {
  color: #94a3b8;
  margin: 0 0.35em;
}

.dostudni-product-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 6px;
}

.woocommerce div.product .product_title,
.woocommerce div.product .dostudni-product-title-row .product_title {
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.18;
  margin: 0;
  flex: 1 1 240px;
  letter-spacing: -0.02em;
}

.dostudni-product-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 120px;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fff;
}

.dostudni-product-brand-logo img {
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
}

/* Blok ocen jak dostudni.pl: gwiazdki + link, disclaimer, producent, podpowiedź */
.dostudni-rating-stack {
  margin: 0 0 24px 0;
  max-width: 100%;
}

.dostudni-rating-stack .woocommerce-product-rating.dostudni-product-rating--summary {
  margin: 0 0 10px 0;
  display: block;
}

.dostudni-product-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.dostudni-product-rating-row--has-rating .star-rating {
  float: none;
  margin: 0 !important;
  font-size: 22px;
  width: 6.2em;
  letter-spacing: 0.04em;
  color: #f5b400;
}

.dostudni-summary-stars.dostudni-card__stars {
  font-size: 22px;
  letter-spacing: 0.12em;
}

.dostudni-reviews-disclaimer {
  margin: 0 0 16px 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dostudni-reviews-disclaimer__icon {
  color: #1794de;
  font-size: 18px;
  line-height: 1;
}

.dostudni-product-producer {
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #0f172a;
}

.dostudni-product-producer strong {
  font-weight: 700;
  color: #111827;
}

.dostudni-product-producer a {
  color: #1794de;
  font-weight: 600;
  text-decoration: none;
}

.dostudni-product-producer a:hover {
  color: #233a95;
  text-decoration: underline;
}

.dostudni-soft-rule {
  display: block;
  border: 0;
  border-top: 1px solid #e4e9f0;
  margin: 14px 0;
  height: 0;
  padding: 0;
}

.dostudni-product-inquiry-hint {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #64748b;
}

.dostudni-product-inquiry-hint strong {
  color: #0f172a;
  font-weight: 700;
}

.woocommerce div.product .woocommerce-review-link,
.dostudni-rating-stack .woocommerce-review-link {
  font-size: 16px;
  font-weight: 600;
  color: #1794de;
  text-decoration: none;
}

.woocommerce div.product .woocommerce-review-link:hover,
.dostudni-rating-stack .woocommerce-review-link:hover {
  color: #233a95;
  text-decoration: underline;
}

/*
 * Cena na karcie produktu: tylko <p class="price"> jest kontenerem flex.
 * Wewnętrzny <span class="price"> z WooCommerce NIE może dostawać inline-flex — psuje kwotę i „brutto”.
 */
.single-product div.product .summary p.price {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.22em;
  row-gap: 0.3em;
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  color: #1794de !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.single-product div.product .summary p.price > span.price {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  letter-spacing: inherit;
}

.single-product div.product .summary p.price del {
  color: #64748b !important;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
}

.single-product div.product .summary p.price ins {
  text-decoration: none;
  color: #1794de !important;
  font-weight: 400;
}

.single-product div.product .summary p.price .dostudni-price-suffix-brutto {
  flex-shrink: 0;
  display: inline-block;
  font-size: clamp(14px, 0.55em, 1rem);
  font-weight: 500;
  color: #475569 !important;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: lowercase;
  margin: 0;
  padding: 0 0 0 0.12em;
  vertical-align: baseline;
}

/* Meta: kategoria, marka, tagi — jedna kolumna etykiet, druga linków */
.single-product .dostudni-product-meta {
  margin: 0 0 8px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #334155;
}

.single-product .dostudni-product-meta__row {
  display: grid;
  grid-template-columns: minmax(88px, 32%) 1fr;
  gap: 10px 14px;
  align-items: start;
}

@media (max-width: 520px) {
  .single-product .dostudni-product-meta__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.single-product .dostudni-product-meta__label {
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  padding-top: 2px;
}

.single-product .dostudni-product-meta__value.sku {
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.single-product .dostudni-product-meta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  min-width: 0;
}

.single-product .dostudni-product-meta__links a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: #fff;
  color: #0f172a !important;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  line-height: 1.35;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.single-product .dostudni-product-meta__links a:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.single-product .yith-wcwl-add-to-wishlist a,
.single-product .yith-wcwl-add-to-wishlist .add_to_wishlist {
  font-size: 15px;
  font-weight: 600;
}

.woocommerce ul.products li.product .price .dostudni-price-suffix-brutto {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a !important;
  letter-spacing: 0;
  text-transform: lowercase;
  line-height: 1;
  align-self: flex-end;
  margin-bottom: 0.08em;
}

.dostudni-product-card__price .price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.dostudni-product-card__price .dostudni-price-suffix-brutto {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a !important;
  text-transform: lowercase;
  line-height: 1;
  align-self: flex-end;
  margin-bottom: 0.06em;
}

.dostudni-product-card--list .dostudni-product-card__price .dostudni-price-suffix-brutto {
  font-size: 13px;
}

/* CTA jak dostudni.pl: Do koszyka nad Zapytaj, pełna szerokość, większe przyciski */
.dostudni-product-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 20px;
  width: 100%;
}

.dostudni-product-cta-row form.cart {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

/* Produkt prosty: ukryta ilość (zostaje domyślna 1) — jak na sklepie wzorcowym */
.single-product .product-type-simple .dostudni-product-cta-row form.cart .quantity {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dostudni-product-cta-row form.cart .quantity {
  margin: 0 !important;
}

.dostudni-product-cta-row form.cart .quantity input.qty {
  min-height: 52px;
  border-radius: 8px;
}

.dostudni-btn-ask-product {
  grid-column: 1;
  grid-row: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  text-align: center;
  padding: 18px 24px !important;
  min-height: 58px;
  font-size: 17px !important;
  line-height: 1.25 !important;
  border-radius: 10px !important;
  border: 2px solid #1794de !important;
  background: #fff !important;
  color: #1794de !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.dostudni-btn-ask-product:hover {
  background: #f0f9ff !important;
  border-color: #233a95 !important;
  color: #233a95 !important;
}

/* ---------- Drawer "Zapytaj o produkt" ---------- */
.dostudni-drawer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
}

.dostudni-drawer[aria-hidden="false"] {
  pointer-events: auto;
}

.dostudni-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dostudni-drawer[aria-hidden="false"] .dostudni-drawer__overlay {
  opacity: 1;
}

.dostudni-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dostudni-drawer[aria-hidden="false"] .dostudni-drawer__panel {
  transform: translateX(0);
}

.dostudni-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e8ecf1;
  flex-shrink: 0;
}

.dostudni-drawer__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #1e2328;
}

.dostudni-drawer__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #5a6168;
  cursor: pointer;
  padding: 4px 8px;
}

.dostudni-drawer__close:hover {
  color: #111;
}

.dostudni-drawer__product-hint {
  padding: 12px 20px;
  background: #f0f9ff;
  font-size: 14px;
  line-height: 1.35;
  color: #1e2328;
  border-bottom: 1px solid #e8ecf1;
  flex-shrink: 0;
}

.dostudni-drawer__body {
  padding: 20px;
  flex: 1 1 auto;
}

.dostudni-drawer__body .wpcf7 {
  max-width: 100%;
}

.dostudni-drawer__body .wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.dostudni-drawer__body .wpcf7 input[type="text"],
.dostudni-drawer__body .wpcf7 input[type="email"],
.dostudni-drawer__body .wpcf7 input[type="tel"],
.dostudni-drawer__body .wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d0d7df;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.dostudni-drawer__body .wpcf7 input:focus,
.dostudni-drawer__body .wpcf7 textarea:focus {
  border-color: #1794de;
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 148, 222, 0.12);
}

.dostudni-drawer__body .wpcf7 textarea {
  min-height: 100px;
  resize: vertical;
}

.dostudni-drawer__body .wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #1794de;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dostudni-drawer__body .wpcf7 input[type="submit"]:hover {
  background: #233a95;
}

.dostudni-drawer__body .wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 10px 14px !important;
  border-radius: 6px;
  font-size: 14px;
}

.dostudni-drawer__body .wpcf7-mail-sent-ok,
.dostudni-drawer__body .wpcf7 form.sent .wpcf7-response-output {
  border-color: #22c55e !important;
  background: #f0fdf4;
  color: #166534;
}

body.dostudni-drawer-open {
  overflow: hidden !important;
}

@media only screen and (max-width: 480px) {
  .dostudni-drawer__panel {
    width: 100vw;
    max-width: 100vw;
  }
}

.single-product .woocommerce div.product .dostudni-product-cta-row form.cart .button,
.single-product .woocommerce div.product .dostudni-product-cta-row form.cart .single_add_to_cart_button {
  flex: none;
  width: 100% !important;
  padding: 18px 24px !important;
  min-height: 58px;
  font-size: 17px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  background: #1794de !important;
  border-color: #1794de !important;
  color: #fff !important;
}

.single-product .woocommerce div.product form.cart .button:hover,
.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: #233a95 !important;
  border-color: #233a95 !important;
  color: #fff !important;
}

.dostudni-product-spec-table {
  margin: 20px 0 8px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 10px;
}

.dostudni-product-spec-table__grid {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
}

.dostudni-product-spec-table__grid th,
.dostudni-product-spec-table__grid td {
  padding: 10px 12px 10px 0;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #e4e9f0;
}

.dostudni-product-spec-table__grid tr:last-child th,
.dostudni-product-spec-table__grid tr:last-child td {
  border-bottom: none;
}

.dostudni-product-spec-table__grid th {
  width: 38%;
  max-width: 200px;
  color: #64748b;
  font-weight: 600;
}

.dostudni-product-spec-table__grid td {
  color: #0f172a;
  font-weight: 600;
}

.single-product .woocommerce-product-gallery {
  position: relative;
}

.dostudni-product-is-new .woocommerce-product-gallery::before {
  content: "NOWOŚĆ";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 12;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  pointer-events: none;
}

.single-product .woocommerce-tabs {
  margin-top: 28px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.single-product .woocommerce-tabs ul.tabs {
  margin: 0 !important;
  padding: 0 !important;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf3 !important;
}

.single-product .woocommerce-tabs ul.tabs::before {
  border-color: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #475569 !important;
  padding: 14px 20px !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: #1794de !important;
}

.single-product .woocommerce-tabs ul.tabs li.active {
  border-bottom: 2px solid #1794de !important;
}

.single-product .woocommerce-tabs .panel {
  padding: 20px 22px 24px !important;
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
}

/*
 * Formularz recenzji: globalne width:100% na inputach (motyw nadrzędny) + flex w rzędzie
 * psuje pola Nazwa/E-mail. Układ pionowy + pełna szerokość pól.
 */
.woocommerce-Reviews #commentform p.comment-form-author,
.woocommerce-Reviews #commentform p.comment-form-email,
.woocommerce-Reviews #commentform p.comment-form-url {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px 0 !important;
  float: none !important;
}

.woocommerce-Reviews #commentform p.comment-form-author label,
.woocommerce-Reviews #commentform p.comment-form-email label,
.woocommerce-Reviews #commentform p.comment-form-url label {
  white-space: normal !important;
  margin: 0 !important;
  font-weight: 600;
  color: #334155;
}

.woocommerce-Reviews #commentform p.comment-form-author input,
.woocommerce-Reviews #commentform p.comment-form-email input,
.woocommerce-Reviews #commentform p.comment-form-url input {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
}

.woocommerce-Reviews #commentform p.comment-form-comment {
  display: block !important;
  width: 100%;
  float: none !important;
  margin: 0 0 16px 0 !important;
}

.woocommerce-Reviews #commentform p.comment-form-comment textarea {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 8px !important;
}

.woocommerce-Reviews #commentform .comment-form-rating {
  margin-bottom: 16px;
}

.woocommerce-Reviews #commentform .form-submit {
  margin-top: 8px;
  clear: both;
  float: none !important;
}

/* Cart + checkout clarity — bez ujemnych marginesów .new-text .alignwide (motyw nadrzędny), bo obcina lewą stronę przy overflow-x:hidden */
.new-text .wp-block-woocommerce-checkout,
.new-text .wp-block-woocommerce-cart {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
}

.new-text .wp-block-woocommerce-checkout.alignwide,
.new-text .wp-block-woocommerce-cart.alignwide,
.new-text .wp-block-woocommerce-checkout .alignwide,
.new-text .wp-block-woocommerce-cart .alignwide,
.new-text .wp-block-woocommerce-checkout .alignfull,
.new-text .wp-block-woocommerce-cart .alignfull,
.new-text .wc-block-components-sidebar-layout {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.new-text form.checkout.woocommerce-checkout {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
}

.wp-block-woocommerce-cart table.wc-block-cart-items,
.wc-block-cart .wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  border: 1px solid #d9dde3;
  border-radius: 12px;
  background: #fff;
}

.wc-block-cart .wc-block-cart-item__product a,
.wc-block-components-product-name {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
  font-size: 15px;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  background: #111;
  color: #fff;
  border-radius: 999px;
}

.wp-block-woocommerce-cart .wc-block-components-main,
.wp-block-woocommerce-checkout .wc-block-components-main {
  padding-right: 24px !important;
}

.wc-block-checkout__shipping-method-option,
.wc-block-components-radio-control__option,
.wc-block-components-address-form__country {
  border-radius: 10px;
}

.wc-block-components-text-input input,
.wc-block-components-text-input select,
.wc-block-components-combobox .components-combobox-control__input {
  border-radius: 8px !important;
  border-color: #cfd4dc !important;
}

.wc-block-components-notice-banner {
  border-radius: 10px;
}

.footer-wp {
  background: #111;
}

.copyright-wrapper {
  background: #ffca04;
  color: #111;
  font-weight: 600;
}

/* Final price block fix */
.dostudni-card--list .dostudni-card__actions {
  width: 176px !important;
  min-width: 176px !important;
  align-items: center !important;
  gap: 10px !important;
}

.dostudni-card--list .dostudni-card__price {
  width: 150px !important;
  align-self: center !important;
}

.dostudni-card--list .dostudni-card__price .price,
.dostudni-card--list .dostudni-card__price {
  display: block !important;
  width: 150px !important;
  text-align: center !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  color: #66add8 !important;
  margin: 0 !important;
}

.dostudni-card--list .dostudni-card__price del {
  display: block;
  margin: 0 0 4px 0;
  font-size: 12px;
}

.dostudni-card--list .dostudni-card__price ins {
  display: block;
}

.dostudni-card--list .dostudni-card__button.button {
  width: 150px !important;
  align-self: center !important;
}

.dostudni-card--list .dostudni-card__extras {
  width: 150px !important;
  align-self: center !important;
}

@media only screen and (max-width: 720px) {
  .dostudni-card--list .dostudni-card__actions,
  .dostudni-card--list .dostudni-card__price,
  .dostudni-card--list .dostudni-card__price .price,
  .dostudni-card--list .dostudni-card__button.button,
  .dostudni-card--list .dostudni-card__extras {
    width: 100% !important;
  }

  .dostudni-card--list .dostudni-card__price,
  .dostudni-card--list .dostudni-card__price .price {
    text-align: left !important;
    font-size: 18px !important;
  }
}

/* Final typography bump */
.dostudni-card--list .dostudni-card__title {
  font-size: 22px !important;
  line-height: 1.12 !important;
}

.dostudni-card__rating-row {
  margin-top: 8px !important;
  margin-bottom: 6px !important;
}

.dostudni-card__stars {
  font-size: 16px !important;
}

.dostudni-card__reviews-link,
.dostudni-card__reference {
  font-size: 13px !important;
}

.dostudni-card__highlights {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.dostudni-card__stock,
.dostudni-card__shipping {
  font-size: 13px !important;
}

.dostudni-card__extra-item,
.dostudni-card__extra-item a,
.dostudni-card__extra-item button,
.dostudni-card__extra-item .yith-wcwl-add-to-wishlist a,
.dostudni-card__extra-item .compare {
  font-size: 13px !important;
}

.dostudni-card--list .dostudni-card__price,
.dostudni-card--list .dostudni-card__price .price {
  font-size: 28px !important;
}

.dostudni-card--list .dostudni-card__button.button {
  font-size: 13px !important;
}

.dostudni-card--featured .dostudni-card__title {
  font-size: 15px !important;
}

.dostudni-card--featured .dostudni-card__price,
.dostudni-card--featured .dostudni-card__price .price {
  font-size: 16px !important;
}

.dostudni-card--featured .dostudni-card__button.button {
  font-size: 12px !important;
}

@media only screen and (max-width: 720px) {
  .dostudni-card--list .dostudni-card__title {
    font-size: 18px !important;
  }

  .dostudni-card__highlights {
    font-size: 12px !important;
  }

  .dostudni-card__reviews-link,
  .dostudni-card__reference,
  .dostudni-card__stock,
  .dostudni-card__shipping,
  .dostudni-card__extra-item,
  .dostudni-card__extra-item a,
  .dostudni-card__extra-item button,
  .dostudni-card__extra-item .yith-wcwl-add-to-wishlist a,
  .dostudni-card__extra-item .compare {
    font-size: 12px !important;
  }

  .dostudni-card--list .dostudni-card__price,
  .dostudni-card--list .dostudni-card__price .price {
    font-size: 21px !important;
  }
}

/* Final typography refinement */
body,
input,
select,
textarea,
button,
.woocommerce,
.woocommerce p,
.woocommerce li,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo a,
.logo p a,
.menu-header .primary-navigation ul li a,
.topbar .primary-navigation a,
.dostudni-archive-header .page-title,
.dostudni-section-heading h2,
.dostudni-filter-card h3,
.dostudni-card__title,
.woocommerce-loop-product__title,
.woocommerce div.product .product_title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  letter-spacing: 0 !important;
}

.logo a,
.logo p a {
  font-weight: 700 !important;
}

.menu-header .primary-navigation ul li a,
.topbar .primary-navigation a {
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

.dostudni-archive-header .page-title {
  font-weight: 700 !important;
}

.dostudni-filter-card h3,
.dostudni-section-heading h2 {
  font-weight: 700 !important;
}

.dostudni-card--list .dostudni-card__title,
.dostudni-card--featured .dostudni-card__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.dostudni-card__reference,
.dostudni-card__reviews-link,
.dostudni-card__highlights,
.dostudni-card__stock,
.dostudni-card__shipping,
.dostudni-card__extra-item,
.dostudni-card__extra-item a,
.dostudni-card__extra-item button,
.dostudni-card__extra-item .yith-wcwl-add-to-wishlist a,
.dostudni-card__extra-item .compare,
.woocommerce-result-count,
.woocommerce-ordering select {
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
}

.dostudni-card__button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

/* Header menu refinement */
@media only screen and (min-width: 1001px) {
  .menu-header {
    border-top: 1px solid #dfe6ee !important;
    border-bottom: 1px solid #dfe6ee !important;
    background: #fff;
  }

  .menu-header .container {
    max-width: 1320px;
  }

  .menu-header .row {
    position: relative;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .menu-header .row > .col-lg-10,
  .menu-header .row > .col-lg-12,
  .menu-header .row > .col-md-9,
  .menu-header .row > .col-md-12 {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .menu-header .menu-brand.primary-nav {
    display: flex;
    align-items: stretch;
    width: 100%;
  }

  .menu-header nav.primary-navigation {
    width: 100%;
  }

  .menu-header .primary-navigation .main-menu-navigation > ul,
  .menu-header .primary-navigation ul.mobile_nav {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .menu-header .primary-navigation ul li {
    display: flex;
    align-items: stretch;
    margin: 0;
    float: none;
    border-left: 1px solid #dfe6ee;
  }

  .menu-header .primary-navigation ul li:last-child {
    border-right: 1px solid #dfe6ee;
  }

  .menu-header .primary-navigation ul li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px !important;
    border: 0 !important;
    background: #fff;
    white-space: nowrap;
    line-height: 1;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  .menu-header .primary-navigation ul li.menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    display: inline-block;
    flex: 0 0 7px;
  }

  .menu-header .primary-navigation ul ul {
    top: 48px;
    min-width: 240px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
  }

  .menu-header .primary-navigation ul ul li,
  .menu-header .primary-navigation ul ul li:last-child {
    border: 0;
  }

  .menu-header .primary-navigation ul ul a {
    justify-content: flex-start;
    min-height: 0;
    padding: 12px 16px !important;
    font-size: 13px !important;
    line-height: 1.3;
  }

  /* Koszyk i konto są w .mid-header; ukryj duplikat w pasku menu (zostaje w drawerze mobilnym). */
  .menu-header #navbar-header .cart_no {
    display: none !important;
  }
}

@media only screen and (max-width: 720px) {
  .dostudni-shop-layout {
    grid-template-columns: 1fr;
  }

  .dostudni-shop-sidebar {
    position: static;
  }

  .dostudni-featured-products ul.products,
  .dostudni-product-list ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dostudni-product-list ul.products {
    display: block !important;
  }

  .dostudni-featured-products ul.products li.product,
  .dostudni-product-list ul.products li.product {
    min-height: 320px;
    padding: 10px !important;
  }

  .dostudni-product-list ul.products li.product {
    display: flex;
    min-height: 0;
    gap: 12px;
  }

  .dostudni-product-list ul.products li.product a:has(img) {
    min-height: 0;
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr);
    background: transparent;
    padding: 0;
    gap: 12px;
  }

  .dostudni-product-list ul.products li.product a img {
    max-height: 72px;
    width: 72px !important;
  }

  .dostudni-featured-products ul.products li.product .woocommerce-loop-product__title,
  .dostudni-product-list ul.products li.product .woocommerce-loop-product__title {
    min-height: 0;
    font-size: 18px;
    line-height: 1.05;
  }

  .dostudni-featured-products ul.products li.product .price,
  .dostudni-product-list ul.products li.product .price {
    font-size: 20px;
  }

  .dostudni-product-list ul.products li.product .price {
    text-align: left;
    justify-self: start;
    min-width: 0;
    margin-left: 0;
  }

  .dostudni-product-list ul.products li.product a.button {
    width: 135px;
    min-width: 135px;
    font-size: 14px;
    padding: 10px 12px !important;
  }

  .dostudni-featured-products ul.products li.product a.button,
  .dostudni-product-list ul.products li.product a.button {
    font-size: 15px;
  }

  .dostudni-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dostudni-price-filter {
    grid-template-columns: 1fr;
  }

  .woocommerce div.product .product_title {
    font-size: 28px;
  }

  .wp-block-woocommerce-cart .wc-block-components-main,
  .wp-block-woocommerce-checkout .wc-block-components-main {
    padding-right: 0 !important;
  }
}

/* Mid-header: Ulubione / Zaloguj / Koszyk — układ jak na dostudni.pl (ikona, pod spodem podpis) */
.mid-header .dostudni-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px 26px;
  padding: 2px 0;
}

.mid-header .dostudni-header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 52px;
  max-width: 92px;
  text-decoration: none !important;
  color: #3d4349 !important;
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  transition: color 0.15s ease;
}

.mid-header .dostudni-header-action:hover,
.mid-header .dostudni-header-action:focus {
  color: #111 !important;
}

.mid-header .dostudni-header-action__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  font-size: 22px;
  line-height: 1;
  color: #2f3439;
}

.mid-header .dostudni-header-action__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.mid-header .dostudni-header-action__badge {
  position: absolute;
  top: -5px;
  right: -11px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1794DE;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

@media only screen and (max-width: 767px) {
  .mid-header .dostudni-mid-actions {
    width: 100%;
  }

  .mid-header .dostudni-header-actions {
    justify-content: center;
    gap: 16px 22px;
  }
}

/* ---------- Strona główna: kategorie, Nowości ---------- */
.dostudni-home-cats {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
}

.dostudni-home-cats__heading {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  margin: 0 0 1rem !important;
  letter-spacing: 0 !important;
  text-align: center;
  color: #1e2328 !important;
}

.dostudni-home-cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 14px 12px;
}

.dostudni-home-cats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: #2a2f34 !important;
  text-align: center;
  padding: 10px 6px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fafbfc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dostudni-home-cats__item:hover,
.dostudni-home-cats__item:focus {
  border-color: #c5d6e6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.dostudni-home-cats__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.dostudni-home-cats__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Fallback wizualny kategorii (gdy brak miniatury w WooCommerce) */
.dostudni-home-cats__thumb--fallback {
  background: linear-gradient(145deg, #1794DE, #235992);
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.dostudni-home-cats__thumb--fallback i {
  opacity: 0.95;
}

.dostudni-home-cats__thumb--accessories {
  background: linear-gradient(145deg, #5c6bc0, #3949ab);
}

.dostudni-home-cats__thumb--borehole {
  background: linear-gradient(145deg, #00838f, #006064);
}

.dostudni-home-cats__thumb--inverter {
  background: linear-gradient(145deg, #26a69a, #00695c);
}

.dostudni-home-cats__thumb--radiator {
  background: linear-gradient(145deg, #e64a19, #bf360c);
}

.dostudni-home-cats__thumb--tools {
  background: linear-gradient(145deg, #6d4c41, #4e342e);
}

.dostudni-home-cats__thumb--misc {
  background: linear-gradient(145deg, #78909c, #546e7a);
}

.dostudni-home-cats__thumb--heatpump {
  background: linear-gradient(145deg, #039be5, #0277bd);
}

.dostudni-home-cats__thumb--wellpump {
  background: linear-gradient(145deg, #0288d1, #01579b);
}

.dostudni-home-cats__thumb--pipes {
  background: linear-gradient(145deg, #43a047, #2e7d32);
}

.dostudni-home-cats__thumb--tank {
  background: linear-gradient(145deg, #7e57c2, #5e35b1);
}

.dostudni-home-cats__thumb--default {
  background: linear-gradient(145deg, #546e7a, #37474f);
}

.dostudni-home-cats__label {
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.dostudni-home-section {
  background: #f6f8fb;
  border-bottom: 1px solid #e8ecf1;
}

.dostudni-home-section + .dostudni-home-section {
  background: #fff;
}

/* Nagłówek jak „Najciekawsze oferty w kategoriach”: 3 kolumny (pusty | tytuł | Zobacz więcej) — bez wpływu na siatkę produktów poniżej */
.dostudni-home-section__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 1.25rem;
}

.dostudni-home-section__head-spacer {
  min-width: 0;
}

.dostudni-home-section__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
  color: #1e2328 !important;
  text-align: center;
}

.dostudni-home-section__more {
  justify-self: end;
  white-space: nowrap;
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  color: #1794DE !important;
  text-decoration: none !important;
}

.dostudni-home-section__more:hover {
  text-decoration: underline !important;
}

@media only screen and (max-width: 767px) {
  .dostudni-home-section__head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dostudni-home-section__head-spacer {
    display: none;
  }

  .dostudni-home-section__more {
    justify-self: center;
  }
}

/* Siatka 4 kolumn — przy 1 produkcie karta zajmuje ~¼ szerokości (nie rozciąga się na całość jak przy auto-fit). */
.dostudni-home-grid--cols4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media only screen and (max-width: 1199px) {
  .dostudni-home-grid--cols4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 991px) {
  .dostudni-home-grid--cols4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Koszyk pusty (blok WC): „Nowe w sklepie” — karty jak na stronie głównej (dostudni-card), nie domyślna siatka bloków */
.wp-block-woocommerce-empty-cart-block .wc-block-grid {
  width: 100%;
  max-width: 100%;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100%;
}

/*
 * Motyw nadrzędny (ecommerce-solution): li.wc-block-grid__product { max-width: 30% !important; margin: 0 3.8% … }
 * Przy siatce grid karty stają się wąskimi „paskami”; reset dla wszystkich propozycji w pustym koszyku.
 */
.wp-block-woocommerce-empty-cart-block li.wc-block-grid__product {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  flex: unset !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
}

.wp-block-woocommerce-empty-cart-block .dostudni-cart-empty-new-product .dostudni-card--featured {
  height: 100%;
}

.wp-block-woocommerce-empty-cart-block .dostudni-cart-empty-new-product .dostudni-card--featured .dostudni-card__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.wp-block-woocommerce-empty-cart-block .dostudni-cart-empty-new-product .dostudni-card--featured .dostudni-card__actions {
  margin-top: auto;
}

.wp-block-woocommerce-empty-cart-block .dostudni-cart-empty-new-product .dostudni-card--featured .dostudni-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  min-height: calc(1.1em * 3);
}

/* Gdyby markup bloków WC pozostał domyślny — czytelny układ kolumnowy w siatce */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product:not(.dostudni-cart-empty-new-product) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: center;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product:not(.dostudni-cart-empty-new-product) .wc-block-grid__product-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product:not(.dostudni-cart-empty-new-product) .wc-block-grid__product-price {
  margin-top: auto;
  width: 100%;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product:not(.dostudni-cart-empty-new-product) .wc-block-grid__product-add-to-cart {
  width: 100%;
  margin-top: 0.5rem;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product:not(.dostudni-cart-empty-new-product) .wp-block-button__link {
  width: 100%;
  box-sizing: border-box;
}

.wp-block-woocommerce-empty-cart-block .dostudni-card--featured .dostudni-card__image,
.wp-block-woocommerce-empty-cart-block .dostudni-card--featured .dostudni-card__image img {
  background: #fff !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product a.compare,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product .yith-wccp-compare {
  display: none !important;
}

@media only screen and (max-width: 1199px) {
  .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 991px) {
  .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 575px) {
  .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: 1fr;
  }
}

.dostudni-home-empty {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: #5a6168;
  background: #fff;
  border: 1px dashed #d0d7df;
  border-radius: 8px;
}

/* ---------- Strona główna: „Nasze marki” (jak #box-producer na dostudni.pl) ---------- */
.dostudni-home-brands {
  background: #fff;
  border-top: 1px solid #e8ecf1;
  border-bottom: 1px solid #e8ecf1;
}

.dostudni-home-brands__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 1.5rem;
}

.dostudni-home-brands__head-spacer {
  min-width: 0;
}

.dostudni-home-brands__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  text-align: center;
  color: #1e2328 !important;
  letter-spacing: 0 !important;
}

.dostudni-home-brands__all {
  justify-self: end;
  display: inline-block;
  padding: 8px 16px;
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #1794DE !important;
  text-decoration: none !important;
  border: 1px solid #1794DE;
  border-radius: 2px;
  background: #fff;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dostudni-home-brands__all:hover {
  background: #1794DE;
  color: #fff !important;
}

.dostudni-home-brands__swiper {
  overflow: hidden;
  padding: 6px 8px 12px;
  margin: 0 -4px;
}

.dostudni-home-brands__swiper .swiper-slide {
  box-sizing: border-box;
  padding: 0 4px;
  height: auto;
}

.dostudni-home-brands__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 124px;
  padding: 14px 10px 12px;
  text-decoration: none !important;
  color: #1e2328 !important;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 2px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dostudni-home-brands__card:hover {
  border-color: #1794DE;
  box-shadow: 0 2px 8px rgba(23, 148, 222, 0.12);
}

/* Jednolite pole na logo: contain + min-width:0 (flex), bez przycinania pliku z cropa Woo */
.dostudni-home-brands__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  padding: 0 6px;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: visible;
}

.dostudni-home-brands__logo {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 52px !important;
  min-width: 0;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
}

.dostudni-home-brands__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 4px;
  background: rgba(23, 148, 222, 0.12);
  color: #1794DE;
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1.15rem;
  font-weight: 700;
}

.dostudni-home-brands__name {
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media only screen and (max-width: 767px) {
  .dostudni-home-brands__head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dostudni-home-brands__title {
    order: 1;
  }

  .dostudni-home-brands__all {
    order: 2;
    justify-self: center;
  }

  .dostudni-home-brands__head-spacer {
    display: none;
  }
}

/* Kafle „featured” na stronie głównej — siatka i karuzela */
.dostudni-home-grid--cols4 .dostudni-card--featured,
.dostudni-home-products-carousel .dostudni-card--featured {
  height: 100%;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dostudni-home-grid--cols4 .dostudni-card--featured:hover,
.dostudni-home-products-carousel .dostudni-card--featured:hover {
  border-color: rgba(23, 148, 222, 0.55);
  box-shadow: 0 2px 14px rgba(23, 148, 222, 0.16), 0 0 0 2px rgba(23, 148, 222, 0.10);
}

.dostudni-home-grid--cols4 .dostudni-card--featured .dostudni-card__image,
.dostudni-home-products-carousel .dostudni-card--featured .dostudni-card__image {
  min-height: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  border-radius: 4px;
}

.dostudni-home-grid--cols4 .dostudni-card--featured .dostudni-card__image img,
.dostudni-home-products-carousel .dostudni-card--featured .dostudni-card__image img {
  max-height: 100%;
  max-width: 100%;
  width: auto !important;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.dostudni-home-grid--cols4 .dostudni-card--featured .dostudni-card__image img.woocommerce-placeholder,
.dostudni-home-products-carousel .dostudni-card--featured .dostudni-card__image img.woocommerce-placeholder {
  background: #fff !important;
}

.dostudni-home-grid--cols4 .dostudni-card--featured .dostudni-card__title,
.dostudni-home-products-carousel .dostudni-card--featured .dostudni-card__title {
  font-size: 15px !important;
  line-height: 1.25 !important;
}

/* Karuzela: stała „wysokość” tytułu (3 linie + …) — wyrównane ceny i przyciski w rzędzie */
.dostudni-home-products-carousel .dostudni-card--featured .dostudni-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  min-height: calc(1.25em * 3);
  margin-bottom: 0;
}

.dostudni-home-grid--cols4 .dostudni-card--featured .dostudni-card__price,
.dostudni-home-grid--cols4 .dostudni-card--featured .dostudni-card__price .price,
.dostudni-home-products-carousel .dostudni-card--featured .dostudni-card__price,
.dostudni-home-products-carousel .dostudni-card--featured .dostudni-card__price .price {
  font-size: 16px !important;
  color: #1794de !important;
}

.dostudni-home-grid--cols4 .dostudni-card--featured .dostudni-card__price ins,
.dostudni-home-products-carousel .dostudni-card--featured .dostudni-card__price ins {
  color: #1794de !important;
  text-decoration: none;
}

.dostudni-home-grid--cols4 .dostudni-card--featured .dostudni-card__price del,
.dostudni-home-products-carousel .dostudni-card--featured .dostudni-card__price del {
  color: #94a3b8 !important;
  font-size: 0.9em;
}

/* Karuzela — ta sama szerokość co siatka (bez bocznego paddingu); strzałki nachodzą na slajdy */
.dostudni-home-products-carousel {
  position: relative;
  padding: 0;
}

.dostudni-home-products-carousel .dostudni-home-products__swiper {
  overflow: hidden;
  padding: 8px 6px 12px;
  margin: 0;
  width: 100%;
}

.dostudni-home-products-carousel .swiper-slide {
  height: auto;
  box-sizing: border-box;
  padding: 2px;
}

.dostudni-home-products-carousel .swiper-slide .dostudni-card--featured {
  margin: 0;
  position: relative;
}

.dostudni-home-products-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e0e4ea;
  background: rgba(255, 255, 255, 0.95);
  color: #1794de;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dostudni-home-products-carousel__btn:hover {
  background: #1794de;
  color: #fff;
  border-color: #1794de;
}

/* Nachodzą na pierwszy/ostatni kafel (nie zawężają tracku) */
.dostudni-home-products-carousel__btn--prev {
  left: 6px;
}

.dostudni-home-products-carousel__btn--next {
  right: 6px;
}

.dostudni-home-products-carousel__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

@media only screen and (max-width: 767px) {
  .dostudni-home-grid--cols4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dostudni-home-cats__grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  }

  .dostudni-home-products-carousel__btn {
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }

  .dostudni-home-products-carousel__btn--prev {
    left: 4px;
  }

  .dostudni-home-products-carousel__btn--next {
    right: 4px;
  }
}

@media only screen and (max-width: 479px) {
  .dostudni-home-grid--cols4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Strona główna: 2 zajawki (kategoria nowosci), hit dnia, oferty, blog, marki ---------- */
.dostudni-home-teasers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dostudni-home-teasers__banner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 200px;
  background: #eceff3;
  border: 1px solid #e0e4ea;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none !important;
  color: #1e2328 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dostudni-home-teasers__banner:nth-child(1) {
  background: #ebe8e4;
  border-color: #ded9d3;
}

.dostudni-home-teasers__banner:nth-child(2) {
  background: #eef1f5;
  border-color: #dde2e9;
}

.dostudni-home-teasers__banner:hover {
  border-color: #1794de;
  box-shadow: 0 4px 14px rgba(23, 148, 222, 0.12);
}

.dostudni-home-teasers__text {
  flex: 1 1 52%;
  padding: 1.5rem 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.dostudni-home-teasers__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 0.5rem !important;
  color: #1e2328 !important;
}

.dostudni-home-teasers__lead {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.45;
  color: #5a6168;
  flex: 0 1 auto;
}

.dostudni-home-teasers__btn {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  background: #1794de;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 2px;
  margin-top: auto;
  pointer-events: none;
}

.dostudni-home-teasers__banner:hover .dostudni-home-teasers__btn {
  background: #1478b8;
}

.dostudni-home-teasers__visual {
  position: relative;
  flex: 0 0 42%;
  max-width: 46%;
  background: #dfe3e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dostudni-home-teasers__banner:nth-child(1) .dostudni-home-teasers__visual::after,
.dostudni-home-teasers__banner:nth-child(2) .dostudni-home-teasers__visual::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(38%, 120px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, #ebe8e4 0%, rgba(235, 232, 228, 0) 100%);
}

.dostudni-home-teasers__banner:nth-child(2) .dostudni-home-teasers__visual::after {
  background: linear-gradient(to right, #eef1f5 0%, rgba(238, 241, 245, 0) 100%);
}

.dostudni-home-teasers__visual img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 200px;
  display: block;
}

.dostudni-home-teasers__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  color: #1794de;
  font-size: 2.5rem;
  background: linear-gradient(160deg, #e3f2fd 0%, #eceff3 100%);
}

@media only screen and (max-width: 767px) {
  .dostudni-home-teasers__grid {
    grid-template-columns: 1fr;
  }

  .dostudni-home-teasers__banner {
    flex-direction: column-reverse;
    min-height: 0;
  }

  .dostudni-home-teasers__visual {
    flex: none;
    max-width: none;
    width: 100%;
    max-height: 200px;
  }

  .dostudni-home-teasers__visual img {
    min-height: 180px;
    max-height: 220px;
  }
}

.dostudni-home-hit__row {
  display: grid;
  grid-template-columns: minmax(200px, 360px) minmax(0, 1fr);
  gap: 28px 32px;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dostudni-home-hit__row:hover {
  border-color: rgba(23, 148, 222, 0.55);
  box-shadow: 0 2px 14px rgba(23, 148, 222, 0.16), 0 0 0 2px rgba(23, 148, 222, 0.10);
}

.dostudni-home-hit__image-col {
  min-width: 0;
}

.dostudni-home-hit__image {
  position: relative;
  display: block;
  text-align: center;
  background: #fff;
  border-radius: 6px;
  padding: 12px;
}

.dostudni-home-hit__image img {
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

/* Etykiety na zdjęciu (Hit dnia + karty) — jak dostudni.pl */
.dostudni-product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.dostudni-product-badge {
  display: inline-block;
  padding: 6px 10px;
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff !important;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.dostudni-product-badge--bestseller {
  background: #1794de !important;
}

.dostudni-product-badge--nowosc {
  background: #2d8a4e !important;
}

.dostudni-home-hit__content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dostudni-home-hit__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: clamp(1.5rem, 2.1vw, 1.95rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 0.75rem !important;
}

.dostudni-home-hit__title a {
  color: #1e2328 !important;
  text-decoration: none !important;
}

.dostudni-home-hit__title a:hover {
  color: #1794de !important;
}

.dostudni-home-hit__specs {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5a6168;
}

.dostudni-home-hit__spec {
  margin: 0 0 5px 0;
}

.dostudni-home-hit__spec-label {
  font-weight: 600;
  color: #64748b;
  margin-right: 0.25em;
}

.dostudni-home-hit__spec-value {
  color: #1e2328;
  font-weight: 500;
}

.dostudni-home-hit__price {
  font-size: 1.25rem !important;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #1794de !important;
}

.dostudni-home-hit__price .price,
.dostudni-home-hit__price .woocommerce-Price-amount {
  color: #1794de !important;
}

.dostudni-home-hit__price del,
.dostudni-home-hit__price .woocommerce-Price-amount bdi {
  color: inherit;
}

.dostudni-home-hit__price del {
  color: #94a3b8 !important;
  font-size: 0.88em;
  font-weight: 600;
}

.dostudni-home-hit__price ins {
  text-decoration: none;
  color: #1794de !important;
}

.dostudni-home-hit__excerpt {
  margin: 0 0 0.5rem 0;
  font-size: 15px;
  line-height: 1.55;
  color: #5a6168;
}

.dostudni-home-hit__btn {
  display: inline-block;
  width: auto;
  max-width: 420px;
  text-align: center;
  box-sizing: border-box;
  padding: 0.55rem 1.35rem;
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  background: #1794de !important;
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none !important;
}

.dostudni-home-hit__btn:hover {
  background: #1478b8 !important;
  color: #fff !important;
}

@media only screen and (max-width: 767px) {
  .dostudni-home-hit__row {
    grid-template-columns: 1fr;
  }
}

.dostudni-home-cat-offers__block {
  margin-bottom: 2rem;
}

.dostudni-home-cat-offers__block:last-child {
  margin-bottom: 0;
}

.dostudni-home-cat-offers__block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 1rem;
}

.dostudni-home-cat-offers__block-title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #1e2328 !important;
}

.dostudni-home-cat-offers__block-more {
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  color: #1794de !important;
  text-decoration: none !important;
}

.dostudni-home-cat-offers__block-more:hover {
  text-decoration: underline !important;
}

/* „Najciekawsze oferty” — do 4 kategorii × 1 produkt (★ pierwszeństwo) */
.dostudni-home-cat-offers__section-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 1.5rem;
}

.dostudni-home-cat-offers__section-head-spacer {
  min-width: 0;
}

.dostudni-home-cat-offers__section-title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #1e2328 !important;
  text-align: center;
  letter-spacing: 0 !important;
}

.dostudni-home-cat-offers__section-more {
  justify-self: end;
  white-space: nowrap;
}

@media only screen and (max-width: 767px) {
  .dostudni-home-cat-offers__section-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dostudni-home-cat-offers__section-head-spacer {
    display: none;
  }

  .dostudni-home-cat-offers__section-more {
    justify-self: center;
  }
}

.dostudni-home-cat-offers__spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media only screen and (max-width: 1199px) {
  .dostudni-home-cat-offers__spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dostudni-home-cat-offers__spotlight-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 1.15rem 1.15rem 1rem;
  text-decoration: none !important;
  color: #1e2328 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}

.dostudni-home-cat-offers__spotlight-card:hover {
  border-color: #1794de;
  box-shadow: 0 4px 14px rgba(23, 148, 222, 0.12);
}

.dostudni-home-cat-offers__spotlight-cat {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.75rem;
  text-align: center;
  color: #1e2328 !important;
}

.dostudni-home-cat-offers__spotlight-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  min-height: 220px;
  flex-shrink: 0;
  margin: 0 0 0.85rem;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.dostudni-home-cat-offers__spotlight-star {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  font-size: 1.1rem;
  line-height: 1;
  color: #f5a623;
  text-shadow: 0 0 2px #fff, 0 1px 2px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.dostudni-home-cat-offers__spotlight-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dostudni-home-cat-offers__spotlight-name {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 0.4rem;
  text-align: center;
  color: #1e2328 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  min-height: calc(0.95rem * 1.25 * 3);
}

.dostudni-home-cat-offers__spotlight-price,
.dostudni-home-cat-offers__spotlight-price .price {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1794de !important;
  text-align: center;
  margin: 0 0 0.65rem;
}

.dostudni-home-cat-offers__spotlight-price .woocommerce-Price-amount {
  color: inherit !important;
}

.dostudni-home-cat-offers__spotlight-specs {
  margin: 0;
  padding: 0 0.25rem;
  list-style: none;
  font-size: 12px;
  line-height: 1.45;
  color: #7a8288;
  text-align: center;
}

.dostudni-home-cat-offers__spotlight-specs li + li {
  margin-top: 0.2rem;
}

@media only screen and (max-width: 767px) {
  .dostudni-home-cat-offers__spotlight-grid {
    grid-template-columns: 1fr;
  }
}

/* Kafle 3 kategorii (pod „Najciekawsze oferty…”) — ten sam język wizualny co .dostudni-home-teasers */
.dostudni-home-section.dostudni-home-tiles3 {
  background: #fff;
}

.dostudni-home-tiles3__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dostudni-home-tiles3__card {
  display: block;
  min-height: 200px;
  background: #ebe8e4;
  border: 1px solid #ded9d3;
  border-radius: 4px;
  text-decoration: none !important;
  color: #1e2328 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dostudni-home-tiles3__card:hover {
  border-color: #1794de;
  box-shadow: 0 4px 14px rgba(23, 148, 222, 0.12);
}

.dostudni-home-tiles3__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 200px;
}

.dostudni-home-tiles3__text {
  flex: 1 1 52%;
  min-width: 0;
  padding: 1.5rem 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.dostudni-home-tiles3__title {
  display: block;
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 0.75rem !important;
  color: #1e2328 !important;
  text-align: left;
}

.dostudni-home-tiles3__cta {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff !important;
  background: #1794de;
  border-radius: 2px;
  margin-top: auto;
  pointer-events: none;
}

.dostudni-home-tiles3__card:hover .dostudni-home-tiles3__cta {
  background: #1478b8;
}

.dostudni-home-tiles3__visual {
  position: relative;
  flex: 0 0 42%;
  max-width: 46%;
  min-height: 200px;
  align-self: stretch;
  display: block;
  overflow: hidden;
  /* Gradient jak na „ładnym” kaflu: od tonu lewej kolumni do bieli po prawej */
  background: linear-gradient(90deg, #ebe8e4 0%, #f2f3f5 35%, #ffffff 100%);
}

.dostudni-home-tiles3__visual::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(48%, 140px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right, #ebe8e4 0%, rgba(235, 232, 228, 0) 100%);
}

.dostudni-home-tiles3__visual img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dostudni-home-tiles3__icon-fallback {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 2.5rem;
  color: #1794de;
  background: linear-gradient(160deg, #ebe8e4 0%, #e8eef5 45%, #f5f7fa 100%);
}

@media only screen and (max-width: 991px) {
  .dostudni-home-tiles3__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 767px) {
  .dostudni-home-tiles3__inner {
    flex-direction: column-reverse;
    min-height: 0;
  }

  .dostudni-home-tiles3__text {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .dostudni-home-tiles3__visual {
    flex: none;
    max-width: none;
    width: 100%;
    min-height: 200px;
    max-height: 220px;
  }

  .dostudni-home-tiles3__visual img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.dostudni-home-blog-general__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 1.5rem;
}

.dostudni-home-blog-general__head-spacer {
  min-width: 0;
}

.dostudni-home-blog-general__main-title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  text-align: center;
  color: #1e2328 !important;
  letter-spacing: 0 !important;
}

.dostudni-home-blog-general__all {
  justify-self: end;
  display: inline-block;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid #1794de;
  border-radius: 2px;
  color: #1794de !important;
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dostudni-home-blog-general__all:hover {
  background: #1794de;
  color: #fff !important;
}

@media only screen and (max-width: 767px) {
  .dostudni-home-blog-general__head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dostudni-home-blog-general__head-spacer {
    display: none;
  }

  .dostudni-home-blog-general__all {
    justify-self: center;
  }
}

.dostudni-home-blog-general__panel {
  background: #fff;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.dostudni-home-blog-general__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dostudni-home-blog-general__card {
  display: flex;
  flex-direction: column;
  background: #f4f7f9;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.dostudni-home-blog-general__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 1rem 1rem 0.65rem;
  line-height: 1.3 !important;
}

.dostudni-home-blog-general__title a {
  color: #1e2328 !important;
  text-decoration: none !important;
}

.dostudni-home-blog-general__title a:hover {
  color: #1794de !important;
}

.dostudni-home-blog-general__media {
  display: block;
  position: relative;
  margin: 0 1rem;
  aspect-ratio: 16 / 10;
  background: #dde2e8;
  border-radius: 4px;
  overflow: hidden;
}

.dostudni-home-blog-general__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.dostudni-home-blog-general__date-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  background: #1794de;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.dostudni-home-blog-general__body {
  padding: 0.85rem 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dostudni-home-blog-general__excerpt {
  margin: 0 0 0.5rem;
  font-size: 13px;
  line-height: 1.5;
  color: #5a6168;
  flex: 1;
}

.dostudni-home-blog-general__link {
  font-size: 13px;
  font-weight: 600;
  color: #1794de !important;
  text-decoration: none !important;
  align-self: flex-start;
}

.dostudni-home-blog-general__link:hover {
  text-decoration: underline !important;
}

@media only screen and (max-width: 1199px) {
  .dostudni-home-blog-general__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 575px) {
  .dostudni-home-blog-general__grid {
    grid-template-columns: 1fr;
  }

  .dostudni-home-blog-general__panel {
    padding: 1rem 0.85rem 1.15rem;
  }
}

/* Blok SEO (skala typografii zbliżona do bloku „O nas” na referencyjnym sklepie) */
.dostudni-home-seo__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px 32px;
  align-items: start;
}

.dostudni-home-seo__header {
  margin: 0 0 1rem 0;
}

.dostudni-home-seo__heading {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  margin: 0 !important;
  color: #111 !important;
  letter-spacing: -0.02em;
}

.dostudni-home-seo__descriptionContent {
  font-size: 16px;
  line-height: 1.65;
}

.dostudni-home-seo__lead,
.dostudni-home-seo__more {
  margin: 0 0 1rem;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #333 !important;
}

.dostudni-home-seo__lead:last-of-type {
  margin-bottom: 0.35rem;
}

.dostudni-home-seo__details {
  margin-top: 0.35rem;
}

.dostudni-home-seo__summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  color: #1794de !important;
  user-select: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dostudni-home-seo__summary:hover {
  color: #125a8a !important;
}

.dostudni-home-seo__summary::-webkit-details-marker {
  display: none;
}

.dostudni-home-seo__summary::after {
  content: "";
}

.dostudni-home-seo__details[open] .dostudni-home-seo__summary {
  margin-bottom: 0.75rem;
}

.dostudni-home-seo__expand {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid #e8ecf1;
}

.dostudni-home-seo__subheading {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0 0.85rem !important;
  color: #111 !important;
}

.dostudni-home-seo__more {
  margin: 0;
  padding: 0;
  border: 0;
}

.dostudni-home-seo__visual {
  position: relative;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
}

.dostudni-home-seo__visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #42a5f5 0%, #1565c0 45%, #0d47a1 100%);
}

.dostudni-home-seo__visual-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 72% 58%, rgba(255, 255, 255, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 50% 85%, rgba(255, 255, 255, 0.1) 0%, transparent 35%);
}

.dostudni-home-seo__logo {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.dostudni-home-seo__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.dostudni-home-seo__logo-img {
  display: block;
  max-height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media only screen and (max-width: 991px) {
  .dostudni-home-seo__row {
    grid-template-columns: 1fr;
  }

  .dostudni-home-seo__visual {
    height: auto;
    min-height: 0;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
  }

  .dostudni-home-seo__visual-img {
    position: static !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    inset: auto !important;
  }
}

/* ---------- Newsletter (Brevo) — nad stopką ---------- */
.dostudni-home-newsletter {
  background: #3288d6;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dostudni-home-newsletter__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
  font-weight: 700 !important;
  text-align: center;
  margin: 0 0 0.5rem !important;
  color: #fff !important;
  letter-spacing: 0 !important;
}

.dostudni-home-newsletter__intro {
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.dostudni-home-newsletter__form {
  max-width: 640px;
  margin: 0 auto;
}

.dostudni-home-newsletter__admin-hint {
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

/* Formularz Brevo — dopasowanie do jasnego paska jak na dostudni.pl */
.dostudni-home-newsletter .sib_signup_form {
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
}

.dostudni-home-newsletter .sib_signup_form,
.dostudni-home-newsletter .sib_signup_form p,
.dostudni-home-newsletter .sib_signup_form label,
.dostudni-home-newsletter .sib_signup_form .sib_msg_disp {
  color: #fff !important;
}

.dostudni-home-newsletter .sib_signup_form a {
  color: #fff !important;
  text-decoration: underline;
  font-weight: 600;
}

.dostudni-home-newsletter .sib_signup_form .sib-alert-message-error {
  color: #ffebee !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 4px;
  padding: 8px 12px;
}

.dostudni-home-newsletter .sib_signup_form input[type="email"],
.dostudni-home-newsletter .sib_signup_form input[type="text"],
.dostudni-home-newsletter .sib_signup_form input[type="tel"] {
  background: #fff !important;
  color: #1e2328 !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dostudni-home-newsletter .sib_signup_form .sib-default-btn,
.dostudni-home-newsletter .sib_signup_form input[type="submit"],
.dostudni-home-newsletter .sib_signup_form button[type="submit"] {
  background: #fff !important;
  color: #3288d6 !important;
  border: none !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 14px 22px !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dostudni-home-newsletter .sib_signup_form .sib-default-btn:hover,
.dostudni-home-newsletter .sib_signup_form input[type="submit"]:hover,
.dostudni-home-newsletter .sib_signup_form button[type="submit"]:hover {
  background: #f0f7ff !important;
  color: #1a6bb8 !important;
}

.dostudni-home-newsletter .sib_signup_form input[type="checkbox"] {
  width: auto !important;
  margin-right: 8px;
  vertical-align: middle;
}

.dostudni-home-newsletter .sib_signup_form .form-row,
.dostudni-home-newsletter .sib_signup_form .sib_locale {
  margin-bottom: 0.75rem;
}

/* Układ: email + przycisk w jednym rzędzie na szerszych ekranach */
@media only screen and (min-width: 576px) {
  .dostudni-home-newsletter .sib_signup_form .sib-alert-message-success,
  .dostudni-home-newsletter .sib_signup_form > div {
    max-width: 100%;
  }

  .dostudni-home-newsletter .sib_signup_form .sib-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .dostudni-home-newsletter .sib_signup_form .sib-flex .form-row {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
  }

  .dostudni-home-newsletter .sib_signup_form .sib-flex .form-row input {
    border-radius: 0 !important;
  }

  .dostudni-home-newsletter .sib_signup_form .sib-flex input[type="submit"],
  .dostudni-home-newsletter .sib_signup_form .sib-flex .sib-default-btn {
    border-radius: 0 !important;
    margin: 0 !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    border-left: 1px solid #e0e0e0 !important;
  }
}

/* ---------- Stopka (jak dla-studniarza.pl) + usunięcie żółtego ---------- */
:root {
  --dostudni-footer-blue: #1794DE;
  --dostudni-footer-blue-dark: #235992;
}

/* Linie przy tytule „Shop new collection” — niebieskie zamiast żółtego */
#new-collection strong:after,
#new-collection strong:before {
  background: var(--dostudni-footer-blue, #1794DE) !important;
}

/* Przycisk „przewiń do góry” — niebieski, bez żółtej obwódki/cienia motywu */
#scrollbutton.dostudni-scroll-top i,
#scrollbutton i {
  background: var(--dostudni-footer-blue, #1794DE) !important;
  border-color: var(--dostudni-footer-blue-dark, #235992) !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px rgba(26, 108, 173, 0.45) !important;
}

#scrollbutton.dostudni-scroll-top i:hover,
#scrollbutton i:hover {
  background: var(--dostudni-footer-blue-dark, #235992) !important;
  color: #fff !important;
}

.dostudni-site-footer {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/*
 * Stopka: zawsze `container` + `dostudni-footer-container`.
 * LiteSpeed UCSS często zawiera tylko `.dostudni-site-footer .container` — sama klasa
 * dostudni-footer-container bez .container nie dostaje margin:auto w skompilowanym CSS.
 */
.dostudni-site-footer .container.dostudni-footer-container {
  float: none !important;
  clear: both !important;
  display: block !important;
  margin-inline: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 1320px;
  padding-left: var(--bs-gutter-x, 0.75rem);
  padding-right: var(--bs-gutter-x, 0.75rem);
  box-sizing: border-box;
}

.dostudni-footer-trust {
  background: #fff;
  border-top: 1px solid #e8ecf1;
}

.dostudni-footer-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.dostudni-footer-trust__item {
  text-align: center;
}

a.dostudni-footer-trust__link.dostudni-footer-trust__item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 8px 6px;
  margin: -8px -6px;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

a.dostudni-footer-trust__link.dostudni-footer-trust__item:hover,
a.dostudni-footer-trust__link.dostudni-footer-trust__item:focus-visible {
  background: rgba(23, 148, 222, 0.07);
  box-shadow: 0 0 0 1px rgba(23, 148, 222, 0.12);
  outline: none;
}

.dostudni-footer-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(26, 108, 173, 0.1);
  color: var(--dostudni-footer-blue, #1794DE);
  font-size: 20px;
}

.dostudni-footer-trust__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
  color: #1e2328 !important;
}

.dostudni-footer-trust__text {
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  color: #5a6168;
}

.dostudni-footer-main {
  background: #161b20;
  color: #c5d0da;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Trzy równe kolumny na pełnej szerokości kontenera (bez układu Bootstrap row) */
.dostudni-footer-main__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2rem 2.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-items: start;
  justify-content: stretch;
  justify-items: stretch;
  box-sizing: border-box;
}

.dostudni-footer-main__grid > .dostudni-footer-grid-col {
  min-width: 0;
  width: 100%;
}

.dostudni-footer-heading {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: #fff !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

.dostudni-footer-heading:after {
  display: none !important;
}

.dostudni-footer-nav {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dostudni-footer-nav li {
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 1.35;
}

.dostudni-footer-nav a {
  color: #aebcc8 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-family: "Source Sans Pro", "Roboto", sans-serif !important;
}

.dostudni-footer-nav a:hover,
.dostudni-footer-nav a:focus {
  color: #7ec0eb !important;
}

.dostudni-footer-nav .sub-menu {
  list-style: none;
  margin: 8px 0 0 12px;
  padding: 0;
}

/* Druga sekcja w kolumnie (Regulaminy pod Serwisem, Cennik pod Informacjami) */
.dostudni-footer-grid-col--service .dostudni-footer-col + .dostudni-footer-col {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dostudni-footer-grid-col--info .dostudni-footer-wholesale--inline {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dostudni-footer-wholesale__title {
  font-family: "Arimo", "Source Sans Pro", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  color: #fff !important;
  letter-spacing: 0 !important;
}

.dostudni-footer-wholesale__text {
  margin: 0 0 6px !important;
  font-size: 13px;
  color: #aebcc8 !important;
  line-height: 1.5;
}

.dostudni-footer-wholesale__text:last-child {
  margin-bottom: 0 !important;
}

/* Logo DoStudni z motywu (assets/dostudni) */
.mid-header .site-logo {
  min-height: 40px;
}

.mid-header .site-logo .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.mid-header .site-logo .dostudni-site-logo {
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.dostudni-footer-bar__logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.dostudni-footer-bar__logo {
  display: block;
  max-height: 32px;
  width: auto;
  height: auto;
  opacity: 0.9;
}

/* Dolny pasek: tylko © — bez żółtego „Marketplace Theme…” */
.dostudni-footer-bar {
  background: #0d1114 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dostudni-footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.dostudni-footer-bar__copy {
  margin: 0 !important;
  font-size: 14px;
  color: #9aa7b2 !important;
}

.dostudni-footer-bar__social a {
  color: #c5d0da !important;
  margin-left: 12px;
}

.dostudni-footer-bar__social a:hover {
  color: #7ec0eb !important;
}

@media only screen and (max-width: 991px) {
  .dostudni-footer-trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Jedna kolumna — trzy bloki pod sobą bez „dziury” po 2 kolumnach */
  .dostudni-footer-main__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media only screen and (max-width: 575px) {
  .dostudni-footer-trust__grid {
    grid-template-columns: 1fr;
  }
}

/* Wyłączenie starych stylów żółtego copyright motybu, jeśli gdzieś jeszcze wiszą */
.copyright-wrapper {
  background: #0d1114 !important;
  color: #9aa7b2 !important;
}

.footer-wp h3,
.footer-wp h3:after {
  color: inherit;
}

/* Paginacja WooCommerce — niebieska zamiast żółtego z --first-theme-color */
.woocommerce nav.woocommerce-pagination ul {
  gap: 6px;
}

.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers:not(.current):not(.dots) {
  background: #e8f4fc !important;
  color: #1794DE !important;
  border: 1px solid #1794DE !important;
  border-radius: 4px !important;
  min-width: 2.5em;
  line-height: 2.25em;
  padding: 0 0.4em;
}

.woocommerce nav.woocommerce-pagination ul li span.page-numbers.dots {
  background: transparent !important;
  border: none !important;
  color: #5a6168 !important;
}

.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus {
  background: #1794DE !important;
  color: #fff !important;
  border-color: #235992 !important;
}

/* Slider strony głównej: szerokość jak reszta layoutu (.container), nie cała przeglądarka */
#slider.dostudni-home-slider {
  width: 100%;
  box-sizing: border-box;
}

#slider.dostudni-home-slider .dostudni-slider-carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

#slider.dostudni-home-slider .carousel-item img,
#slider.dostudni-home-slider .carousel-item .wp-post-image {
  width: 100%;
  height: auto;
  max-height: min(520px, 58vh);
  object-fit: cover;
  object-position: center;
  display: block;
}

@media only screen and (max-width: 767px) {
  #slider.dostudni-home-slider .carousel-item img,
  #slider.dostudni-home-slider .carousel-item .wp-post-image {
    max-height: 42vh;
  }
}

/* ── Mobile filter drawer ────────────────────────────────────── */

/* Przycisk "Filtry" — widoczny tylko na mobile */
.dostudni-mobile-filter-btn {
  display: none;
}

/* Overlay za szufladą filtrów */
.dostudni-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}
.dostudni-filter-overlay.is-visible {
  display: block;
}

/* Przycisk zamknięcia wewnątrz sidebara */
.dostudni-sidebar-close {
  display: none;
}

@media (max-width: 767px) {
  /* Toolbar: sortowanie + Filtry obok siebie, równa wysokość */
  .dostudni-shop-toolbar__sort {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .dostudni-shop-toolbar__sort .woocommerce-ordering {
    flex: 1 1 auto !important;
    margin: 0 !important;
  }
  .dostudni-shop-toolbar__sort .woocommerce-ordering select {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  /* Przycisk Filtry */
  .dostudni-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #1794DE;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 14px;
    height: 100%;
    min-height: 38px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
  }
  .dostudni-mobile-filter-btn:hover { background: #1476b8; }

  /* Sidebar → szuflada z prawej strony */
  .dostudni-shop-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -105% !important;
    width: 82vw !important;
    max-width: 320px !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    background: #fff !important;
    z-index: 9999 !important;
    padding: 56px 16px 24px !important;
    transition: right 0.3s ease !important;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18) !important;
  }
  .dostudni-shop-sidebar.is-open {
    right: 0 !important;
  }

  /* Przycisk zamknięcia wewnątrz sidebara */
  .dostudni-sidebar-close {
    display: flex;
    position: absolute;
    top: 12px;
    right: 14px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #1e2328;
  }
  .dostudni-sidebar-close:hover { background: #e0e0e0; }

  /* Zablokuj scroll strony gdy szuflada otwarta */
  body.dostudni-filters-open { overflow: hidden !important; }
}

/* ── Mobile menu drawer cleanup ──────────────────────────────── */
/* Overlay za otwartym menu */
body:has(.menu-brand.primary-nav.show)::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999997;
  pointer-events: auto;
}

@media (max-width: 1000px) {
  /* Czysta szpilka zamknięcia – tylko na mobile */
  .menu-brand .closebtn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px !important;
    padding: 8px 12px !important;
    background: #f0f0f0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #1e2328 !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }

  /* Ukryj "Pozycja w koszyku" w menu mobile — redundant */
  .menu-brand.primary-nav .cart_no { display: none !important; }

  /* Ukryj formularz wyszukiwania w menu mobile */
  .menu-brand.primary-nav #search { display: none !important; }

  /* Nawigacja w menu mobile */
  .menu-brand.primary-nav .primary-navigation ul li a {
    font-size: 15px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: block;
  }
}

/* ── Ukryj legacy topbar całkowicie ─────────────────────────── */
#header .topbar.dostudni-topbar {
  display: none !important;
}

/* ── Usuń ramkę focus na logo ────────────────────────────────── */
.mid-header .logo a:focus,
.mid-header .logo a:active,
.mid-header .custom-logo-link:focus,
.mid-header .custom-logo-link:active,
.mid-header a.custom-logo-link:focus,
.mid-header a.custom-logo-link:active {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* ── Mobile hamburger button (hidden on desktop) ─────────────── */
.dostudni-mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #1e2328;
  padding: 4px 6px;
  line-height: 1;
}

/* ── Mobile header fixes (≤767px) — desktop untouched ───────── */
@media (max-width: 767px) {
  /* 1. Ukryj niebieski pasek informacji */
  .dostudni-info-bar { display: none !important; }

  /* 2. Ukryj legacy topbar i hamburger z menu-header */
  .dostudni-topbar-legacy { display: none !important; }
  .menu-header .toggle-menu.responsive-menu { display: none !important; }

  /* 3. Pokaż hamburger w mid-header */
  .dostudni-mobile-menu-btn { display: flex !important; align-items: center; }

  /* 4. Mid-header: kompaktowy pasek */
  .mid-header { padding-top: 8px !important; padding-bottom: 4px !important; }
  .mid-header > .container > .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  /* Logo – lewa połowa */
  .mid-header > .container > .row > .col-md-12:first-child {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    order: 1;
    padding: 0 8px !important;
    display: flex;
    align-items: center;
  }

  /* Akcje (Ulubione/Zaloguj/Koszyk + hamburger) – prawa połowa */
  .dostudni-mid-actions {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    order: 2;
    margin-top: 0 !important;
    padding: 0 8px 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* Wyszukiwarka – pełna szerokość pod nimi (kategorie + pole wyszukiwania obok siebie wg Bootstrap col-* w headerze) */
  .mid-header > .container > .row > .col-md-8 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    order: 3;
    padding: 4px 8px !important;
  }

  .search-cat-box {
    padding: 0 !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: visible !important;
  }
  .search-cat-box .row { margin: 0 !important; }

  /* Logo mniejsze na mobile */
  .mid-header .custom-logo,
  .mid-header .dostudni-site-logo { max-height: 36px !important; width: auto !important; }

  /* Ikony akcji – kompaktowe, jeden rząd */
  .dostudni-header-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }
  .dostudni-header-action {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1px !important;
    padding: 2px 4px !important;
    min-width: 0;
  }
  .dostudni-header-action__icon { font-size: 0.95rem !important; }
  .dostudni-header-action__label { font-size: 0.55rem !important; white-space: nowrap; line-height: 1; }
  .dostudni-header-action__badge {
    font-size: 0.45rem !important;
    min-width: 13px !important;
    height: 13px !important;
    line-height: 13px !important;
  }
}

@media (min-width: 1401px) {
  #site-navigation ul.mobile_nav {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* ── Tablet portrait + landscape (768–1400px): układ jak na telefonie ── */
@media (min-width: 768px) and (max-width: 1400px) {
  /* Ukryj niebieski pasek informacji */
  #header .dostudni-info-bar { display: none !important; }

  /* Ukryj legacy topbar i pasek nawigacji */
  .dostudni-topbar-legacy { display: none !important; }

  /* Ukryj menu-header wizualnie ale zostaw w DOM (drawer jest position:fixed wewnątrz) */
  .menu-header {
    height: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  .menu-header .toggle-menu,
  .menu-header .toggle-menu.responsive-menu { display: none !important; }

  /* Mid-header: kompaktowy pasek jak na telefonie */
  .mid-header { padding-top: 8px !important; padding-bottom: 4px !important; }
  .mid-header > .container > .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  /* Logo – lewa połowa */
  .mid-header > .container > .row > div:first-child {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    order: 1 !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Akcje (Ulubione/Zaloguj/Koszyk + hamburger) – prawa połowa */
  .dostudni-mid-actions {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    order: 2 !important;
    margin-top: 0 !important;
    padding: 0 8px 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* Wyszukiwarka – pełna szerokość pod logo/akcjami; w środku nadal: kategorie + wyszukiwanie */
  .mid-header > .container > .row > .col-md-8,
  .mid-header > .container > .row > .col-lg-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    order: 3 !important;
    padding: 4px 8px !important;
  }

  .search-cat-box {
    padding: 0 !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: visible !important;
  }
  .search-cat-box .row { margin: 0 !important; }

  /* Pokaż hamburger w akcjach mid-headera */
  .dostudni-mobile-menu-btn { display: flex !important; align-items: center; }

  /* Logo – rozmiar jak na telefonie */
  .mid-header .custom-logo,
  .mid-header .dostudni-site-logo { max-height: 38px !important; width: auto !important; }

  /* Slide-out drawer z prawej (jak na telefonie) */
  .menu-brand.primary-nav {
    width: 280px !important;
    position: fixed !important;
    z-index: 9999999 !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    height: 100% !important;
    background: #fff !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-top: 56px !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    visibility: visible !important;
  }
  .menu-brand.primary-nav.show {
    transform: translateX(0) !important;
    width: 280px !important;
  }
  .menu-brand.primary-nav a.closebtn,
  .menu-brand.primary-nav a.closebtn.responsive-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    font-size: 22px !important;
    color: #1e2328 !important;
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer;
    text-decoration: none !important;
    z-index: 10;
  }
  .menu-brand.primary-nav #site-navigation ul,
  .menu-brand.primary-nav .primary-navigation ul {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-template-columns: none !important;
    flex-direction: column !important;
  }
  .menu-brand.primary-nav #site-navigation ul li,
  .menu-brand.primary-nav .primary-navigation li {
    display: block !important;
    width: 100% !important;
    float: none !important;
  }
  .menu-brand.primary-nav #site-navigation ul li a,
  .menu-brand.primary-nav .primary-navigation a {
    display: block !important;
    padding: 13px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: #fff !important;
    border-radius: 0 !important;
    color: #1e2328 !important;
    white-space: normal !important;
  }
  .menu-brand.primary-nav #site-navigation ul li a:hover,
  .menu-brand.primary-nav .primary-navigation a:hover {
    background: #f8f8f8 !important;
    color: #1794de !important;
  }
}

/* YITH lista życzeń: „Zobacz koszyk” i dodawanie — ten sam niebieski CTA co w sklepie */
body.woocommerce-wishlist .woocommerce-message,
body.woocommerce-wishlist .woocommerce-notices-wrapper .woocommerce-message {
  align-items: center;
}
body.woocommerce-wishlist .woocommerce-message a.button.wc-forward,
body.woocommerce-wishlist .woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward {
  background: #1794de !important;
  border: 1px solid #1794de !important;
  color: #fff !important;
  border-radius: 4px;
  box-shadow: none !important;
  text-decoration: none !important;
  padding: 0.35em 0.9em !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  min-height: 0 !important;
  flex: 0 0 auto;
  align-self: center;
}
body.woocommerce-wishlist .woocommerce-message a.button.wc-forward:hover,
body.woocommerce-wishlist .woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward:hover {
  background: #1280c4 !important;
  border-color: #1280c4 !important;
  color: #fff !important;
}
body.woocommerce-wishlist table.wishlist_table .product-add-to-cart a.button,
body.woocommerce-wishlist table.wishlist_table .product-add-to-cart a.add_to_cart_button {
  display: inline-block !important;
  background: #1794de !important;
  border: 1px solid #1794de !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 0.5em 1em !important;
  text-decoration: none !important;
  font-weight: 600;
}
body.woocommerce-wishlist table.wishlist_table .product-add-to-cart a.button:hover,
body.woocommerce-wishlist table.wishlist_table .product-add-to-cart a.add_to_cart_button:hover {
  background: #1280c4 !important;
  border-color: #1280c4 !important;
  color: #fff !important;
}
