/*
Theme Name: WiredTeam Print3D
Theme URI: https://wiredteam.eu
Author: WiredTeam
Description: AssemblePrint Automated light theme with green accents for 3D printing marketplace. WooCommerce compatible.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: print3d
Tags: e-commerce, light, woocommerce, custom-menu, custom-logo, featured-images
WooCommerce tested up to: 9.0
*/

/* ============================================================
   CSS Custom Properties — AssemblePrint Automated palette
   ============================================================ */
:root {
  /* Core palette — light theme */
  --bg: hsl(150 10% 97%);
  --bg-card: hsl(150 10% 99%);
  --bg-card-dark: hsl(160 30% 8%);
  --bg-secondary: hsl(150 15% 93%);
  --bg-muted: hsl(150 10% 94%);

  --fg: hsl(160 20% 10%);
  --fg-secondary: hsl(160 15% 25%);
  --fg-muted: hsl(160 10% 45%);
  --fg-dark: hsl(160 20% 10%);
  --fg-dark-muted: hsl(160 10% 45%);

  --primary: hsl(152 69% 41%);
  --primary-light: hsl(152 80% 50%);
  --primary-fg: #ffffff;
  --accent: hsl(152 69% 41%);
  --accent-light: hsl(152 80% 50%);
  --accent-fg: #ffffff;
  --destructive: hsl(0 84% 60%);
  --success: hsl(152 69% 41%);

  --border: hsl(150 15% 88%);
  --border-light: hsl(150 15% 88%);
  --input: hsl(150 15% 88%);
  --ring: hsl(152 69% 41%);
  --radius: 0.75rem;

  /* Navy for dark sections */
  --navy: hsl(160 30% 8%);
  --navy-light: hsl(158 25% 14%);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(152 69% 41%), hsl(152 80% 50%));
  --gradient-accent: linear-gradient(135deg, hsl(152 69% 41%), hsl(152 80% 50%));
  --gradient-card: linear-gradient(145deg, hsl(150 10% 99%), hsl(150 10% 97%));
  --gradient-hero: linear-gradient(135deg, hsl(152 69% 41%) 0%, hsl(152 80% 50%) 100%);
  --gradient-navy: linear-gradient(180deg, hsl(160 30% 8%), hsl(158 25% 14%));

  /* Shadows */
  --shadow-glow: 0 0 40px -10px hsla(152, 69%, 41%, 0.3);
  --shadow-card: 0 4px 24px -4px hsla(160, 30%, 8%, 0.06);
  --shadow-card-hover: 0 8px 40px -4px hsla(160, 30%, 8%, 0.12);
  --shadow-accent: 0 4px 20px -4px hsla(152, 69%, 41%, 0.3);
  --shadow-white-card: 0 4px 24px -4px hsla(160, 30%, 8%, 0.06);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

code, .font-mono {
  font-family: var(--font-mono);
}

/* ============================================================
   Utility classes
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 1.5rem; }
}

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-accent  { background: var(--gradient-accent); }
.bg-gradient-card    { background: var(--gradient-card); }
.bg-navy { background-color: var(--navy); }
.shadow-glow         { box-shadow: var(--shadow-glow); }
.shadow-card         { box-shadow: var(--shadow-card); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn--hero {
  background: var(--gradient-primary);
  color: var(--primary-fg);
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  border: none;
}
.btn--hero:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 30px -4px hsla(152, 69%, 41%, 0.45);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 30px -4px hsla(152, 69%, 41%, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn--outline:hover {
  background: hsla(152, 69%, 41%, 0.06);
  border-color: var(--primary);
  color: var(--primary);
}

.btn--ghost {
  background: transparent;
  color: var(--fg-muted);
  border: none;
}
.btn--ghost:hover {
  background: var(--bg-muted);
  color: var(--fg);
}

.btn--secondary {
  background: var(--bg-secondary);
  color: var(--fg-secondary);
}

.btn--glow {
  background: var(--gradient-primary);
  color: var(--primary-fg);
}
.btn--glow:hover {
  box-shadow: var(--shadow-glow);
}

.btn--sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn--xl { padding: 1rem 2.5rem; font-size: 1rem; border-radius: 1rem; }

/* ============================================================
   Navbar
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsla(150, 10%, 97%, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  color: #fff;
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-links,
  .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu.is-open { display: flex; }

/* ============================================================
   Hero — Dark navy section with green accents
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: hsla(160, 30%, 8%, 0.7);
}

.hero__content {
  position: relative;
  max-width: 42rem;
  padding: 8rem 0 5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: hsla(152, 69%, 41%, 0.1);
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid hsla(152, 69%, 41%, 0.2);
}

.hero__badge::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.03em;
}

.hero__title .text-gradient-primary {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsla(0, 0%, 100%, 0.7);
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__stats {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.8125rem;
  color: hsla(0, 0%, 100%, 0.5);
}

.hero__stat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  animation: pulse-glow 3s ease-in-out infinite;
}
.hero__stat-dot--primary { background: var(--primary); }
.hero__stat-dot--accent  { background: var(--primary-light); }

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (max-width: 767px) {
  .hero__content { padding: 6rem 0 3rem; }
  .hero__stats { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ============================================================
   How It Works — White cards on light bg
   ============================================================ */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.how-it-works__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
}

