/* Tungo Core - Plugin Styles */

/* Wishlist Icon Actions */
.tungo-wishlist-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8c8c8c;
    padding: 0;
}
.tungo-wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: #e54e4e;
}
.tungo-wishlist-btn.active {
    color: #e54e4e;
}
.tungo-wishlist-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Wishlist Page styling */
.tungo-wishlist-page {
    margin: 40px 0;
}
.tungo-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
    background: #fdfdfd;
    border: 1px dashed #ddd;
    border-radius: 12px;
}

/* Newsletter Section Form */
.tungo-newsletter-container {
    background: linear-gradient(135deg, #6b1124, #3b050f);
    color: #fff;
    padding: 50px 40px;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 20px 0;
}
.tungo-newsletter-icon {
    flex: 0 0 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}
.tungo-newsletter-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #fca5a5;
}
.tungo-newsletter-content {
    flex: 1 1 300px;
    margin-right: 30px;
}
.tungo-newsletter-content h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}
.tungo-newsletter-content p {
    margin: 0;
    color: #f87171;
    font-size: 14px;
}
.tungo-newsletter-form {
    flex: 1 1 400px;
    margin-top: 15px;
}
@media (min-width: 992px) {
    .tungo-newsletter-form {
        margin-top: 0;
    }
}
.tungo-newsletter-form .form-row {
    display: flex;
    gap: 12px;
}
.tungo-newsletter-form input[type="text"],
.tungo-newsletter-form input[type="email"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.tungo-newsletter-form input::placeholder {
    color: #fca5a5;
}
.tungo-newsletter-form input:focus {
    background: #fff;
    color: #1e293b;
    outline: none;
    border-color: #fca5a5;
}
.tungo-newsletter-form button {
    background: #ffffff;
    color: #6b1124;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.tungo-newsletter-form button:hover {
    background: #fdf2f2;
    transform: translateY(-2px);
}
.tungo-newsletter-feedback {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
}
.tungo-newsletter-feedback.success {
    color: #4ade80;
}
.tungo-newsletter-feedback.error {
    color: #f87171;
}

/* Quick View Modal Overlay */
.tungo-quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.tungo-quick-view-overlay.active {
    opacity: 1;
    visibility: visible;
}
.tungo-quick-view-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: all 0.3s ease;
    padding: 30px;
}
.tungo-quick-view-overlay.active .tungo-quick-view-modal {
    transform: translateY(0);
}
.tungo-quick-view-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}
.tungo-quick-view-close:hover {
    color: #0f172a;
}

/* Quick View layout */
.tungo-qv-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.tungo-qv-col {
    flex: 1 1 350px;
    padding: 0 15px;
}
.tungo-qv-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tungo-qv-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}
.tungo-qv-summary {
    display: flex;
    flex-direction: column;
}
.tungo-qv-summary .product_title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}
.tungo-qv-summary .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}
.tungo-qv-summary .price {
    font-size: 22px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 15px;
}
.tungo-qv-summary .price del {
    color: #94a3b8;
    font-weight: 400;
    font-size: 16px;
    margin-right: 6px;
}
.tungo-qv-summary .price ins {
    text-decoration: none;
}
.tungo-qv-summary .woocommerce-product-details__short-description {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}
.tungo-qv-summary .cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.tungo-qv-summary .quantity input {
    width: 60px;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}
.tungo-qv-summary .single_add_to_cart_button {
    background: #0f172a !important;
    color: #fff !important;
    height: 44px;
    padding: 0 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tungo-qv-summary .single_add_to_cart_button:hover {
    background: #1e293b !important;
}
.tungo-qv-meta {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    font-size: 13px;
    color: #64748b;
}

/* Spinner and Loaders */
.tungo-loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}
.tungo-spinner {
    border: 3px solid rgba(15, 23, 42, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border-left-color: #0f172a;
    animation: tungo_spin 1s linear infinite;
    display: inline-block;
}
.tungo-newsletter-form button .tungo-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
    border-left-color: #fff;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes tungo_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quick View Button on Card */
.tungo-quickview-btn {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.tungo-quickview-btn:hover {
    background: #0f172a !important;
}
