/*
Theme Name: MapaSeo
Description: A custom WordPress theme with WooCommerce support - MapaSeo Style
Version: 1.0
Author: Your Name
Text Domain: mapaseo
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Lato:wght@300;400;500;600&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
}

.hero-button, .btn, button {
    font-family: 'Nunito', sans-serif;
}

/* Header Styles - NON-STICKY */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo {
    display: block;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 16px;
}

.main-navigation a:hover {
    color: #6366f1;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* WooCommerce Cart Icon */
.cart-icon {
    position: relative;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: #6366f1;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f59e0b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.account-icon {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.account-icon:hover {
    color: #6366f1;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* Main Content - Simple */
.site-content {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Nunito', sans-serif;
}

.btn-primary {
    background-color: #6366f1;
    color: white;
}

.btn-primary:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-secondary:hover {
    background-color: #6366f1;
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(350px);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-close {
    background: none;
    border: none;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #6366f1;
}

.post-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

.read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.page-numbers a,
.page-numbers span {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

.page-numbers a:hover,
.page-numbers .current {
    background-color: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6366f1;
}

input.error {
    border-color: #ef4444;
}

/* WooCommerce Basic Styles */
.woocommerce div.product .woocommerce-tabs .panel {
    padding: 20px;
}

.woocommerce .woocommerce-ordering {
    margin-bottom: 20px;
}

.woocommerce ul.products li.product {
    margin-bottom: 30px;
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    z-index: 10001;
}

.modal-body {
    padding: 40px;
}

.quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
}

.product-details h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.product-details .price {
    font-size: 20px;
    font-weight: bold;
    color: #6366f1;
    margin-bottom: 15px;
}

.product-details .description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* No Posts Found */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.no-posts h2 {
    font-family: 'Nunito', sans-serif;
    color: #374151;
    margin-bottom: 15px;
}

.no-posts p {
    color: #6b7280;
    font-family: 'Lato', sans-serif;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loaded {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-navigation.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active i {
        display: none;
    }
    
    .mobile-menu-toggle.active::after {
        content: '\f00d';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .container {
        padding: 0 15px;
    }
}












/* Custom Styles for Cardinity Payment Fields in WooCommerce Checkout */

/* General styling for all Cardinity input fields */
#cardinity-card-number,
#cardinity-card-holder,
#cardinity-card-expiry,
#cardinity-card-cvc {
    width: 100%; /* Make fields full width */
    padding: 12px 15px; /* Increase padding for better touch targets and appearance */
    margin-bottom: 15px; /* Add space below each field */
    border: 1px solid #dcdcdc; /* Light grey border */
    border-radius: 6px; /* Slightly rounded corners */
    box-sizing: border-box; /* Include padding and border in the element's total width */
    font-size: 16px; /* Readable font size */
    line-height: 1.5; /* Improve text readability */
    color: #333; /* Darker text color */
    background-color: #fefefe; /* Off-white background */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth transitions for focus */
}

/* Focus state for input fields */
#cardinity-card-number:focus,
#cardinity-card-holder:focus,
#cardinity-card-expiry:focus,
#cardinity-card-cvc:focus {
    border-color: #007bff; /* Blue border on focus */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Light blue glow on focus */
    outline: none; /* Remove default outline */
}

/* Styling for the Card Holder label */
label[for="cardinity-card-holder"] {
    font-weight: bold; /* Make label bold */
    color: #555; /* Slightly darker label color */
    margin-bottom: 5px; /* Space between label and input */
    display: block; /* Ensure label takes its own line */
}

/* Styling for the Expiry Date and CVV fields to appear side-by-side */
/* Assuming they are in a structure that allows for this layout */
.form-row-first #cardinity-card-expiry, /* Target the expiry field if it's in a 'form-row-first' container */
.form-row-last #cardinity-card-cvc { /* Target the CVV field if it's in a 'form-row-last' container */
    width: calc(50% - 10px); /* Adjust width for side-by-side, accounting for margin */
    display: inline-block; /* Allow them to sit next to each other */
    vertical-align: top; /* Align them at the top */
}

.form-row-first #cardinity-card-expiry {
    margin-right: 20px; /* Space between expiry and CVV */
}

/* Adjustments for the parent paragraph tags if they are wrapping the inputs */
p.form-row {
    margin-bottom: 15px; /* Ensure consistent spacing between field groups */
}

/* Style for the required asterisk */
.woocommerce-validated label .required {
    color: #dc3545; /* Red color for required asterisk */
    font-size: 0.9em; /* Slightly smaller asterisk */
    margin-left: 3px;
}

/* Placeholder text styling */
::-webkit-input-placeholder { /* Chrome, Opera, Safari */
    color: #aaa; 
}
::-moz-placeholder { /* Firefox 19+ */
    color: #aaa;
    opacity: 1; /* Firefox adds opacity to placeholders */
}
:-ms-input-placeholder { /* IE 10+ */
    color: #aaa;
}
:-moz-placeholder { /* Firefox 18- */
    color: #aaa;
}

