/* ==========================================================================
   3DNOW STORE — Main Stylesheet
   ========================================================================== */

:root {
    --bg: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-elev: #141414;
    --accent: #f59e0b;
    --accent-2: #ea580c;
    --text: #f5f5f5;
    --text-muted: #a3a3a3;
    --border: #2a2a2a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.15);
    --container: 1280px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0a0a;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #0a0a0a;
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.site-header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}
.site-branding { display: flex; flex-direction: column; }
.site-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.site-title a { color: var(--text); }
.site-title .accent { color: var(--accent); }
.site-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-nav { flex: 1; }
.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-content: center;
}
.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    cursor: pointer;
}
.icon-btn:hover {
    background: var(--bg-card);
    color: var(--accent);
    border-color: var(--accent);
}
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    animation: gridShift 20s linear infinite;
    pointer-events: none;
}
@keyframes gridShift {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.hero h1 {
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 5rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header .eyebrow {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    display: block;
}
.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ==========================================================================
   Category Cards
   ========================================================================== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.cat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    aspect-ratio: 4/5;
}
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}
.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}
.cat-card h3 { margin-bottom: 0.25rem; }
.cat-card-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.cat-card-cta {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}
.step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: all var(--transition);
}
.step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0a0a;
    font-weight: 800;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Product Grid
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}
.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.product-thumb {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-elev);
    position: relative;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.08); }
.product-info { padding: 1rem 1.25rem 1.25rem; }
.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--accent); }
.product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}
.product-price del {
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.material-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.material-badge.resina { background: rgba(245, 158, 11, 0.15); color: var(--accent); border: 1px solid rgba(245, 158, 11, 0.3); }
.material-badge.pla { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.material-badge.petg { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.material-badge.abs { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

/* ==========================================================================
   Tech Badges
   ========================================================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.tech-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}
.tech-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   Quote Form
   ========================================================================== */
.quote-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
    position: relative;
}
.quote-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}
.form-group label .req { color: var(--accent); }
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.form-check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-check input { margin-top: 0.25rem; flex-shrink: 0; }
.file-input-wrap {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    background: var(--bg-elev);
}
.file-input-wrap:hover { border-color: var(--accent); }
.file-input-wrap input { display: none; }
.file-input-wrap .file-text { color: var(--text-muted); font-size: 0.9rem; }
.file-input-wrap .file-name { color: var(--accent); margin-top: 0.5rem; font-weight: 500; }

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: none;
}
.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    display: block;
}
.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
}
.testimonial:hover { border-color: var(--accent); }
.stars {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.testimonial-text {
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.testimonial-author {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

/* ==========================================================================
   Shop / Archive
   ========================================================================== */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
}
.shop-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.filter-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.filter-block h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.filter-block ul { list-style: none; }
.filter-block li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.filter-block li a { color: var(--text-muted); }
.filter-block li a:hover, .filter-block li.current a { color: var(--accent); }

.shop-main .product-grid { grid-template-columns: repeat(3, 1fr); }
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.shop-toolbar select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.woocommerce-pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    justify-content: center;
    margin-top: 2.5rem;
}
.woocommerce-pagination a, .woocommerce-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    transition: all var(--transition);
}
.woocommerce-pagination .current,
.woocommerce-pagination a:hover {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
}
/* ===== COME FUNZIONA ===== */
.how-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.how-intro {
  text-align: center;
  margin-bottom: 80px;
}

.how-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin: 16px 0;
}

.how-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 100px;
}

.how-step {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
}

.how-step--accent {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.05);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.how-step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.how-step p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.step-formats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.step-formats span {
  background: #2a2a2a;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: monospace;
}

.step-time {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* FAQ */
.how-faq {
  margin-bottom: 100px;
}

.how-faq h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 48px;
  color: var(--text);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* CTA finale */
.how-cta {
  text-align: center;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 60px 40px;
}

.how-cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.how-cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Single Product
   ========================================================================== */
.single-product-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}
.product-gallery .main-image {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1/1;
    margin-bottom: 1rem;
}
.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.gallery-thumbs img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--accent); }