.how-it-works__subtitle {
  margin-top: 0.75rem;
  color: var(--fg-muted);
  font-size: 1rem;
}

.how-it-works__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.how-step {
  flex: 0 1 300px;
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: var(--fg);
  transition: all 0.3s;
}

.how-step:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.how-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.how-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: hsla(152, 69%, 41%, 0.08);
  color: var(--primary);
  transition: all 0.3s;
}

.how-step:hover .how-step__icon {
  background: hsla(152, 69%, 41%, 0.15);
  transform: scale(1.05);
}

.how-step__icon--accent {
  background: hsla(152, 80%, 50%, 0.08);
  color: var(--primary-light);
}

.how-step__icon--success {
  background: hsla(152, 69%, 41%, 0.08);
  color: var(--primary);
}

.how-step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.how-step__desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.how-step__connector {
  display: flex;
  align-items: center;
  padding-top: 5rem;
  color: var(--fg-muted);
  opacity: 0.3;
  padding: 0 0.5rem;
}

@media (max-width: 767px) {
  .how-it-works__steps {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .how-step__connector {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }
}

.how-it-works__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   Features Grid — Cards on light bg
   ============================================================ */
.features {
  padding: 5rem 0;
  background: var(--bg-card);
}

.features__header {
  margin-bottom: 3rem;
  text-align: center;
}

.features__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
}

.features__subtitle {
  margin-top: 0.75rem;
  color: var(--fg-muted);
  font-size: 1rem;
}

.features__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--fg);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: hsla(152, 69%, 41%, 0.3);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: hsla(152, 69%, 41%, 0.08);
  color: var(--primary);
  transition: all 0.3s;
}

.feature-card:hover .feature-card__icon {
  background: hsla(152, 69%, 41%, 0.15);
  transform: scale(1.05);
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
}

.feature-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ============================================================
   Product / Project Cards
   ============================================================ */
.products-section { padding: 5rem 0; }

.products-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.products-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
}

.products-section__subtitle {
  margin-top: 0.5rem;
  color: var(--fg-muted);
}

.products-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  border-color: hsla(152, 69%, 41%, 0.3);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-muted);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(160, 30%, 8%, 0.6), transparent);
}

.product-card__badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: hsla(152, 69%, 41%, 0.2);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.product-card__category {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: hsla(0, 0%, 100%, 0.8);
  color: var(--fg-muted);
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
}

.product-card__body { padding: 1.25rem; }

.product-card__title {
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__author {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.product-card__meta {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--fg);
}

.product-card__rating svg { color: hsl(45, 100%, 50%); fill: hsl(45, 100%, 50%); }

.product-card__price {
  font-size: 1.125rem;
  font-weight: 700;
}

.product-card__actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.product-card__actions .btn { flex: 1; }

/* ============================================================
   Social Proof — Navy dark section
   ============================================================ */
.social-proof {
  padding: 4rem 0;
  background: var(--navy);
  color: #fff;
}

.social-proof__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.social-proof__stat {
  text-align: center;
  flex: 0 1 auto;
}

.social-proof__number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary-light);
}

.social-proof__label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.6);
}

.social-proof__divider {
  width: 1px;
  height: 3rem;
  background: hsla(0, 0%, 100%, 0.15);
}

@media (max-width: 640px) {
  .social-proof__grid { gap: 2rem; }
  .social-proof__divider { display: none; }
  .social-proof__stat { flex: 0 1 45%; }
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section { padding: 5rem 0; }

.cta-box {
  border-radius: 1.5rem;
  background: var(--navy);
  padding: 4rem 3rem;
  text-align: center;
  color: #fff;
}

.cta-box__title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.cta-box__desc {
  margin-top: 1rem;
  max-width: 28rem;
  margin-inline: auto;
  color: hsla(0, 0%, 100%, 0.7);
}

.cta-box .btn { margin-top: 2rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3.5rem 0;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  font-size: 1.125rem;
}
.site-footer__brand-desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-muted); }

