/* Fabrics page */
.fabrics-hero {
    padding: 90px 0 70px;
}

.fabrics-hero-inner {
    text-align: center;
}

.fabrics-hero p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.fabrics-page {
    padding: 50px 0 80px;
    background: var(--white-color);
}

.fabrics-container {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.fabric-section {
    margin-bottom: 70px;
}

.fabric-section:last-child {
    margin-bottom: 0;
}

.fabric-section h2 {
    color: #1d2838;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 800;
}

.fabric-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 36px;
    font-size: 1rem;
    background: #fff;
}

.fabric-spec-table th,
.fabric-spec-table td {
    border: 1px solid #222;
    padding: 13px 16px;
    text-align: left;
    vertical-align: top;
    line-height: 1.35;
}

.fabric-spec-table th {
    width: 28%;
    font-weight: 500;
    background: #fafafa;
}

.fabric-grid {
    display: grid;
    gap: 10px;
}

.fabric-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fabric-swatch {
    position: relative;
    min-height: 150px;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background-color: var(--swatch-color, #777);
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.02) 48%, rgba(0,0,0,0.42) 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.035) 0 1px, transparent 1px 5px);
    background-blend-mode: overlay, normal, normal;
    box-shadow: inset 0 -45px 35px rgba(0, 0, 0, 0.38);
}

.fabric-swatch::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 35%, rgba(255,255,255,0.12), transparent 30%),
        radial-gradient(circle at 70% 45%, rgba(0,0,0,0.08), transparent 35%);
    opacity: 0.55;
    pointer-events: none;
}

.fabric-swatch-wide {
    grid-column: 1 / -1;
    min-height: 460px;
}

.fabric-swatch figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 14px;
    color: #fff;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.65);
    z-index: 1;
}

.swatch-red { --swatch-color: #a90d2f; }
.swatch-light-gray { --swatch-color: #b8b7bd; }
.swatch-black { --swatch-color: #1c1d1c; }
.swatch-crimson { --swatch-color: #c8174c; }
.swatch-mustard { --swatch-color: #b5a018; }
.swatch-eggshell { --swatch-color: #d5d0c9; }
.swatch-brown { --swatch-color: #745744; }
.swatch-dark-grey { --swatch-color: #535458; }
.swatch-navy { --swatch-color: #18224f; }
.swatch-brownish-grey { --swatch-color: #6a6358; }
.swatch-golden { --swatch-color: #ba850d; }
.swatch-dark-blue { --swatch-color: #273171; }
.swatch-yellow { --swatch-color: #c5c236; }
.swatch-cream { --swatch-color: #c8c8b9; }
.swatch-black-texture { --swatch-color: #15191c; }

@media screen and (width <= 1000px) {
    .fabrics-container {
        padding: 28px;
    }

    .fabric-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fabric-swatch-wide {
        min-height: 340px;
    }
}

@media screen and (width <= 650px) {
    .fabrics-hero {
        padding: 65px 0 50px;
    }

    .fabrics-container {
        padding: 20px 14px;
        border-radius: 14px;
    }

    .fabric-section h2 {
        font-size: 1.8rem;
    }

    .fabric-spec-table {
        font-size: 0.9rem;
    }

    .fabric-spec-table th,
    .fabric-spec-table td {
        display: block;
        width: 100%;
    }

    .fabric-spec-table th {
        border-bottom: 0;
    }

    .fabric-grid-three {
        grid-template-columns: 1fr;
    }

    .fabric-swatch,
    .fabric-swatch-wide {
        min-height: 220px;
    }
}
