/* ===== MATERIJALI PAGE - PREMIUM REDESIGN ===== */

.materijali-content {
    background: #000;
    overflow-x: hidden;
}

/* Category Split Landing */
.material-category-split {
    display: flex;
    height: 99.9999vh;
    height: 99.9999svh;
    width: 100%;
    overflow: hidden;
}

/* Page specific nav styling */
.materijali-content~.main-nav {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.gateway-mode {
    height: 100vh;
    height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (max-width: 900px) {
    .gateway-mode {
        height: auto !important;
        overflow: visible !important;
    }
}

.category-choice {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    transition: flex 1s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-choice:hover {
    flex: 1.2;
}

.choice-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-choice:hover .choice-bg {
    transform: scale(1.1);
}

.choice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.choice-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 15%;
}

.choice-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: #0066CC;
    margin-bottom: 1.5rem;
    display: block;
}

.choice-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.choice-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.choice-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 2.5rem;
    background: white;
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    clip-path: none;
    transition: all 0.3s ease;
}

.category-choice:hover .choice-btn {
    background: #0066CC;
    color: white;
}

/* Material Detail Sections */
.material-detail-section {
    padding: 15rem 8%;
    background: #fff;
    position: relative;
}

.material-showcase-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.material-showcase-header h2 {
    font-size: 5.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 2rem 0;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.material-showcase-header p {
    font-size: 1.4rem;
    color: #888;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Price Tiers Grouping - Ultra Premium */
.price-tiers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10rem;
}

/* Price Tiers Grouping - Handled below in Slider section */

.price-tier-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #0066CC;
}

.price-tier-block.light {
    background: #fff;
    border-color: #eee;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6rem;
    border-bottom: 3px solid #0066CC;
    padding-bottom: 3rem;
}

.tier-header h3 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -0.01em;
}

.price-tier-block.light .tier-header h3 {
    color: #1a1a1a;
}

.tier-price {
    font-size: 4.5rem;
    font-weight: 900;
    color: #0066CC;
    line-height: 0.8;
}

.tier-price span {
    font-size: 1.2rem;
    color: #666;
    margin-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.material-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
    align-items: center;
}

.material-showcase.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.material-showcase.reverse .material-info-block {
    order: 2;
}

.material-showcase.reverse .material-visual {
    order: 1;
}

.material-info-block h2 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 2.5rem 0;
    line-height: 0.9;
}

.material-info-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.dark .material-info-block p {
    color: #888;
}

/* S-Deck Premium Section - Flagship Design */
.sdeck-premium-section {
    position: relative;
    padding: 12rem 5%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.sdeck-bg-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transform: scale(1);
}

.sdeck-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 20%, transparent 100%);
}

.sdeck-content-wrapper {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.sdeck-header-box h2 {
    font-size: 6rem;
    font-weight: 900;
    color: #fff;
    margin: 1.5rem 0;
    line-height: 0.9;
}

.flagship-label {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #0066CC;
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.sdeck-header-box p {
    font-size: 1.25rem;
    color: #ccc;
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: 4rem;
}

.sdeck-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.tech-item i {
    font-size: 2.5rem;
    color: #0066CC;
    margin-bottom: 1.5rem;
}

.tech-item h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.tech-item p {
    font-size: 0.95rem;
    color: #888;
}

/* Plank Selection */
.sdeck-visual-selector h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
    opacity: 0.6;
    text-align: center;
}

/* S-Deck Swatch Customization within Premium Section */
.sdeck-swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    justify-items: center;
}

#s-deck .color-swatch-item span {
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    display: block;
    text-align: center;
}

#s-deck .swatch {
    width: 180px;
    height: 180px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background-color: #000;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    /* Subtle rounded square */
}

.swatch-real-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0 !important;
    /* Force hide even when loaded */
    transition: opacity 0.5s ease, transform 0.7s ease !important;
    transform: scale(1.1);
    z-index: 2;
    pointer-events: none;
}

.color-swatch-item:hover .swatch-real-preview {
    opacity: 1 !important;
    transform: scale(1);
    pointer-events: auto;
}

