/*
Theme Name: STW Minimal WooCommerce
Theme URI: https://example.com/stw-minimal-woo
Author: STW Developer
Author URI: https://example.com
Description: A minimal, zero-margin WordPress theme optimized for WooCommerce. Features shortcode-driven header, body, and footer sections. No default WooCommerce header/footer - designed for plugin-based customization.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stw-minimal-woo
Tags: woocommerce, minimal, full-width, custom-header, custom-footer

WooCommerce declares full compatibility.
*/

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Remove all default margins and paddings */
h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Site Structure - Zero Margins */
.stw-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* Header Shortcode Section */
.stw-header-section {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Main Content Area */
.stw-main-content {
    flex: 1;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.stw-body-section {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer Shortcode Section */
.stw-footer-section {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* WooCommerce Overrides - Remove Default Styling */
.woocommerce-page .stw-main-content,
.woocommerce .stw-main-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove WooCommerce default container margins */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin: 0;
}

/* Full width WooCommerce products */
.woocommerce ul.products {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.woocommerce ul.products li.product {
    margin: 0 0 20px 0 !important;
}

/* WooCommerce single product - no margins */
.woocommerce div.product {
    margin: 0 !important;
    padding: 0 !important;
}

/* WooCommerce cart and checkout - no margins */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    margin: 0 !important;
    padding: 0 !important;
}

/* WooCommerce notices */
.woocommerce-notices-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* WooCommerce breadcrumb - hidden by default, can be enabled */
.woocommerce .woocommerce-breadcrumb {
    display: none;
}

/* WooCommerce pagination */
.woocommerce nav.woocommerce-pagination {
    margin: 0 !important;
    padding: 20px 0 !important;
}

/* Hide default WordPress admin bar spacing */
html.wp-toolbar {
    padding-top: 0 !important;
}

body.admin-bar .stw-site {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .stw-site {
        margin-top: 46px;
    }
}

/* Utility Classes */
.stw-full-width {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.stw-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Print Styles */
@media print {
    .stw-header-section,
    .stw-footer-section {
        display: none;
    }
}
