/*
Theme Name:   DekorTech Astra Child
Theme URI:    https://dekortech.pl/
Description:  Motyw potomny dla motywu Astra
Author:       DekorTech
Author URI:   https://twojastrona.pl/
Template:     astra
Version:      1.0.0
*/

/* ==============================
MOBILE BOTTOM MENU - PRZYCISKI
============================== */
button{
	text-transform:none;
}





@media (min-width: 922px) {
    .ast-separate-container.ast-two-container.ast-left-sidebar #secondary {
        padding-right: 15px;
        padding-left: 0;
    }
}






.mobile-bottom-menu .bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;           /* kolor tła w spoczynku */
    color: #000;                /* kolor ikon i tekstu */
    border: 0px solid #222;     /* obramowanie spójne z tłem */
    border-radius: 0px;         /* zaokrąglenie */
    font-size: 0.85rem;
    padding: 6px 10px;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-bottom-menu .bottom-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover / focus */
.mobile-bottom-menu .bottom-btn:hover,
.mobile-bottom-menu .bottom-btn:focus {
    background: none;  /* kolor z motywu Astra */
    border: 1px solid #000;
    color: #000;
}

.mobile-bottom-menu .bottom-btn:hover i,
.mobile-bottom-menu .bottom-btn:focus i {
    color: #000;  /* ikona też zmienia kolor przy hover/focus */
    transform: scale(1.1); /* delikatne powiększenie ikony */
}

/* Spójne odstępy pomiędzy przyciskami */
.mobile-bottom-menu .primary-buttons,
.mobile-bottom-menu .social-buttons {
    display: flex;
    gap: 12px;
}

/* Mobilny dolny panel */
.mobile-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    z-index: 10000;
}
button{
	uppercase:none;
}




.cky-btn-revisit-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000 !important;
	border:1px solid #ffffff;
    width: 45px !important;
    height: 45px !important;
    border-radius: 5px !important;
    position: fixed;
    z-index: 999999;
    cursor: pointer;
	right:15px !important ;
	bottom:15px !important ;
}


		@media (max-width: 921px) {

            .cky-btn-revisit-wrapper {
                display: flex;
                align-items: center;
                justify-content: center;
                background: #000000 !important;
                width: 35px !important;
                height: 35px !important;
                border-radius: 5px !important;
                position: fixed;
                z-index: 1 !important;
                cursor: pointer;
                right: 15px !important;
                bottom: 80px !important;
            }
			}






/* ======================================
SEKCJA "O NAS"
====================================== */
.about-section .about-img img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
}
.about-section .about-img img:hover { transform: scale(1.03); }
.about-section .is-style-reverse { flex-direction: row-reverse; }
@media (max-width: 768px) {
	.about-section .is-style-reverse { flex-direction: column !important; }
	.about-section .about-img img { height: 300px; }
}

