/* Stich Premium Dark Theme for Homepage */
@layer theme {
  :root {
    --stich-bg: #0F1012;
    --stich-text: #FFFFFF;
    --stich-muted: #8F94A2;
    --stich-card-bg: #1B1D22;
    --stich-card-border: rgba(255, 255, 255, 0.08);
    --stich-blue: #0062FF;
    --stich-blue-hover: #1971FF;
  }
}

body.home-stich {
  margin: 0;
  background-color: var(--stich-bg);
  color: var(--stich-text);
  font-family: 'Manrope', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.stich-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.stich-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.stich-logo {
  flex: 1;
}

.stich-logo img {
  height: 28px; /* Slightly taller to read VACU-MAID */
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.stich-nav {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.stich-nav a {
  color: var(--stich-muted);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.stich-nav a:hover, .stich-nav a.active {
  color: var(--stich-text);
}

.stich-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  align-items: center;
}

.stich-actions svg {
  width: 20px;
  height: 20px;
  stroke: var(--stich-text);
  stroke-width: 2;
  fill: none;
  cursor: pointer;
  transition: opacity 0.2s;
  opacity: 0.7;
}

.stich-actions svg:hover {
  opacity: 1;
}

.stich-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stich-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0 3rem;
  position: relative;
  flex-wrap: wrap;
}

.stich-hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  z-index: 2;
  padding-right: 2rem;
}

.stich-hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: 'Manrope', sans-serif;
}

.stich-hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--stich-muted);
  margin: 0 0 2.5rem;
}

.stich-hero-buttons {
  display: flex;
  gap: 1rem;
}

.stich-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}

.stich-btn-primary {
  background: var(--stich-blue);
  color: white;
  border: none;
}

.stich-btn-primary:hover {
  background: var(--stich-blue-hover);
}

.stich-btn-outline {
  background: transparent;
  color: var(--stich-muted);
  border: 1px solid var(--stich-muted);
}

.stich-btn-outline:hover {
  color: var(--stich-text);
  border-color: var(--stich-text);
}

.stich-hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  position: relative;
}

.stich-hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  padding-bottom: 130%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 65%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: color-dodge;
}

.stich-hero-image img {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  transform: scale(1.05); /* Slight pop based on rendering */
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.8));
}

.stich-features {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--stich-card-border);
  border-bottom: 1px solid var(--stich-card-border);
  margin: 1rem 0 3.5rem;
}

.stich-feature {
  flex: 1;
  display: flex;
  gap: 1.2rem;
  min-width: 250px;
}

.stich-feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  opacity: 0.8;
  display: flex;
  align-items: flex-start;
}

.stich-feature-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--stich-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stich-feature-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.stich-feature-text p {
  font-size: 0.9rem;
  color: var(--stich-muted);
  margin: 0;
  line-height: 1.5;
}

.stich-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding-bottom: 5rem;
}

.stich-category {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stich-cat-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 80%);
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 20px 40px rgba(0,0,0,0.6);
}

.stich-cat-img img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.stich-cat-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.stich-cat-text p {
  font-size: 0.9rem;
  color: var(--stich-muted);
  margin: 0;
  line-height: 1.5;
}

.stich-footer-wrap {
  width: 100%;
  padding: 0 1rem 1rem;
  margin-top: auto;
}

.stich-footer {
  background: var(--stich-card-bg);
  border-radius: 12px;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.stich-footer-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.stich-footer-links a {
  color: var(--stich-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.stich-footer-links a:hover {
  color: var(--stich-text);
}

.stich-social {
  display: flex;
  gap: 1.2rem;
}

.stich-social a {
  color: var(--stich-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.stich-social a:hover {
  color: var(--stich-text);
}

.stich-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Product Page Specific --- */
.stich-product-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 8rem;
}

.stich-product-hero-wrap {
  width: 100%;
  border-radius: 16px;
  background: var(--stich-card-bg);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stich-product-hero-bg {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(0,180,255,0.1) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.stich-product-image {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.stich-product-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8));
}

.stich-product-hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--stich-card-border);
  padding-top: 1.5rem;
}

.stich-product-titles h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  font-weight: 300;
  color: var(--stich-text);
  line-height: 1.1;
}

.stich-product-titles p {
  color: var(--stich-muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 400px;
  line-height: 1.5;
}

.stich-product-badges {
  display: flex;
  gap: 2rem;
}

.stich-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.stich-badge svg {
  width: 28px;
  height: 28px;
  stroke: #00D2FF;
  fill: none;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.4));
}

.stich-badge span {
  font-size: 0.75rem;
  color: var(--stich-text);
  max-width: 80px;
  line-height: 1.3;
}

/* Sections */
.stich-section {
  width: 100%;
}

.stich-section h2 {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  color: var(--stich-text);
}

.stich-box-items {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stich-box-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.stich-box-item svg {
  width: 40px;
  height: 40px;
  stroke: var(--stich-muted);
  fill: none;
  stroke-width: 1.2;
}

.stich-box-item span {
  font-size: 0.85rem;
  color: var(--stich-text);
}

.stich-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-radius: 8px;
  border: 1px solid var(--stich-card-border);
  overflow: hidden;
}

.stich-spec-item {
  padding: 1.2rem;
  border-right: 1px solid var(--stich-card-border);
  border-bottom: 1px solid var(--stich-card-border);
  background: rgba(255,255,255,0.02);
}

.stich-spec-item:nth-child(3n) {
  border-right: none;
}

.stich-spec-item:nth-last-child(-n+3) {
  border-bottom: none;
}

