/* ========== DESIGN SYSTEM (MAGENTA & WARM SAND) ========== */

:root {
  --primary: #D65A8D;
  --primary-dark: #B0426E;
  --secondary: #FAF0E6;
  --accent: #E6D9CC;
  --bg-light: #FCF7F2;
  --bg-white: #FFFFFF;
  --text-dark: #4A3B32;
  --text-gray: #7D7065;
  --border: #EDDCD2;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius-full: 9999px;
}

/* ========== RESET & BASE ========== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--secondary) url('/assets/hintergrund.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Semi-transparent overlay for readability over the background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 240, 230, 0.75);
  /* Reduced from 0.9 to make background visible */
  z-index: -1;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========== CENTERED BOUTIQUE HEADER ========== */

/* ========== SIDE-BY-SIDE BOUTIQUE HEADER ========== */

/* ========== CENTERED BOUTIQUE HEADER ========== */

.header-unified {
  background: rgba(253, 250, 246, 0.99);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-flex-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 150px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  transform: translateX(-35px);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 170px !important;
  width: auto;
  transition: var(--transition);
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Centered Navigation */
.nav-center {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.nav-center a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-center a:hover {
  color: var(--primary);
}

.nav-center a:hover::after {
  width: 100%;
}

.header-slogan-box {
  text-align: center;
}

.header-slogan-box h1 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--text-gray);
  font-weight: 400;
  /* Lighter weight */
  letter-spacing: 0.05em;
  opacity: 0.85;
  /* Softer appearance */
}

.header-slogan-box p {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.85;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  transform: translateX(-35px);
}

.nav-right {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-right a {
  color: var(--text-dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-right a:hover {
  color: var(--primary);
}

.nav-right svg {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* Main Content Padding */
.main-content-bg {
  padding-top: 2rem;
}

/* ========== PRODUCT GRID (5 COLUMNS) ========== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.product-card {
  background: var(--bg-white);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--bg-light);
}

.product-content {
  padding: 0.6rem 0.8rem;
  flex-grow: 1;
}

.product-name {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-footer {
  padding: 0.4rem 0.8rem 0.7rem;
}

.price-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.price-vat {
  font-size: 0.6rem;
  color: var(--text-gray);
  opacity: 0.6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 90, 141, 0.35);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.w-100 {
  width: 100%;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========== FOOTER ========== */

.shop-footer {
  background: rgba(253, 250, 246, 0.99);
  margin-top: var(--space-lg);
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  /* 4 columns */
  gap: var(--space-md);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.footer-col p {
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.3rem;
}

.footer-col ul li a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-about-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-about-link:hover {
  opacity: 0.75;
}

.footer-bottom {
  text-align: center;
  padding: 1rem 0;
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-gray);
  opacity: 0.7;
}

/* ========== PRODUCT DETAIL PAGE ========== */

.back-link {
  display: inline-block;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.product-detail-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-white);
}

.product-detail-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.product-detail-info {
  padding: 1rem 0;
}

.product-detail-category {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-gray);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.product-detail-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-detail-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-detail-price-block {
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.2rem;
}

.product-detail-stock {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.product-detail-stock.in-stock {
  color: #5a8a5a;
}

.btn-lg {
  padding: 0.8rem 2.5rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-name {
    font-size: 1.4rem;
  }

  .product-detail-price {
    font-size: 1.4rem;
  }

  #related-section .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Variant / Size Buttons */
.product-detail-variants {
  margin-bottom: 1.5rem;
}

.variant-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.variant-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-width: 60px;
}

.variant-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.variant-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.variant-price-hint {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* Article Details Section */
.product-details-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.product-details-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table tr {
  border-bottom: 1px solid var(--border);
}

.details-table tr:last-child {
  border-bottom: none;
}

.details-table td {
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: var(--text-dark);
  vertical-align: top;
}

.detail-label {
  font-weight: 600;
  color: var(--text-gray);
  width: 140px;
  white-space: nowrap;
  padding-right: 1rem;
}

/* ========== ABOUT PAGE ========== */

.about-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.about-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: rgba(214, 90, 141, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.about-headline {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.about-subline {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 400;
}

.about-section {
  padding: 2rem 0;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.about-story-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.about-story-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.about-story-content p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.about-story-content em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

/* Values */
.about-values-section {
  background: var(--bg-white);
  padding: 2.5rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-values-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.about-value-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: var(--bg-light);
  transition: var(--transition);
}

.about-value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.about-value-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.about-value-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.about-value-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-gray);
}

/* CTA */
.about-cta-section {
  padding: 2.5rem 0;
}

.about-cta-card {
  text-align: center;
  background: var(--bg-white);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.about-cta-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.about-cta-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .about-headline {
    font-size: 1.5rem;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .about-values-grid {
    grid-template-columns: 1fr;
  }
}