.product-summary h1 { margin-bottom: 1rem; }
.summary-price {
    font-size: 1.75rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}
.summary-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.variations { margin-bottom: 1.5rem; }
.variations table { width: 100%; }
.variations td { padding: 0.5rem 0; }
.variations label { font-weight: 500; }
.variations select { width: 100%; padding: 0.75rem; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); }

.qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-input button {
    width: 40px;
    height: 44px;
    background: var(--bg-card);
    color: var(--text);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}
.qty-input input {
    width: 60px;
    height: 44px;
    background: var(--bg-elev);
    border: none;
    color: var(--text);
    text-align: center;
    font-family: inherit;
}

.volume-discount-info {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.volume-discount-info ul { list-style: none; margin-top: 0.5rem; }
.volume-discount-info li { color: var(--text-muted); padding: 0.2rem 0; }

.cart-actions { display: flex; gap: 1rem; align-items: center; margin: 1.5rem 0; }

.product-tabs { margin-top: 4rem; }
.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
}
.tabs-nav button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.tabs-nav button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.tab-content { display: none; }
.tab-content.active { display: block; color: var(--text-muted); line-height: 1.7; }

.custom-cta-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}
.custom-cta-box h3 { margin-bottom: 0.5rem; }
.custom-cta-box p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* ==========================================================================
   Cart / Checkout
   ========================================================================== */
.woocommerce-cart-form, .checkout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
}
.shop_table {
    width: 100%;
    border-collapse: collapse;
}
.shop_table th, .shop_table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.shop_table th { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ==========================================================================
   WooCommerce Notices / Buttons
   ========================================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    border: 1px solid var(--border);
}
.woocommerce-message {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}
.woocommerce-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}
.woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    list-style: none;
}

.button, button.alt, .added_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0a0a !important;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    font-family: inherit;
}
.button:hover, button.alt:hover, .added_to_cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .single-product-wrap { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
}

@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }
    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-top: 1px solid var(--border);
        padding: 1.5rem;
        z-index: 99;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .main-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); display: block; }
    .header-actions .icon-btn:not(.cart-icon) { display: none; }

    .hero { padding: 4rem 0 3rem; }
    .section { padding: 3rem 0; }

    .steps { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-main .product-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .quote-form { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .product-grid, .shop-main .product-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }

/* Lazy image fade-in */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s; }
img[loading="lazy"].loaded, img[loading="lazy"]:not([data-lazy]) { opacity: 1; }
/* Quantity premium */
.quantity {
    display:flex;
    align-items:center;
    gap:0;
    background:#1a1a1a;
    border:1px solid #2a2a2a;
    border-radius:12px;
    overflow:hidden;
    width:fit-content;
}
.quantity input[type="number"] {
    width:60px;
    text-align:center;
    background:transparent;
    border:none;
    color:#f5f5f5;
    font-size:18px;
    font-weight:700;
    padding:.75rem 0;
    -moz-appearance:textfield;
}
.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance:none;
}
.quantity .qty-btn {
    width:44px;
    height:44px;
    background:transparent;
    border:none;
    color:#f59e0b;
    font-size:22px;
    font-weight:700;
    cursor:pointer;
    transition:background .2s;
    display:flex;
    align-items:center;
    justify-content:center;
}
.quantity .qty-btn:hover {
    background:rgba(245,158,11,.15);
}
/* Quantity box premium */
.woocommerce-variation-add-to-cart .quantity,
.cart .quantity {
    display:inline-flex;
    align-items:center;
    background:#1a1a1a;
    border:1px solid #f59e0b;
    border-radius:12px;
    overflow:hidden;
    margin-right:1rem;
}

.woocommerce-variation-add-to-cart .quantity input[type="number"],
.cart .quantity input[type="number"] {
    width:60px;
    text-align:center;
    background:transparent;
    border:none;
    color:#f5f5f5;
    font-size:20px;
    font-weight:700;
    padding:.75rem 0;
    -moz-appearance:textfield;
}

.woocommerce-variation-add-to-cart .quantity input::-webkit-outer-spin-button,
.woocommerce-variation-add-to-cart .quantity input::-webkit-inner-spin-button,
.cart .quantity input::-webkit-outer-spin-button,
.cart .quantity input::-webkit-inner-spin-button {
    -webkit-appearance:none;
    margin:0;
}

