/* SEBSERVICE 3D 0.0.1 — technical storefront theme */
:root {
  --seb-ink: #141925;
  --seb-ink-soft: #5f6878;
  --seb-navy: #111627;
  --seb-navy-2: #1a2136;
  --seb-yellow: #f6b936;
  --seb-yellow-dark: #d9960b;
  --seb-cyan: #45c4d8;
  --seb-paper: #ffffff;
  --seb-bg: #f3f5f8;
  --seb-line: #dce1e8;
  --seb-shadow: 0 18px 50px rgba(17, 22, 39, .09);
  --bg: var(--seb-bg);
  --surface: var(--seb-paper);
  --text: var(--seb-ink);
  --muted: var(--seb-ink-soft);
  --primary: #1b243b;
  --primary-dark: #080c17;
  --accent: var(--seb-yellow);
  --border: var(--seb-line);
  --shadow: var(--seb-shadow);
}

html { scroll-behavior: smooth; }

body {
  color: var(--seb-ink);
  background:
    linear-gradient(rgba(17, 22, 39, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 39, .018) 1px, transparent 1px),
    radial-gradient(circle at 10% 3%, rgba(69, 196, 216, .08), transparent 24rem),
    radial-gradient(circle at 92% 16%, rgba(246, 185, 54, .09), transparent 27rem),
    var(--seb-bg);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

h1, h2, h3, .brand, .price {
  letter-spacing: -.035em;
}

a { text-underline-offset: 3px; }

.container {
  width: min(1380px, calc(100% - 48px));
  margin-top: 36px;
}

.site-header {
  min-height: 76px;
  padding: 0 max(28px, calc((100vw - 1380px) / 2));
  background: rgba(13, 18, 33, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 28px rgba(8, 12, 23, .2);
  backdrop-filter: blur(18px);
}

.brand {
  gap: 12px;
  font-size: 1.12rem;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.brand-logo {
  width: auto;
  max-width: 190px;
  max-height: 48px;
  object-fit: contain;
}

.site-header nav { gap: 5px; }

.site-header nav > a,
.site-header .theme-toggle {
  padding: 9px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, .86);
  font-size: .9rem;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.site-header nav > a:hover,
.site-header .theme-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.site-header nav > a[href*="cart"] {
  border: 1px solid rgba(246, 185, 54, .28);
}

.badge {
  min-width: 22px;
  margin-left: 3px;
  padding: 2px 7px;
  color: #211805;
  background: var(--seb-yellow);
  box-shadow: 0 3px 12px rgba(246, 185, 54, .26);
}

.category-menu {
  top: 76px;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--seb-line);
  box-shadow: 0 4px 15px rgba(17, 22, 39, .035);
  backdrop-filter: blur(16px);
}

.category-menu-inner {
  width: min(1380px, calc(100% - 48px));
  min-height: 50px;
  gap: 3px;
}

.category-menu a {
  padding: 8px 13px;
  border-radius: 8px;
  color: #30384a;
  font-size: .88rem;
  font-weight: 750;
}

.category-menu a:hover {
  color: #111627;
  background: #eef1f5;
}

.subcategory-menu {
  padding: 9px;
  border-color: var(--seb-line);
  border-radius: 12px;
  box-shadow: var(--seb-shadow);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(440px, 42vw, 610px);
  margin: 30px 0 48px;
  padding: clamp(38px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 12%, rgba(69, 196, 216, .24), transparent 26rem),
    linear-gradient(135deg, #101628, #222b43);
  box-shadow: 0 30px 70px rgba(10, 15, 28, .2);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: clamp(28px, 6vw, 80px);
  width: 110px;
  height: 5px;
  background: var(--seb-yellow);
  box-shadow: -126px 0 0 rgba(69, 196, 216, .8);
  pointer-events: none;
}

.hero.has-background-image {
  background-image:
    linear-gradient(90deg, rgba(8, 12, 24, .94) 0%, rgba(11, 16, 31, .79) 48%, rgba(12, 16, 29, .26) 100%),
    var(--hero-background-image);
  background-position: center;
  background-size: cover;
}

.hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero:has(.hero-video)::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(8, 12, 24, .94) 0%, rgba(11, 16, 31, .79) 48%, rgba(12, 16, 29, .28) 100%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.hero > *:not(.hero-video) { position: relative; z-index: 3; }

.hero .eyebrow {
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(246, 185, 54, .35);
  border-radius: 7px;
  color: #ffd26f;
  background: rgba(10, 14, 27, .42);
  font-size: .72rem;
  letter-spacing: .16em;
}

.hero h1 {
  max-width: 800px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.65rem, 5.5vw, 5rem);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .42);
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(244, 247, 252, .84);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.hero-actions { margin-top: 27px; }

.hero-actions .btn {
  padding: 13px 20px;
  border: 1px solid #ffd36f;
  color: #171305;
  background: linear-gradient(135deg, #ffd364, var(--seb-yellow));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .26);
}

.hero-actions .btn:hover {
  color: #111627;
  background: #fff;
  transform: translateY(-2px);
}

.eyebrow {
  color: #a66c00;
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.page-heading {
  align-items: flex-end;
  margin-bottom: 24px;
}

.page-heading h1,
.row-between > div > h1 {
  margin: 5px 0 0;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.05;
}

.grid.products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  grid-template-rows: 250px minmax(0, 1fr);
  min-width: 0;
  border: 1px solid var(--seb-line);
  border-radius: 20px;
  background: var(--seb-paper);
  box-shadow: 0 10px 32px rgba(17, 22, 39, .065);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #c4cbd6;
  box-shadow: 0 22px 48px rgba(17, 22, 39, .13);
}

.product-card > .product-image {
  height: 250px;
  min-height: 250px;
  border-radius: 19px 19px 0 0;
  background:
    linear-gradient(rgba(17, 22, 39, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 39, .035) 1px, transparent 1px),
    #edf0f4;
  background-size: 24px 24px;
}

.product-card .product-photo {
  object-fit: cover;
  transition: transform .35s ease;
}

.product-card:hover .product-photo { transform: scale(1.035); }

.product-card-content {
  padding: 20px 20px 22px;
  background: var(--seb-paper);
}

.product-card h2 {
  margin: 7px 0 7px;
  font-size: 1.16rem;
  line-height: 1.28;
}

.product-card h2 a { color: #161c2b; }

.product-card p {
  display: -webkit-box;
  margin: 12px 0 17px;
  overflow: hidden;
  color: var(--seb-ink-soft);
  font-size: .92rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.product-card .row-between {
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #edf0f4;
}

.price {
  color: #111627;
  font-size: 1.32rem;
  font-weight: 900;
}

.details-link {
  color: #303b54;
  font-size: .88rem;
}

.details-link:hover { color: #9b6500; }

.new-product-badge {
  border-width: 1px;
  border-color: rgba(255, 255, 255, .8);
  border-radius: 7px;
  background: linear-gradient(135deg, #ffd569, #f5ad20);
}

.card,
.table-wrap,
.auth-card,
.install-card {
  border-color: var(--seb-line);
  box-shadow: 0 12px 36px rgba(17, 22, 39, .07);
}

.btn {
  border: 1px solid #202a44;
  border-radius: 9px;
  background: #1b243b;
  box-shadow: 0 5px 14px rgba(17, 22, 39, .12);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.btn:hover {
  border-color: #080c17;
  background: #080c17;
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: #d4d9e1;
  color: #252d3e;
  background: #f0f2f5;
  box-shadow: none;
}

input, textarea, select {
  border-color: #cbd2dc;
  border-radius: 9px;
}

input:focus, textarea:focus, select:focus {
  border-color: #c78a12;
  outline: 3px solid rgba(246, 185, 54, .19);
}

.catalogue-tools {
  border-top: 3px solid var(--seb-yellow);
}

.subcategory-cards a,
.attribute-card {
  border-color: var(--seb-line);
  border-radius: 14px;
}

.subcategory-cards a:hover,
.attribute-card:hover {
  border-color: #d39a26;
}

.product-detail {
  overflow: hidden;
  border-top: 4px solid var(--seb-yellow);
  border-radius: 22px;
}

.product-detail-grid { align-items: start; }

.product-image-large,
.gallery-main {
  background:
    linear-gradient(rgba(17, 22, 39, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 39, .035) 1px, transparent 1px),
    #eef1f5;
  background-size: 26px 26px;
}

.newsletter-signup {
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(69, 196, 216, .18), transparent 22rem),
    #111627;
}

.newsletter-signup strong { letter-spacing: -.02em; }

.site-footer {
  color: rgba(255, 255, 255, .72);
  background: #090d18;
}

.site-footer a { color: rgba(255, 255, 255, .82); }

.cookie-banner {
  border: 1px solid #d7dde6;
  border-top: 4px solid var(--seb-yellow);
}

[data-theme="dark"] {
  --seb-ink: #eef2f8;
  --seb-ink-soft: #aeb7c7;
  --seb-paper: #171e2c;
  --seb-bg: #0b101b;
  --seb-line: #2e3748;
  --bg: var(--seb-bg);
  --surface: var(--seb-paper);
  --text: var(--seb-ink);
  --muted: var(--seb-ink-soft);
  --border: var(--seb-line);
  --primary: #f6b936;
  --primary-dark: #ffd36c;
}

[data-theme="dark"] body {
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(69, 196, 216, .06), transparent 24rem),
    #0b101b;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

[data-theme="dark"] .category-menu { background: rgba(18, 24, 37, .96); }
[data-theme="dark"] .category-menu a { color: #e6ebf4; }
[data-theme="dark"] .category-menu a:hover { background: #263044; }
[data-theme="dark"] .product-card,
[data-theme="dark"] .product-card-content { background: var(--seb-paper); }
[data-theme="dark"] .product-card h2 a,
[data-theme="dark"] .price { color: #f4f7fb; }
[data-theme="dark"] .product-card .row-between { border-color: #2b3445; }
[data-theme="dark"] .product-card > .product-image,
[data-theme="dark"] .product-image-large,
[data-theme="dark"] .gallery-main { background-color: #222b3c; }
[data-theme="dark"] .details-link { color: #f5c55e; }

@media (max-width: 1180px) {
  .site-header { padding-inline: 22px; }
  .site-header nav { gap: 2px; }
  .site-header nav > a,
  .site-header .theme-toggle { padding-inline: 9px; font-size: .84rem; }
  .grid.products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .container,
  .category-menu-inner { width: min(100% - 28px, 1380px); }
  .site-header {
    position: relative;
    min-height: 0;
    padding: 15px;
  }
  .category-menu { top: 0; }
  .site-header nav { gap: 6px; }
  .hero {
    min-height: 500px;
    margin-top: 20px;
    padding: 34px;
    border-radius: 22px;
    justify-content: flex-end;
  }
  .hero.has-background-image {
    background-image:
      linear-gradient(0deg, rgba(8, 12, 24, .95) 0%, rgba(8, 12, 24, .76) 57%, rgba(8, 12, 24, .25) 100%),
      var(--hero-background-image);
    background-position: 62% center;
  }
  .grid.products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .container,
  .category-menu-inner { width: min(100% - 20px, 1380px); }
  .brand-logo { max-width: 145px; max-height: 42px; }
  .brand span { font-size: .98rem; }
  .site-header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .site-header nav > a,
  .site-header .theme-toggle { justify-content: center; text-align: center; }
  .hero {
    min-height: 520px;
    padding: 25px;
    border-radius: 18px;
  }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .hero p { font-size: .96rem; }
  .grid.products-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-rows: 290px minmax(0, 1fr); }
  .product-card > .product-image { height: 290px; min-height: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-photo,
  .btn { transition: none !important; }
}
