.home-collections {
    padding: 82px 0 88px;
    background: #f5f8fa;
    font-family: "Montserrat", sans-serif;
}

.home-collections-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.home-collections-heading h2 {
    margin: 0;
    color: #003c67;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -.025em;
    text-transform: none;
}

.home-collections-heading p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #63717a;
    line-height: 1.65;
}

.home-collections-all {
    flex: 0 0 auto;
    color: #003c67;
    font-weight: 600;
    text-decoration: none;
}

.home-collections-all:hover,
.home-collections-all:focus-visible { color: #002f51; text-decoration: underline; }

.home-collections-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-collection-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(0, 60, 103, .1);
    border-radius: 24px;
    background: #dfe8ed;
    box-shadow: 0 14px 34px rgba(0, 60, 103, .08);
    color: #fefefe;
    text-decoration: none;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-collection-card::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(0, 26, 44, .04) 22%, rgba(0, 35, 60, .82) 100%);
}

.home-collection-card:hover,
.home-collection-card:focus-visible {
    color: #fefefe;
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(0, 60, 103, .18);
}

.home-collection-card:focus-visible { outline: 3px solid rgba(0, 60, 103, .25); outline-offset: 4px; }

.home-collection-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.home-collection-card:hover .home-collection-image { transform: scale(1.04); }

.home-collection-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px;
}

.home-collection-count {
    display: inline-block;
    margin-bottom: 11px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(0, 60, 103, .48);
    color: #fefefe;
    font-size: .72rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-collection-title {
    display: block;
    margin-bottom: 8px;
    color: #fefefe;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
}

.home-collection-description {
    display: block;
    max-width: 360px;
    color: rgba(254, 254, 254, .84);
    font-size: .86rem;
    line-height: 1.55;
}

.home-collections-message {
    padding: 16px 18px;
    border: 1px solid #efc9c9;
    border-radius: 16px;
    background: #fff5f5;
    color: #842b2b;
}

.home-collection-skeleton {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 24px;
    background: #dfe7eb;
}

.home-collection-skeleton::after {
    position: absolute;
    inset: 0;
    content: "";
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
    animation: home-collection-shimmer 1.3s infinite;
}

@keyframes home-collection-shimmer { to { transform: translateX(100%); } }

@media (max-width: 991.98px) {
    .home-collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-collection-card,
    .home-collection-skeleton { min-height: 310px; }
}

@media (max-width: 575.98px) {
    .home-collections { padding: 58px 0 64px; }
    .home-collections-heading { align-items: start; flex-direction: column; margin-bottom: 24px; }
    .home-collections-grid { grid-template-columns: 1fr; gap: 16px; }
    .home-collection-card,
    .home-collection-skeleton { min-height: 300px; }
    .home-collection-content { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-collection-card,
    .home-collection-image { transition: none; }
    .home-collection-skeleton::after { animation: none; }
}
