:root {
  --ink: #17202a;
  --muted: #667085;
  --paper: #f6f8fb;
  --card: #ffffff;
  --line: #dde5ee;
  --teal: #168f8c;
  --cyan: #27c7d4;
  --blue: #0a5796;
  --orange: #ff7a45;
  --green: #1fbf75;
  --shadow: 0 18px 46px rgba(23, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, system-ui, sans-serif;
}

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

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

.shop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  min-height: 4.25rem;
  padding: 0.45rem max(1rem, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(22, 143, 140, 0.16);
  background:
    linear-gradient(90deg, rgba(224, 250, 244, 0.96), rgba(246, 248, 251, 0.96)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.055);
  backdrop-filter: blur(18px);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.shop-header.is-scrolled {
  border-bottom-color: rgba(221, 229, 238, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 8rem;
}

.brand img {
  width: clamp(7.2rem, 11vw, 9.6rem);
  height: auto;
  object-fit: contain;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  font-family: "Space Grotesk", Manrope, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

nav a,
.quote-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border-radius: 0;
  padding: 0.54rem 0.86rem;
}

nav svg,
.quote-chip svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

nav a {
  color: #233442;
  transition: color 0.2s ease, transform 0.2s ease;
}

.shop-header.is-scrolled nav a {
  color: #233442;
}

nav a + a::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0.9rem;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(22, 143, 140, 0.55), transparent);
  transform: translateY(-50%);
}

.shop-header.is-scrolled nav a + a::before {
  background: linear-gradient(180deg, transparent, rgba(22, 143, 140, 0.42), transparent);
}

nav a::after {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.22rem;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.shop-header.is-scrolled nav a::after {
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

nav a:hover {
  color: var(--teal);
  transform: translateY(-1px);
}

.shop-header.is-scrolled nav a:hover {
  color: var(--teal);
}

nav a:hover::after {
  transform: scaleX(1);
}

.quote-chip {
  border: 1px solid rgba(23, 32, 42, 0.92);
  border-radius: 999px;
  min-width: 8.8rem;
  justify-content: center;
  padding-inline: 1.18rem;
  color: white;
  background:
    linear-gradient(135deg, var(--ink), #26384a);
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.16);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-header.is-scrolled .quote-chip {
  border-color: rgba(22, 143, 140, 0.5);
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.quote-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.22);
}

.about-section,
.shop-layout,
.quote-section {
  padding-inline: max(1rem, calc((100vw - 1240px) / 2));
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.95;
}

.about-copy p,
.category-detail p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.primary-action,
.ghost-action,
.sidebar-cta,
.category-detail a {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0 1.2rem;
  font-weight: 900;
}

.primary-action,
.category-detail a {
  color: white;
  background: var(--teal);
  box-shadow: 0 14px 30px rgba(22, 143, 140, 0.22);
}

.ghost-action {
  border: 1px solid var(--line);
  background: white;
}


.about-section {
  display: grid;
  align-items: center;
  gap: 1.4rem;
  grid-template-columns: 0.82fr 1.18fr;
  padding-block: 5rem;
  margin-top: 0;
  background: white;
}

.about-media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #f8fbfd;
  box-shadow: var(--shadow);
}

.about-copy h2 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}

.about-values {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.about-values article {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  background: #f8fbfd;
}

.about-values h3 {
  margin-bottom: 0.65rem;
  color: var(--blue);
}

.about-values p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.shop-layout {
  display: grid;
  position: relative;
  align-items: start;
  gap: 1.4rem;
  grid-template-columns: 17rem minmax(0, 1fr);
  padding-block: 2rem 5rem;
  isolation: isolate;
}

.shop-layout::before {
  position: absolute;
  inset: 2rem max(1rem, calc((100vw - 1240px) / 2)) auto auto;
  z-index: -1;
  width: min(46rem, 58vw);
  height: 28rem;
  content: "";
  background: url("assets/logo-transparent.png") center / contain no-repeat;
  opacity: 0.11;
  filter: saturate(1.25);
  pointer-events: none;
}

.shop-layout::after {
  position: absolute;
  right: max(1rem, calc((100vw - 1240px) / 2));
  top: 23rem;
  z-index: -1;
  content: "RUBIKON";
  color: rgba(22, 143, 140, 0.085);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(5rem, 13vw, 14rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
}

.category-sidebar {
  position: sticky;
  top: 6.4rem;
  display: grid;
  gap: 0.55rem;
  max-height: calc(100svh - 7.4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: white;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 87, 150, 0.45) transparent;
}

.category-sidebar::-webkit-scrollbar {
  width: 0.5rem;
}

.category-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(10, 87, 150, 0.35);
}

.category-sidebar h2,
.shop-title h2 {
  margin-bottom: 0.5rem;
  font-size: 1.55rem;
}

.category-sidebar a {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.68rem 0.78rem;
  color: var(--blue);
  background: #f8fbfd;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
}

.category-sidebar a:hover {
  border-color: rgba(22, 143, 140, 0.45);
  background: #eaf6f7;
}

.category-sidebar a.active {
  border-color: rgba(22, 143, 140, 0.5);
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.category-sidebar .sidebar-cta {
  margin-top: 0.5rem;
  color: white;
  background: var(--blue);
}

.shop-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-details {
  display: grid;
  gap: 1rem;
}

.category-detail {
  display: grid;
  overflow: hidden;
  min-height: 31rem;
  align-items: stretch;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.06);
}

.category-detail img {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  object-fit: cover;
  object-position: top;
  background: #edf3f5;
}

.category-detail > div {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.tag {
  width: fit-content;
  border-radius: 999px;
  padding: 0.38rem 0.6rem;
  color: var(--green);
  background: rgba(31, 191, 117, 0.11);
  font-size: 0.78rem;
  font-weight: 900;
}

.category-detail h3 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.category-detail p {
  margin-bottom: 0;
}

.category-detail ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-detail li {
  position: relative;
  padding-left: 1.35rem;
  color: #344054;
  font-weight: 800;
  line-height: 1.55;
}

.category-detail li::before {
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.5rem;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}

.category-detail a {
  width: fit-content;
}

.quote-section {
  display: grid;
  min-height: 46svh;
  align-items: center;
  gap: 2rem;
  grid-template-columns: 1fr 0.8fr;
  padding-block: 4rem;
  color: white;
  background: linear-gradient(135deg, var(--ink), var(--blue));
}

.quote-section h2 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
}

address {
  display: grid;
  gap: 0.75rem;
  font-style: normal;
}

address a,
address span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.85rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.site-footer {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.95fr 1.45fr 0.8fr;
  padding: 3rem max(1rem, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(224, 250, 244, 0.72), rgba(246, 248, 251, 0.96)),
    white;
}

.footer-brand img {
  width: min(13rem, 100%);
  margin-bottom: 1rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: 1.15rem;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.6rem;
}

.footer-links h2,
.footer-contact h2 {
  flex-basis: 100%;
}

.footer-links a,
.footer-contact a {
  border: 1px solid rgba(22, 143, 140, 0.2);
  border-radius: 999px;
  padding: 0.62rem 0.78rem;
  color: #233442;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

@media (max-width: 980px) {
  .shop-header,
  .about-section,
  .shop-layout,
  .quote-section,
  .category-detail,
  .site-footer {
    grid-template-columns: 1fr;
  }

  nav {
    flex-wrap: wrap;
    justify-content: start;
  }

  .category-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shop-header {
    gap: 0.65rem;
    min-height: 0;
    padding-block: 0.55rem;
  }

  nav {
    gap: 0.3rem;
  }

  nav a,
  .quote-chip {
    border-radius: 0.55rem;
    padding: 0.62rem 0.65rem;
    font-size: 0.78rem;
  }

  nav a {
    background: #f8fbfd;
  }

  nav a + a::before {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .category-detail img {
    min-height: 24rem;
  }
}
