
.ad-wrapper {
    min-height: 260px; 
    width: 100%;
    background: #f8f9fa; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    contain: layout paint; 
}


.ad-separator {
    margin: 40px auto;
    text-align: center;
    padding-bottom: 20px;
  
}

.ad-label {
    font-size: 10px; 
    color: #adb5bd; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    display: block; 
    margin-bottom: 5px;
}


@media (min-width: 992px) {
    .ad-wrapper {
        min-height: 280px; 
    }
}


@keyframes shine {
    to { background-position-x: -200%; }
}

.flyer-view-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-content {
    flex: 1;
    max-width: 1024px;
    width: 100%;
}

.flyer-image-card {
  
    background-color: #e0e0e0;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    

    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;

    display: block;
    width: 100%;
    contain: layout paint; 
    transform: translateZ(0); 
    will-change: opacity; 
}

.flyer-image-card.loaded {
    animation: none;
    background: #fff;
}

.flyer-img {
    width: 100%;
    height: 100%; 
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease-in;
    object-fit: cover;
}

.flyer-img.reveal {
    opacity: 1;
}

.page-indicator {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 5;
    pointer-events: none;
}



.sidebar {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: fit-content;
    display: none;
}
@media (min-width: 1200px) {
    .sidebar { display: block; }
}


#scrollToTopBtn {
    display: none; 
    position: fixed;
    bottom: 30px;
    right: 30px; 
    z-index: 9999; 
    
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%; 
    
    background-color: var(--primary-color, #007BFF); 
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    align-items: center;
    justify-content: center;
}


#scrollToTopBtn:hover {
    background-color: var(--primary-color-dark, #0056b3);
    transform: translateY(-5px); 
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}


@media (max-width: 768px) {
    #scrollToTopBtn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

.store-blog { margin-bottom: 20px; }
.flyer-title { font-size: 24px; margin-bottom: 5px; }
.flyer-subtitle { color: #666; font-size: 14px; }

<% if (isEmbargoed) { %>
.blurred-image { filter: blur(15px); pointer-events: none; }
.embargo-msg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95); padding: 20px; border-radius: 8px;
    text-align: center; font-weight: bold; z-index: 10; width: 80%;
}
<% } %>