:root {
    --gold: #e0c297;
    --bg: #0a1215;
    --panel: #0c1418;
    --muted: #b5c0c7;
    --line: #1a2429;
    --rad: 18px;
}

.size-hero {
    height: 52dvh;
    min-height: 380px;
    background: linear-gradient(to bottom, rgba(10, 18, 21, 0.84), rgba(10, 18, 21, 0.96)), var(--size-hero-bg) center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    direction: rtl;
}

.size-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 40%, rgba(224, 194, 151, 0.14), transparent 46%), radial-gradient(circle at 20% 60%, rgba(224, 194, 151, 0.12), transparent 48%), radial-gradient(circle at 50% 80%, rgba(224, 194, 151, 0.06), transparent 52%);
    pointer-events: none;
    z-index: 1;
    animation: glowPulse 16s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.tile-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tile {
    position: absolute;
    background: linear-gradient(225deg, rgba(224, 194, 151, 0.11), rgba(224, 194, 151, 0.04));
    border: 1px solid rgba(224, 194, 151, 0.2);
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(224, 194, 151, 0.08), inset 0 1px 5px rgba(255, 255, 255, 0.06);
    opacity: 0;
    animation: tileRotate 18s infinite ease-in-out;
}

.tile:nth-child(1) {
    width: 112px;
    height: 154px;
    top: 12%;
    right: 12%;
    left: auto;
    animation-delay: 0s;
}

.tile:nth-child(2) {
    width: 98px;
    height: 126px;
    top: 55%;
    right: 75%;
    left: auto;
    animation-delay: 3s;
}

.tile:nth-child(3) {
    width: 126px;
    height: 112px;
    top: 70%;
    right: 22%;
    left: auto;
    animation-delay: 6s;
}

.tile:nth-child(4) {
    width: 84px;
    height: 140px;
    top: 28%;
    right: 80%;
    left: auto;
    animation-delay: 9s;
}

.tile:nth-child(5) {
    width: 140px;
    height: 119px;
    top: 45%;
    right: 58%;
    left: auto;
    animation-delay: 12s;
}

.tile:nth-child(6) {
    width: 105px;
    height: 133px;
    top: 18%;
    right: 65%;
    left: auto;
    animation-delay: 4s;
}

.tile:nth-child(7) {
    width: 118px;
    height: 118px;
    top: 66%;
    right: 46%;
    left: auto;
    animation-delay: 8s;
}

@keyframes tileRotate {
    0% {
        transform: translateY(55px) rotate(-18deg) scale(0.78);
        opacity: 0;
    }

    20% {
        opacity: 0.55;
    }

    50% {
        transform: translateY(-40px) rotate(-42deg) scale(1.06);
        opacity: 0.72;
        box-shadow: 0 9px 24px rgba(224, 194, 151, 0.14), inset 0 2px 8px rgba(255, 255, 255, 0.1);
    }

    80% {
        opacity: 0.35;
    }

    100% {
        transform: translateY(-84px) rotate(-70deg) scale(0.78);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 0 18px;
    direction: rtl;
}

.hero-eyebrow {
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.hero-title {
    font-family: "Peyda", sans-serif;
    font-size: clamp(34px, 5.6vw, 68px);
    line-height: 1.35;
    margin: 0 0 12px;
    color: #fff;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
    display: block;
    line-height: 1.9;
    font-weight: 600;
}

.finish-filter {
    padding: 56px 0 28px;
    background: var(--bg);
    direction: rtl;
}

.finish-wrapper {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.finish-btn {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.28s ease;
    min-width: 110px;
    text-align: center;
    line-height: 1.7;
}

.finish-btn:hover,
.finish-btn.active {
    background: var(--gold);
    color: #1a1a1a;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(224, 194, 151, 0.18);
}

.size-products {
    padding: 28px 0 100px;
    background: var(--bg);
    direction: rtl;
}

.products-grid {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    direction: rtl;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.45);
    border-color: rgba(224, 194, 151, 0.24);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.65s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px 16px;
    text-align: center;
}

.product-info h3 {
    font-family: "Peyda", sans-serif;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.6;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transform: none !important;
    scale: 1 !important;
    letter-spacing: 0 !important;
}

.view-btn {
    background: var(--gold);
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    display: block;
    transition: all 0.28s ease;
    line-height: 1.8;
}

.view-btn:hover {
    background: #fff;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(224, 194, 151, 0.22);
}

.empty-products {
    grid-column: 1 / -1;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    padding: 34px 20px;
    color: var(--muted);
    text-align: center;
    font-size: 15px;
    line-height: 2;
}

.pagination-wrap {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    direction: ltr;
}

.pagination-clean {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination-clean__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-clean__list li {
    list-style: none;
}

.pagination-clean__list a,
.pagination-clean__list span {
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    transition: all 0.25s ease;
}

.pagination-clean__list a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(224, 194, 151, 0.16);
}

.pagination-clean__list .is-active span {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1a1a;
}

.pagination-clean__list .is-disabled span {
    opacity: 0.4;
    pointer-events: none;
    color: #7f8b91;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .size-hero {
        height: 46dvh;
        min-height: 320px;
    }

    .finish-filter {
        padding: 40px 0 20px;
    }

    .size-products {
        padding: 24px 0 72px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 0 14px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .product-card img {
        height: 180px;
    }

    .product-info {
        padding: 16px 12px;
    }

    .product-info h3 {
        font-size: 15px;
        min-height: 48px;
    }

    .view-btn {
        padding: 9px 16px;
        font-size: 12px;
    }

    .finish-btn {
        padding: 9px 16px;
        font-size: 12px;
        min-width: 92px;
    }

    .tile {
        animation-duration: 20s;
    }

    .pagination-wrap {
        margin-top: 40px;
        padding: 0 14px;
    }

    .pagination-clean__list {
        gap: 8px;
    }

    .pagination-clean__list a,
    .pagination-clean__list span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 10px;
    }
}

@media (max-width: 479px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}