/* Product Discount Styles */
.noqta-product-discount-offers {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.noqta-product-discount-offers h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.noqta-product-discount-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
    animation: pulse-badge 2s infinite;
}

.noqta-discount-badge-icon {
    margin-right: 6px;
    font-size: 14px;
}

.noqta-discount-badge-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Archive page discount badge */
.noqta-archive-discount-badge-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15;
    pointer-events: none;
}

/* Ensure product cards have relative positioning */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product .woocommerce-loop-category__link,
.woocommerce .products li.product,
.woocommerce .products li.product .woocommerce-loop-product__link,
.woocommerce .products li.product .woocommerce-loop-category__link,
.product-item,
.product-wrapper,
.woocommerce-loop-product__link {
    position: relative;
}

/* Additional selectors for homepage and other contexts */
.woocommerce .products .product,
.woocommerce .products .product .woocommerce-loop-product__link,
.woocommerce .products .product .woocommerce-loop-category__link,
.woocommerce ul.products .product,
.woocommerce ul.products .product .woocommerce-loop-product__link,
.woocommerce ul.products .product .woocommerce-loop-category__link {
    position: relative;
}

.noqta-archive-discount-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse-badge 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    pointer-events: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    min-width: 40px;
    justify-content: center;
}

.noqta-archive-discount-badge .noqta-discount-badge-icon {
    margin-right: 4px;
    font-size: 12px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.noqta-archive-discount-badge .noqta-discount-badge-text {
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
}

.noqta-product-discount-banner {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.noqta-product-discount-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.noqta-product-discount-banner:last-child {
    margin-bottom: 0;
}

.noqta-product-discount-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.noqta-product-discount-message {
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.noqta-product-discount-toggle {
    margin-left: 15px;
}

.noqta-toggle-details {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.noqta-toggle-details:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.noqta-toggle-details .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.noqta-toggle-details.active .toggle-icon {
    transform: rotate(180deg);
}

.noqta-product-discount-details {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    margin-top: 10px;
    padding: 15px;
    color: #333;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.noqta-discount-instructions h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.noqta-instructions-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.noqta-instructions-list li {
    margin-bottom: 5px;
    color: #555;
}

.noqta-instructions-list li:last-child {
    margin-bottom: 0;
}

.noqta-product-discount-actions {
    margin-left: 15px;
}

.noqta-product-action-btn.noqta-disabled-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    opacity: 0.7;
}

.noqta-product-action-btn.noqta-disabled-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .noqta-product-discount-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .noqta-product-discount-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .noqta-product-discount-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .noqta-toggle-details {
        width: 100%;
        justify-content: center;
    }
    
    .noqta-product-discount-details {
        margin-top: 8px;
        padding: 12px;
    }
    
    .noqta-instructions-list {
        padding-left: 15px;
    }
    
    /* Archive badge mobile styling */
    .noqta-archive-discount-badge-wrapper {
        top: 5px;
        left: 5px;
    }
    
    .noqta-archive-discount-badge {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .noqta-archive-discount-badge .noqta-discount-badge-icon {
        font-size: 10px;
    }
} 

/* Additional contexts for homepage and widgets */
.widget .product-item,
.widget .product-item .thumbnail,
.widget .product-item .info,
.woocommerce .widget .product-item,
.woocommerce .widget .product-item .thumbnail,
.woocommerce .widget .product-item .info {
    position: relative;
}

/* Homepage specific styling */
.home .woocommerce ul.products li.product,
.home .woocommerce .products li.product,
.home .woocommerce ul.products .product,
.home .woocommerce .products .product {
    position: relative;
}

/* Ensure badge works in Elementor and other page builders */
.elementor-widget-woocommerce-products .woocommerce ul.products li.product,
.elementor-widget-woocommerce-products .woocommerce .products li.product,
.elementor-widget-woocommerce-products .woocommerce ul.products .product,
.elementor-widget-woocommerce-products .woocommerce .products .product {
    position: relative;
}

/* New Visitor Top Bar Styles */
.noqta-new-visitor-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.noqta-new-visitor-topbar.show {
    transform: translateY(0);
}

.noqta-topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.noqta-topbar-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.noqta-topbar-message {
    flex: 1;
    text-align: center;
}

.noqta-topbar-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.noqta-topbar-subtitle {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

.noqta-topbar-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.noqta-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
}

.noqta-topbar-login {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.noqta-topbar-login:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

.noqta-topbar-register {
    background: white;
    color: #667eea;
    border: 1px solid white;
}

.noqta-topbar-register:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateY(-1px);
}

.noqta-topbar-shop {
    background: white;
    color: #667eea;
    border: 1px solid white;
}

.noqta-topbar-shop:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateY(-1px);
}

/* Adjust body padding when top bar is shown */
body.noqta-topbar-active {
    padding-top: 60px;
}

/* Mobile responsiveness for top bar */
@media (max-width: 768px) {
    .noqta-topbar-content {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .noqta-topbar-title {
        font-size: 14px;
    }
    
    .noqta-topbar-subtitle {
        font-size: 11px;
    }
    
    .noqta-topbar-actions {
        gap: 8px;
    }
    
    .noqta-topbar-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .noqta-topbar-icon {
        font-size: 20px;
    }
    
    /* Removed close button mobile styles */
}

@media (max-width: 480px) {
    .noqta-topbar-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .noqta-topbar-message {
        order: 1;
    }
    
    .noqta-topbar-actions {
        order: 2;
        justify-content: center;
    }
    
    /* Removed close button order */
    
    .noqta-topbar-icon {
        display: none;
    }
} 

/* First Visit Discount in Cart */
.cart-totals-row.noqta-first-visit-discount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin: 5px 0;
    animation: pulse-cart-discount 2s infinite;
}

.cart-totals-row.noqta-first-visit-discount .cart-totals-label {
    color: white;
    font-weight: 600;
}

.cart-totals-row.noqta-first-visit-discount .cart-totals-value {
    color: white;
    font-weight: 600;
}

.noqta-discount-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.noqta-discount-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.noqta-discount-applied {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

@keyframes pulse-cart-discount {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

/* Mobile responsiveness for cart discount */
@media (max-width: 768px) {
    .cart-totals-row.noqta-first-visit-discount {
        margin: 3px 0;
    }
    
    .noqta-discount-icon {
        font-size: 14px;
    }
    
    .noqta-discount-applied {
        font-size: 11px;
        padding: 3px 6px;
    }
} 