/* ============================================================
   GALLERY · Hawk Family Album
   Rainbow Vintage Dark Theme
   ============================================================ */

:root {
    --bg-dark: #0d0a08;
    --bg-panel: #120e0a;
    --text-primary: #f5ede0;
    --text-secondary: #d4c8b8;
    --text-muted: #7a6a5a;
    --text-body: #d0c8b8;
    --text-dim: #9a8a7a;
    --red: #e87050;
    --orange: #e8a050;
    --yellow: #e8c850;
    --green: #80b87a;
    --blue: #6090c8;
    --indigo: #7a70b8;
    --violet: #b870b8;
    --accent: #e8a050;
    --accent-light: #f0c870;
    --accent-border: rgba(232, 160, 80, 0.5);
    --gold: #e8c850;
    --crimson: #e87050;
    --header-height: 3.8rem;
    --footer-height: 4.4rem;
    --white-soft: rgba(245, 237, 224, 0.85);
    --white-dim: rgba(245, 237, 224, 0.45);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background-color: var(--bg-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc0IiBudW1PY3RhdmVzPSIzIiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wMjUiIC8+PC9zdmc+');
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(13, 10, 8, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(232, 160, 80, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 34px;
    width: auto;
    display: block;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    white-space: nowrap;
    user-select: none;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 0.7rem;
    right: 0.7rem;
    height: 1.5px;
    background: var(--accent-light);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link.active {
    color: var(--accent-light);
}

.nav-link.active::after {
    opacity: 1;
}

.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 51;
}

.burger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-secondary);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    background: rgba(13, 10, 8, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 160, 80, 0.1);
    padding: 0.5rem 1.5rem 1rem;
}

.nav-mobile .nav-link {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.65rem;
}

.nav-mobile .nav-link::after {
    display: none;
}

.nav-mobile .nav-link.active {
    color: var(--accent-light);
}

.nav-mobile.open {
    display: flex;
}

/* ============================================================
   FOOTER
   ============================================================ */
.social-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background: rgba(13, 10, 8, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(232, 160, 80, 0.1);
    padding: 0.5rem 1rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    z-index: 20;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.social-link:nth-child(1):hover {
    color: var(--red);
    background: rgba(232, 112, 80, 0.1);
}
.social-link:nth-child(2):hover {
    color: var(--orange);
    background: rgba(232, 160, 80, 0.1);
}
.social-link:nth-child(3):hover {
    color: var(--yellow);
    background: rgba(232, 200, 80, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.copyright {
    color: var(--text-primary);
    font-size: 0.6rem;
    letter-spacing: 0.3px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ============================================================
   CENTER STAGE
   ============================================================ */
.center-stage {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: var(--header-height);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
}

.center-stage::-webkit-scrollbar {
    width: 3px;
}

.center-stage::-webkit-scrollbar-track {
    background: transparent;
}

.center-stage::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   LOOM CONTAINER
   ============================================================ */
.loom-container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem calc(var(--footer-height) + 1rem);
    width: 100%;
}

/* ============================================================
   INTRO SECTION
   ============================================================ */
.intro-section {
    text-align: center;
    margin-bottom: 1.8rem;
    padding: 0 0.5rem;
}

.slogan {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    max-width: 100%;
}

@media (max-width: 575px) {
    .slogan {
        font-size: clamp(0.65rem, 4vw, 0.85rem);
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0 0.2rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 400px) {
    .slogan {
        font-size: clamp(0.55rem, 3.8vw, 0.7rem);
        letter-spacing: 0.3px;
    }
}

.thread-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.thread-left,
.thread-right {
    width: 30%;
    height: 1px;
    background: var(--accent-border);
}

.thread-knot {
    width: 5px;
    height: 5px;
    background: var(--accent-light);
    border-radius: 50%;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:nth-child(1):hover,
.filter-btn:nth-child(1).active { border-color: var(--red); color: var(--red); background: rgba(232, 112, 80, 0.1); }
.filter-btn:nth-child(2):hover,
.filter-btn:nth-child(2).active { border-color: var(--orange); color: var(--orange); background: rgba(232, 160, 80, 0.1); }
.filter-btn:nth-child(3):hover,
.filter-btn:nth-child(3).active { border-color: var(--yellow); color: var(--yellow); background: rgba(232, 200, 80, 0.1); }
.filter-btn:nth-child(4):hover,
.filter-btn:nth-child(4).active { border-color: var(--green); color: var(--green); background: rgba(128, 184, 122, 0.1); }
.filter-btn:nth-child(5):hover,
.filter-btn:nth-child(5).active { border-color: var(--blue); color: var(--blue); background: rgba(96, 144, 200, 0.1); }
.filter-btn:nth-child(6):hover,
.filter-btn:nth-child(6).active { border-color: var(--indigo); color: var(--indigo); background: rgba(122, 112, 184, 0.1); }
.filter-btn:nth-child(7):hover,
.filter-btn:nth-child(7).active { border-color: var(--violet); color: var(--violet); background: rgba(184, 112, 184, 0.1); }

/* ============================================================
   GALLERY GRID
   ============================================================ */
.tailor-rack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.3rem;
    margin-bottom: 0;
}

.tailor-card {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tailor-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(232, 160, 80, 0.12);
}

.card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: 0.3s;
}

.tailor-card:hover .card-img {
    filter: brightness(1.02);
}

.card-info {
    padding: 0.75rem;
}

.card-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    color: var(--accent-light);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.3rem;
    display: block;
}

.collection-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 1px;
    color: #2e7d64;
    text-align: center;
    margin: 0.2rem 0 0.45rem;
    padding: 0.12rem 0;
    border-top: 1px dotted rgba(46, 125, 100, 0.4);
    border-bottom: 1px dotted rgba(46, 125, 100, 0.4);
    display: inline-block;
    width: 100%;
}

.button-group {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.card-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.48rem;
    padding: 0.28rem 0.55rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    background: transparent;
    border: 1px solid;
}

.btn-fabric {
    border-color: var(--blue);
    color: var(--blue);
}
.btn-fabric:hover {
    background: var(--blue);
    color: var(--bg-dark);
}

.btn-mint {
    border-color: var(--green);
    color: var(--green);
}
.btn-mint:hover {
    background: var(--green);
    color: var(--bg-dark);
}

.btn-code {
    border-color: var(--violet);
    color: var(--violet);
}
.btn-code:hover {
    background: var(--violet);
    color: var(--bg-dark);
}

/* ============================================================
   MODAL - LARGER, LANDSCAPE (Image Left, Text Right)
   ============================================================ */
.mockup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    padding: 1rem;
}

.mockup-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(17, 17, 17, 0.95);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 3px solid var(--accent);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
    font-size: 0;
    padding: 0;
}

