
    @keyframes modernShine {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .flyer-image-card {
        background: var(--gray-200);
        margin-bottom: 40px;
        box-shadow: var(--shadow-md);
        border-radius: var(--radius-lg);
        position: relative;
        overflow: auto;
        background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
        background-size: 200% 100%;
        animation: modernShine 2s infinite ease-in-out;
        transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
        display: block;
        content-visibility: auto; 
        contain-intrinsic-size: 550px;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation; 
    }

    @media (min-width: 768px) {
    .flyer-image-card {
        contain-intrinsic-size: 1000px;
    }
}

    .flyer-image-card.loaded {
        animation: none;
        background: #fff;
        border: 1px solid var(--gray-200);
    }

    .flyer-img-skeleton {
        width: 100%;
        height: 100%;
        display: block;
        opacity: 0;
        transition: opacity 0.5s var(--ease-out);
        object-fit: contain;
        background-color: #f3f4f6;
    }

    .flyer-img-skeleton.reveal { opacity: 1; }

    
    .page-indicator {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(17, 24, 39, 0.7);
        backdrop-filter: blur(4px);
        color: #fff;
        padding: 6px 14px;
        border-radius: var(--radius-full);
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 5;
        letter-spacing: 0.5px;
        box-shadow: var(--shadow-sm);
    }

    
    .embargo-msg {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.95);
        color: var(--gray-800);
        padding: 2rem;
        border-radius: var(--radius-md);
        text-align: center;
        font-weight: 700;
        z-index: 10;
        width: 80%;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--gray-200);
    }

    .hotspot {
        position: absolute;
        border: 4px solid transparent;
        background: rgba(255, 255, 255, 0.1);
        z-index: 4;
        cursor: pointer;
        transition: all 0.2s var(--ease-out);
        border-radius: 4px;
    }
    .hotspot:hover {
        background: rgba(var(--primary-hue), 90%, 50%, 0.15);
        border-color: var(--primary-color);
        box-shadow: 0 0 10px rgba(var(--primary-hue), 90%, 50%, 0.3);
    }


    
    #back-to-top {
        position: fixed !important;
        bottom: 30px;
        right: 30px;
        width: 56px;
        height: 56px;
        background-color: var(--primary-color);
        color: var(--text-on-primary);
        border: none;
        border-radius: 50%;
        display: none;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: var(--shadow-primary);
        z-index: 2000;
        transition: transform 0.3s var(--ease-out), background-color 0.3s;
    }

    #back-to-top:hover {
        background-color: var(--primary-dark);
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    #back-to-top svg {
        width: 24px;
        height: 24px;
        stroke-width: 2.5;
    }

    @media (max-width: 768px) {
        #back-to-top {
            bottom: 80px !important;
            right: 20px !important;
            width: 48px;
            height: 48px;
        }
    }

        @media (max-width: 576px) {
        .flyer-body { padding: 8px 10px; }
        .flyer-store-title { font-size: 0.9rem; }
    }
    
 .flyer-view-wrapper {
    background-color: var(--body-bg, #f8f9fa); 
    min-height: 100vh;
    overflow-x: hidden; 
}

  .flyer-layout-grid {
    display: flex;
    justify-content: center; 
    align-items: flex-start; 
    gap: 20px; 
    
    
    
    max-width: 1440px; 
    width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 40px;
}
   
.main-content-area {
    flex: 1; 
    width: 100%; 
    max-width: 1024px; 
    
    
    min-width: 0; 
    
    
    margin-left: 0; 
    margin-right: 0;
}

 
.flyer-sidebar {
    width: 160px !important; 
    flex-shrink: 0; 
    display: none; 
    
    
    position: sticky;
    position: -webkit-sticky;
    top: 90px; 
    height: fit-content;
    z-index: 90;
}




@media (min-width: 1350px) {
    .flyer-sidebar {
        display: block;
    }
}


@media (max-width: 1349px) {
    .flyer-sidebar {
        display: none !important;
    }
    .flyer-layout-grid {
        max-width: 1024px; 
    }
}

.sidebar-left {
    margin-right: auto; 
}
.sidebar-right {
    margin-left: auto; 
}

.discount-corner-widget {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--danger-color) 25%, #fff);
}


.discount-header {
    background: linear-gradient(
        135deg,
        var(--danger-color),
        color-mix(in srgb, var(--danger-color) 85%, #000)
    );
    color: var(--text-on-primary);
    padding: 2px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-list {
    padding: 0;
    display: flex;
    flex-direction: column;

 max-height: 330px;
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: var(--danger-color) var(--gray-100);
}

.discount-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none !important;
    transition: background 0.2s var(--ease-out);
    gap: 10px;
}

.discount-item:last-child {
    border-bottom: none;
}

.discount-item:hover {
    background: color-mix(in srgb, var(--danger-color) 8%, #fff);
}

.disc-img-box {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
}

.disc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.disc-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--danger-color);
    color: var(--text-on-primary);
    font-size: 0.6rem;
    font-weight: bold;
    padding: 1px 4px;
    border-top-left-radius: 4px;
}

.disc-info {
    flex-grow: 1;
    min-width: 0;
}

.disc-name {
    font-size: 0.75rem;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 2px;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.disc-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.75rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 0.7rem;
}

.new-price {
    color: var(--danger-color);
    font-weight: 800;
    font-size: 0.85rem;
}

.discount-list::-webkit-scrollbar {
    width: 5px;
}

.discount-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.discount-list::-webkit-scrollbar-thumb {
    background: var(--danger-color);
    border-radius: 4px;
}

.discount-list::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--danger-color) 85%, #000);
}