/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    width: 3000px;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    position: fixed;
    top: 0;
    left: calc(50% - 650px - 3000px + 300px);
    background-image: url('data:image/svg+xml,<svg height="3000" width="3000" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 2990,0 2200,3000 0,3000" style="fill:%230d0379;stroke:none;stroke-width:0" /></svg>');
    background-repeat: no-repeat;
    background-position: top right;
    display: flex;
    justify-content: center;
}
.nav-block1 {
    width: calc(100% - 320px);
}
.nav-block2 {
    width: 320px;
    padding: 20px 0px;
    position: relative;
}

.nav-logo {
    position: relative;
    display: block;
    padding: 0px 0px 0px 70px;
}

.nav-menu {
    margin-top: 70px;
    display: block;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 0px 0px 40px;
    width: calc(100% - 45px);
    height: 90px;
    display: flex;
    align-items: center;
}
.nav-menu .nav-item:nth-child(1){
    padding: 0 0px 0px 110px; 
}
.nav-menu .nav-item:nth-child(2){
    padding: 0 0px 0px 80px; 
}
.nav-menu .nav-item:nth-child(3){
    padding: 0 0px 0px 40px; 
}
.nav-link.active {
    color: #ffffff;
    font-weight: 700;
}
.nav-link.active::before{
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    width: 445px;
    height: 90px;
    background-image: url('data:image/svg+xml,<svg height="90" width="445" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 445,0 422,90 0,90" style="fill:%231b18ff;stroke:none;stroke-width:0" /></svg>');
    background-repeat: no-repeat;
}
.nav-menu .nav-item:nth-child(2) .nav-link.active::before{
    right: 24px;
}
.nav-menu .nav-item:nth-child(3) .nav-link.active::before{
    right: 47px;
}
.nav-link span {
    position: relative;
    border-bottom: 2px solid transparent;
}

.nav-link span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #124497;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link.active span::after {
    width: 100%;
    background: #ffffff;
    transition: none;
}

.nav-link:hover span::after {
    width: 100%;
    background: #0943af;
}

.nav-link.active:hover span::after {
    width: 100%;
    background: #ffffff;
    transition: none;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    /* Reset button styles */
    background: none;
    border: none;
    outline: none;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
}
html {
    scroll-behavior: smooth;
    height: 100%;
}
/* Body adjustments for full-width sections */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100%;;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url('/assets/images/bg-cont.svg');
    background-repeat: no-repeat;
    background-position: top left;
}

/* Start anchor */
#start {
    position: absolute;
    top: 70px;
}

