/* ============================================================
   PRODUCT SKELETON STYLES
   Used for modal loading and product page loading states
   Matches actual Webflow product page layout
   ============================================================ */

/* Skeleton shimmer animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #fafafa 25%, #f7f7f7 50%, #fafafa 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s linear infinite;
}

/* ========== MAIN SKELETON CONTAINER ========== */
.product-skeleton {
    padding: 20px 40px;
    background: white;
    width: 100%;
}

/* ========== BREADCRUMB ROW ========== */
.product-skeleton-breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.product-skeleton-breadcrumb-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-skeleton-crumb {
    height: 14px;
    border-radius: 4px;
}

.product-skeleton-crumb:nth-child(1) { width: 50px; }
.product-skeleton-crumb:nth-child(2) { width: 70px; }
.product-skeleton-crumb:nth-child(3) { width: 90px; }

.product-skeleton-breadcrumb-right {
    display: flex;
    gap: 12px;
}

.product-skeleton-badge {
    height: 28px;
    width: 100px;
    border-radius: 14px;
}

/* ========== 3-COLUMN MAIN LAYOUT ========== */
/* Mimics: .item-layout (flex) > .item-main (grid) + .item-details-wrapper */
.product-skeleton-main {
    display: flex;
    gap: 4rem;
    margin-bottom: 40px;
}

.product-skeleton-media {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-skeleton-gallery {
    display: grid;
    grid-template-columns: 13% 1fr;
    grid-template-rows: 1fr;
    gap: 12px;
}

.product-skeleton-info {
    width: 375px;
    flex-shrink: 0;
}

/* Video products - no thumbnail column */
.product-skeleton-video .product-skeleton-gallery {
    grid-template-columns: 1fr;
}

.product-skeleton-video .product-skeleton-thumbs {
    display: none;
}

/* ========== LEFT: VERTICAL THUMBNAILS ========== */
.product-skeleton-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 0;
    min-height: 100%;
    overflow: hidden;
}

.product-skeleton-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ========== CENTER: HERO IMAGE ========== */
.product-skeleton-hero {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
}

/* Video products use 16:9 hero */
.product-skeleton-video .product-skeleton-hero {
    aspect-ratio: 16 / 9;
}

/* ========== RIGHT: INFO SECTION ========== */
.product-skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-skeleton-title {
    height: 28px;
    width: 100%;
    border-radius: 4px;
}

.product-skeleton-title-2 {
    height: 28px;
    width: 70%;
    border-radius: 4px;
}

.product-skeleton-creator {
    height: 16px;
    width: 100px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.product-skeleton-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0;
}

.product-skeleton-button {
    height: 48px;
    width: 100%;
    border-radius: 8px;
}

.product-skeleton-button-secondary {
    height: 48px;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #fafafa 25%, #f5f5f5 50%, #fafafa 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2.5s ease-in-out infinite;
}

/* ========== DETAILS ROWS ========== */
.product-skeleton-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
}

.product-skeleton-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-skeleton-detail-label {
    height: 14px;
    width: 100px;
    border-radius: 4px;
}

.product-skeleton-detail-pills {
    display: flex;
    gap: 8px;
}

.product-skeleton-pill {
    height: 32px;
    border-radius: 16px;
}

.product-skeleton-pill:nth-child(1) { width: 80px; }
.product-skeleton-pill:nth-child(2) { width: 60px; }
.product-skeleton-pill:nth-child(3) { width: 90px; }

.product-skeleton-detail-value {
    height: 14px;
    width: 70px;
    border-radius: 4px;
}