.site-footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer__links {
  margin-top: 0.75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.site-footer__links a:hover { color: var(--primary); }

.site-footer__copy {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ============================================================
   WooCommerce Overrides
   ============================================================ */
.woocommerce ul.products {
  display: grid !important;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.woocommerce ul.products li.product {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce ul.products li.product:hover {
  border-color: hsla(152, 69%, 41%, 0.3);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  padding: 0.75rem 1rem 0;
  font-size: 1rem;
}

.woocommerce ul.products li.product .price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.25rem 1rem;
}

.woocommerce ul.products li.product .price del {
  color: var(--fg-muted);
  font-weight: 400;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  margin: 0.75rem 1rem 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.woocommerce ul.products li.product .button:hover {
  box-shadow: var(--shadow-glow);
  filter: brightness(1.08);
}

.woocommerce .star-rating { color: hsl(45, 100%, 50%); }

/* Single product */
.woocommerce div.product { color: var(--fg); }

.woocommerce div.product .product_title {
  font-family: var(--font-display);
  color: var(--fg);
  font-weight: 700;
}

.woocommerce div.product p.price {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.woocommerce div.product .woocommerce-product-gallery {
  border-radius: 1rem;
  overflow: hidden;
}

.woocommerce div.product .single_add_to_cart_button {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.woocommerce div.product .single_add_to_cart_button:hover {
  box-shadow: var(--shadow-glow);
  filter: brightness(1.08);
}

.woocommerce div.product .quantity .qty {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 0.5rem;
  font-family: var(--font-sans);
}

/* Cart */
.woocommerce table.shop_table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: var(--bg-muted);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.woocommerce table.shop_table td {
  color: var(--fg);
  border-top: 1px solid var(--border);
}

/* Checkout */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  font-family: var(--font-sans);
}

.woocommerce form .form-row input.input-text:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px hsla(152, 69%, 41%, 0.15);
}

.woocommerce form .form-row label {
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 500;
}

.woocommerce #payment {
  background: var(--bg-card) !important;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.woocommerce #payment .payment_methods { border-bottom: 1px solid var(--border); }
.woocommerce #payment .payment_methods li { color: var(--fg); }

.woocommerce #place_order {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  cursor: pointer;
}

.woocommerce #place_order:hover { box-shadow: var(--shadow-glow); }

/* Notices */
.woocommerce-message {
  background: var(--bg-card);
  border-top-color: var(--primary) !important;
  color: var(--fg);
}

.woocommerce-error {
  background: var(--bg-card);
  border-top-color: var(--destructive) !important;
  color: var(--fg);
}

.woocommerce-info {
  background: var(--bg-card);
  border-top-color: var(--primary) !important;
  color: var(--fg);
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  color: var(--fg-muted);
  font-size: 0.875rem;
  padding: 1rem 0;
}

.woocommerce .woocommerce-breadcrumb a { color: var(--primary); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0;
  margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-weight: 500;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--primary);
}

.woocommerce div.product .woocommerce-tabs .panel {
  color: var(--fg);
  padding: 1.5rem 0;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li { border: none; }

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  min-width: 2.5rem;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

/* Sale */
.woocommerce span.onsale {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius);
}

/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  color: var(--fg-muted);
  transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--bg-muted);
  color: var(--fg);
}

/* Widgets */
.widget { margin-bottom: 2rem; }

.widget-title,
.widgettitle {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 0.375rem 0; border-bottom: 1px solid var(--border); }
.widget ul li a { color: var(--fg-muted); font-size: 0.875rem; transition: color 0.2s; }
.widget ul li a:hover { color: var(--primary); }

/* ============================================================
   Single Product Layout
   ============================================================ */
.single-product-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 767px) {
  .single-product-grid { grid-template-columns: 1fr; }
}

.single-product__main-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-muted);
}

.single-product__main-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.single-product__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.single-product__thumb {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s;
}

.single-product__thumb.is-active,
.single-product__thumb:hover {
  border-color: var(--primary);
}

.single-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quantity controls */
.qty-control { margin-bottom: 1rem; }
.qty-control__row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.5rem;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.2s;
}

.qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-btn:hover { background: var(--bg-muted); border-color: var(--primary); }

.qty-input {
  width: 3.5rem;
  height: 2.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.tabs-nav__btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tabs-nav__btn.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tabs-panel { display: none; padding: 1.5rem 0; }
.tabs-panel.is-active { display: block; }

/* ============================================================
   STL Calculator (wycena page)
   ============================================================ */
.stl-dropzone {
  border: 2px dashed var(--border);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-card);
  transition: all 0.3s;
  cursor: pointer;
}

