/*
Theme Name: Popster
Theme URI: https://popster.it
Author: EffepiLab
Author URI: https://effepilab.it
Description: Tema WooCommerce minimale custom per e-commerce poster
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: popster
Tags: woocommerce, ecommerce, minimal, poster
*/

/* ============================================
   RESET & BASE
   ============================================ */

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

:root {
    --black: #0a0a0a;
    --white: #fefefe;
    --gray: #9a9a9a;
    --gray-light: #e8e8e8;
    --accent: #ff3366;
    --gap: clamp(12px, 2vw, 24px);
    --max-width: 1400px;
    --font-base: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Bebas Neue', Impact, sans-serif;
}

body {
    font-family: var(--font-base);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

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

.site-content {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

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

.site-header {
    position: sticky;
    top: 0;
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-light);
    z-index: 1000;
    padding: 16px 0;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: 2px;
    font-weight: 400;
}

.site-logo span {
    color: var(--accent);
}

.main-navigation {
    display: flex;
    gap: clamp(16px, 3vw, 32px);
    align-items: center;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

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

.header-cart {
    position: relative;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--black);
    stroke-width: 2;
    fill: none;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 40px;
    margin-top: 100px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--gray);
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px var(--gap) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray);
    font-size: 13px;
}

/* ============================================
   BUTTONS
   ============================================ */

.button,
button[type="submit"],
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    padding: 14px 28px;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
    display: inline-block;
}

.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
    background: var(--accent);
    color: var(--white);
}

.button-outline {
    background: transparent;
    border: 1px solid var(--black);
    color: var(--black);
}

.button-outline:hover {
    background: var(--black);
    color: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .main-navigation a:not(.header-cart) {
        display: none;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}
