/*
Theme Name:     303Labs Solarpunk Storefront
Theme URI:
Description:    Storefront child theme — bright Solarpunk daylight palette: nature and tech living as one.
Author:         303Labs
Author URI:
Template:       storefront
Version:        0.2.0
*/

:root {
    /* Warm daylight base, not stark white — think sunlit paper */
    --three03-bg-top: #fdf8ec;
    --three03-bg-mid: #f4f7ec;
    --three03-bg: #f3f7ec;
    --three03-panel: #ffffff;
    --three03-border: #d9e3cd;
    --three03-border-warm: #e8dcb8;

    --three03-text: #22301f;
    --three03-text-bright: #12200f;
    --three03-muted: #5a6b52;

    /* Tech-green (forest, not neon — legible on a light background) */
    --three03-accent: #2f7a4f;
    --three03-accent-bright: #3f9463;
    --three03-accent-soft: #e3f1e6;

    /* Sunlight-gold (secondary accent — warmth, not just green) */
    --three03-gold: #e0a341;
    --three03-gold-soft: #fbedd2;
}

body {
    background: linear-gradient(180deg, var(--three03-bg-top) 0%, var(--three03-bg-mid) 45%, var(--three03-bg) 100%);
    background-attachment: fixed;
    color: var(--three03-text);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-title, .site-description {
    font-family: 'Fira Code', 'Courier New', monospace;
    color: var(--three03-text-bright);
}

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

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

.site-header,
#masthead {
    background-color: var(--three03-panel);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--three03-accent), var(--three03-gold)) 1;
    box-shadow: 0 2px 12px rgba(47, 122, 79, 0.08);
}

.site-footer,
#colophon {
    background-color: var(--three03-panel);
    border-top: 1px solid var(--three03-border);
    color: var(--three03-muted);
}

/* Product cards, checkout panels — sunlit paper cards, not dark slabs */
.woocommerce ul.products li.product,
.woocommerce div.product,
.storefront-product-section,
.cart-collaterals,
.woocommerce-checkout-review-order,
#customer_details {
    background-color: var(--three03-panel);
    border: 1px solid var(--three03-border);
    border-radius: 10px;
    color: var(--three03-text);
    box-shadow: 0 2px 10px rgba(47, 122, 79, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(224, 163, 65, 0.18), 0 2px 10px rgba(47, 122, 79, 0.1);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--three03-accent);
    font-weight: 600;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce div.product h1.product_title {
    color: var(--three03-text-bright);
}

.woocommerce span.onsale {
    background: linear-gradient(135deg, var(--three03-gold), #f2c169);
    color: #402d05;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(224, 163, 65, 0.4);
}

button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-Button {
    background: linear-gradient(135deg, var(--three03-accent), var(--three03-accent-bright));
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Fira Code', 'Courier New', monospace;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(47, 122, 79, 0.25);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: linear-gradient(135deg, var(--three03-accent-bright), var(--three03-gold));
    box-shadow: 0 4px 14px rgba(224, 163, 65, 0.35);
    transform: translateY(-1px);
}

/* Out-of-stock: warm amber warning instead of a dark-panel red, still clearly distinct from on-sale gold */
.woocommerce span.stock.out-of-stock {
    background-color: #fdeaea;
    color: #a13d3d;
    border: 1px solid #f0c3c3;
    border-radius: 4px;
    padding: 4px 10px;
    display: inline-block;
    font-weight: 600;
}

.woocommerce span.stock.in-stock {
    color: var(--three03-accent);
    font-weight: 600;
}

.woocommerce-message,
.woocommerce-info {
    background-color: var(--three03-accent-soft);
    border-top: 3px solid var(--three03-accent);
    color: var(--three03-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    background-color: #fff;
    color: var(--three03-text);
    border: 1px solid var(--three03-border);
    border-radius: 6px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: var(--three03-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--three03-accent-soft);
}

/* A little "growth" accent under section headings — nature meeting tech, literally */
.storefront-product-section > h2,
.woocommerce-Tabs-panel h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.storefront-product-section > h2::after,
.woocommerce-Tabs-panel h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--three03-accent), var(--three03-gold));
    border-radius: 2px;
}
