/**
 * ShopMobile Pro - Main Styles
 * Estilos principales del tema
 */

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Top */
.header-top {
    background-color: #1f2937;
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-contact span {
    margin-right: 1rem;
}

.header-account a {
    color: #ffffff;
    font-weight: 500;
}

.header-account a:hover {
    color: #10b981;
}

/* Header Main */
.header-main {
    padding: 1rem 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Site Branding */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.site-title a {
    color: #1f2937;
    font-weight: 700;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.custom-logo-link {
    display: block;
    max-width: 200px;
}

.custom-logo {
    height: auto;
    max-height: 60px;
    width: auto;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    flex: 1;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    justify-content: center;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: #1f2937;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: #2563eb;
}

/* Submenu */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 0.75rem 1.5rem;
}

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

.search-toggle,
.wishlist-toggle,
.cart-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1f2937;
    transition: color 0.3s ease;
    position: relative;
}

.search-toggle:hover,
.wishlist-toggle:hover,
.cart-toggle:hover {
    color: #2563eb;
}

.cart-toggle {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #1f2937;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header Search */
.header-search {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    display: none;
}

.header-search.active {
    display: block;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-submit {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: #1d4ed8;
}

.search-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #6b7280;
}

/* Mobile Navigation */
.mobile-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-navigation.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1f2937;
}

.mobile-nav-content {
    padding: 1rem;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    color: #1f2937;
    font-weight: 500;
}

.mobile-menu a:hover {
    color: #2563eb;
    background-color: #f9fafb;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Mini Cart */
.mini-cart-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mini-cart-overlay.active {
    right: 0;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.mini-cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1f2937;
}

.mini-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background-color: #1f2937;
    color: #d1d5db;
    margin-top: 4rem;
}

.footer-widgets {
    padding: 3rem 0;
    border-bottom: 1px solid #374151;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-widget-column .widget {
    margin-bottom: 2rem;
}

.footer-widget-column .widget-title {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-widget-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-column ul li {
    margin-bottom: 0.5rem;
}

.footer-widget-column a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-widget-column a:hover {
    color: #10b981;
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
}

.footer-copyright a {
    color: #ffffff;
    font-weight: 600;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    justify-content: center;
}

.footer-menu a {
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #374151;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #10b981;
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: #1f2937;
}

.post-title a:hover {
    color: #2563eb;
}

.post-excerpt {
    color: #4b5563;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #1f2937;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