.modal-close .close-icon {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 300;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.modal-close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.modal-close:hover .close-icon {
    color: var(--bg-dark);
}

/* LANDSCAPE LAYOUT: Image Left, Text Right */
.modal-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    min-height: 400px;
    max-height: 85vh;
    flex: 1;
}

/* Left: Image */
.modal-image-wrap {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    padding: 0.5rem;
    min-height: 200px;
}

.modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-height: 80vh;
}

/* Right: Text Content */
.modal-text-wrap {
    flex: 1;
    padding: 1.8rem 2rem 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    gap: 0.6rem;
    min-width: 0;
}

.modal-text-wrap h4 {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.modal-story {
    font-size: 0.75rem;
    color: var(--text-body);
    line-height: 1.8;
    overflow-y: auto;
    padding-right: 0.3rem;
    flex: 1;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: 0.02em;
    max-height: 300px;
}

.modal-story::-webkit-scrollbar {
    width: 2px;
}
.modal-story::-webkit-scrollbar-thumb {
    background: var(--accent);
}

.modal-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.modal-tags span {
    font-size: 0.5rem;
    padding: 0.15rem 0.7rem;
    background: rgba(232, 160, 80, 0.1);
    border: 1px solid rgba(232, 160, 80, 0.2);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.5px;
}

.modal-meta {
    font-size: 0.55rem;
    color: var(--text-dim);
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.5rem;
    margin-top: 0.2rem;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: calc(var(--footer-height, 4.4rem) + 15px);
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(13, 10, 8, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--accent, #e8a050);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent, #e8a050);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(232, 160, 80, 0.4);
}

.back-to-top:hover .back-text {
    color: var(--bg-dark, #0d0a08);
}

.back-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.45rem;
    letter-spacing: 1px;
    color: var(--accent-light, #f0c870);
    transition: color 0.2s;
}

.back-text span:first-child {
    font-size: 0.7rem;
    line-height: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large screens */
@media (min-width: 1200px) {
    .tailor-rack {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.3rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .tailor-rack {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.3rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .tailor-rack {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .loom-container {
        padding: 1rem 1.5rem calc(var(--footer-height) + 1rem);
    }

    .modal-layout {
        flex-direction: column;
        min-height: auto;
        max-height: 90vh;
    }
    .modal-image-wrap {
        flex: 0 0 45%;
        max-height: 40vh;
        min-height: 180px;
    }
    .modal-text-wrap {
        padding: 1rem 1.2rem;
        max-height: 50vh;
    }
    .modal-content {
        max-width: 95%;
        max-height: 92vh;
    }
    .modal-story {
        max-height: 200px;
    }
}

/* Small tablets / Large phones */
@media (min-width: 576px) and (max-width: 767px) {
    .tailor-rack {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .loom-container {
        padding: 1rem 1.2rem calc(var(--footer-height) + 1rem);
    }

    .modal-layout {
        flex-direction: column;
        min-height: auto;
    }
    .modal-image-wrap {
        flex: 0 0 40%;
        max-height: 35vh;
        min-height: 150px;
        padding: 0.3rem;
    }
    .modal-text-wrap {
        padding: 0.8rem 1rem;
        max-height: 55vh;
        gap: 0.4rem;
    }
    .modal-text-wrap h4 {
        font-size: 0.85rem;
    }
    .modal-story {
        font-size: 0.7rem;
        max-height: 180px;
        line-height: 1.7;
    }
    .modal-content {
        max-width: 96%;
        max-height: 92vh;
    }
    .modal-close {
        top: 8px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
    .modal-close .close-icon {
        font-size: 1.3rem;
    }
}

/* Mobile phones */
@media (max-width: 575px) {
    .tailor-rack {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        max-width: 100%;
    }
    .loom-container {
        padding: 0.8rem 0.8rem calc(var(--footer-height) + 1rem);
    }

    .filter-bar {
        gap: 0.3rem;
        margin: 0.5rem 0 1rem;
    }
    .filter-btn {
        font-size: 0.45rem;
        padding: 0.2rem 0.5rem;
    }

    /* Modal - full screen on mobile */
    .mockup-modal {
        padding: 0.3rem;
    }

    .modal-content {
        max-width: 100%;
        max-height: 98vh;
        min-height: auto;
        border-radius: 4px;
    }

    .modal-layout {
        flex-direction: column;
        min-height: auto;
        max-height: 96vh;
    }

    .modal-image-wrap {
        flex: 0 0 35%;
        max-height: 30vh;
        min-height: 120px;
        padding: 0.2rem;
    }

    .modal-image-wrap img {
        max-height: 30vh;
        object-fit: contain;
    }

    .modal-text-wrap {
        padding: 0.5rem 0.7rem 0.7rem;
        max-height: 60vh;
        gap: 0.3rem;
        overflow-y: auto;
    }

    .modal-text-wrap h4 {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
        margin: 0;
    }

    .modal-story {
        font-size: 0.6rem;
        max-height: 180px;
        line-height: 1.6;
        padding-right: 0.1rem;
    }

    .modal-tags span {
        font-size: 0.4rem;
        padding: 0.1rem 0.5rem;
    }

    .modal-meta {
        font-size: 0.45rem;
        padding-top: 0.3rem;
        margin-top: 0.1rem;
    }

    .modal-close {
        top: 6px;
        right: 8px;
        width: 28px;
        height: 28px;
        background: rgba(0, 0, 0, 0.7);
        border-width: 1px;
    }

    .modal-close .close-icon {
        font-size: 1.1rem;
    }

    /* Card adjustments for small screens */
    .card-info {
        padding: 0.4rem;
    }
    .card-title {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }
    .collection-badge {
        font-size: 0.4rem;
        margin: 0.1rem 0 0.3rem;
        padding: 0.08rem 0;
    }
    .card-btn {
        font-size: 0.4rem;
        padding: 0.2rem 0.4rem;
    }
    .button-group {
        gap: 0.3rem;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .tailor-rack {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .modal-image-wrap {
        flex: 0 0 30%;
        max-height: 25vh;
        min-height: 80px;
    }

    .modal-text-wrap {
        padding: 0.4rem 0.5rem 0.5rem;
        max-height: 65vh;
    }

    .modal-text-wrap h4 {
        font-size: 0.6rem;
    }

    .modal-story {
        font-size: 0.55rem;
        max-height: 140px;
        line-height: 1.5;
    }

    .modal-close {
        top: 4px;
        right: 6px;
        width: 24px;
        height: 24px;
    }

    .modal-close .close-icon {
        font-size: 0.9rem;
    }

    .filter-btn {
        font-size: 0.4rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Header responsive */
@media (max-width: 820px) {
    :root {
        --header-height: 3.6rem;
    }
    .nav-desktop {
        display: none;
    }
    .burger-btn {
        display: flex;
    }
    .header-inner {
        padding: 0 1rem;
    }
    .logo img {
        height: 28px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 3.4rem;
        --footer-height: 5rem;
    }
    .social-footer {
        padding: 0.45rem 0.6rem 0.35rem;
        gap: 0.3rem;
    }
    .social-icons {
        gap: 0.45rem;
    }
    .social-link {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    .copyright {
        font-size: 0.45rem;
    }
    .back-to-top {
        bottom: calc(var(--footer-height) + 10px);
        right: 15px;
        width: 36px;
        height: 36px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    :root {
        --header-height: 4.2rem;
        --footer-height: 4.6rem;
    }
    .header-inner {
        max-width: 1400px;
    }
    .logo img {
        height: 40px;
    }
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }
    .loom-container {
        max-width: 1400px;
        padding: 2rem 2rem calc(var(--footer-height) + 1.5rem);
    }
    .tailor-rack {
        gap: 1.5rem;
    }
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    .copyright {
        font-size: 0.65rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}