/*
Theme Name: Print-Italy
Template: storefront
Version: 2.0.0
*/

/* Reset & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&family=Outfit:wght@300;600;800;900&display=swap');

:root {
    --primary: #1a8b3d; /* Wowstampa Green */
    --secondary: #00D2FF; /* Cyan */
    --accent: #FF0055; /* Magenta/Red */
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #e2e8f0;
    --text: #334155;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, .site-title a {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--dark);
    margin-top: 0;
}

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

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

/* =========================================
   HEADER (pm-custom-header)
========================================= */
.pm-custom-header {
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.pm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.pm-site-branding {
    flex: 1 1 200px;
}

.site-title a {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--dark);
}

.pm-header-search {
    flex: 2 1 400px;
}

.pm-header-search .woocommerce-product-search {
    display: flex;
    position: relative;
}

.pm-header-search .search-field {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--gray);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.pm-header-search .search-field:focus {
    border-color: var(--primary);
}

.pm-header-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 25px !important;
    padding: 0 20px !important;
    background: var(--primary) !important;
    color: var(--white) !important;
}

.pm-header-actions {
    flex: 1 1 200px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.pm-header-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

.pm-header-actions a:hover {
    color: var(--primary);
}

.pm-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Navbar */
.pm-main-navigation {
    background: var(--dark);
}

.pm-main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.pm-main-navigation ul li a {
    display: block;
    padding: 1rem 0;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.pm-main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.pm-main-navigation ul li a:hover::after {
    width: 100%;
}

/* =========================================
   HERO SECTION
========================================= */
.pm-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

.pm-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.pm-hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.pm-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.pm-hero-btn {
    background: var(--secondary) !important;
    color: var(--dark) !important;
    font-size: 1.1rem !important;
    padding: 15px 40px !important;
    border-radius: 30px !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0,210,255,0.3) !important;
}

.pm-hero-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 25px rgba(0,210,255,0.4) !important;
    background: var(--white) !important;
}

/* =========================================
   FEATURES BANNER
========================================= */
.pm-features {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.pm-features-inner {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pm-feature {
    flex: 1 1 200px;
    text-align: center;
}

.pm-feature .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.pm-feature h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pm-feature p {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
}

/* =========================================
   CATEGORIES GRID
========================================= */
.pm-categories {
    padding: 6rem 0;
}

.pm-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.pm-cat-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: block;
    border: 2px solid transparent;
}

.pm-cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.pm-cat-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray);
}

.pm-cat-title {
    padding: 1.5rem;
    text-align: center;
}

.pm-cat-title h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dark);
    transition: color 0.3s;
}

.pm-cat-card:hover .pm-cat-title h3 {
    color: var(--primary);
}

/* =========================================
   BUTTONS GLOBAL
========================================= */
.button, button, input[type="submit"], .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
    font-weight: 700;
    padding: 1em 2em !important;
    border: none !important;
    transition: all 0.3s ease;
}

.button:hover, button:hover {
    background-color: var(--dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   WOOCOMMERCE SINGLE PRODUCT
========================================= */
.single-product div.product .summary .price {
    color: var(--primary);
    font-size: 2.5em;
    font-weight: 900;
}

.single-product div.product .summary .product_title {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: var(--dark);
}

/* Variabili come bottoni (Configuratore) */
.woocommerce div.product form.cart .variations td {
    display: block;
    padding: 0;
    margin-bottom: 10px;
}
.woocommerce div.product form.cart .variations td.label {
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.woocommerce div.product form.cart .variations select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background-color: var(--light);
}

.woocommerce div.product form.cart .variations select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Upload Box */
.print-file-upload {
    background: var(--light);
    border: 2px dashed var(--primary);
    padding: 2em;
    margin: 2em 0;
    border-radius: 12px;
    text-align: center;
    transition: background 0.3s;
}

.print-file-upload:hover {
    background: #f0f7ff;
}

.print-file-upload label {
    display: block;
    font-weight: 800;
    margin-bottom: 1em;
    color: var(--dark);
    font-size: 1.1rem;
}

.print-file-upload input[type="file"] {
    background: var(--white);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--gray);
}

/* Sconti Tabella */
.quantity-discounts {
    background: #e6f4ed;
    border: 2px solid var(--primary);
    color: var(--text);
    padding: 1.5em;
    border-radius: 8px;
    margin-top: 1.5em;
}

.quantity-discounts strong {
    color: var(--primary);
    font-size: 1.2em;
    display: block;
    margin-bottom: 0.5em;
}

/* =========================================
   FOOTER (pm-custom-footer)
========================================= */
.pm-custom-footer {
    background: var(--dark);
    color: var(--gray);
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.pm-footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.pm-footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.pm-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-footer-col ul li {
    margin-bottom: 0.8rem;
}

.pm-footer-col ul li a {
    color: var(--gray);
}

.pm-footer-col ul li a:hover {
    color: var(--secondary);
}

.pm-footer-bottom {
    background: #090e1a;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   WOWSTAMPA STEP STYLE
========================================= */
.pm-step-section {
    margin-bottom: 25px;
}

.pm-step-title {
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    border-radius: 8px 8px 0 0;
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    text-transform: uppercase;
}

.pm-step-title-transparent {
    color: var(--primary) !important;
    background: transparent;
    font-size: 1.4rem;
    padding: 0;
    margin-bottom: 10px;
    font-style: italic;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
}

.pm-step-content {
    background: #e5e7eb;
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.pm-step-summary .pm-step-content {
    background: transparent;
    padding: 0;
}

/* Form inputs override in the gray box */
.pm-step-content label {
    font-size: 0.95rem;
    margin-bottom: 5px;
    display: block;
    color: var(--text);
}

.pm-step-content small {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: normal;
}

/* File Upload Box (Black) */
.pm-file-upload-wrapper {
    margin-bottom: 20px;
}
.pm-file-input-box {
    position: relative;
    background: #111827;
    color: var(--white);
    padding: 15px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    margin-top: 10px;
    transition: background 0.3s;
}
.pm-file-input-box:hover {
    background: #000000;
}
.pm-file-input-box .pm-file-btn {
    font-weight: 700;
    font-size: 0.9rem;
}
.pm-file-input-box input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

/* Textarea */
.pm-print-instructions textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: 1rem;
    font-family: inherit;
    margin-top: 8px;
}

/* Product Tabs (Moved to under cart) */
.woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 40px;
    border-top: 3px solid var(--primary);
    padding-top: 20px;
    clear: both;
}
.woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #e5e7eb !important;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 !important;
    margin-bottom: 20px !important;
}
.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
.woocommerce-tabs ul.tabs li a {
    color: var(--text) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-style: italic;
    padding: 10px 0 !important;
    display: inline-block;
}
.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary) !important;
    border-bottom: 3px solid var(--primary) !important;
}
.woocommerce-Tabs-panel {
    clear: both;
    width: 100%;
    padding-top: 10px;
}
.woocommerce-Tabs-panel h2 {
    display: block;
    margin-top: 10px;
    margin-bottom: 15px;
    clear: both;
}