.woocommerce-variation-add-to-cart,
.cart .cart-actions {
    display:flex;
    align-items:center;
    gap:1rem;
    margin-top:1.5rem;
}

/* Bottoni +/- nativi WooCommerce */
.quantity .plus,
.quantity .minus {
    width:44px;
    height:52px;
    background:transparent;
    border:none;
    color:#f59e0b;
    font-size:24px;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .2s;
    line-height:1;
}

.quantity .plus:hover,
.quantity .minus:hover {
    background:rgba(245,158,11,.15);
}
/* ==========================================================================
   WooCommerce My Account
   ========================================================================== */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    padding: 3rem 0;
}
.woocommerce-MyAccount-navigation {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    align-self: start;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
}
.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--border);
}
.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}
.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition);
}
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    color: var(--accent);
}
.woocommerce-MyAccount-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.woocommerce-account .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-account .woocommerce-orders-table th {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.woocommerce-account .woocommerce-orders-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.woocommerce-account address {
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.7;
}
.woocommerce-EditAccountForm .form-row {
    margin-bottom: 1rem;
}
.woocommerce-EditAccountForm label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.woocommerce-EditAccountForm input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.woocommerce-EditAccountForm input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
@media(max-width:768px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   WooCommerce My Account
   ========================================================================== */
.woocommerce-account .entry-content,
.woocommerce-account .woocommerce {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245,158,11,.08);
}
.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.woocommerce-account p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.woocommerce-account .woocommerce-orders-table { width: 100%; border-collapse: collapse; }
.woocommerce-account .woocommerce-orders-table th { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; }
.woocommerce-account .woocommerce-orders-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); color: var(--text); }
.woocommerce-account address { color: var(--text-muted); font-style: normal; line-height: 1.7; }

/* ==========================================================================
   WooCommerce My Account Login/Register
   ========================================================================== */
.woocommerce-account .woocommerce-form input[type="text"],
.woocommerce-account .woocommerce-form input[type="email"],
.woocommerce-account .woocommerce-form input[type="password"],
.woocommerce form .input-text,
.woocommerce-page form .input-text {
    background: var(--bg-elev) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    padding: 0.875rem 1rem !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    transition: all var(--transition) !important;
}
.woocommerce-account .woocommerce-form input:focus,
.woocommerce form .input-text:focus,
.woocommerce-page form .input-text:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15) !important;
}
.woocommerce-account .woocommerce {
    max-width: var(--container);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.woocommerce-account .woocommerce-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}
.woocommerce-account .woocommerce-form label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
}
.woocommerce-account .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted) !important;
}
.woocommerce-account h2 {
    color: var(--text);
    margin-bottom: 1.5rem;
}
.woocommerce-account .lost_password a {
    color: var(--accent);
    font-size: 0.9rem;
}
.woocommerce-ordering select {
    background: #111 !important;
    color: #f5f5f5 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 10px !important;
    padding: .625rem 1rem !important;
    font-size: 14px !important;
    outline: none !important;
    cursor: pointer !important;
}

.woocommerce-ordering select option {
    background: #1a1a1a !important;
    color: #f5f5f5 !important;
}

.woocommerce-ordering select:focus {
    border-color: #f59e0b !important;
}
.tdnow-file-upload input[type="file"] {
    display: block;
    width: 100%;
    color: #f5f5f5;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.75rem;
}

.tdnow-file-upload input[type="file"]::file-selector-button {
    background: #f59e0b;
    color: #000;
    border: 0;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin-right: 1rem;
    font-weight: 700;
    cursor: pointer;
}
/* Select dark theme */
.quote-form select,
#td-quote-form select,
form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #141414 !important;
  color: #f5f5f5 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}

.quote-form select:focus,
#td-quote-form select:focus,
form select:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,.14) !important;
  outline: none;
}