.stl-dropzone.is-dragging {
  border-color: var(--primary);
  background: hsla(152, 69%, 41%, 0.04);
  box-shadow: var(--shadow-glow);
}

.stl-dropzone__content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.stl-dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: hsla(152, 69%, 41%, 0.1);
  color: var(--primary);
}

.stl-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.stl-file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 1.5rem;
}

.stl-config-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 767px) {
  .stl-config-grid { grid-template-columns: 1fr; }
}

.stl-config-panel {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.stl-field { margin-bottom: 1.25rem; }

.stl-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.stl-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
}

.stl-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(152, 69%, 41%, 0.15);
}

.stl-range {
  width: 100%;
  accent-color: hsl(152, 69%, 41%);
}

.stl-hint {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.stl-pricing-rows { font-size: 0.875rem; }

.stl-price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  color: var(--fg-muted);
}

.stl-price-row--total {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  color: var(--fg);
  font-weight: 600;
}

.stl-price-row--grand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-top: 0.25rem;
}

.stl-price-info {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ============================================================
   Result Count & Ordering
   ============================================================ */
.woocommerce-result-count {
  color: var(--fg-muted);
  font-size: 0.875rem;
}

.woocommerce-ordering select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 0.375rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

/* Cart quantity */
.woocommerce td.product-quantity .quantity { display: flex; align-items: center; }
.woocommerce td.product-quantity .qty { width: 3.5rem; text-align: center; }
.woocommerce a.remove { color: var(--destructive) !important; font-size: 1.25rem; }

.woocommerce button[name="update_cart"] {
  background: var(--bg-muted) !important;
  color: var(--fg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-sans);
  padding: 0.5rem 1.5rem !important;
  cursor: pointer;
}

.woocommerce .coupon .input-text {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--fg) !important;
  border-radius: var(--radius) !important;
  padding: 0.5rem 0.75rem !important;
}

.woocommerce .coupon .button {
  background: var(--bg-muted) !important;
  color: var(--fg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

.woocommerce .cart_totals {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.woocommerce .cart_totals h2 { color: var(--fg); font-family: var(--font-display); }
.woocommerce .cart_totals table { border: none; }

.woocommerce .cart_totals th,
.woocommerce .cart_totals td {
  color: var(--fg);
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 0.875rem 2rem !important;
  font-size: 1rem;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover {
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   Nav CTA highlight (pulsing)
   ============================================================ */
.nav-cta-highlight {
  animation: nav-cta-pulse 2.5s ease-in-out infinite;
}

@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsla(152, 69%, 41%, 0.35); }
  50% { box-shadow: 0 0 16px 4px hsla(152, 69%, 41%, 0.2); }
}

/* ============================================================
   Sticky Mobile CTA
   ============================================================ */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 49;
  padding: 0.75rem 1rem;
  background: hsla(150, 10%, 97%, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-sticky-cta.is-visible { transform: translateY(0); }
.mobile-sticky-cta.is-hidden { transform: translateY(100%); }
.mobile-sticky-cta__btn { width: 100%; }

@media (max-width: 767px) {
  .mobile-sticky-cta { display: block; }
}

/* ============================================================
   Calculator Breadcrumbs
   ============================================================ */
.calc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.calc-breadcrumbs a { color: var(--primary); }
.calc-breadcrumbs a:hover { text-decoration: underline; }
.calc-breadcrumbs__sep { opacity: 0.4; }

/* ============================================================
   Calculator Progress Indicator
   ============================================================ */
.calc-progress {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
}

.calc-progress__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.calc-progress__step.is-active { color: var(--primary); font-weight: 600; }
.calc-progress__step.is-done { color: var(--success); }

.calc-progress__dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

.calc-progress__step.is-active .calc-progress__dot {
  border-color: var(--primary);
  background: hsla(152, 69%, 41%, 0.1);
  color: var(--primary);
}

.calc-progress__step.is-done .calc-progress__dot {
  border-color: var(--success);
  background: hsla(152, 69%, 41%, 0.1);
  color: var(--success);
}

.calc-progress__line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
}

.calc-progress__line.is-active { background: var(--primary); }

/* ============================================================
   FAQ Section
   ============================================================ */
.calc-faq {
  padding: 3rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.calc-faq__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
  text-align: center;
}

.calc-faq__item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}

.calc-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.calc-faq__question:hover { color: var(--primary); }

.calc-faq__chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--fg-muted);
}

.calc-faq__item.is-open .calc-faq__chevron { transform: rotate(180deg); }

.calc-faq__answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.calc-faq__item.is-open .calc-faq__answer { display: block; }

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }

/* WCAG focus-visible */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
