/* Collections Section Styles - BEM Methodology */

.collections {
    width: 100%;
    padding: 80px 20px;
    background-color: #ffffff;
    direction: ltr;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.collections.collections--visible {
    opacity: 1;
    transform: translateY(0);
}

.collections__container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
}

.collections__item {
    flex: 1;
    position: relative;
    max-width: 453px;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.collections__item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.collections__item--1 {
    transition-delay: 0.1s;
}

.collections__item--2 {
    transition-delay: 0.3s;
}

.collections__item--3 {
    transition-delay: 0.5s;
}

.collections--visible .collections__item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.collections__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.collections__image-wrapper {
    position: relative;
    width: 453px;
    max-width: 100%;
    height: 566px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

.collections__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.collections__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.collections__text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    overflow: hidden;
}

.collections__text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #ffffff;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.collections__text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.collections__item--visible .collections__text {
    opacity: 1;
    transform: translateY(0);
}

.collections__link:hover .collections__text {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 3px;
    padding: 25px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.95) 100%);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.collections__link:hover .collections__text::before {
    width: 100%;
}

.collections__link:hover .collections__text::after {
    left: 100%;
}

/* ============================================
   RESPONSIVE STYLES - Complete & Enhanced
   ============================================ */

/* Large Devices (Desktops, 1200px to 1399px) */
@media (max-width: 1399.98px) {
    .collections__container {
        max-width: 1200px !important;
    }

    .collections__image-wrapper {
        width: 100% !important;
        max-width: 453px !important;
        height: auto !important;
        aspect-ratio: 453 / 566 !important;
    }
}

/* Medium-Large Devices (Small Desktops, 992px to 1199px) */
@media (max-width: 1199.98px) {
    .collections__container {
        max-width: 100% !important;
        padding: 0 20px !important;
    }

    .collections__image-wrapper {
        width: 100% !important;
        max-width: 453px !important;
        height: auto !important;
        aspect-ratio: 453 / 566 !important;
    }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (max-width: 991.98px) {
    .collections {
        padding: 70px 20px !important;
    }

    .collections__container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 25px !important;
        max-width: 100% !important;
    }

    .collections__item {
        max-width: 100% !important;
        width: 100% !important;
        max-width: 600px !important;
    }

    .collections__image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 453 / 566 !important;
        margin: 0 auto !important;
    }

    .collections__text {
        font-size: 15px !important;
        padding: 20px !important;
    }
}

/* Small Devices (Landscape Phones, 576px to 767px) */
@media (max-width: 767.98px) {
    .collections {
        padding: 60px 15px !important;
    }

    .collections__container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        max-width: 100% !important;
    }

    .collections__item {
        max-width: 100% !important;
        width: 100% !important;
    }

    .collections__image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 453 / 566 !important;
        margin: 0 auto !important;
    }

    .collections__text {
        font-size: 14px !important;
        padding: 18px 15px !important;
        letter-spacing: 1.5px !important;
    }
}

/* Extra Small Devices (Portrait Phones, up to 575px) */
@media (max-width: 575.98px) {
    .collections {
        padding: 50px 12px !important;
    }

    .collections__container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        max-width: 100% !important;
    }

    .collections__item {
        max-width: 100% !important;
        width: 100% !important;
    }

    .collections__image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 453 / 566 !important;
        margin: 0 auto !important;
    }

    .collections__text {
        font-size: 12px !important;
        padding: 15px 12px !important;
        letter-spacing: 1px !important;
    }
}

/* Very Small Devices (Small Phones, up to 375px) */
@media (max-width: 374.98px) {
    .collections {
        padding: 40px 10px !important;
    }

    .collections__container {
        gap: 12px !important;
    }

    .collections__text {
        font-size: 11px !important;
        padding: 12px 10px !important;
        letter-spacing: 0.8px !important;
    }
}

/* Landscape Orientation (Mobile) */
@media (max-width: 991.98px) and (orientation: landscape) {
    .collections {
        padding: 50px 15px !important;
    }

    .collections__container {
        gap: 20px !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .collections__link {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    }

    .collections__item:active {
        transform: scale(0.98) !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .collections,
    .collections__item,
    .collections__text,
    .collections__image,
    .collections__overlay,
    .collections__link {
        transition: none;
        animation: none;
    }
}