/* ======================================
KAFELKI KATEGORII PRODUKTÓW
====================================== */
#primary { margin: 10em 0; }
.product-category-fullwidth { width: 100%; padding: 0 0 45px; background-color: #fff; }
.category-swiper { width: 100%; padding: 0 40px; box-sizing: border-box; }
.swiper-slide { display: flex; justify-content: center; }
.category-card { position: relative; display: block; width: 100%; max-width: 360px; height: 380px; border-radius: 5px; overflow: hidden; text-decoration: none; background-color: #000; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.category-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.category-card-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); transition: filter 0.4s ease, transform 0.4s ease; }
.category-card:hover .category-card-img { filter: brightness(0.8); transform: scale(1.05); }
.category-card-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; padding: 20px; }
.category-card-title { color:#fff; font-size: 1.4rem; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.category-card .btn { border-radius: 8px; padding: 8px 18px; transition: all 0.3s ease; }
.category-card .btn:hover { background: #000; color: #fff; }
.swiper-button-prev, .swiper-button-next { color: #000; transition: color 0.3s ease; }
.swiper-button-prev:hover, .swiper-button-next:hover { color: #555; }
.category-card-placeholder { display: flex; justify-content: center; align-items: center; background: #555; height: 100%; color: #fff; font-weight: 600; }
@media (max-width: 768px) {
	.category-card { height: 280px; }
	.category-card-title { font-size: 1.1rem; }
}
@media (min-width: 922px) {
	.ast-separate-container #primary,
	.ast-separate-container.ast-left-sidebar #primary,
	.ast-separate-container.ast-right-sidebar #primary { margin: 7em 0; padding: 0; }
}
@media (min-width: 1201px) {
	.ast-separate-container .ast-archive-description,
	.ast-separate-container .ast-author-box { margin: 0; padding: 3em 6.67em 1em; }
}
.ast-separate-container #primary { padding: 7em 0; margin: 0; border: 0; }

/* ======================================
STICKY HEADER
====================================== */
.main-header-bar, .ast-primary-header-bar, .ast-mobile-header-wrap { position: fixed !important; top: 0; left: 0; width: 100%; z-index: 9999; background: #fff; box-shadow: none; transition: all 0.3s ease; }
.site-content, .ast-woocommerce-container { padding-top: 25px; }
body.scrolled .main-header-bar, body.scrolled .ast-primary-header-bar, body.scrolled .ast-mobile-header-wrap { box-shadow: 0 3px 12px rgba(0,0,0,0.1); background: rgba(255,255,255,0.97); }
body.home.ast-transparent-header .main-header-bar,
body.home.ast-transparent-header .ast-primary-header-bar { background: transparent !important; box-shadow: none !important; transition: all 0.3s ease; }
body.home.ast-transparent-header.scrolled .main-header-bar,
body.home.ast-transparent-header.scrolled .ast-primary-header-bar { background: #fff !important; box-shadow: 0 3px 12px rgba(0,0,0,0.1) !important; }
.ast-header-break-point .ast-mobile-header-wrap { background: #fff !important; position: fixed !important; top: 0; left: 0; width: 100%; z-index: 9999; }
@media (min-width: 921px) {
	.ast-theme-transparent-header #ast-desktop-header > .ast-main-header-wrap > .main-header-bar { border-bottom: 1px solid #cecece; background: #fff; }
}
@media (max-width: 921px) { .site-navigation { margin-top: 91px; } }

/* ======================================
LISTY W MENU
====================================== */
.main-header-bar-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-header-bar-navigation li { display: block; border-bottom: 1px solid rgba(0,0,0,0.06); }
.main-header-bar-navigation li:last-child { border-bottom: none; }
.main-header-bar-navigation a { display: block; padding: 12px 16px; color: inherit; text-decoration: none; font-weight: 500; transition: color 0.2s ease, background 0.2s ease; }
.main-header-bar-navigation a:hover { color: var(--ast-global-color-0, #2d2d2d); background: rgba(0,0,0,0.03); }
@media (max-width: 921px) { .main-header-bar-navigation ul { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.08); } }

/* ======================================
SIDEBAR I FILTRY
====================================== */
#secondary { position: static; align-self: flex-start; z-index: 1; background: #fff; padding: 0; margin: 7em 0 2.5em; display: flex; flex-direction: column; overflow: hidden; }
.woocommerce .ast-container { gap: 30px; }
#secondary .custom-left-panel { display: flex; flex-direction: column; height: 100%; max-height: 80vh; padding-left:15px;}

/* HEADER - Filtry + wyszukiwarka */
#secondary .custom-left-panel .panel-header {
padding: 20px 0 15px;
	border-bottom: 1px solid #eee;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 5;
}
#secondary .custom-left-panel .panel-header h2.menu-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 12px;
	color: #222;
}



.panel-categories{
	overflow-y:auto;
	max-height:400px;
}




/* ==============================
WYSZUKIWARKI - UJEDNOLICONY STYL
============================== */
.woocommerce .woocommerce-product-search,
#mobile-filters-menu .search-form,
#secondary .custom-left-panel .woocommerce-product-search {
	display: flex;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	margin-bottom: 15px;
	overflow: hidden;
	position: relative;
	    width: 100%;
}

.woocommerce .woocommerce-product-search input[type="search"],
#mobile-filters-menu .search-field,
#secondary .custom-left-panel .woocommerce-product-search input[type="search"] {
	flex: 1;
	padding: 10px 40px 10px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.95rem;
	outline: none;
	transition: all 0.3s ease;
}

.woocommerce .woocommerce-product-search input[type="search"]:focus,
#mobile-filters-menu .search-field:focus,
#secondary .custom-left-panel .woocommerce-product-search input[type="search"]:focus {
	border-color: var(--ast-global-color-1);
	box-shadow: 0 0 6px rgba(92,106,196,0.2);
}

.woocommerce .woocommerce-product-search button,
#mobile-filters-menu .search-submit,
#secondary .custom-left-panel .woocommerce-product-search button {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--ast-global-color-1);
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.woocommerce .woocommerce-product-search button i,
#mobile-filters-menu .search-submit i,
#secondary .custom-left-panel .woocommerce-product-search button i {
	font-size: 16px;
	font-weight: 900;
	color: var(--ast-global-color-1);
}

.woocommerce .woocommerce-product-search button:hover i,
#mobile-filters-menu .search-submit:hover i,
#secondary .custom-left-panel .woocommerce-product-search button:hover i {
	color: var(--ast-global-color-2);
}

/* Placeholder */
.woocommerce .woocommerce-product-search input::placeholder,
#mobile-filters-menu .search-field::placeholder,
#secondary .custom-left-panel .woocommerce-product-search input::placeholder {
	color: #aaa;
	font-style: italic;
}

/* ======================================
LISTA KATEGORII DROPDOWN
====================================== */
.custom-product-categories { list-style: none; margin: 0; padding: 0; }
.custom-product-categories .parent-cat { border-bottom: 1px solid #f1f1f1; padding: 4px 0; }
.custom-product-categories .cat-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 10px 0; position: relative; }
.custom-product-categories .cat-toggle a { flex: 1; color: #222; text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.3s ease; }
.custom-product-categories .cat-toggle a:hover { color: var(--ast-global-color-1); }

/* Strzałka */
.custom-product-categories .toggle-subcats { background: none; border: none; padding: 6px 8px; cursor: pointer; color: #777; display: flex; align-items: center; justify-content: center; transition: color 0.3s ease, transform 0.3s ease; }
.custom-product-categories .toggle-subcats::before { content: ""; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 13px; transition: transform 0.3s ease, color 0.3s ease; }
.custom-product-categories .parent-cat.open .toggle-subcats::before { transform: rotate(180deg); color: var(--ast-global-color-1); }

/* PODKATEGORIE */
.custom-product-categories .subcategories { list-style: none; margin: 0; padding-left: 15px; display: block; overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-5px); transition: all 0.4s ease; }
.custom-product-categories .subcategories li { padding: 6px 0; }
.custom-product-categories .subcategories a { text-decoration: none; color: #555; font-size: 14px; display: flex; justify-content: space-between; transition: color 0.3s ease; }
.custom-product-categories .subcategories a:hover { color: var(--ast-global-color-1); }
.custom-product-categories .parent-cat.open > .subcategories { max-height: 500px; opacity: 1; transform: translateY(0); padding-top: 4px; }
.custom-product-categories li:last-child { border-bottom: none; }
.custom-product-categories .count { color: #999; font-size: 13px; margin-left: 5px; }

/* ======================================
FOOTER PANEL SOCIAL
====================================== */
#secondary .custom-left-panel .panel-footer {
	display: flex;
	gap: 10px;
	border-top: 1px solid #eee;
	padding: 15px 25px 20px;
	background: #fff;
	position: sticky;
	bottom: 0;
	z-index: 5;
}
#secondary .custom-left-panel .panel-footer a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	font-size: 14px;
	text-decoration: none;
	background: #000;
	color: #fff;
	border: 1px solid #000;
	border-radius: 6px;
	transition: all 0.3s ease;
}
#secondary .custom-left-panel .panel-footer a:hover { background: var(--ast-global-color-1); border-color: var(--ast-global-color-1); color: #fff; }

/* ======================================
RESPONSYWNOŚĆ
====================================== */
@media (max-width: 920px) { #secondary { display: none !important; } }

/* ======================================
MOBILE MENU
====================================== */
#mobile-filters-overlay{
    position:fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5); z-index:9998; display:none;
}
#mobile-filters-menu{
    position:fixed; top:0; left:-400px; width:400px; height:100%;
    background:#fff; z-index:9999; display:flex; flex-direction:column;
    transition:left 0.3s ease; box-shadow:2px 0 15px rgba(0,0,0,0.2);
	padding:15px;
}

@media (max-width: 768px) {
	#mobile-filters-menu{
   left:-100%; 
   width:100%; 
   height:100%;
    
}
}


