/* Reset and Base Variables */
:root {
    --header-height: 70px;
    --header-bg: #ffffff;
    --header-shadow: 0 2px 10px rgba(0,0,0,0.06);
    --nav-gap: 2rem;
    --transition-speed: 0.3s;
    --mobile-breakpoint: 968px;
    
    /* Footer variables */
    --footer-bg: #1a1a1a;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-accent: var(--secondary-color);
    --newsletter-bg: var(--secondary-color);
}

/* ===== HEADER STYLES ===== */
.shop-header {
    background: var(--header-bg);
    box-shadow: var(--header-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Ensure full width */
    right: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

/* Container - Proper width control */
.shop-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo Section */
.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-branding img,
.custom-logo {
    height: 40px;
    width: auto;
    display: block;
}

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

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.site-title a:hover {
    color: var(--secondary-color);
}

/* Main Navigation */
.shop-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.shop-navigation > div > ul,
.shop-navigation > ul,
.shop-nav-menu {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-navigation li {
    position: relative;
    list-style: none;
}

body .shop-header .shop-navigation a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
    transition: color var(--transition-speed) ease;
}

/* Hover effect - clean underline */
.shop-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.shop-navigation > ul > li > a:hover::after {
    width: 100%;
}

body .shop-header .shop-navigation a:hover {
    color: var(--secondary-color) !important;
}

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

/* Cart & Account Buttons */
body .shop-header .cart-contents,
body .shop-header .header-account a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 25px;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
}

body .shop-header .cart-contents:hover,
body .shop-header .header-account a:hover {
    background: var(--secondary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hide cart total text on smaller screens */
.cart-total {
    display: none;
}

@media (min-width: 1200px) {
    .cart-total {
        display: inline;
        font-weight: 600;
        color: var(--primary-color);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* Shop Tools Bar */
.shop-header-bar {
    display: none; /* Hide by default, show only on shop pages */
}

body.archive .shop-header-bar,
body.single-product .shop-header-bar {
    display: block;
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 0;
}

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

/* ===== FOOTER STYLES ===== */
body .shop-footer {
    background: #1a1a1a !important;
    color: #ffffff !important;
    margin-top: 4rem;
    width: 100%; /* Ensure full width */
}

/* Ensure footer containers match header width */
.footer-newsletter .container,
.footer-widgets .container,
.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Newsletter Section */
body .footer-newsletter {
    background: var(--secondary-color) !important;
    padding: 3rem 0;
    width: 100%; /* Ensure full width */
    color: var(--primary-color) !important;
}

body .footer-newsletter h3 {
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    margin-bottom: 0.5rem;
}

body .footer-newsletter p {
    color: rgba(44, 24, 16, 0.8) !important;
    margin-bottom: 1.5rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    min-width: 0;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}



.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #1a0f08;
}

.newsletter-form.success input,
.newsletter-form.success button {
    opacity: 0.7;
    pointer-events: none;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
}

.newsletter-message.success {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Footer Content */
.footer-widgets {
    padding: 4rem 0 3rem;
    width: 100%; /* Ensure full width */
}

.footer-widgets .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-column h4 {
    color: var(--secondary-color) !important;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

body .shop-footer .footer-column a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease;
}

body .shop-footer .footer-column a:hover {
    color: var(--secondary-color) !important;
}

/* Contact Info */
.footer-column:last-child p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.trust-badges img {
    height: 35px;
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
}

.trust-badges img:hover {
    opacity: 1;
}

.guarantee {
    background: rgba(212, 165, 116, 0.2);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.5);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%; /* Ensure full width */
}

.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

body .shop-footer .footer-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    transition: color var(--transition-speed) ease;
}

body .shop-footer .footer-links a:hover {
    color: var(--secondary-color) !important;
}

/* Enhanced link hover effects */
body .shop-footer a {
    position: relative;
    transition: all var(--transition-speed) ease;
}

body .shop-footer .footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

body .shop-footer .footer-column ul li a:hover::before {
    left: -15px;
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    .shop-navigation {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        transition: left var(--transition-speed) ease;
        overflow-y: auto;
    }
    
    .shop-navigation.active {
        left: 0;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
    
    .shop-navigation > div > ul,
    .shop-navigation > ul {
        flex-direction: column;
        align-items: stretch;
        padding: 2rem;
        gap: 0;
    }
    
    .shop-navigation li {
        border-bottom: 1px solid var(--bg-light);
    }
    
    .shop-navigation a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .shop-navigation > ul > li > a::after {
        display: none;
    }
    
    /* Hide text on mobile, show only icons */
    .cart-contents span:not(.cart-count),
    .header-account span {
        display: none;
    }
    
    .cart-contents,
    .header-account a {
        padding: 0.6rem;
        background: transparent;
    }
    
    .cart-contents i,
    .header-account i {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    /* Footer responsive */
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: 10px 10px 0 0;
    }
    
    .newsletter-form button {
        border-radius: 0 0 10px 10px;
        width: 100%;
    }

    .shop-footer {
        margin-top: 2rem;
    }
    
    .footer-newsletter {
        padding: 2rem 0;
    }
    
    .footer-widgets {
        padding: 3rem 0 2rem;
    }
    
    .footer-column {
        text-align: center;
        padding: 1rem 0;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links,
    .trust-badges,
    .payment-methods {
        justify-content: center;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    padding-top: var(--header-height);
    margin: 0; /* Remove any default margin */
    width: 100%; /* Ensure body is full width */
}

/* Add padding to body for fixed header */
body {
    padding-top: var(--header-height);
}

/* Dropdown styles if needed */
.shop-navigation .sub-menu {
    display: none;
}

/* Better icon styling */
.fas, .far {
    width: 1.2em;
    text-align: center;
}

/* Scrolled header state */
.shop-header.scrolled {
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.98);
}

/* Cart count bump animation */
@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-count.bump {
    animation: bump 0.3s ease;
}

/* Loading button state */
.button.loading,
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.button.loading i,
.btn.loading i {
    margin-right: 5px;
}

/* Newsletter success state */
.newsletter-form button[disabled] {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Ensure site wrapper doesn't constrain width */
#page,
.site {
    width: 100%;
    overflow-x: hidden;
}

/* Fix any container that might be constraining */
.site-content {
    width: 100%;
}

/* Force logo link color */
body .shop-header .site-title a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

body .shop-header .site-title a:hover {
    color: var(--secondary-color) !important;
}

/* Override any GeneratePress global link styles in header/footer */
body .shop-header *:not(.btn):not(.button),
body .shop-footer *:not(.btn):not(.button) {
    text-decoration: none !important;
}

/* Force dark background on footer sections - override GeneratePress */
body .shop-footer .footer-widgets {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
}

/* Ensure all footer sections have correct backgrounds */
body footer.shop-footer {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
}

body .shop-footer .footer-newsletter {
    background-color: var(--secondary-color) !important;
    background: var(--secondary-color) !important;
}

body .shop-footer .footer-bottom {
    background-color: rgba(0,0,0,0.5) !important;
    background: rgba(0,0,0,0.5) !important;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-text) !important;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white !important;
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.2rem;
}

/* Payment method icons */
.payment-methods {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 30px;
    width: auto;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: all var(--transition-speed) ease;
}

.payment-methods img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Enhanced footer titles */
.footer-column h4 {
    color: var(--secondary-color) !important;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.footer-column:hover h4::after {
    width: 50px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Remove default blue outline on all focusable elements in footer */
.shop-footer *:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
    border-radius: 3px;
}