/* ─────────────────────────────────────────────────────────
   Ruhemanufaktur — Shared Shopify Styles
   Based on Brand Guidelines v1.0
   ───────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;1,300&display=swap");

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

:root {
  --bg: #f7f5f2;
  --bg-2: #edeae5;
  --bg-dark: #1e1b18;
  --text: #1a1714;
  --text-mid: #6b6460;
  --text-faint: #b0a9a3;
  --line: #dedad4;
  --mauve: #a48a8a;

  --primary-50: #faf8f6;
  --primary-100: #f0ece7;
  --primary-300: #c9bcae;
  --primary-500: #9a8470;
  --primary-700: #735e4c;
  --primary-900: #514337;
  --primary-950: #2b231c;

  --secondary-100: #faf5eb;
  --secondary-500: #d6a672;
  --secondary-700: #a3704a;

  --f: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button,
input,
select {
  font-family: var(--f);
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  gap: 24px;
}
.header-logo object,
.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 0;
  align-items: stretch;
  height: 100%;
}
.header-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ── MEGA MENU (kategorie-first) ─────────────────────────── */
.nav-item {
  display: flex;
  align-items: stretch;
  position: relative;
}
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(920px, calc(100vw - 96px));
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 2px solid var(--text);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 250;
  box-shadow: 0 24px 48px -24px rgba(26, 23, 20, 0.25);
}
.nav-item.has-mega:hover .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-col h5 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mega-col li a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-mid);
  padding: 0;
  border: none;
  transition:
    color 0.15s,
    padding-left 0.15s;
}
.mega-col li a:hover {
  color: var(--text);
  padding-left: 4px;
}

.mega-feature {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
}
.mega-feature__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 8px;
}
.mega-feature__title {
  font-size: 17px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.25;
}
.mega-feature__desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}
.mega-feature__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.header-actions a {
  font-size: 13px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.header-actions a:hover {
  color: var(--text);
}
.cart-count {
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── ANNOUNCEMENT BAR ────────────────────────────────────── */
.announcement {
  background: var(--primary-950);
  color: var(--primary-100);
  text-align: center;
  padding: 10px 48px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.announcement a {
  color: var(--mauve);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-950);
  color: var(--primary-300);
  margin-top: 120px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding: 80px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand object {
  height: 36px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 13px;
  color: var(--primary-500);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-100);
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 13px;
  color: var(--primary-500);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--primary-100);
}

.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 16px;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--primary-100);
  outline: none;
}
.newsletter-form input::placeholder {
  color: var(--primary-700);
}
.newsletter-form button {
  background: var(--mauve);
  color: white;
  border: none;
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.newsletter-form button:hover {
  background: #8a7070;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  font-size: 12px;
  color: var(--primary-700);
}
.footer-bottom a {
  color: var(--primary-700);
  transition: color 0.15s;
}
.footer-bottom a:hover {
  color: var(--primary-300);
}
.footer-payment {
  display: flex;
  gap: 8px;
  align-items: center;
}
.payment-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary-300);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 1px;
  cursor: pointer;
  border: none;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.btn-dark {
  background: var(--text);
  color: var(--bg);
}
.btn-dark:hover {
  background: var(--primary-900);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  letter-spacing: 0.06em;
}
.btn-ghost:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}
.btn-full {
  width: 100%;
}
.btn-lg {
  padding: 16px 40px;
  font-size: 13px;
}

/* ── PRODUCT CARD ────────────────────────────────────────── */
.product-card {
  background: var(--bg);
}
.product-card__img {
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 1;
  position: relative;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card__img img {
  transform: scale(1.03);
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--text-mid);
  padding: 5px 10px;
  border: 1px solid var(--line);
  z-index: 1;
}
.product-card__badge.sale {
  background: var(--primary-950);
  color: var(--primary-100);
  border-color: var(--primary-950);
}
.product-card__badge.partner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  color: var(--mauve);
  border-color: var(--mauve);
}
.product-card__badge.partner::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mauve);
}

/* Brand line on product card (vendor attribution) */
.product-card__brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.product-card__brand .partner-mark {
  color: var(--mauve);
}

.product-card__info {
  padding: 16px 0 0;
}
.product-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.product-card__sub {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.product-card__price {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}
.product-card__price .orig {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-left: 6px;
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 32px;
}
.breadcrumb a {
  color: var(--text-faint);
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: var(--text);
}
.breadcrumb span {
  color: var(--mauve);
  font-size: 10px;
}

/* ── SECTION SPACING ─────────────────────────────────────── */
.section {
  padding: 100px 48px;
}
.section-sm {
  padding: 64px 48px;
}

/* ── SECTION HEADING ─────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 520px;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
}

/* ── BADGE ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg-2);
  color: var(--text-mid);
  padding: 5px 10px;
  border: 1px solid var(--line);
}
