/*
Theme Name: Feeder Mice Club
Theme URI: https://feedermice.club
Author: Feeder Mice Club
Author URI: https://feedermice.club
Description: A professional WordPress theme for Feeder Mice Club - selling live and frozen feeder mice with subscription options
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: feedermice
Tags: e-commerce, woocommerce, business, custom-menu, custom-logo, featured-images, flexible-header, full-width-template, threaded-comments
*/

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97be5a;
    --accent-color: #ff6b35;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

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

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 40px 0;
}

/* === HEADER === */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 70px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    height: 70px;
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

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

.site-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.2;
}

/* === NAVIGATION === */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    margin: 0;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 5px;
    flex-shrink: 0;
}

.header-cart {
    flex-shrink: 0;
}

.header-cart .cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: var(--light-bg);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.header-cart .cart-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === PRODUCTS SECTION === */
.products-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* === FEATURES SECTION === */
.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* === WOOCOMMERCE STYLES === */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.2rem;
    padding: 20px 20px 10px;
    margin: 0;
}

.woocommerce ul.products li.product .price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0 20px 20px;
}

.woocommerce ul.products li.product .button {
    margin: 0 20px 20px;
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--accent-color);
}

.woocommerce div.product {
    margin-bottom: 40px;
}

.woocommerce div.product .images {
    margin-bottom: 30px;
}

.woocommerce div.product .summary {
    margin-bottom: 30px;
}

.woocommerce div.product form.cart .button {
    background-color: var(--primary-color);
    color: var(--white);
}

.woocommerce div.product form.cart .button:hover {
    background-color: var(--accent-color);
}

.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--primary-color);
    background-color: var(--light-bg);
    padding: 15px;
    margin-bottom: 20px;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--primary-color);
}

/* === FOOTER === */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* === CONTENT LAYOUTS === */
.content-area {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Checkout page - make content full width */
body.woocommerce-checkout .content-area,
body.woocommerce-cart .content-area {
    max-width: 100%;
}

body.woocommerce-checkout article,
body.woocommerce-cart article {
    max-width: 100%;
}

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content {
    max-width: 100%;
}

/* === SIDEBAR === */
.sidebar {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--primary-color);
}

/* === BLOG STYLES === */
.blog-posts {
    display: grid;
    gap: 30px;
}

.blog-post {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.post-content {
    padding: 30px;
}

.post-title {
    margin-bottom: 15px;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-excerpt {
    margin-bottom: 20px;
}

/* === NO RESULTS STYLING === */
.no-results {
    padding: 60px 20px;
    background: var(--light-bg);
    border-radius: 10px;
    margin: 40px 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Make header more compact on mobile */
    .header-main {
        padding: 10px 0;
        min-height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .site-branding {
        flex-shrink: 0;
        order: 1;
    }

    .custom-logo {
        height: 60px;
    }

    .menu-toggle {
        display: block;
        padding: 6px 10px;
        font-size: 1.1rem;
        order: 3;
        margin-left: auto;
    }

    .main-navigation {
        display: flex;
        align-items: center;
        position: relative;
        width: auto;
        gap: 10px;
        order: 2;
        margin-left: auto;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
        z-index: 999;
        margin: 0;
        min-width: 200px;
    }

    .main-navigation ul.active {
        display: flex !important;
    }

    .main-navigation li {
        margin-bottom: 15px;
        width: 100%;
    }

    .main-navigation li:last-child {
        margin-bottom: 0;
    }

    .main-navigation a {
        padding: 10px 0;
        font-size: 1rem;
        display: block;
    }

    .header-cart {
        order: 2;
        margin: 0 10px 0 0;
    }

    .header-cart .cart-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .content-area {
        padding: 0 10px;
    }

    .sidebar {
        margin-top: 30px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* === ACCESSIBILITY === */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