.stich-spec-label {
  color: var(--stich-muted);
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.stich-spec-value {
  color: var(--stich-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.stich-accessories-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.stich-accessory-card {
  min-width: 160px;
  background: var(--stich-card-bg);
  border-radius: 12px;
  border: 1px solid var(--stich-card-border);
  padding: 1.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stich-accessory-img {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stich-accessory-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.stich-accessory-card span {
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--stich-text);
}

.stich-downloads-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--stich-card-border);
  border-radius: 8px;
  overflow: hidden;
}

.stich-download-item {
  padding: 1.2rem;
  border-bottom: 1px solid var(--stich-card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
}

.stich-download-item:last-child {
  border-bottom: none;
}

.stich-download-item:hover {
  background: rgba(255,255,255,0.05);
}

.stich-download-item span {
  font-size: 0.95rem;
  color: var(--stich-muted);
}

.stich-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(27, 29, 34, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 100;
  border-top: 1px solid var(--stich-card-border);
}

.stich-buy-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
}

.stich-buy-price {
  font-size: 1.5rem;
  color: var(--stich-text);
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
}

.stich-btn-glow {
  background: linear-gradient(135deg, #00D2FF 0%, #0062FF 100%);
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.stich-btn-glow:hover {
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

/* --- Product Listing Page --- */
.stich-listing-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 2rem 0 5rem;
}

.stich-sidebar h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--stich-card-border);
}

.stich-filter-group {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--stich-card-border);
  padding-bottom: 1.5rem;
}

.stich-filter-group:last-child {
  border-bottom: none;
}

.stich-filter-group h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stich-filter-group h3::after {
  content: '';
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 5L5 1L9 5' stroke='white' stroke-opacity='0.6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
}

.stich-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  color: var(--stich-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.stich-checkbox-item:hover {
  color: var(--stich-text);
}

.stich-checkbox-item input {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.stich-checkbox-item input::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--stich-blue);
  background-color: var(--stich-blue);
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.stich-checkbox-item input:checked::before {
  transform: scale(1);
}

.stich-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stich-card {
  background: var(--stich-card-bg);
  border: 1px solid var(--stich-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.stich-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.stich-card-img-wrap {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
}

.stich-card-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.stich-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
}

.stich-card-content h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--stich-text);
  margin: 0 0 0.5rem;
}

.stich-card-content p {
  color: var(--stich-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.stich-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--stich-muted);
  padding: 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.stich-card:hover .stich-card-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--stich-text);
}

/* --- Contact & Forms --- */
.stich-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}
.stich-contact-hero {
  padding: 4rem 2rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(0, 98, 255, 0.1) 0%, rgba(0,0,0,0) 80%);
  border-radius: 16px;
  margin-top: 2rem;
}
.stich-contact-hero h1 {
  font-size: 3rem;
  font-weight: 300;
  margin: 0 0 1rem;
}
.stich-contact-hero p {
  color: var(--stich-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.stich-contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stich-contact-info-list li {
  color: var(--stich-muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stich-contact-info-list a {
  color: var(--stich-text);
  text-decoration: none;
}
.stich-contact-info-list a:hover {
  color: var(--stich-blue);
}
.stich-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stich-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.stich-form-field label {
  color: var(--stich-muted);
  font-size: 0.9rem;
}
.stich-form-field input, .stich-form-field textarea, .stich-form-field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--stich-text);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.stich-form-field input:focus, .stich-form-field textarea:focus, .stich-form-field select:focus {
  outline: none;
  border-color: var(--stich-blue);
  background: rgba(255, 255, 255, 0.08);
}
.stich-form-field select option {
  background: var(--stich-card-bg);
  color: var(--stich-text);
}
.stich-form-btn {
  display: inline-block;
  background: var(--stich-blue);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
}
.stich-form-btn:hover {
  background: var(--stich-blue-hover);
}

/* --- Generic Internal Pages --- */
.stich-page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.stich-page-hero {
  padding: 4rem 2rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(0, 210, 255, 0.08) 0%, rgba(0,0,0,0) 70%);
  border-radius: 16px;
  margin-bottom: 3rem;
}
.stich-page-hero h1 {
  font-size: 3rem;
  font-weight: 300;
  margin: 0 0 1rem;
}
.stich-page-hero p {
  color: var(--stich-muted);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}
.stich-page-hero .inner-media {
  display: none;
}
.stich-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.stich-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-top: 1rem;
}
.stich-table th {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 2px solid var(--stich-card-border);
  color: var(--stich-text);
  font-weight: 500;
}
.stich-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--stich-card-border);
  color: var(--stich-muted);
}
.stich-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--stich-text);
}
.stich-check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.stich-check-list li {
  color: var(--stich-muted);
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}
.stich-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--stich-blue);
  font-weight: bold;
}
.stich-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.stich-spec-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.stich-spec-item dt {
  font-weight: 600;
  color: var(--stich-text);
  margin-bottom: 0.5rem;
}
.stich-spec-item dd {
  color: var(--stich-muted);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .stich-hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 0;
  }
  .stich-hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  .stich-hero-buttons {
    justify-content: center;
  }
  .stich-nav {
    display: none;
  }
  .stich-features {
    flex-direction: column;
    gap: 2rem;
  }
  .stich-product-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .stich-spec-grid {
    grid-template-columns: 1fr;
  }
  .stich-spec-item {
    border-right: none;
    border-bottom: 1px solid var(--stich-card-border);
  }
  .stich-spec-item:last-child {
    border-bottom: none;
  }
}