.product-skeleton-support-btn {
    height: 44px;
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    background: linear-gradient(90deg, #fafafa 25%, #f5f5f5 50%, #fafafa 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2.5s ease-in-out infinite;
}

.product-skeleton-rights {
    height: 12px;
    width: 160px;
    border-radius: 4px;
    margin: 8px auto 0;
}

/* ========== DESCRIPTION SECTION (under media) ========== */
.product-skeleton-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-skeleton-desc-line {
    height: 16px;
    width: 100%;
    border-radius: 4px;
}

.product-skeleton-desc-line:nth-child(1) {
    width: 100%;
    height: 18px;
}

.product-skeleton-desc-line:nth-child(2) { width: 95%; }
.product-skeleton-desc-line:nth-child(3) { width: 80%; }

.product-skeleton-view-more {
    height: 14px;
    width: 70px;
    border-radius: 4px;
    margin-top: 25px;
}

/* ========== SIMILAR ITEMS SECTION ========== */
.product-skeleton-related {
    padding-top: 38px;
}

.product-skeleton-section-title {
    height: 22px;
    width: 120px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product-skeleton-slider {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.product-skeleton-card {
    flex-shrink: 0;
    width: calc((100% - 96px) / 7);
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-skeleton-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
}

/* Video related products use 16:9 */
.product-skeleton-video .product-skeleton-card-image {
    aspect-ratio: 16 / 9;
}

.product-skeleton-card-title {
    height: 14px;
    width: 90%;
    border-radius: 4px;
}

.product-skeleton-card-title-2 {
    height: 14px;
    width: 60%;
    border-radius: 4px;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 991px) {
    .product-skeleton {
        padding: 24px;
    }
    
    .product-skeleton-main {
        flex-direction: column;
        gap: 24px;
    }
    
    .product-skeleton-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .product-skeleton-thumbs {
        flex-direction: row;
        height: auto;
        min-height: auto;
        overflow: hidden;
        order: 1;
    }
    
    .product-skeleton-hero {
        order: 0;
    }
    
    .product-skeleton-thumb {
        width: 80px;
    }
    
    .product-skeleton-info {
        width: 100%;
    }
    
    .product-skeleton-card {
        width: 160px;
    }
    
    .product-skeleton-breadcrumb-right {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .product-skeleton {
        padding: 16px;
    }

    .product-skeleton-main {
        gap: 16px;
        margin-bottom: 24px;
    }

    .product-skeleton-thumb {
        width: 70px;
    }

    .product-skeleton-button,
    .product-skeleton-button-secondary {
        height: 44px;
    }

    .product-skeleton-related {
        padding-top: 24px;
    }

    .product-skeleton-card {
        width: 140px;
        min-width: 120px;
    }

    .product-skeleton-breadcrumb-left .product-skeleton-crumb:nth-child(3) {
        display: none;
    }
}

/* ============================================================
   MUSIC/SFX SKELETON STYLES
   Horizontal player with right sidebar layout
   ============================================================ */

/* Music main layout - left content + right sidebar */
.product-skeleton-music .product-skeleton-music-main {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Left content area */
.product-skeleton-music-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Player row: cover + play + waveform + time */
.product-skeleton-music-player {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Small square cover art in player row */
.product-skeleton-music-cover {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
}

/* Play button */
.product-skeleton-music .product-skeleton-waveform-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Waveform bar */
.product-skeleton-music .product-skeleton-waveform-bar {
    flex: 1;
    height: 50px;
    border-radius: 4px;
    min-width: 200px;
}

/* Time display */
.product-skeleton-music .product-skeleton-waveform-time {
    width: 40px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Genre/Mood pills row */
.product-skeleton-music-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.product-skeleton-music-pills .product-skeleton-pill {
    height: 32px;
    width: 80px;
    border-radius: 16px;
}

.product-skeleton-music-pills .product-skeleton-pill:nth-child(2) { width: 70px; }
.product-skeleton-music-pills .product-skeleton-pill:nth-child(3) { width: 60px; }
.product-skeleton-music-pills .product-skeleton-pill:nth-child(4) { width: 75px; }

/* Download preview text */
.product-skeleton-music-preview-text {
    height: 14px;
    width: 200px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Right sidebar info */
.product-skeleton-music-info {
    width: 375px;
    flex-shrink: 0;
}

/* Music related items - list layout with waveforms */
.product-skeleton-music-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-skeleton-music-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-skeleton-music-item:last-child {
    border-bottom: none;
}

.product-skeleton-music-item-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-skeleton-music-item-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-skeleton-music-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 140px;
    flex-shrink: 0;
}

.product-skeleton-music-item-title {
    height: 14px;
    width: 100%;
    border-radius: 4px;
}

.product-skeleton-music-item-artist {
    height: 12px;
    width: 70%;
    border-radius: 4px;
}

.product-skeleton-music-item-waveform {
    flex: 1;
    height: 32px;
    border-radius: 4px;
    min-width: 150px;
}

.product-skeleton-music-item-duration {
    width: 70px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
    text-align: right;
}

/* Music responsive - tablet */
@media screen and (max-width: 991px) {
    .product-skeleton-music .product-skeleton-music-main {
        flex-direction: column;
        gap: 24px;
    }

    .product-skeleton-music-info {
        width: 100%;
    }

    .product-skeleton-music-item-waveform {
        display: none;
    }

    .product-skeleton-music-item-info {
        flex: 1;
        width: auto;
    }
}

/* Music responsive - mobile */
@media screen and (max-width: 767px) {
    .product-skeleton-music-cover {
        width: 80px;
        height: 80px;
    }

    .product-skeleton-music .product-skeleton-waveform-btn {
        width: 36px;
        height: 36px;
    }

    .product-skeleton-music .product-skeleton-waveform-bar {
        height: 40px;
        min-width: 100px;
    }

    .product-skeleton-music-item-cover {
        width: 48px;
        height: 48px;
    }

    .product-skeleton-music-item-play {
        width: 28px;
        height: 28px;
    }
}
