/*
Theme Name: Print Scan Fax
Theme URI: https://example.com/print-scan-fax
Author: Asad khan
Author URI: https://example.com
Description: Premium-quality custom WordPress/WooCommerce theme for Print Scan Fax. Maintains exact layout and responsiveness with Bootstrap 5 and includes product templates, menus, widgets, and performance-focused enqueues.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Print Scan Fax
Tags: bootstrap, responsive, e-commerce, blog, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ========== Imported Site Styles ========== */
/* Custom Styles for Print Scan Fax */

:root {
    --primary-red: #ff4757;
    --primary-dark: #2f3542;
    --text-grey: #747d8c;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-dark);
}

/* Navbar */
.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link.active {
    color: var(--primary-red) !important;
}

/* Hero Section */
.hero-section {
    background-color: #f8f9fa; /* Light grey background */
}

/* Buttons */
.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-danger:hover {
    background-color: #ff2e43;
    border-color: #ff2e43;
}

/* Categories */
.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    transition: transform 0.3s ease;
}

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

/* Badges */
.badge.bg-danger {
    background-color: var(--primary-red) !important;
}

/* Chat widget disabled globally */
#chat-widget-container,
.chat-widget-container,
.chat-window {
    display: none !important;
}

/* Testimonials */
.card {
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Footer */
footer {
    background-color: #1e272e;
}

footer h5, footer h6 {
    letter-spacing: 0.5px;
}

footer .btn-outline-light {
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer .btn-outline-light:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* Enhanced Footer Styles */
.footer-section {
    padding: 60px 0 30px;
}

footer .custom-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-description {
    color: #adb5bd;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social .btn {
    margin-right: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    margin-bottom: 15px;
    color: #adb5bd;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info i {
    color: var(--primary-red);
    margin-right: 12px;
    margin-top: 3px;
    width: 16px;
}

.footer-newsletter {
    margin-top: 20px;
}

.footer-newsletter p {
    color: #adb5bd;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.footer-newsletter .input-group {
    border-radius: 25px;
    overflow: hidden;
}

.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 20px;
}

.footer-newsletter .form-control::placeholder {
    color: #adb5bd;
}

.footer-newsletter .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-red);
    box-shadow: none;
    color: #fff;
}

.footer-newsletter .btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 25px;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 40px;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links li {
    margin: 0;
}

.footer-bottom-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-red);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods img {
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 20px;
    }
    
    .footer-heading {
        margin-top: 30px;
    }
    
    .footer-heading::after {
        width: 30px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .payment-methods {
        justify-content: center;
    }
}

/* Utilities */
.text-danger {
    color: var(--primary-red) !important;
}

.border-danger {
    border-color: var(--primary-red) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Global Branding Text */
.site-branding {
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Header Logo */
.header-logo {
    color: #000;
    font-size: clamp(20px, 2vw, 26px);
}

.header-logo:hover {
    opacity: 0.8;
}

/* Footer Logo */
.footer-logo {
    color: #fff;
    font-size: clamp(20px, 2vw, 24px);
}

.footer-logo:hover {
    opacity: 0.85;
}

/* Ensure footer text visibility */
footer,
footer p,
footer small,
.footer-disclaimer {
    color: #fff !important;
}

/* Prevent text wrapping issue */
.site-branding {
    white-space: nowrap;
}

/* Chat Widget Styles */
.chat-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0099ff; /* Blue color from reference */
    color: white;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0; /* Rounded top corners like a tab or full rounded */
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,153,255,0.3);
    cursor: pointer;
    z-index: 1050;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: transform 0.2s;
}
.chat-widget-btn:hover {
    transform: translateY(-2px);
}
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 1050;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}
.chat-header {
    background: #0099ff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}
.chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}
.chat-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 0.9rem;
}
.chat-message.agent {
    background: #f1f1f1;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}
.chat-message.user {
    background: #e3f2fd;
    color: #0056b3;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

/* About Page */
.about-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    padding: 80px 0 40px;
}
.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDQwIDMyMCI+PHBhdGggZmlsbD0iI2Y4ZjlmYSIgZmlsbC1vcGFjaXR5PSIxIiBkPSJNMCAyMjRMNDAgMjEzLjNDODAgMjAzIDE2MCAxODEgMjQwIDE4MS4zQzMyMCAxODIgNDAwIDIwMyA0ODAgMTkyQzU2MCAxODEgNjQwIDEzOSA3MjAgMTM4LjdDODAwIDEzOSA4ODAgMTgxIDk2MCAxOTJDMTA0MCAyMDMgMTEyMCAxODIgMTIwMCAxNjBDMTI4MCAxMzkgMTM2MCAxMTcgMTQwMCAxMDZMMTQ0MCA5NkwxNDQwIDBMMTQwMCAwQzEzNjAgMCAxMjgwIDAgMTIwMCAwQzExMjAgMCAxMDQwIDAgOTYwIDBDODgwIDAgODAwIDAgNzIwIDBDNjQwIDAgNTYwIDAgNDgwIDBDNDAwIDAgMzIwIDAgMjQwIDBDMTYwIDAgODAgMCA0MCAwTDAgMFoiPjwvcGF0aD48L3N2Zz4=');
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    opacity: 0.5;
    z-index: 0;
}
.about-header .container {
    position: relative;
    z-index: 1;
}
.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.cta-section {
    background: #ff4757;
    color: white;
}
.cta-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}
.cta-btn:hover {
    background: white;
    color: #ff4757;
}
.offer-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.offer-list i {
    color: #ff4757;
    margin-right: 10px;
    font-size: 0.8rem;
}
.nav-pills .nav-link {
    color: #2f3542;
    font-weight: 600;
    padding: 10px 0;
    margin-right: 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}