.woocommerce-js h2 {
    margin-bottom: 25px;
}



#mobile-filters-menu.active{ left:0; }
.mobile-filters-header{ position:sticky; top:0; background:#fff; z-index:10; padding-left:1px; padding-right:1px; padding-top:1rem; display:flex; flex-direction:column; border-bottom:1px solid #ddd; align-items: flex-start; }
.menu-title{ font-size:1.2rem;  color:#000; border-bottom:1px solid #ddd; width:100%; margin-bottom:1rem; padding-bottom:0.25rem; }
.close-mobile-filters{ position:absolute; top:0rem; right:1rem; font-size:1.2rem; cursor:pointer; color:#333; }

/* Lista kategorii */
#mobile-filters-menu .mobile-product-categories{ list-style:none; padding:0; margin:0;}
#mobile-filters-menu .category-item{ border-bottom:1px solid #eee; padding:0.75rem 0; display:block; position: relative; }
#mobile-filters-menu .category-item .subcategories{ list-style:none; padding-left:1rem; margin-top:0.5rem; display:none; width:100%; }
#mobile-filters-menu .category-item .subcategories li{ display:block; padding:0.4rem 0; }

/* Strzałki */
#mobile-filters-menu .toggle-subcats{ cursor:pointer; font-size:0.9rem; position:absolute; right:0; top:50%; transform: translateY(-50%); transition: transform 0.2s ease; }
#mobile-filters-menu .toggle-subcats.expanded{ transform: translateY(-50%) rotate(180deg); }

/* Liczba produktów */
.cat-count{ font-size:0.85rem; color:#777; }

/* Dolny panel */
.mobile-bottom-menu{ position:fixed; bottom:0; left:0; width:100%; background:#fff; border-top:1px solid #ddd; display:flex; justify-content:space-between; align-items:center; padding:0.5rem 1rem; z-index:10000; }
.primary-buttons, .social-buttons{ display:flex; gap:1rem; }
.bottom-btn{ display:flex; flex-direction:column; align-items:center; justify-content:center; background:none; border:none; font-size:0.85rem; color:#333; cursor:pointer; text-decoration:none; }
.bottom-btn i{ font-size:1.2rem; margin-bottom:0.2rem; }








.mobile-filters-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.mobile-filters-menu.open {
    right: 0;
}

.mobile-filters-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.mobile-filters-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
		padding-bottom:35px;

}

/* przewijana część */
.mobile-filters-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

.mobile-filters-scroll::-webkit-scrollbar {
    width: 6px;
}

.mobile-filters-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Lista kategorii */
.mobile-product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
    position: relative;
}

.cat-title {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.cat-title:hover {
    color: #0073aa;
}

.subcategories {
    display: none;
    margin-left: 15px;
    margin-top: 5px;
}

.category-item.open .subcategories {
    display: block;
}


