/* ==================================
   VIDEO SECTION
   ================================== */

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.collection-video-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* Mobil için varsayılan */
    background: #000;
    overflow: hidden;
}

.video-wrapper.video-loaded {
    background: transparent !important;
}

.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.collection-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(2px 0px 1px 1px);
}

.collection-video.loaded {
    opacity: 1;
}

.video-mute-toggle {
    position: absolute;
    bottom: 15px;
    right: 10px;
    background: rgb(255 255 255 / 15%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.video-mute-toggle:hover {
    background: rgba(255 255 255 / 25%);
}

.video-mute-toggle img {
    width: 20px;
    height: 20px;
}

/* ==================================
   COLLECTION INFO SECTION
   ================================== */

.collection-info-section-title {
    padding: 0px 20px 10px 20px;
    background: #fff;
    position: relative;
}

.collection-title {
    font-size: 20px;
    font-weight: 600;
    color: #9EC1E0;
    letter-spacing: 0;
}

.collection-name {
    font-size: 20px;
    font-weight: 600;
    color: #00315A;
    letter-spacing: 0;
}

.inner-page {
    margin-top: 60px;
}

.collection-info-section {
    padding: 30px 20px;
    background: #fff;
    position: relative;
}

.collection-description-wrapper {
    position: relative;
}

.collection-description {
    font-size: 16px;
    line-height: 150%;
    color: #00315A;
    max-height: 55px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    font-weight: 400;
    letter-spacing: 0;
}

.collection-description.expanded {
    max-height: 1000px;
}

.collection-description:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.description-toggle {
    display: flex;
    justify-content: center;
    margin-top: 0px;
}

.toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s;
}

.toggle-button img {
    width: 24px;
    height: 24px;
}

.toggle-button.expanded img {
    transform: rotate(180deg);
}

.heading-dash {
    letter-spacing: -5px;
    padding-right: 4px;
}

/* ==================================
   PRODUCTS SECTION
   ================================== */

.collection-products-section {
    padding: 0 0 20px 0;
    background: #fff;
}

.products-title {
    font-size: 16px;
    font-weight: 600;
    color: #00315A;
    letter-spacing: 0;
    margin-bottom: 10px;
    margin-left: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.product-card {
    display: block;
    text-decoration: none;
    position: relative;
}

.product-link {
    text-decoration: none;
}

.product-image-wrapper {
    margin-bottom: 12px;
    position: relative;
}

.product-image {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-wishlist-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgb(255 255 255 / 0%);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
}

.product-wishlist-btn:hover {
    background: rgb(255 255 255 / 0%);
    transform: scale(1.1);
}

.product-wishlist-btn img {
    width: 24px;
    height: 22px;
    transition: all 0.3s;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #00315A;
    margin-bottom: 15px;
    text-align: center;
}

.product-code {
    font-size: 12px;
    color: #666;
}

/* ==================================
   SPINNER & LAZY LOADING
   ================================== */

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.product-image.loaded {
    opacity: 1;
}

/* ==================================
   RESPONSIVE - TABLET
   ================================== */

@media (min-width: 768px) {
    /* Video */
    .video-wrapper {
        aspect-ratio: 16 / 9;
        max-height: 700px;
    }

    .video-mute-toggle {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .video-mute-toggle img {
        width: 24px;
        height: 24px;
    }

    /* Collection Info */
    .collection-info-section-title {
        padding: 40px 40px;
    }

    .collection-title {
        font-size: 28px;
    }

    .collection-name {
        font-size: 28px;
    }

    .collection-info-section {
        padding: 40px 40px;
    }

    .collection-description {
        font-size: 18px;
        max-height: 55px;
    }

    /* Products */
    .collection-products-section {
        padding: 0 0 20px 0;
    }

    .products-title {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .product-name {
        font-size: 15px;
    }
}

/* ==================================
   RESPONSIVE - DESKTOP
   ================================== */

@media (min-width: 1024px) {
    /* Video */
    .video-wrapper {
        max-height: 800px;
    }

    .video-mute-toggle {
        bottom: 30px;
        right: 30px;
        width: 52px;
        height: 52px;
    }

    .video-mute-toggle:hover {
        background: rgba(255 255 255 / 30%);
        transform: scale(1.05);
    }

    /* Collection Info */
    .collection-info-section-title {
        padding: 30px 60px 0 60px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .collection-title {
        font-size: 32px;
    }

    .collection-name {
        font-size: 32px;
    }

    .collection-info-section {
        padding: 60px 60px;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Products */
    .collection-products-section {
        padding: 0 60px 80px 60px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .products-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-code {
        font-size: 13px;
    }
}