.nav-pills .nav-link.active {
    color: #ff4757;
    background: none;
    border-bottom: 2px solid #ff4757;
}
.nav-pills .nav-link:hover {
    color: #ff4757;
}

/* Contact Page */
.contact-section {
    background-color: #ffffff;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}
.contact-form-card {
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 3rem;
}
.form-control {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    padding: 0.8rem 1rem;
    border-radius: 4px;
}
.form-control:focus {
    box-shadow: none;
    border-color: #ddd;
    background-color: #fff;
}
.contact-icon {
    color: #dc3545;
    width: 20px;
    text-align: center;
    margin-right: 15px;
}
.separator-line {
    height: 3px;
    width: 50px;
    background-color: #ffcccc;
    margin: 2rem 0;
}

/* Product Detail Page */
.product-image-container {
    position: relative;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    overflow: hidden;
}
.zoom-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
}
.sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}
.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #dee2e6;
    height: 40px;
}
.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.quantity-btn:hover {
    background: #f8f9fa;
}
.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 1rem;
    font-weight: 600;
}
.nav-tabs .nav-link.active {
    color: #212529;
    border-bottom: 2px solid #dc3545;
}
.payment-icons img {
    height: 25px;
    margin-right: 5px;
}
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}
.sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 15px 0;
    z-index: 1040;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.sticky-product-bar.visible {
    transform: translateY(0);
}

/* ================================
   Payment Logos Placement Fix
=============================== */

.psf-payment-logos {
    display: block;
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center;
}

.psf-payment-logos img {
    max-width: 240px;
    width: 100%;
    height: auto;
    display: inline-block;
}

@media (min-width: 992px) {
    .psf-payment-logos {
        text-align: left;
        margin-top: 12px;
    }
    .psf-payment-logos img {
        max-width: 180px;
    }
}

/* End Payment Logos Fix */

/* ================================
   Footer Disclaimer Placement Fix
================================ */

.psf-footer-disclaimer {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #cfcfcf;
}

.psf-footer-disclaimer p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .psf-footer-disclaimer {
        margin-top: 15px;
        font-size: 12px;
    }
}

/* End Footer Fix */

.payment-logos {
    margin-top: 15px;
}

.payments-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .payments-img {
        max-width: 180px;
        margin: 0 auto;
    }
}

.secure-checkout-box {
    background: #f8f9fa;
    border-radius: 10px;
}

.secure-title {
    font-weight: 600;
    font-size: 18px;
    color: #222;
}

.payment-icons {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.woocommerce-checkout .checkout-summary-card,
.woocommerce-cart .checkout-summary-card {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}

.woocommerce-checkout .checkout-summary-card .card-body,
.woocommerce-cart .checkout-summary-card .card-body {
    padding: 1.5rem;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 0.5rem 0;
}

.woocommerce-checkout-review-order-table tfoot th {
    font-weight: 600;
}

.woocommerce-checkout .place-order .button,
.woocommerce-checkout .place-order .button.alt {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.25rem;
}

.woocommerce-checkout .place-order .button:hover,
.woocommerce-checkout .place-order .button.alt:hover {
    background-color: #ff2e43;
    border-color: #ff2e43;
}

.woocommerce-checkout .form-row,
.woocommerce-cart .form-row {
    margin-bottom: 1rem;
}

.woocommerce-cart .shop_table.cart {
    width: 100%;
    font-size: 0.9rem;
}

.woocommerce-cart .shop_table.cart td,
.woocommerce-cart .shop_table.cart th {
    padding: 0.75rem 0.5rem;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 1.25rem;
    background-color: #fff;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.woocommerce-cart .cart_totals table {
    width: 100%;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 0.5rem 0;
}

@media (max-width: 767.98px) {
    .woocommerce-checkout .checkout-summary-card,
    .woocommerce-cart .checkout-summary-card {
        margin-top: 2rem;
    }
}
