/* Skeleton Wrapper */
#de-product-skeleton {
    display: none;
    /* Hidden by default */
    width: 100%;
    /* max-width: 1280px; */
    margin: auto;
    padding: 20px;
    background: transparent;
    /* No background on wrapper to avoid big block look */
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Show skeleton when loading */
html.de-loading-product #de-product-skeleton {
    display: block !important;
}

/* Flex Container matching layout */
.de-skeleton-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

/* Columns - Reset Background to avoid blocky look */
.de-skeleton-column {
    background: transparent;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }

    50% {
        background-color: #f5f5f5;
    }

    100% {
        background-color: #e0e0e0;
    }
}

.pulse {
    animation: pulse 1.5s infinite ease-in-out;
    background-color: #e0e0e0;
    border-radius: 4px;
}

/* BREADCRUMB */
.de-sk-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-left: 10px;
}

.de-sk-b-item {
    height: 14px;
    border-radius: 3px;
}

.de-sk-b-sep {
    color: #ccc;
    font-size: 14px;
}

/* LEFT COLUMN: Gallery */
.de-skeleton-gallery {
    flex: 0 0 350px;
    max-width: 350px;
}

.de-sk-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.de-sk-image-main {
    width: 100%;
    padding-bottom: 130%;
    /* Book Aspect Ratio */
    border-radius: 8px;
}

.de-sk-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px;
    height: 24px;
    z-index: 2;
    background-color: #ccc;
    /* Darker than pulse for badge */
}

.de-sk-thumbnails {
    display: flex;
    gap: 10px;
}

.de-sk-thumb {
    width: 60px;
    height: 80px;
    border-radius: 4px;
}


/* MIDDLE COLUMN: Info */
.de-skeleton-info {
    flex: 1 1 300px;
    min-width: 300px;
}

.de-sk-title-lines {
    margin-bottom: 20px;
}

.de-sk-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.de-sk-stars {
    width: 100px;
    height: 16px;
}

.de-sk-review-count {
    width: 80px;
    height: 14px;
}

/* Description List */
.de-sk-description-list {
    margin-bottom: 30px;
}

.de-sk-desc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.de-sk-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ccc;
    flex-shrink: 0;
}

.de-sk-desc-text {
    height: 12px;
}

/* Meta Section */
.de-sk-meta-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.de-sk-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.de-sk-label {
    width: 80px;
    height: 12px;
}

.de-sk-value {
    height: 12px;
}


/* RIGHT COLUMN: Sidebar */
.de-skeleton-sidebar {
    flex: 0 0 300px;
    max-width: 300px;
}

/* Card Style - Only card has background, not column */
.de-sk-card {
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    background: #fff;
    display: flex;
    flex-direction: column;
}

.de-sk-card-header {
    width: 100px;
    height: 14px;
    margin-bottom: 20px;
}

.de-sk-price-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.de-sk-price-large {
    width: 120px;
    height: 32px;
}

.de-sk-discount {
    width: 50px;
    height: 20px;
}

.de-sk-mrp {
    width: 80px;
    height: 14px;
    margin-bottom: 20px;
}

.de-sk-stock-badge {
    width: 100px;
    height: 28px;
    border-radius: 14px;
    margin-bottom: 30px;
}

.de-sk-actions {
    display: flex;
    gap: 10px;
}

.de-sk-qty-picker {
    width: 80px;
    height: 44px;
    border-radius: 22px;
}

.de-sk-add-cart-btn {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    background-color: #ccc;
    /* Darker pulse for button */
}

/* TABS SECTION (Bottom) */
.de-sk-tabs-section {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.de-sk-tabs-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.de-sk-tab-pill {
    width: 120px;
    height: 40px;
    border-radius: 20px;
}


/* Responsive */
/* Responsive */

/* Tablet (Portrait) and Mobile */
@media (max-width: 1024px) {
    .de-skeleton-container {
        gap: 20px;
    }

    .de-skeleton-gallery {
        flex: 0 0 300px;
        max-width: 300px;
    }

    .de-skeleton-info {
        flex: 1 1 300px;
    }

    .de-skeleton-sidebar {
        /* Move to bottom or side depending on layout preference, 
           but ensure it's visible as user requested "mobile friendly" */
        flex: 1 1 100%;
        max-width: 100%;
        order: 3;
        /* Ensure it drops to bottom if wrapping */
        display: block;
    }

    .de-sk-card {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 20px;
    }

    .de-sk-card-header,
    .de-sk-card-stock {
        margin-bottom: 0;
        width: auto;
        min-width: 100px;
    }

    .de-sk-price-group {
        margin-bottom: 0;
        margin-right: auto;
    }

    .de-sk-actions {
        width: 100%;
        margin-top: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .de-skeleton-container {
        flex-direction: column;
        gap: 20px;
    }

    .de-skeleton-gallery,
    .de-skeleton-info,
    .de-skeleton-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    /* On mobile, reset order so it flows naturally or specific order */
    .de-skeleton-gallery {
        order: 1;
        margin-bottom: 10px;
    }

    .de-skeleton-info {
        order: 2;
        margin-bottom: 20px;
    }

    .de-skeleton-sidebar {
        order: 3;
    }

    .de-sk-image-wrapper {
        margin-bottom: 10px;
    }

    .de-sk-image-main {
        padding-bottom: 100%;
        /* Square on mobile */
    }

    .de-sk-thumbnails {
        justify-content: center;
    }

    .de-sk-card {
        display: block;
        /* Stack content in card again for mobile */
        padding: 15px;
    }

    .de-sk-price-group {
        margin-bottom: 10px;
    }

    .de-sk-card-header,
    .de-sk-card-stock,
    .de-sk-mrp {
        margin-bottom: 10px;
    }
}