/* S-Deck Custom Patterns - Perfectly Centered 'Dezeni' */
.sdeck-pattern-teak {
    background-image: linear-gradient(to right, #d2b48c 0, #d2b48c 42px, #000 42px, #000 46px) !important;
    background-size: 46px 100%;
    background-position: center;
}

.sdeck-pattern-grey {
    background-image: linear-gradient(to right, #808080 0, #808080 42px, #000 42px, #000 46px) !important;
    background-size: 46px 100%;
    background-position: center;
}

.sdeck-pattern-white {
    background-image: linear-gradient(to right, #808080 0, #808080 42px, #fff 42px, #fff 46px) !important;
    background-size: 46px 100%;
    background-position: center;
}

.sdeck-pattern-mocha {
    background-image: linear-gradient(to right, #4a4a4a 0, #4a4a4a 42px, #000 42px, #000 46px) !important;
    background-size: 46px 100%;
    background-position: center;
}

/* Sanity Restore & Premium Polish */
.material-detail-section {
    position: relative;
    padding: 6rem 5%;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#infinity {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('service-refresh.jpg') center/cover;
}

#snaps {
    background: linear-gradient(rgba(0, 0, 0, 0.83), rgba(0, 0, 0, 0.83)), url('service-refresh.jpg') center/cover;
}

.material-showcase-header h2 {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

#snaps .material-showcase-header h2 {
    color: #fff;
}

.material-showcase-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

#snaps .material-showcase-header p {
    color: rgba(255, 255, 255, 0.8);
}

.material-slider-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 60px 0 !important;
    /* Space for absolute arrows */
    margin-top: 1rem;
    width: 100%;
}

.slider-container {
    width: 100%;
    max-width: 850px;
    min-height: 450px;
    /* Ensure enough height for the card content */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.price-tier-block {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    background: #fff !important;
    padding: 3rem 3rem !important;
    border-radius: 15px !important;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4) !important;
    border-left: 10px solid #0066CC !important;
}

.price-tier-block.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #0066CC;
}

.tier-header h3 {
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    color: #000 !important;
    margin: 0;
}

.tier-price {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    color: #000 !important;
    display: flex;
    align-items: flex-end;
}

.tier-price span {
    font-size: 1rem;
    color: #888;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.large-swatch-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    margin-top: 2rem;
}

#infinity .swatch,
#snaps .swatch {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Rug Stylling for Snap-in */
#snaps .swatch {
    outline: 8px solid rgba(0, 0, 0, 0.03);
    outline-offset: -3px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.05);
}

.swatch-real-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s ease;
    transform: scale(1.2);
    z-index: 2;
}

#infinity .color-swatch-item:hover .swatch,
#snaps .color-swatch-item:hover .swatch,
#s-deck .color-swatch-item:hover .swatch {
    transform: scale(1.35) translateY(-10px);
    z-index: 100;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--swatch-primary, #000) !important;
}

.color-swatch-item:hover .swatch-real-preview {
    opacity: 1;
    transform: scale(1);
}

.color-swatch-item:hover .swatch.snap-effect::after {
    opacity: 0;
}

