/* Promo Module Styles */

.df-ui-btn.df-ui-download {
    display: none !important;
}
.pdf-promo-container {
    margin: auto !important;
    padding: 20px;
}

/* Two-column layout styles */
.pdf-promo-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    border: 1px solid #e9ecef;
}

.pdf-promo-info.sticky-top {
    top: 20px;
}

.pdf-promo-info .product-title {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.8em;
}

.pdf-promo-info .pdf-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pdf-promo-info .product-price-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pdf-promo-info .pdf-actions .btn {
    font-size: 14px;
    padding: 10px 15px;
    font-weight: 500;
}

/* Enhanced flipbook container for right column */
.pdf-promo-viewer {
    padding: 0;
}

.pdf-promo-viewer .flipbook-container {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: white;
    border: 1px solid #e9ecef;
}

.pdf-promo-viewer .fallback-viewer {
    display: none;
}

/* Existing styles below... */

.pdf-promo-container {
    margin: 0 !important;
    padding: 20px;
}

.pdf-promo-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pdf-promo-header h2 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-title {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 2.2em;
}

.pdf-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Product Image Styles */
.product-image {
    text-align: center;
}

.product-main-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-main-image:hover {
    transform: scale(1.05);
}

/* Product Price Styles */
.product-price-section {
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 20px;
    background: transparent;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.product-price-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.price-display {
    display: block;
}

.price-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-original-line,
.price-current-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.price-current {
    font-size: 20px;
    color: #007bff;
    font-weight: 700;
}

.price-free {
    font-size: 20px;
    color: #28a745;
    font-weight: 700;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.pdf-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    padding: 12px 20px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pdf-download-btn {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.pdf-download-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.pdf-view-btn {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.pdf-view-btn:hover {
    background: #545b62;
    border-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108,117,125,0.3);
}

.pdf-promo-viewer {
    margin-bottom: 40px;
}

.pdf-embed-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-promo-footer {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.related-product {
    text-align: center;
}

.related-product h3,
.pdf-info h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.product-miniature {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-miniature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-image {
    max-width: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-name {
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

.product-price .price {
    font-size: 20px;
    font-weight: 600;
    color: #007bff;
}

.pdf-details {
    list-style: none;
    padding: 0;
}

.pdf-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.pdf-details li:last-child {
    border-bottom: none;
}

/* Nascondere elementi globali solo nel modulo pdfpromo */
body#module-pdfpromo-display #header,
body#module-pdfpromo-display #footer,
body#module-pdfpromo-display footer,
body#module-pdfpromo-display .breadcrumb,
body#module-pdfpromo-display #notifications {
    display: none !important;
}

/* Utilizzare tutto lo spazio disponibile */
.container {
    max-width: 100vw !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#content-wrapper {
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Rimuovere spinner e animazioni di caricamento */
.flipbook-loading, .loading-spinner, .pdf-loading {
    display: none !important;
}

/* Ottimizzazioni layout fullscreen */
.pdf-promo-container.fullscreen-layout {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    position: relative !important;
    overflow: hidden !important;
}

.fullscreen-flipbook-container {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.fullscreen-flipbook-container ._df_book {
    width: 100% !important;
    height: 100vh !important;
    background: none !important;
}

.fullscreen-flipbook-container .flipbook-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(248, 249, 250, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fullscreen-flipbook-container .fallback-viewer {
    width: 100%;
    height: 100vh;
}

.fullscreen-flipbook-container .fallback-viewer .pdf-iframe {
    width: 100%;
    height: 100%;
}

/* Product Info Overlay Styles */
.product-info-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
    animation: fadeIn 0.5s ease-out;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-info-card {
    padding: 15px;
    transition: all 0.3s ease;
}

.product-image-small {
    text-align: center;
}

.product-overlay-image {
    max-width: 60px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-overlay-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.product-overlay-price {
    margin-bottom: 12px;
}

.price-overlay-group {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.price-overlay-original {
    font-size: 0.85em;
    color: #666;
    text-decoration: line-through;
}

.price-overlay-current {
    font-size: 1.2em;
    color: #007bff;
    font-weight: 600;
}

.discount-overlay-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
}

.product-overlay-actions {
    margin-top: 12px;
}

.product-overlay-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.9em;
    border-radius: 6px;
    background: #007bff;
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.product-overlay-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for overlay */
@media (max-width: 768px) {
    .product-info-overlay {
        top: 10px;
        right: 10px;
        max-width: 250px;
    }
    
    .product-info-card {
        padding: 12px;
    }
    
    .product-overlay-title {
        font-size: 0.9em;
    }
    
    .price-overlay-current {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .product-info-overlay {
        top: 5px;
        right: 5px;
        max-width: 200px;
    }
    
    .product-overlay-image {
        max-width: 50px;
    }
    
    .product-overlay-btn {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .pdf-promo-container {
        padding: 10px;
    }
    
    /* Stack layout on mobile */
    .pdf-promo-info {
        margin-bottom: 20px;
        position: static !important;
    }
    
    .pdf-promo-info .product-title {
        font-size: 1.5em;
        text-align: center;
    }
    
    .pdf-promo-info .product-price-section {
        text-align: center;
        margin: 15px 0;
    }
    
    .pdf-promo-info .price-display {
        margin-bottom: 15px;
    }
    
    .pdf-promo-info .price-group {
        align-items: center;
    }
    
    .pdf-promo-info .price-original-line,
    .pdf-promo-info .price-current-line {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
    
    .pdf-promo-info .product-image {
        margin-bottom: 15px;
    }
    
    .pdf-promo-info .product-main-image {
        max-width: 200px;
    }
    
    .pdf-promo-viewer .flipbook-container {
        max-width: 100%;
        margin: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .pdf-promo-info {
        padding: 20px;
    }
    
    .pdf-promo-info .product-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {    
    .pdf-promo-header {
        padding: 20px;
        text-align: center;
    }
    
    .product-title {
        font-size: 1.8em;
        text-align: center;
    }
    
    .product-price-section {
        text-align: center;
        margin: 20px 0;
    }
    
    .price-display {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .pdf-actions {
        margin-top: 20px;
    }
    
    .pdf-embed-container {
        height: 60vh;
        min-height: 400px;
    }
    
    .flipbook-container {
        margin: 10px 0;
        max-width: 100%;
    }
    
    .pdf-promo-footer {
        padding: 20px;
    }
    
    .pdf-promo-footer .row > div {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .pdf-actions .btn {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .pdf-embed-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .product-title {
        font-size: 1.5em;
    }
    
    .price-current {
        font-size: 20px;
    }
    
    .price-original {
        font-size: 16px;
    }
    
    .price-display {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 3px 6px;
    }
}

.container{
    max-width: 100vw !important;
    width: 100% !important;
}

#content-wrapper{
    display: flex !important;
    justify-content: center !important;
}


/* Product Info Bar Styles */
.product-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shop-logo {
    display: flex;
    align-items: center;
    height: 30px;
    padding-right: 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.shop-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.product-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.price-original {
    font-size: 0.9em;
    color: #666;
    text-decoration: line-through;
}

.price-current {
    font-size: 1.4em;
    color: #007bff;
    font-weight: 600;
}

.price-free {
    font-size: 1.1em;
    color: #28a745;
    font-weight: 600;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
}

.view-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.9em;
    color: white;
    background: #007bff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.view-product-btn:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
}

.view-product-btn i {
    font-size: 16px;
}

/* Search box in dropdown */
.product-search-box {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.product-search-box input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
}

.product-search-box input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

/* Dropdown arrow */
.dropdown-arrow {
    margin-left: auto;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.selected-product-display:hover .dropdown-arrow {
    color: #007cba;
}

/* Placeholder with icon */
.selected-product-display .placeholder {
    color: #6c757d;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-product-display .placeholder i {
    font-size: 16px;
}

/* Improved hover effects */
.product-dropdown-item:hover .product-image-placeholder {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.product-dropdown-item:hover .product-name {
    color: #007cba;
    transition: color 0.2s ease;
}

/* Loading animation for placeholders */
.product-image-placeholder.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Better spacing for selected product */
.selected-product {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.selected-details {
    flex: 1;
    min-width: 0;
}

/* Admin Panel - Product Selection Styles */
.product-select-container {
    position: relative;
}

.product-option {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
}

.product-option:last-child {
    border-bottom: none;
}

.product-option img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    border: 1px solid #dee2e6;
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.product-id-price {
    font-size: 0.9em;
    color: #666;
}

.product-id {
    background: #007cba;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 8px;
}

/* Enhanced select styling */
.enhanced-product-select {
    min-height: 45px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
}

.enhanced-product-select .selected-product {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}

.enhanced-product-select .selected-product img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 10px;
    border: 1px solid #ddd;
}

/* Custom Product Selector */
.custom-product-selector {
    position: relative;
    max-width: 500px;
}

.selected-product-display {
    min-height: 50px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.selected-product-display .placeholder {
    color: #999;
    font-style: italic;
}

.product-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-search-box {
    padding: 10px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1001;
}

/* Product Search Styles */
.product-search-input {
    position: relative;
    width: 100%;
}

.product-search-results {
    top: 30px;
    left: 0;
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    overflow-y: auto;
    width: 100%;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
}

.product-search-item {
    border-bottom: 1px solid #eee;
}

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

.product-item-content {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-item-content:hover {
    background-color: #f8f9fa !important;
}

.product-search-input.product-selected {
    background-color: #e8f5e8;
    border-color: #28a745;
}

.search-loading, .search-error, .no-results {
    padding: 10px;
    text-align: center;
}

.search-loading {
    color: #007cba;
}

.search-error {
    color: #d9534f;
}

.no-results {
    color: #999;
}

.product-info .product-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}

.product-info .product-meta {
    color: #666;
    font-size: 12px;
}

.product-meta .product-price {
    margin-left: 15px;
    font-weight: 500;
    color: #28a745;
}

/* Promo List Grid Styles */
.promo-list-container {
    padding: 20px 0;
}

/* Container styles specific to PDF Promo List page */
body#module-pdfpromo-list .container {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: none !important;
    width: auto !important;
}

@media (min-width: 576px) {
    body#module-pdfpromo-list .container {
        width: 540px !important;
        max-width: 100% !important;
    }
}

@media (min-width: 768px) {
    body#module-pdfpromo-list .container {
        width: 720px !important;
        max-width: 100% !important;
    }
}

@media (min-width: 992px) {
    body#module-pdfpromo-list .container {
        width: 960px !important;
        max-width: 100% !important;
    }
}

@media (min-width: 1200px) {
    body#module-pdfpromo-list .container {
        width: 1140px !important;
        max-width: 100% !important;
    }
}

.promo-list-header {
    margin-bottom: 30px;
    text-align: center;
}

.promo-list-header .total-count {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.promo-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.promo-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.promo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    line-height: 1;
}

.promo-card:hover .promo-card-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #6c757d;
}

.no-image-placeholder .material-icons {
    font-size: 36px;
}

.promo-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-card:hover .promo-card-overlay {
    opacity: 1;
}

.btn-view-promo {
    padding: 12px 24px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    text-decoration: none;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.promo-card:hover .btn-view-promo {
    transform: translateY(0);
}

.promo-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Preview Icon */
.promo-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.promo-icon .material-icons {
    font-size: 16px;
    color: #999;
}

.promo-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.promo-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.promo-title a:hover {
    color: #007bff;
}

/* Pricing */
.promo-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.original-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.current-price {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.promo-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.promo-title a:hover {
    color: #007bff;
}

.promo-product {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.product-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.product-link:hover {
    text-decoration: underline;
}

.promo-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 15px;
}

.promo-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.promo-price {
    font-weight: 600;
    color: #28a745;
    font-size: 16px;
}

.promo-date {
    font-size: 12px;
    color: #6c757d;
}

.promo-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.promo-card-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    padding: 8px 12px;
    min-width: auto;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.promo-card-actions .material-icons {
    font-size: 16px;
}

/* Bottom section for pricing and actions */
.promo-card-bottom {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

/* Page title with sorting */
.page-title-with-sorting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.page-title-with-sorting .h1 {
    margin: 0;
    flex-shrink: 0;
}

/* Sorting controls */
.promo-sorting {
    flex-shrink: 0;
    padding: 8px 12px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.sort-controls select {
    min-width: 150px;
    max-width: 200px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 6px 10px;
    font-size: 13px;
    background: white;
    flex-shrink: 0;
}

.sort-controls .btn {
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 36px;
    height: 32px;
    flex-shrink: 0;
}

.sort-controls .btn .material-icons {
    font-size: 16px;
    color: #000;
}

/* Pagination Styles */
.promo-pagination {
    margin: 40px 0;
}

.promo-pagination .pagination {
    margin: 0;
}

.promo-pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.promo-pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.promo-pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* No Promos Found Styles */
.no-promos-found {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-promos-icon {
    margin-bottom: 20px;
}

.no-promos-icon .material-icons {
    font-size: 64px;
    color: #dee2e6;
}

.no-promos-found h3 {
    margin-bottom: 15px;
    color: #495057;
}

.no-promos-found p {
    margin-bottom: 25px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title-with-sorting {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .page-title-with-sorting .h1 {
        text-align: center;
    }
    
    .promos-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        padding: 0 10px;
    }
    
    .promo-card-content {
        padding: 10px;
    }
    
    .promo-card-actions {
        flex-direction: column;
    }
    
    .promo-card-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .promo-pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .sort-controls {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .sort-controls select {
        min-width: 100px;
        max-width: 120px;
        flex: 1;
    }
    
    .sort-controls .btn {
        min-width: 32px;
        height: 32px;
        padding: 4px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .promos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    
    .promo-card-image {
        height: 140px;
    }
    
    .promo-list-container {
        padding: 10px 0;
    }
    
    .promo-title {
        font-size: 13px;
    }
    
    .current-price {
        font-size: 13px;
    }
}

/* Floating Navigation Link to PDF List */
.pdf-promo-nav-link {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.pdf-promo-nav-link:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-50%) scale(1.1);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.pdf-promo-nav-link:focus {
    color: white;
    text-decoration: none;
    outline: none;
}

.pdf-promo-nav-link .material-icons {
    font-size: 24px;
}

.pdf-promo-nav-link::before {
    content: attr(title);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 10px;
    pointer-events: none;
}

.pdf-promo-nav-link:hover::before {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .pdf-promo-nav-link {
        right: 15px;
        width: 50px;
        height: 50px;
        padding: 12px;
    }
    
    .pdf-promo-nav-link .material-icons {
        font-size: 20px;
    }
    
    .pdf-promo-nav-link::before {
        display: none; /* Hide tooltip on mobile */
    }
}

@media (max-width: 480px) {
    .pdf-promo-nav-link {
        bottom: 20px;
        top: auto;
        right: 15px;
        transform: none;
    }
    
    .pdf-promo-nav-link:hover {
        transform: scale(1.1);
    }
}