/* Category Header */
.category-header {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.category-header h2 {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.grid-item {
    background: white;
    border: 1px solid #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.grid-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.grid-item:nth-child(n+5) {
    border-bottom: none;
}

/* Dla strony głównej z 4 kolumnami - usuń dolny border od 5 elementu */
.grid-container.home-page .grid-item:nth-child(n+6) {
    border-bottom: none;
    gap: 10px;
}

/* Przywróć dolny border dla 4 elementu na stronie głównej */
.grid-container.home-page .grid-item:nth-child(5) {
    border-bottom: 1px solid #72a7f7;
}

.grid-item.empty-item {
    background: white;
    cursor: default;
}

.category-content {
    width: calc(100% - 10px);
    padding: 20px 5px 20px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-icon {
    width: 3rem;
    height: 3rem;
    color: #667eea;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}


.category-content a{
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.category-content a img{
    width: auto;
    height: 200px;
}
.category-content > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.category-title {
    font-size: 1.3rem;
    color: #124497;
    margin-bottom: 8px;
    font-weight: 700;
    text-decoration: none;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

/* Product view styles - TYLKO DESKTOP */
@media (min-width: 769px) {
    .grid-container.product-view {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

.grid-item.selected-category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.grid-item.selected-category .category-icon {
    color: white;
}

.grid-item.selected-category .category-title,
.grid-item.selected-category .category-count {
    color: white;
}

/* Style dla głównego boksu kategorii (bez linku) */
.grid-item.category-mainbox {
    cursor: default;
}

.grid-item.product-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.grid-item.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: opacity 0.3s ease;
}

.grid-item.product-item:hover::before {
    opacity: 0.8;
}

.product-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0px 20px 20px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Animation classes */
.grid-item.animate-out {
    animation: slideOut 0.5s ease-in-out forwards;
}

.grid-item.animate-in {
    animation: slideIn 0.5s ease-in-out forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Sekcje strony głównej */
.offer-section, .contact-section, .realizations-section {
    width: 100%;
    margin-bottom: 0;
    padding: 30px 0 40px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-header h2 {
    color: #124497;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: #124497;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Sekcja Oferta */
.offer-section h2, .offer-section p{
   color: #123a75;
}
.product-content p{
   color: #333;
}
/* Animacje SVG w sekcji oferta */
.category-svg {
    height: 150px;
    width: auto;
    max-width: 100%;
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto 15px auto;
}

.subpage-offer-section .category-content>div .category-svg {
    height: auto;
    width: 150px;
    max-width: 100%;
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto 15px auto;
}

/* Animacje hover TYLKO na stronie głównej */
.grid-container.home-page .grid-item:not(.category-mainbox):hover .category-svg {
    transform: scale(1.15) rotate(5deg) !important;
}

/* Wyłącz animacje hover dla zdjęć produktów */
.product-image-box .grid-item:hover .category-svg {
    transform: none !important;
}

/* Wyłącz wszystkie animacje hover dla boxów na stronach produktów */
.product-layout .grid-item:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Pozostaw tylko podstawowy cień */
}



/* Sekcja Realizacje - Galeria */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}


.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img:not(.gallery-zoom) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img:not(.gallery-zoom) {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

/* Modal dla powiększonych zdjęć */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
    pointer-events: none;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

/* Blokada interakcji gdy modal jest otwarty */
body.modal-open {
    overflow: hidden;
}

body.modal-open * {
    pointer-events: none;
}

body.modal-open .modal,
body.modal-open .modal * {
    pointer-events: all;
}



.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    color: #ccc;
}

/* Nawigacja w modalu */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: 30px;
}

.modal-nav.next {
    right: 30px;
}

/* Przyciski nawigacji są zawsze aktywne w karuzeli w pętli */

.modal-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10001;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Sekcja Kontakt - Nowoczesny design */

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Nagłówek sekcji kontakt */
.contact-header {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #123a75;
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Nowoczesny układ kontaktu */
.contact-content-modern {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.company-logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #123a75, #1e4a8c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-initial {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.company-details h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #123a75;
    margin-bottom: 5px;
}

.company-tagline {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.company-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.company-description p:last-child {
    margin-bottom: 0;
}

/* Siatka kart kontaktowych */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #123a75, #1e4a8c);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #123a75, #1e4a8c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.contact-card-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #123a75;
    margin-bottom: 15px;
}

/* Karta adresowa */
.address-details p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.address-details .nip {
    color: #888;
    font-size: 1rem;
    margin-top: 10px;
}

/* Karta telefoniczna */
.phone-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: #123a75;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #1e4a8c;
}

.phone-description {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Karta usług */
.services-details p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.services-details p::before {
    content: "•";
    color: #123a75;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    gap: 10px;
}

.btn-large svg {
    flex-shrink: 0;
}
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 150ms ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 48px; /* Accessibility: minimum touch target */
}

.btn-primary {
    background: #123a75;
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #123a75;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    outline: 2px solid #123a75;
    outline-offset: 2px;
}

/* Stopka */
.footer {
    margin-top: 10px;
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    text-align: center;
    
}
.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Back arrow */
.back-arrow {
    position: absolute;
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
    color: white;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    background: #124497 url('/assets/images/arrow-left.svg') no-repeat center;
    background-size: 15px 9.371px;
    z-index: 1000;
}

.show-back-arrow .back-arrow {
    display: flex;
}

.show-back-arrow .grid-item:first-child {
    position: relative;
    overflow: visible !important; /* Pokaż strzałkę poza boxem */
}

/* Back arrow dla product-layout */
.show-back-arrow.product-layout {
    position: relative;
}

.show-back-arrow.product-layout .back-arrow {
    display: flex;
}

/* Responsive design */

/* Specjalny układ dla strony kategorii - TYLKO DESKTOP */

@media (min-width: 769px) {
    .grid-container.category-page {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        max-width: 1200px;
        margin: 0 auto;
        /* border: 1px solid #808080; - przeniesione na boxy */
    }

    .grid-container.category-page .grid-item:nth-child(1) {
        /* Kategoria - pozycja 1, bez animacji hover */
        grid-column: 1;
        grid-row: 1;
    }

    .grid-container.category-page .grid-item:nth-child(1):hover {
        /* Wyłącz animację hover dla kategorii */
        transform: none;
        box-shadow: none;
    }

    /* Wyłącz animacje hover dla wszystkich produktów na stronach kategorii */
    .grid-container.category-page .grid-item:hover .category-svg {
        transform: none !important;
    }
    
    .grid-container.category-page .grid-item:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Pozostaw tylko podstawowy cień */
    }

    .grid-container.category-page .grid-item:nth-child(2) {
        /* Pierwszy produkt - pozycja 2 */
        grid-column: 2;
        grid-row: 1;
    }

    .grid-container.category-page .grid-item:nth-child(3) {
        /* Drugi produkt - pozycja 3 */
        grid-column: 3;
        grid-row: 1;
    }

    .grid-container.category-page .grid-item:nth-child(4) {
        /* Trzeci produkt - pozycja 4 */
        grid-column: 4;
        grid-row: 1;
    }

    /* Pustka pod kategorią - rząd 2, kolumna 1 pozostaje pusta */

    .grid-container.category-page .grid-item:nth-child(5) { grid-column: 2; grid-row: 2; }
    .grid-container.category-page .grid-item:nth-child(6) { grid-column: 3; grid-row: 2; }
    .grid-container.category-page .grid-item:nth-child(7) { grid-column: 4; grid-row: 2; }
    .grid-container.category-page .grid-item:nth-child(8) { grid-column: 2; grid-row: 3; }
    .grid-container.category-page .grid-item:nth-child(9) { grid-column: 3; grid-row: 3; }
    .grid-container.category-page .grid-item:nth-child(10) { grid-column: 4; grid-row: 3; }
    .grid-container.category-page .grid-item:nth-child(11) { grid-column: 2; grid-row: 4; }
    .grid-container.category-page .grid-item:nth-child(12) { grid-column: 3; grid-row: 4; }
    .grid-container.category-page .grid-item:nth-child(13) { grid-column: 4; grid-row: 4; }
    .grid-container.category-page .grid-item:nth-child(14) { grid-column: 2; grid-row: 5; }   
    .grid-container.category-page .grid-item:nth-child(15) { grid-column: 3; grid-row: 5; }  
    .grid-container.category-page .grid-item:nth-child(16) { grid-column: 4; grid-row: 5; }       

    /* Border dla wszystkich boxów w układzie kategorii */
    .grid-container.category-page .grid-item {
        border: 1px solid #72a7f7;
    }
}

/* Mobile and Tablet Navigation */
@media (max-width: 768px) {
    /* Reset navbar for mobile */
    .navbar {
        width: 100%;
        height: 70px;
        position: fixed;
        top: 0;
        left: 0;
        background: #0d0379;
        background-image: none;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-block1 {
        display: none;
    }
    
    .nav-block2 {
        width: 100%;
        padding: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-logo {
        position: static;
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .nav-logo img {
        height: 40px;
        width: auto;
    }
    
    /* Mobile menu toggle - show on mobile */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle .bar {
        background-color: #ffffff;
    }
    
    /* Mobile menu */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #0d0379;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        margin-top: 0;
        padding-top: 0px;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-item {
        margin: 20px auto;
        padding: 0;
        width: 90%;
        text-align: center;
    }
    
    .nav-menu .nav-item:nth-child(1),
    .nav-menu .nav-item:nth-child(2),
    .nav-menu .nav-item:nth-child(3) {
        padding: 0;
    }
    
    .nav-link {
        width: 100%;
        height: 60px;
        padding: 0 20px;
        font-size: 1.2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .nav-link.active {
        background: #1b18ff;
        font-weight: 700;
    }
    
    .nav-link.active::before {
        display: none;
    }
    
    .nav-link span::after {
        display: none;
    }
    
    /* Adjust main content for mobile */
    #main-content {
        margin-left: 0;
        padding-top: 70px;
    }
    
    /* Overlay when menu is open */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Smooth animations for mobile menu */
    .nav-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease, left 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    /* Stagger animation for menu items */
    .nav-menu .nav-item {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    
    /* Grid styles for mobile */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .grid-item:nth-child(3n) {
        border-right: 1px solid #808080;
    }
    
    .grid-item:nth-child(2n) {
        border-right: none;
    }
    
    .grid-item:nth-child(n+5) {
        border-bottom: none;
    }
    
    .category-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }

/* Tablet Navigation (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        width: 100%;
        height: 80px;
        position: fixed;
        top: 0;
        left: 0;
        background: #0d0379;
        background-image: none;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 30px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-block1 {
        display: none;
    }
    
    .nav-block2 {
        width: 100%;
        max-width: 1000px;
        padding: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-logo {
        position: static;
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .nav-logo img {
        height: 50px;
        width: auto;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        margin-top: 0;
        gap: 30px;
    }
    
    .nav-menu .nav-item {
        padding: 0;
    }
    
    .nav-menu .nav-item:nth-child(1),
    .nav-menu .nav-item:nth-child(2),
    .nav-menu .nav-item:nth-child(3) {
        padding: 0;
    }
    
    .nav-link {
        width: auto;
        height: auto;
        padding: 10px 20px;
        font-size: 1.1rem;
        border-radius: 25px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .nav-link.active {
        background: #1b18ff;
        font-weight: 700;
    }
    
    .nav-link.active::before {
        display: none;
    }
    
    .nav-link span::after {
        display: none;
    }
    
    .nav-toggle {
        display: none;
    }
    
    #main-content {
        margin-left: 0;
        padding-top: 80px;
    }
}

/* Responsywne style dla nowych sekcji */
.offer-section, .realizations-section, .contact-section {
        padding: 20px 15px 20px 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Responsywne style dla nowoczesnej strony kontakt */
    .contact-section {
        padding: 20px 0 40px 0;
    }
    
    .contact-header h2 {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .company-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .company-logo-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .company-initial {
        font-size: 1.5rem;
    }
    
    .company-details h3 {
        font-size: 1.5rem;
    }
    
    .company-description p {
        font-size: 1rem;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
    
    .contact-card-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-card-content h4 {
        font-size: 1.2rem;
    }
    
    .phone-link {
        font-size: 1.3rem;
    }
    
    .contact-cta-section {
        padding: 40px 25px;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .phone-button {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-counter {
        top: 15px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .modal-nav {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .modal-nav.prev {
        left: 15px;
    }
    
    .modal-nav.next {
        right: 15px;
    }
    
    .modal-content {
        max-width: 98vw;
        max-height: calc(100vh - 70px);
    }
    
    .modal-caption {
        bottom: 15px;
        font-size: 1rem;
        padding: 8px 15px;
    }
    .back-arrow{
        left: 30px;
    }
}

/* Tablet layout dla kontaktu - 769px do 1000px */
@media (min-width: 769px) and (max-width: 1100px) {
    .offer-section, .realizations-section, .contact-section {
        padding: 20px 15px 20px 15px;
    }
    .grid-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(1, 1fr);
        gap: 0;
        max-width: 1080px;
        margin: 0 auto;
    }
    .grid-container.home-page {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1080px;
    }

    /* Responsywne style tablet dla nowoczesnej strony kontakt */
    .contact-section {
        padding: 20px 15px 60px 15px;
    }
    
    .contact-header h2 {
        font-size: 2.2rem;
    }
    
    
    .company-header {
        gap: 18px;
    }
    
    .company-logo-placeholder {
        width: 55px;
        height: 55px;
    }
    
    .company-initial {
        font-size: 1.6rem;
    }
    
    .company-details h3 {
        font-size: 1.6rem;
    }
    
    .contact-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .contact-card {
        padding: 28px 25px;
    }
    
    .contact-cta-section {
        padding: 45px 35px;
    }
    
    .back-arrow {
        left: 30px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .grid-item:nth-child(2n) {
        border-right: 1px solid #808080;
    }
    
    .grid-item:nth-child(n) {
        border-right: none;
    }
    
    .grid-item:nth-child(n+6) {
        border-bottom: none;
    }
    
    .category-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    /* Style dla bardzo małych ekranów */
    .offer-section, .realizations-section, .contact-section {
        padding: 20px 15px 40px 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-item {
        min-height: auto;
    }
    
    .gallery-item img:not(.gallery-zoom) {
        height: 200px;
    }
    
    .gallery-caption {
        padding: 15px;
    }
    
    .gallery-caption h4 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .gallery-caption p {
        font-size: 0.9rem;
    }
 
    /* Responsywne style dla małych ekranów - nowoczesna strona kontakt */
    .contact-section {
        padding: 20px 15px 30px 15px;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-main-card {
        padding: 25px 15px;
    }
    
    .company-logo-placeholder {
        width: 45px;
        height: 45px;
    }
    
    .company-initial {
        font-size: 1.3rem;
    }
    
    .company-details h3 {
        font-size: 1.3rem;
    }
    
    .company-description p {
        font-size: 0.95rem;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .contact-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-card-content h4 {
        font-size: 1.1rem;
    }
    
    .phone-link {
        font-size: 1.2rem;
    }
    
    .contact-cta-section {
        padding: 35px 20px;
    }

    
    .phone-button {
        font-size: 1rem;
        padding: 10px 20px;
        gap: 10px;
    }
    
    .modal-close {
        font-size: 25px;
        top: 10px;
        right: 15px;
    }
    
    .modal-counter {
        top: 10px;
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .modal-nav {
        font-size: 18px;
        padding: 10px 12px;
    }
    
    .modal-nav.prev {
        left: 10px;
    }
    
    .modal-nav.next {
        right: 10px;
    }
    
    .modal-content {
        max-width: 100vw;
        max-height: calc(100vh - 60px);
    }
    .back-arrow{
        left: 30px;
    }
}

@media (min-width: 1100px) {
    .grid-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(1, 1fr);
        gap: 0;
        max-width: 1200px;
        margin: 0 auto;
        /* border: 1px solid #808080; - przeniesione na boxy */
    }
    /* Specjalna reguła dla strony głównej - 4 kolumny */
    .grid-container.home-page {
        grid-template-columns: repeat(5, 1fr);
    }
    .back-arrow {
        left: -45px;
    }
}
@media (min-width: 1400px) {
    .modal-content {
        max-width: 90vw;
        max-height: calc(100vh - 100px);
    }
}

/* Product Layout Styles - B TTTTT */
.product-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px); /* Wypełnij większość strony */
}

.product-box {
    position: relative; /* Potrzebne dla pseudoelementów */
    height: fit-content;
    align-self: start; /* Wyrównaj do góry z treścią opisową */
}

.product-image-box {
    position: relative; /* Potrzebne dla pseudoelementów */
    height: fit-content;
    align-self: start; /* Wyrównaj do góry z treścią opisową */
}

/* Efekt hover dla zdjęcia produktu - podobny do galerii realizacji */
.product-image-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-image-box:hover::after {
    opacity: 1;
}

.product-image-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    background: url('/assets/images/zoom.svg') no-repeat center;
    background-size: contain;
    filter: brightness(0) invert(1); /* Zmień na biały */
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-image-box:hover::before {
    opacity: 1;
}

.product-main-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Usunięto animację hover - zastąpiona funkcjonalnością powiększania */

.product-content-area {
    background: #fff;
    padding: 30px;
    border: 1px solid #72a7f7;
    height: fit-content;
    min-height: 400px; /* Minimum wysokość */
}

.product-price {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #124497;
}

.product-price strong {
    color: #124497;
    font-size: 1.2em;
}

.product-description h1 {
    color: #124497;
    font-size: 2rem;
    margin: 20px 0;
    font-weight: 700;
}

.product-content {
    line-height: 1.8;
    margin: 30px 0;
    font-size: 16px;
    color: #333;
    text-align: justify;
}

.contact-info {
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.contact-info h3 {
    color: #124497;
    margin-bottom: 15px;
}

/* Modal dla powiększonych zdjęć - duplikat usunięty */




/* Linki w boxach kategorii */
.category-content a{
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.category-content a:hover {
    text-decoration: none;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-item:hover .category-title {
    color: #124497;
}

.category-mainbox{
    background-color: #124497;
}
.category-mainbox h3, .category-mainbox p, .category-mainbox:hover .category-title{
    color: #ffffff;
}

/* Responsive dla układu produktu */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .product-content-area {
        padding: 15px;
    }
}

/* Dodatkowe style dla galerii realizacji */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
}

.gallery-item img:not(.gallery-zoom) {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img:not(.gallery-zoom) {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 68, 151, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    padding: 20px;
    text-align: left;
}

.gallery-caption h4 {
    color: #124497;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.gallery-caption p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Modal dla galerii - duplikat usunięty */

.modal-content {
    display: block;
    margin: auto;
    max-width: 95vw;
    max-height: calc(100vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
    z-index: 10000;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.4);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

/* Info Grid Section - nowy design bez tła i border */
.info-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 0;
    max-width: 1200px;
    margin: 0px auto 60px auto;
    padding: 20px 20px 20px 20px;
    position: relative;
}

/* Mobile - 2 kolumny */
@media (max-width: 768px) {
    .info-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0;
        margin: 40px auto 30px auto;
        padding: 20px 15px;
    }
}

/* Desktop - 4 kolumny bez gap */
@media (min-width: 769px) {
    .info-grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 20px 0;
    }
}

/* Nowe style dla info grid items - bez tła i border */
.info-grid-item {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Separatory między boksami - tylko na desktop */
@media (min-width: 769px) {
    .info-grid-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 60%;
        background: #124497;
    }
}

/* Na mobile separatory poziome */
@media (max-width: 768px) {
    .info-grid-item:nth-child(1)::after,
    .info-grid-item:nth-child(2)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
        background: #ddd;
    }
    
    .info-grid-item:nth-child(odd):not(:nth-child(3))::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 60%;
        background: #ddd;
    }
}

.info-content {
    text-align: center;
    padding: 0;
}

.info-svg {
    width: 60px;
    height: 60px;
    color: #124497;
    margin-bottom: 15px;
}

.info-title {
    font-size: 1.2rem;
    color: #124497;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-description {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Style dla info items - zachowaj kompatybilność */
.info-item {
    cursor: default;
}

.contact-section, .subpage-offer-section, .info-grid-container{
    margin-bottom: 200px;
}

/* Sekcja Asystory Stomatologiczne */
.asystory-section {
    width: 100%;
    padding: 80px 0;
    margin-bottom: 0;
}

.asystory-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.asystory-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.asystory-section .section-header h2 {
    color: #124497;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.asystory-section .section-header p {
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
}

.asystory-content {
    max-width: 1000px;
    margin: 0 auto;
}

.asystory-description h3 {
    color: #124497;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.asystory-description > p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    text-align: center;
}

/* Siatka cech produktu */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    background: white;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-item h4 {
    color: #124497;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Sekcja korzyści */
.asystory-benefits {
    background: white;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.asystory-benefits h4 {
    color: #124497;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.asystory-benefits ul {
    list-style: none;
    padding: 0;
}

.asystory-benefits li {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.asystory-benefits li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Sekcja kontaktowa */
.contact-cta {
    text-align: center;
    background: #124497;
    padding: 40px;
    color: white;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.contact-cta .btn {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.contact-cta .btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Responsywność dla sekcji asystory */
@media (max-width: 768px) {
    .asystory-section {
        padding: 60px 0;
    }
    
    .asystory-section .section-header h2 {
        font-size: 2rem;
    }
    
    .asystory-section .section-header p {
        font-size: 1.1rem;
    }
    
    .asystory-description h3 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 25px 20px;
    }
    
    .asystory-benefits {
        padding: 30px 20px;
    }
    
    .contact-cta {
        padding: 30px 20px;
    }
    
    .contact-cta p {
        font-size: 1.1rem;
    }
    
    .contact-cta .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .asystory-section .container {
        padding: 0 15px;
    }
    
    .asystory-section .section-header h2 {
        font-size: 1.8rem;
    }
    
    .asystory-description > p {
        font-size: 1rem;
    }
    
    .feature-item h4 {
        font-size: 1.2rem;
    }
    
    .asystory-benefits li {
        font-size: 1rem;
    }
}

/* Color Palette Styles */
.color-palette-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.color-palette-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.color-palette {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.color-item {
    text-align: center;
}

.color-box {
    width: 100%;
    height: 40px;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.color-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.color-name {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    line-height: 1.2;
}

/* Tablet styles */
@media (min-width: 481px) and (max-width: 768px) {
    .color-palette {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
    
    .color-box {
        height: 35px;
    }
    
    .color-name {
        font-size: 0.85rem;
    }
    
    .color-palette-section {
        padding: 12px;
    }
}
@media (min-width: 769px) and (max-width:950px) {
    /* Navigation */
    .navbar {
        width: 3000px;
        height: 100vh;
        left: calc(-3000px + 40vw);
    }
    .nav-block1 {
        width: calc(100% - 40vw);
    }
    .nav-block2 {
        width: 40vw;
        padding: 20px 0px;
        position: relative;
    }
    .main-content-container{
        margin-left: 29vw;
    }
    .product-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 950px;
        margin: 0 auto;
        padding: 20px;
        min-height: calc(100vh - 200px);
    }
}
@media (min-width: 951px) and (max-width: 1200px) {
    /* Navigation */
    .navbar {
        width: 3000px;
        height: 100vh;
        left: calc(-3000px + 30vw);
    }
    .nav-block1 {
        width: calc(100% - 30vw);
    }
    .nav-block2 {
        width: 30vw;
        padding: 20px 0px;
        position: relative;
    }
    .main-content-container{
        margin-left: 22vw;
    }
}
@media (min-width: 1201px) {
    .main-content-container{
        margin-left: 260px;
    }
}
/* Mobile styles */
@media (max-width: 480px) {
    .color-palette {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .color-box {
        height: 30px;
    }
    
    .color-name {
        font-size: 0.8rem;
    }
    
    .color-palette-section {
        margin-top: 15px;
        padding: 10px;
    }
    
    .color-palette-section h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}
