/* CSS dla bloku realizacje */
.realizacje {
	/* Style tutaj */
}
.nakladka-relaizacja-kafle{
	background: linear-gradient(239.9deg, rgba(0, 0, 0, 0) 27.69%, rgba(0, 0, 0, 0.5) 63.86%);

}
.realizacje-kafle-rozne:nth-child(7n+1){
	width: 50%;
}
.realizacje-kafle-rozne:nth-child(7n+2){
	width: 50%;
}
.realizacje-kafle-rozne:nth-child(7n+3){
	width: 25%;
}
.realizacje-kafle-rozne:nth-child(7n+4){
	width: 50%;
}
.realizacje-kafle-rozne:nth-child(7n+5){
	width: 25%;
}
.realizacje-kafle-rozne:nth-child(7n+6){
	width: 30%;
}
.realizacje-kafle-rozne:nth-child(7n+7){
	width: 70%;
}
.realizacje-kafle-rozne{
	height: 30vh !important;
}


.page-id-31 header#masthead{
	position: relative !important;
	background-color: #1B1B1B !important;
}
.wybierak ul {
    margin: 0px !important;
    padding: 0px !important;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
}

.single-produkty_kros header#masthead{
	position: relative !important;
	background-color: #1B1B1B !important;
}

.fs-7 {
    font-size: 0.75rem !important;
}
.opisli {
    cursor: pointer;
	color: black;
}
.action {
    position: relative;
	color: #7A7A7A !important;
}
.wybierak {
    padding: 0px 5%;
    border-bottom: 2px solid black;
}
.action::after {
    position: absolute;
    bottom: -28px;
    width: 120%;
    border: solid 3px #7A7A7A;
    content: "";
    left: -10%;
}

/* Mobile dropdown styles */
.wybierak-mobile {
    margin-bottom: 30px;
    padding: 0 15px;
}

.mobile-dropdown {
    position: relative;
    width: 100%;
}

.mobile-dropdown-btn {
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-dropdown-btn:hover {
    background-color: #f8f9fa;
    border-color: #7A7A7A;
}

.mobile-dropdown-btn.active {
    border-color: #7A7A7A;
    background-color: #f8f9fa;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #7A7A7A;
    font-size: 14px;
}

.mobile-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #7A7A7A;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-dropdown-list.show {
    max-height: 300px;
    border-top: 1px solid #e9ecef;
}

.mobile-dropdown-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    background-color: #f8f9fa;
}

.mobile-dropdown-item.active {
    background-color: #7A7A7A;
    color: white;
}

.kreska-150{
	height: 2px;
	width: 150px !important;
	background-color: white;
}
.realizacje-kafle-rozne p.site-title a{
	font-size: 12px !important;
}
.farsz_real .opis h2{
	width: fit-content !important;
}
.fs-12{
	font-size: 0.8rem !important;
}
@media screen and (max-width: 992px){
	.action::after {
    bottom: -15px;
	}

	.realizacje-kafle-rozne:nth-child(7n+7) {
		width: 100%;
	}

	.realizacje-kafle-rozne:nth-child(7n+1){
	width: 100%;
}
.realizacje-kafle-rozne:nth-child(7n+2){
	width: 100%;
}
.realizacje-kafle-rozne:nth-child(7n+3){
	width: 100%;
}
.realizacje-kafle-rozne:nth-child(7n+4){
	width: 100%;
}
.realizacje-kafle-rozne:nth-child(7n+5){
	width: 100%;
}
.realizacje-kafle-rozne:nth-child(7n+6){
	width: 100%;
}
}

/* Mobile tabs horizontal scroll styles */
.mobile-tabs-container {
    margin-bottom: 30px;
    padding: 0 15px;
}

.mobile-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-tabs-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    gap: 10px;
    min-width: 100%;
}

.mobile-tab-item {
    flex: 0 0 auto;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: fit-content;
}

.mobile-tab-item:hover {
    background-color: #e9ecef;
    border-color: #7A7A7A;
}

.mobile-tab-item.active {
    background-color: #7A7A7A;
    color: white;
    border-color: #7A7A7A;
}

/* Mobile accordion styles */
.mobile-accordion {
    margin-bottom: 30px;
    padding: 0 15px;
}

.mobile-accordion-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-accordion-item.active {
    border-color: #7A7A7A;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-accordion-header {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-accordion-header:hover {
    background-color: #e9ecef;
}

.mobile-accordion-item.active .mobile-accordion-header {
    background-color: #7A7A7A;
    color: white;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    color: #7A7A7A;
    font-size: 14px;
}

.mobile-accordion-item.active .accordion-arrow {
    color: white;
    transform: rotate(180deg);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.mobile-accordion-content.show {
    max-height: 400px;
}

.accordion-inner {
    padding: 20px;
}

.accordion-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.accordion-preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accordion-show-all {
    background: #7A7A7A;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.accordion-show-all:hover {
    background-color: #5a5a5a;
}

/* Style switcher for admin preview */
.mobile-style-preview {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #7A7A7A;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

body.admin-bar .mobile-style-preview {
    display: block;
}

.mobile-style-preview h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.mobile-style-preview button {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.mobile-style-preview button.active {
    background: #7A7A7A;
    color: white;
    border-color: #7A7A7A;
}

/* Frontend Mobile Style Switcher */
.mobile-style-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.switcher-toggle {
    background: #7A7A7A;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
}

.switcher-toggle:hover {
    background: #5a5a5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.switcher-toggle span:first-child {
    font-size: 16px;
}

.switcher-options {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.switcher-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.switcher-options h4 {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.style-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    margin: 4px 0;
    border: 2px solid #f1f3f4;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.style-option:hover {
    background: #e9ecef;
    border-color: #7A7A7A;
}

.style-option.active {
    background: #7A7A7A;
    color: white;
    border-color: #7A7A7A;
}

.style-icon {
    font-size: 16px;
}

/* Overlay dla zamykania switcher'a */
.switcher-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: none;
}

.switcher-overlay.show {
    display: block;
}

/* Hide all mobile variants by default, show only active one */
.mobile-variant {
    display: none !important;
}

.mobile-variant.active {
    display: block !important;
}

/* Responsive adjustments for switcher */
@media screen and (max-width: 480px) {
    .mobile-style-switcher {
        bottom: 15px;
        right: 15px;
    }
    
    .switcher-toggle {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .switcher-options {
        min-width: 160px;
        padding: 14px;
    }
    
    .style-option {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .style-icon {
        font-size: 14px;
    }
}