/* Authentication-based pricing styles */

.product-pricing.login-required {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-pricing.login-required::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.login-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff8108, #e06f00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.login-icon i {
    color: white;
    font-size: 1.2rem;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.login-message {
    text-align: center;
    margin-bottom: 1rem;
}

.login-message h4 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.login-message p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff8108, #e06f00);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 129, 8, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #e06f00, #cc6200);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 129, 8, 0.4);
    color: white;
    text-decoration: none;
}

.login-btn i {
    font-size: 0.85rem;
}

/* Product page specific styles */
.product-pricing.login-required .login-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.login-btn.primary {
    background: linear-gradient(135deg, #ff8108, #e06f00);
}

.login-btn.secondary {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.login-btn.secondary:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-pricing.login-required {
        padding: 1.25rem;
    }

    .login-message h4 {
        font-size: 1rem;
    }

    .login-message p {
        font-size: 0.85rem;
    }

    .login-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .product-pricing.login-required .login-actions {
        flex-direction: column;
        align-items: center;
    }

}

/* Small mobile */
@media (max-width: 480px) {
    .store-layout .product-pricing.login-required {
    padding: 5px 5px !important;
    margin-bottom: 10px !important;
    border-radius: 5px !important;
    }

    .store-layout .product-card .login-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .store-layout .product-card .login-icon i {
        font-size: 0.6rem !important;
    }

    .store-layout .product-card .login-message {
        min-width: none !important;
    }

    .store-layout .login-message h4 {
        font-size: 0.65rem !important; 
    }

    .store-layout .login-message p {
        font-size: 0.8rem !important;
    }

    .store-layout .product-card .login-btn {
        width: 25px !important;
        height: 25px !important;
    }

    .store-layout .product-card .login-btn i {
        font-size: 0.65rem !important;
    } 
}

/* Integration with existing product card styles */
.product-card .product-pricing.login-required {
    margin-top: 1rem;
    background: rgba(255, 129, 8, 0.08);
    border: 1px solid rgba(255, 129, 8, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
}

.product-card .login-prompt {
    gap: 0.5rem;
}

.product-card .login-icon {
    width: 28px;
    height: 28px;
    background: #ff8108;
    margin-bottom: 0;
    border: 1px solid #ac6a2c;
}

.product-card .login-icon i {
    font-size: 0.8rem;
}

.product-card .login-message {
    margin-bottom: 0;
}

.product-card .login-message h4 {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #ff8108;
    font-weight: 600;
}

/* Hide description paragraph in product cards */
.product-card .login-message p {
    display: none;
}

.product-card .login-btn {
    padding: 0;
    font-size: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff8108;
    display: flex;
    justify-content: center;

}

.product-card .login-btn span {
    display: none;
}

.product-card .login-btn i {
    font-size: 0.9rem;
}

.product-card .login-btn:hover {
    background: #da6f07;
}

/* Compact single-block design for product cards */
.product-card .product-pricing.login-required {
    text-align: center;
    min-height: auto;
}

.product-card .login-prompt {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.product-card .login-icon {
    flex-shrink: 0;
}

.product-card .login-message {
    flex: 1;
    text-align: left;
}

.product-card .login-btn {
    flex-shrink: 0;
}

/* Mobile responsive for compact design */
@media (max-width: 768px) {
  .product-card .login-prompt {
    justify-content: center;
    gap: 0.5rem;
  }
}

/* Disabled cart button styles */
.add-to-cart-btn.disabled {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    color: white !important;
    text-decoration: none !important;
    cursor: pointer;
    pointer-events: auto !important;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

.add-to-cart-btn.disabled:hover {
    background: linear-gradient(135deg, #495057, #343a40) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.add-to-cart-btn.disabled i {
    font-size: 0.85rem;
}