.quote-form select option,
#td-quote-form select option,
form select option {
  background: #141414;
  color: #f5f5f5;
}
/* WELCOME POPUP 3DNOW STORE */
.td-welcome-popup{
  position:fixed;
  inset:0;
  display:none;
  z-index:99999;
  font-family:Inter,system-ui,sans-serif;
}

.td-welcome-popup.is-open{
  display:block;
}

.td-welcome-popup__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(6px);
}

.td-welcome-popup__dialog{
  position:relative;
  width:min(92vw, 520px);
  margin:8vh auto 0;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  background-color:#0a0a0a;
  border:1px solid #2a2a2a;
  border-radius:24px;
  padding:2rem;
  color:#f5f5f5;
  box-shadow:0 28px 80px rgba(0,0,0,.55);
  overflow:hidden;
  animation:tdPopupIn .35s ease;
}

.td-welcome-popup__dialog::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(135deg,#f59e0b,#ea580c);
}

.td-welcome-popup__close{
  position:absolute;
  top:14px;
  right:14px;
  width:40px;
  height:40px;
  border:none;
  border-radius:999px;
  background:#1a1a1a;
  border:1px solid #2a2a2a;
  color:#f5f5f5;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  transition:all .2s ease;
}

.td-welcome-popup__close:hover{
  border-color:#f59e0b;
  color:#f59e0b;
  transform:translateY(-1px);
}

.td-welcome-popup__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:.45rem .75rem;
  margin:0 0 1rem;
  border-radius:999px;
  background:rgba(245,158,11,.08);
  border:1px solid rgba(245,158,11,.18);
  color:#f59e0b;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.td-welcome-popup__title{
  margin:0 0 .8rem;
  font-size:clamp(28px,4vw,42px);
  line-height:1;
  letter-spacing:-.04em;
  font-weight:800;
  max-width:10ch;
}

.td-welcome-popup__text{
  margin:0 0 1.1rem;
  color:#d4d4d8;
  font-size:16px;
  line-height:1.7;
}

.td-welcome-popup__coupon{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:72px;
  margin:0 0 1.2rem;
  border-radius:18px;
  background:linear-gradient(135deg,#f59e0b,#ea580c);
  color:#111;
  font-size:clamp(24px,4vw,34px);
  font-weight:900;
  letter-spacing:.08em;
  box-shadow:0 14px 34px rgba(245,158,11,.18);
}

.td-welcome-popup__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:1rem;
}

.td-welcome-popup__copy,
.td-welcome-popup__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:.95rem 1.2rem;
  border-radius:999px;
  font-size:15px;
  font-weight:800;
  text-decoration:none;
  transition:all .2s ease;
}

.td-welcome-popup__copy{
  background:#1a1a1a;
  color:#f5f5f5;
  border:1px solid #2a2a2a;
  cursor:pointer;
}

.td-welcome-popup__copy:hover{
  border-color:#f59e0b;
  color:#f59e0b;
}

.td-welcome-popup__cta{
  background:linear-gradient(135deg,#f59e0b,#ea580c);
  color:#111;
  border:none;
}

.td-welcome-popup__cta:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(245,158,11,.18);
}

.td-welcome-popup__note{
  margin:0;
  font-size:13px;
  color:#a1a1aa;
  line-height:1.6;
}

@keyframes tdPopupIn{
  from{
    opacity:0;
    transform:translateY(16px) scale(.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@media (max-width: 640px){
  .td-welcome-popup__dialog{
    width:min(94vw, 520px);
    padding:1.35rem;
    margin:10vh auto 0;
    border-radius:20px;
  }

  .td-welcome-popup__actions{
    flex-direction:column;
  }

  .td-welcome-popup__copy,
  .td-welcome-popup__cta{
    width:100%;
  }

  .td-welcome-popup__title{
    max-width:none;
  }
}
.header-search-panel {
    background: #111;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 1rem 0;
}

.header-search-form {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.header-search-form .search-field {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 1rem;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: #0a0a0a;
    color: #f5f5f5;
}

.header-search-form .search-field:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

.header-search-form .search-submit {
    height: 48px;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,#f59e0b,#ea580c);
    color: #111;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 767px) {
    .header-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .header-search-form .search-submit {
        width: 100%;
    }
}