.color-swatch-item {
    width: 180px;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.color-swatch-item span {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #000 !important;
    display: block;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.dark #s-deck .color-swatch-item span {
    color: #fff !important;
}

.color-swatch-item:hover span {
    transform: translateY(10px);
    color: #0066CC !important;
}

.slider-arrow {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: 2px solid #0066CC !important;
    background: white !important;
    color: #0066CC !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.slider-arrow.prev {
    top: 50px !important;
    /* Positioned inside the wrapper padding */
}

.slider-arrow.next {
    bottom: 50px !important;
}

.slider-arrow:hover {
    background: #0066CC !important;
    color: white !important;
    transform: translateX(-50%) scale(1.1) !important;
}

/* CTA */
.materials-cta-focus {
    padding: 10rem 8%;
    background: #fff;
}

.cta-card {
    background: #0066CC;
    color: white;
    padding: 8rem 4rem;
    text-align: center;
    border-radius: 4px;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.cta-card p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.cta-btn-premium {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: white;
    color: #0066CC;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.cta-btn-premium:hover {
    background: #0a0a0a;
    color: white;
    letter-spacing: 0.25em;
}

/* Responsive */
@media (max-width: 1366px) {
    .sdeck-premium-section {
        padding: 5rem 5%;
    }

    .sdeck-content-wrapper {
        gap: 2rem;
    }

    .sdeck-header-box h2 {
        font-size: 3rem;
    }

    .sdeck-pattern-teak {
        background-image: linear-gradient(to right, #d2b48c 0, #d2b48c 30px, #000 30px, #000 33px) !important;
        background-size: 33px 100%;
        background-position: center;
    }

    .sdeck-pattern-grey {
        background-image: linear-gradient(to right, #808080 0, #808080 30px, #000 30px, #000 33px) !important;
        background-size: 33px 100%;
        background-position: center;
    }

    .sdeck-pattern-white {
        background-image: linear-gradient(to right, #808080 0, #808080 30px, #fff 30px, #fff 33px) !important;
        background-size: 33px 100%;
        background-position: center;
    }

    .sdeck-pattern-mocha {
        background-image: linear-gradient(to right, #4a4a4a 0, #4a4a4a 30px, #000 30px, #000 33px) !important;
        background-size: 33px 100%;
        background-position: center;
    }

    .swatch {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 1.5rem !important;
    }

    .color-swatch-item {
        width: 130px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .sdeck-swatch-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
        gap: 1.5rem !important;
        padding: 0 10px;
    }

    .material-detail-section {
        padding: 5rem 5%;
        min-height: auto;
    }

    .material-showcase-header h2 {
        font-size: 3rem !important;
    }

    .price-tier-block {
        padding: 2rem !important;
    }

    .tier-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .tier-header h3 {
        font-size: 2rem !important;
    }

    .tier-price {
        font-size: 2.5rem !important;
    }

    .slider-container .swatch {
        width: 100px !important;
        height: 100px !important;
    }

    .slider-container {
        min-height: 400px;
    }

    .material-slider-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 380px) {
    .sdeck-swatch-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .color-swatch-item {
        width: 100% !important;
    }

    .swatch {
        width: 100px !important;
        height: 100px !important;
    }
}


@media (max-width: 1100px) {
    .material-showcase {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .material-showcase.reverse {
        grid-template-columns: 1fr;
    }

    .material-showcase.reverse .material-info-block {
        order: 1;
    }

    .material-showcase.reverse .material-visual {
        order: 2;
    }

    .material-info-block h2 {
        font-size: 2.5rem;
    }

    .sdeck-content-wrapper {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
    }

    .sdeck-header-box p {
        margin: 0 auto 4rem;
    }

    .sdeck-tech-grid {
        justify-content: center;
    }

    .sdeck-swatch-grid {
        justify-items: center;
    }
}

@media screen and (max-width: 768px) {

    /* Category Split Landing */
    .material-category-split {
        flex-direction: column !important;
        height: auto !important;
        display: flex !important;
    }

    .category-choice {
        height: 50vh !important;
        height: 50svh !important;
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .choice-content {
        padding: 0 10% !important;
        text-align: center !important;
    }

    .choice-content h2 {
        font-size: 2.22rem !important;
        line-height: 1 !important;
        margin-bottom: 1rem !important;
    }

    .choice-content p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2.5rem !important;
        max-width: 280px !important;
        opacity: 0.9 !important;
    }

    .choice-btn {
        padding: 1rem 2rem !important;
        font-size: 0.85rem !important;
        gap: 1.2rem !important;
        display: inline-flex !important;
    }

    .choice-tag {
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
        letter-spacing: 0.2em !important;
    }

    /* Interior/Exterior Content Sections */
    .material-showcase {
        flex-direction: column !important;
        gap: 3rem !important;
        padding: 4rem 5% !important;
    }

    .material-visual {
        width: 100% !important;
        height: 250px !important;
    }

    .material-info-block {
        width: 100% !important;
        text-align: center !important;
    }

    .material-info-block h2 {
        font-size: 1.8rem !important;

        .sdeck-tech-grid {
            grid-template-columns: 1fr !important;
            gap: 2.5rem !important;
        }

        /* Catalog/Pricing Blocks Optimization - Aggressive Shrink */
        .material-detail-section {
            padding: 2rem 5% !important;
            /* Minimal padding */
        }

        .material-showcase-header {
            margin-bottom: 2rem !important;
        }

        .material-showcase-header h2 {
            font-size: 1.8rem !important;
            /* Smaller */
            margin-bottom: 0.5rem !important;
        }

        .material-showcase-header p {
            font-size: 0.9rem !important;
            opacity: 0.8 !important;
        }

        .price-tier-block {
            padding: 1.5rem 1rem !important;
            border-left-width: 4px !important;
            position: relative !important;
            transform: none !important;
            width: 100% !important;
            min-height: auto !important;
        }

        .tier-header {
            margin-bottom: 1.5rem !important;
            padding-bottom: 0.8rem !important;
        }

        .tier-header h3 {
            font-size: 1.3rem !important;
        }

        .tier-price {
            font-size: 1.6rem !important;
        }

        /* Vertical Grid System - Easier than horizontal scroll for small phones */
        .large-swatch-flex,
        .sdeck-swatch-grid {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            /* 2 items per row */
            gap: 1.5rem !important;
            padding: 1rem 0 !important;
            overflow: visible !important;
            flex-wrap: wrap !important;
        }

        .color-swatch-item {
            width: 100% !important;
            flex: none !important;
            margin-bottom: 1rem !important;
        }

        #infinity .swatch,
        #snaps .swatch,
        #s-deck .swatch {
            width: 80px !important;
            /* Even smaller */
            height: 80px !important;
            margin: 0 auto 0.5rem !important;
        }

        .color-swatch-item span {
            font-size: 0.75rem !important;
            letter-spacing: 0 !important;
        }

        /* Show slider on mobile too */
        .price-tier-block {
            display: none;
        }

        .price-tier-block.active {
            display: block !important;
        }

        .slider-arrow {
            display: flex !important;
            width: 50px !important;
            height: 50px !important;
            font-size: 1.2rem !important;
        }

        .slider-arrow.prev {
            top: 20px !important;
        }

        .slider-arrow.next {
            bottom: 20px !important;
        }

        .material-slider-wrapper {
            padding: 80px 0 !important;
        }

        .cta-card {
            padding: 3rem 1rem !important;
        }

        .cta-card h2 {
            font-size: 1.5rem !important;
        }

        .cta-card p {
            font-size: 0.9rem !important;
            margin-bottom: 2rem !important;
        }

        .cta-btn-premium {
            padding: 1rem 2rem !important;
            font-size: 0.8rem !important;
        }
    }


    @media (max-width: 600px) {
        .material-usp {
            grid-template-columns: 1fr;
        }

        .palette-grid.wide {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* ===== MATERIAL IN ACTION GALLERIES ===== */
    .material-action-gallery {
        margin-top: 6rem;
        width: 100%;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        margin: 4rem auto 0;
        max-width: 1100px;
        justify-content: center;
        /* Grouped 2x2 centered look */
    }

    .gallery-item {
        position: relative;
        height: 400px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

    .gallery-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6));
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .gallery-item:hover::after {
        opacity: 1;
    }

    .gallery-label {
        position: absolute;
        bottom: 2rem;
        left: 2rem;
        z-index: 5;
        color: white;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-size: 0.9rem;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.4s ease;
    }

    .gallery-item:hover .gallery-label {
        opacity: 1;
        transform: translateY(0);
    }

    .gallery-title {
        text-align: center;
        color: #fff;
        font-size: 1.2rem;
        letter-spacing: 0.3em;
        margin-bottom: 2rem;
        opacity: 0.6;
        text-transform: uppercase;
        font-weight: 900;
    }

    @media (max-width: 768px) {
        .gallery-grid {
            grid-template-columns: 1fr;
        }

        .gallery-item {
            height: 250px;
        }

        .gallery-label {
            opacity: 1;
            transform: none;
            font-size: 0.75rem;
        }
    }

    /* Textured & Centered Gallery Optimization */
    .texture-gallery,
    .centered-flex-gallery {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 2rem !important;
        width: 100% !important;
    }

    .texture-gallery .gallery-item {
        flex: 0 0 180px !important;
        height: 300px !important;
        min-width: 180px !important;
    }

    .centered-flex-gallery .gallery-item {
        flex: 0 1 350px;
        height: 500px;
    }

    /* Feature Cards Premium Design */
    .feature-card-glass {
        position: relative;
        padding: 4rem 2rem;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-radius: 20px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03) !important;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
        overflow: hidden;
    }

    .feature-card-glass::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: #0066CC;
        transform: scaleX(0.3);
        transition: transform 0.5s ease;
        transform-origin: left;
    }

    .feature-card-glass:hover {
        transform: translateY(-15px) !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(0, 102, 204, 0.2) !important;
    }

    .feature-card-glass:hover::before {
        transform: scaleX(1);
    }

    .feature-card-glass i {
        transition: transform 0.5s ease;
    }

    .feature-card-glass:hover i {
        transform: scale(1.1) rotate(5deg);
    }

    .centered-features-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 3rem !important;
        width: 100% !important;
    }

    .centered-features-container .feature-card-glass {
        flex: 0 1 350px !important;
        min-width: 280px !important;
    }



    @media (max-width: 768px) {
        .texture-gallery .gallery-item {
            flex: 1 1 140px !important;
            height: 220px !important;
            min-width: 140px !important;
        }

        .centered-flex-gallery .gallery-item {
            flex: 1 1 100%;
            height: 400px;
            margin: 0 20px;
            /* Force edge gutter */
        }

        /* Enterijer Specific Mobile Adjustments */
        #upholstery-hero {
            padding: 12rem 20px 4rem !important;
            min-height: 80vh !important;
        }

        #upholstery-hero h1 {
            font-size: 3.5rem !important;
            margin: 1.5rem 0 !important;
        }

        #upholstery-hero p {
            font-size: 1.1rem !important;
        }

        .upholstery-video-section {
            padding: 6rem 5% !important;
        }

        .upholstery-video-section h2 {
            font-size: 2.2rem !important;
        }

        #upholstery-gallery {
            padding: 6rem 5% !important;
        }

        #upholstery-gallery h2 {
            font-size: 2.5rem !important;
        }

        .feature-card-glass {
            padding: 2rem 1.2rem !important;
            margin-bottom: 1.5rem;
        }

        .feature-card-glass i {
            font-size: 2.5rem !important;
            margin-bottom: 1.5rem !important;
        }

        .feature-card-glass h4 {
            font-size: 1.2rem !important;
            margin-bottom: 1rem !important;
        }

        .feature-card-glass p {
            font-size: 0.9rem !important;
            line-height: 1.6 !important;
        }

        /* Trust Section Mobile Optimization */
        .materials-guarantee-section {
            padding: 5rem 5% !important;
        }

        .materials-guarantee-section .container>div,
        .materials-guarantee-section div[style*="grid-template-columns"] {
            gap: 2rem !important;
        }

        .materials-guarantee-section div[style*="padding: 3rem"] {
            padding: 2rem 1.5rem !important;
        }

        .materials-guarantee-section i {
            font-size: 2rem !important;
            margin-bottom: 1.2rem !important;
        }

        .materials-guarantee-section h3 {
            font-size: 1.1rem !important;
            margin-bottom: 1rem !important;
        }

        .materials-guarantee-section p {
            font-size: 0.9rem !important;
        }

        .brand-quote-section {
            padding: 10rem 8% !important;
        }

        .brand-quote-section h2 {
            font-size: 1.8rem !important;
        }
    }
}

/* S-Deck Transformations Rebuilt Layout */
.transform-row {
    display: flex;
    gap: 30px;
    width: 100%;
}

.img-box {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
    transition: transform 0.4s ease;
}

.img-box.posle {
    border: 2px solid #0066CC;
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
}

.img-box img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.img-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    backdrop-filter: blur(5px);
    border-radius: 4px;
}

.img-tag.brand {
    background: #0066CC;
    left: auto;
    right: 1rem;
}

@media (max-width: 900px) {
    .transform-row {
        flex-direction: column;
        gap: 30px;
    }

    .img-box {
        width: 100%;
    }

    .sdeck-transformations-new {
        padding: 0 5%;
    }

    .transformation-grid-sdeck {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}