/*
Theme Name: Product Theme
Theme URI: https://yourwebsite.com
Description: A clean, modern e-commerce theme with WooCommerce integration. Mobile-first responsive design perfect for product-based businesses.
Version: 1.0
Author: Your Name
Author URI: https://yourwebsite.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: product-theme
Tags: e-commerce, woocommerce, responsive, mobile-first, modern, clean, products
*/

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style-position: inside;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

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

.site-content {
    flex: 1;
    padding: 1rem;
}

/* Mobile-first: base width for mobile */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

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

.site-branding {
    padding: 1rem 0;
    text-align: center;
}

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

.site-title a:hover {
    opacity: 0.8;
}

/* Navigation - Mobile First */
.main-navigation {
    background-color: #f8f9fa;
    padding: 0.5rem 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main-navigation li {
    text-align: center;
}

.main-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(0,0,0,0.05);
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: #3498db;
}

.footer-content a:hover {
    color: #2980b9;
}

/* ==========================================================================
   POSTS & PAGES
   ========================================================================== */

.post,
.page {
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.entry-header {
    padding: 1.5rem 1rem 1rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-content {
    padding: 0 1rem 1.5rem;
}

.entry-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.875rem;
}

/* Post Thumbnails */
.post-thumbnail {
    margin-bottom: 1rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.widget-area {
    margin-top: 2rem;
}

.widget {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.widget li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */

.button,
button,
input[type="submit"],
input[type="button"],
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
    background-color: #2980b9;
}

/* Form Fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

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

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS - TABLET
   ========================================================================== */

@media (min-width: 768px) {
    .site-content {
        padding: 2rem 1rem;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Navigation - Horizontal on tablet */
    .main-navigation ul {
        flex-direction: row;
        justify-content: center;
    }
    
    .main-navigation li {
        text-align: left;
    }
    
    /* Two-column layout */
    .content-sidebar-wrap {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    
    .widget-area {
        margin-top: 0;
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS - DESKTOP
   ========================================================================== */

@media (min-width: 1024px) {
    .site-branding {
        text-align: left;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .header-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 2rem; }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3498db;
    color: white;
    padding: 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}
