/* Lightweight loading placeholders for delayed Vue/Ajax regions and lazy media. */
[v-cloak] {
    display: none !important;
}

.skeleton,
.skeleton-image-frame::before {
    background: #1f1c17;
    background-image: linear-gradient(90deg, #1f1c17 0%, #342d22 45%, #4a3a21 50%, #342d22 55%, #1f1c17 100%);
    background-size: 220% 100%;
    animation: skeleton-shimmer 1.3s linear infinite;
}

.skeleton {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    color: transparent;
    pointer-events: none;
}

.skeleton-inline {
    display: inline-block;
    width: 2.25rem;
    height: 1em;
    vertical-align: middle;
}

.skeleton-line {
    width: 100%;
    height: 0.9rem;
    margin-bottom: 0.65rem;
}

.skeleton-line-lg {
    width: 82%;
    height: 1.15rem;
}

.skeleton-line-md {
    width: 64%;
}

.skeleton-line-sm {
    width: 42%;
}

.skeleton-line-xs {
    width: 24%;
}

.skeleton-image {
    width: 100%;
    min-height: 7.5rem;
    border-radius: 8px;
}

.skeleton-product-image {
    width: 86px;
    height: 86px;
    min-height: 86px;
    margin: 0 auto 0.9rem;
}

.skeleton-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.skeleton-button {
    width: 86px;
    height: 36px;
    border-radius: 6px;
}

.skeleton-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.skeleton-row-between {
    justify-content: space-between;
}

.skeleton-row-center {
    justify-content: center;
}

.skeleton-stack {
    flex: 1 1 auto;
    min-width: 0;
}

.skeleton-list {
    display: grid;
    gap: 12px;
}

.skeleton-list-item {
    background: rgba(25, 23, 20, 0.88);
    border: 1px solid rgba(245, 222, 179, 0.1);
    border-radius: 10px;
    padding: 16px;
}

.skeleton-news-card {
    min-height: 176px;
}

.skeleton-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    width: 100%;
}

.skeleton-product-card {
    min-height: 224px;
    padding: 14px 12px;
    text-align: center;
    background: rgba(25, 23, 20, 0.7);
    border: 1px solid rgba(245, 222, 179, 0.08);
    border-radius: 10px;
}

.skeleton-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.skeleton-category {
    width: 72px;
    height: 72px;
    border-radius: 10px;
}

.skeleton-ge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.skeleton-table {
    display: grid;
    gap: 8px;
}

.skeleton-table-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.7fr) repeat(3, minmax(70px, 0.7fr));
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: rgba(25, 23, 20, 0.75);
    border-radius: 8px;
}

.skeleton-image-frame {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 96px;
    border-radius: inherit;
    background: #1f1c17;
}

.skeleton-image-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.skeleton-image-frame > img {
    display: block;
    position: relative;
    z-index: 1;
}

.skeleton-image-frame.is-loaded::before {
    display: none;
    animation: none;
}

.media-card .skeleton-image-frame {
    min-height: 150px;
}

.ge-image-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-height: 42px;
    margin-right: 12px;
    border-radius: 4px;
}

.product-image-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 140px;
    min-height: 112px;
    margin: 0 auto 0.5rem;
    border-radius: 8px;
}

.product-image-frame > img,
.category-image-frame > img {
    max-width: 100%;
}

.category-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    border-radius: 4px;
}

@media (max-width: 680px) {
    .skeleton-table-row {
        grid-template-columns: 1fr;
    }

    .skeleton-ge-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton,
    .skeleton-image-frame::before {
        animation: none;
        background-image: none;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}
