:root {
  --primary-color: #17779b;
  --secondary-color: #a9103e;
  --primary-color-hover: #a9103e;
  --secondary-color-hover: #e8a7b9;
  --bg-color: #fff;
  --text-color: #333;
  --orange: #c81755;
  --blue: #17779b;
  --dark-gray: #222;
  --light-gray: #f5f5f5;
  --header-height: 70px;
  --radius: 12px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --transition-speed: 0.3s;
  --font: 'Inter', sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
}

body {
  background: white;
  color: var(--dark-gray);
  font-size: 16px;
  line-height: 1.6;
}

/* ========== HEADER (Desktop) ========== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--header-height);
  background: white;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

header.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  transition: height var(--transition-speed);
}

.desktop-nav {
  flex: 1;
  margin-left: 40px;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  font-weight: 600;
}

.desktop-nav ul li a {
  text-decoration: none;
  color: var(--dark-gray);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.desktop-nav ul li a:hover {
  background-color: var(--light-gray);
  color: var(--orange);
}
/* ========== شريط البحث في الهيدر ========== */
.search-bar {
  flex: 1;
  margin: 0 25px;
  position: relative;
}

.search-bar input[type="search"] {
  width: 100%;
  padding: 10px 40px 10px 20px;
  font-size: 1.1rem;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-weight: 600;
  outline: none;
}

.search-bar input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 6px var(--orange);
}

.search-bar button {
  position: absolute;
  right: 33px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--orange);
  font-size: 1.3rem;
}
/* ========== HEADER (Desktop) ========== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--header-height);
  background: white;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

header.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  transition: height var(--transition-speed);
}

.desktop-nav {
  flex: 1;
  margin-left: 40px;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  font-weight: 600;
}

.desktop-nav ul li a {
  text-decoration: none;
  color: var(--dark-gray);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.desktop-nav ul li a:hover {
  background-color: var(--light-gray);
  color: var(--orange);
}
/* ========== شريط البحث في الهيدر ========== */
.search-bar {
  flex: 1;
  margin: 0 25px;
  position: relative;
}

.search-bar input[type="search"] {
  width: 100%;
  padding: 10px 40px 10px 20px;
  font-size: 1.1rem;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-weight: 600;
  outline: none;
}

.search-bar input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 6px var(--orange);
}

/* ========== Icons & Mein Konto ========== */
.header-icons-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icons {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.header-icons a {
  font-size: 1.3rem;
  padding: 10px 12px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #ddd;
}

.header-icons a:last-child {
  border-right: none;
}

.header-icons a:hover {
  background: #f2f2f2;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--orange);
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mein Konto Zustand */
.header-icons a.mein-konto.logged-in {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  border-radius: 6px;
}

/* ========== Mobile Header ========== */
@media (max-width: 991px) {
  header.site-header {
    padding: 10px 15px;
    height: auto;
  }

  header.site-header .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #menu-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--orange);
    z-index: 2;
  }

  .logo {
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .logo img {
    padding-right: 100px;
    height: 45px;
    max-width: auto;
  }

  .header-icons-wrapper {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 2;
  }

  .search-bar,
  .desktop-nav {
    display: none !important;
  }
}
/* ========== Mobile Menu Sidebar ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 85%;
  max-width: 320px;
  background-color: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.close-menu {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #333;
  float: right;
  margin-bottom: 15px;
  cursor: pointer;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
}
.mobile-menu ul li {
  margin: 12px 0;
}
.mobile-menu ul li a {
  text-decoration: none;
  color: #222;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu ul li a:hover {
  color: var(--orange);
}

/* ========== Mobile Search ========== */
.mobile-search {
  margin-top: 20px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}
.mobile-search-form {
  display: flex;
  align-items: center;
}
.mobile-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: #222;
}
.mobile-search-form input[type="search"]::placeholder {
  color: #888;
}
.mobile-search-form button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 1.2rem;
}
.mobile-search-form button:hover {
  background: var(--secondary-color-hover);
}

/* ========== إظهار/إخفاء حسب الجهاز ========== */
.desktop-only {
  display: flex !important;
}
.mobile-only {
  display: none !important;
}
@media (max-width: 991px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}

/* ===== Produktseite (Produktdetails Flat Style) ===== */
/* === Container Layout === */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

/* === Image Style === */
.product-image {
  flex: 1 1 350px;
  max-width: 450px;
}

.product-image img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  object-fit: cover;
}

/* === Details Style === */
.product-details {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-details h1 {
  font-size: 2.4rem;
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.product-details p {
  font-size: 1.1rem;
  color: var(--text-color);
}

.product-details label {
  font-weight: 600;
  margin-top: 10px;
  color: var(--text-color);
}

.product-details input[type="number"],
.product-details input[type="file"] {
  padding: 12px;
  font-size: 1rem;
  border: 1.5px solid var(--gray);
  border-radius: var(--btn-radius);
  background-color: #fff;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.product-details input[type="number"]:focus,
.product-details input[type="file"]:focus {
  border-color: var(--secondary-color);
  outline: none;
}

/* Profi Check Checkbox */
.product-details input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
}

/* Button */
.product-details button[type="submit"] {
  background: var(--secondary-color);
  color: #fff;
  padding: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-details button:hover {
  background-color: #d62f44;
}

#total_price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* === Description Section === */
.product-description {
  max-width: 1100px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
}

.product-description h2 {
  font-size: 1.9rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* === Responsive === */
@media (max-width: 992px) {
  .product-container {
    flex-direction: column;
    padding: 20px;
  }

  .product-details h1 {
    font-size: 2rem;
  }

  .product-description {
    padding: 20px;
    margin: 30px 15px;
  }
}

/* ========== Footer ========== */
footer {
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font);
  padding: 50px 20px 100px;
  user-select: none;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-column {
  flex: 1 1 220px;
  min-width: 220px;
}
.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column li {
  margin-bottom: 8px;
}
.footer-column a {
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.footer-column a:hover {
  color: var(--secondary-color);
}
.social-icons a,
.payment-icons i {
  font-size: 1.4rem;
  margin-right: 15px;
  color: #fff;
  transition: var(--transition);
}
.social-icons a:hover,
.payment-icons i:hover {
  color: var(--secondary-color);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* ========== Floating Buttons ========== */
.floating-btn {
  position: fixed;
  z-index: 1200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid #ddd;
  font-size: 20px;
  text-align: center;
  line-height: 48px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}
.floating-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: transparent;
}
#backToTopBtn { bottom: 60px; right: 20px; display: none; }
#whatsappBtn  { bottom: 110px; right: 20px; }
#cookie-settings-btn { bottom: 170px; left: 20px; }

/* ========== Cookie Box ========== */
#cookie-consent-box {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: auto;
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  font-family: var(--font);
  z-index: 9999;
  animation: slideUp 0.4s ease-out;
}
#cookie-consent-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin: 0 0 12px;
}
#cookie-consent-box p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}
#cookie-consent-box label {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}
#cookie-consent-box input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}
#cookie-consent-box button {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 10px;
}
#accept-all {
  background-color: var(--primary-color);
  color: #fff;
}
#accept-all:hover {
  background-color: #a9103e;
}
#accept-selected {
  background-color: #f0f0f0;
  color: #333;
}
#accept-selected:hover {
  background-color: #ddd;
}
@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    line-height: 44px;
  }
  #backToTopBtn { bottom: 60px; }
  #whatsappBtn { bottom: 110px; }
  #cookie-settings-btn { bottom: 170px; }
}
/* ========== Cart Page Styles ========== */
.cart-container {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
  font-family: 'Inter', sans-serif;
}

.cart-container h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.cart-table th,
.cart-table td {
  padding: 14px;
  border: 1px solid #ddd;
  text-align: left;
}

.cart-table th {
  background-color: #f7f7f7;
  font-weight: 600;
}

.cart-table td a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.cart-table td a:hover {
  text-decoration: underline;
}

.btn-red {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-red:hover {
  background-color: var(--primary-color-hover);
}

/* ========== Empfohlene Produkte (Recommended Products) ========== */
.recommended-title {
  margin-top: 50px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-gray);
}

.recommended-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.recommended-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.recommended-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
}

.recommended-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #222;
}

.recommended-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
}

.recommended-card .btn-red {
  font-size: 0.9rem;
  padding: 8px 14px;
}

.recommended-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Responsive for Recommended Products */
@media (max-width: 768px) {
  .recommended-grid {
    flex-direction: column;
    align-items: center;
  }
  .recommended-card {
    width: 100%;
    max-width: 350px;
  }
}
/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--btn-radius);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background: var(--light-bg);
}

/* Hero */
.hero {
  background: url('/assets/banner.webp') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 200px 20px 80px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    background-image: url('/assets/Banner-mobile.jpg');
    padding: 150px 20px 60px;
  }
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-red {
  background-image: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-red:hover {
  opacity: 0.9;
}

/* Products Section */
#produkte {
  padding: 70px 20px;
  text-align: center;
}

#produkte h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.product-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.product-card .price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: white;
  padding: 10px 18px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-details:hover {
  background: var(--secondary-color);
}

/* FAQ Section */
/* FAQ Section */
#faq {
  background: #fff;
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 70px;
}

#faq .container {
  max-width: 1100px;
  margin: 0 auto;
}

#faq h2 {
  font-size: 2.5rem;
  margin-bottom: 35px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  user-select: none;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  background: var(--light-bg);
  padding: 16px 25px;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: var(--btn-radius);
  transition: background-color 0.3s ease;
  color: var(--primary-color);
  position: relative;
}

.faq-question i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.faq-question:hover {
  background-color: #e6e6e6;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 25px;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
  font-size: 1rem;
  color: #444;
}

.faq-answer.show {
  max-height: 400px;
  opacity: 1;
  padding: 20px 25px;
}

/* Kontakt Section */
#kontakt {
  background: #fff;
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 70px;
}

#kontakt .container {
  max-width: 1100px;
  margin: 0 auto;
}

#kontakt h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
}

.kontakt-form {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1.5px solid #ccc;
  border-radius: var(--btn-radius);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

.kontakt-form button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 14px 35px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kontakt-form button:hover {
  background: #a31441;
}


/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  #produkte h2,
  #faq h2,
  #kontakt h2 {
    font-size: 1.8rem;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
  }
  .btn-red {
    font-size: 1rem;
    padding: 12px 24px;
  }
}
#vorteile {
  background: #fdfdfd;
  padding: 70px 20px;
  text-align: center;
}

#vorteile h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.vorteil-box {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.vorteil-box:hover {
  transform: translateY(-5px);
}

.vorteil-box i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.vorteil-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.vorteil-box p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  #vorteile h2 {
    font-size: 1.8rem;
  }

  .vorteil-box {
    padding: 20px 15px;
  }
}
.logout-link {
  display: block;
  margin: 20px 0 0 10px;
  color: #b30000;
  text-decoration: none;
  font-weight: bold;
}

.logout-link:hover {
  text-decoration: underline;
}
/* === Login & Register Page === */
.login-register-page * {
  box-sizing: border-box;
}
.login-register-page .container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 16px rgba(60,0,33,0.07);
}
.login-register-page .tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
}
.login-register-page .tab {
  padding: 12px 32px;
  border: 1px solid #e3e3e3;
  border-bottom: none;
  background: #f9f9f9;
  color: #333;
  border-radius: 8px 8px 0 0;
  margin: 0 7px;
  font-size: 1.1rem;
  transition: background 0.3s, color 0.3s;
  font-weight: 500;
}
.login-register-page .tab:hover {
  background: #f5f5fa;
}
.login-register-page .tab.active {
  background-color: #c81755;
  color: #fff;
  font-weight: bold;
}
.login-register-page .tab-content {
  border: 1px solid #e3e3e3;
  padding: 32px 22px 24px 22px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  min-height: 340px;
  animation: fadeIn 0.4s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);}
  to   { opacity: 1; transform: translateY(0);}
}

.login-register-page .errors {
  background: #f8d7da;
  padding: 12px 17px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #842029;
  border: 1px solid #f1aeb5;
  font-size: 1.04rem;
}
.login-register-page .errors ul {
  margin: 0;
  padding-left: 20px;
}
.success-message {
  background: #e0ffe0;
  color: #207520;
  padding: 14px 20px;
  border-radius: 7px;
  margin-bottom: 22px;
  border: 1px solid #b0deb0;
  font-weight: bold;
  text-align: center;
  font-size: 1.08rem;
  animation: fadeIn 0.4s;
}
.login-register-page label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #27262b;
}
.login-register-page input[type="text"],
.login-register-page input[type="email"],
.login-register-page input[type="password"],
.login-register-page textarea {
  width: 100%;
  padding: 11px 10px;
  margin-top: 4px;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  background: #fafafb;
  color: #202023;
  transition: border 0.2s;
}
.login-register-page input:focus,
.login-register-page textarea:focus {
  border-color: #c81755;
  outline: none;
  background: #fff;
}
.login-register-page button {
  margin-top: 28px;
  padding: 13px 0;
  background-color: #c81755;
  border: none;
  width: 100%;
  color: #fff;
  font-size: 1.11rem;
  font-weight: bold;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: 0.05rem;
  box-shadow: 0 2px 10px rgba(200,23,85,0.08);
  transition: background 0.2s;
}
.login-register-page button:hover {
  background-color: #a31445;
}

@media (max-width: 768px) {
  .login-register-page .container {
    padding: 13px 3vw;
    box-shadow: none;
    border-radius: 0;
  }
  .login-register-page .tab {
    flex: 1;
    font-size: 1rem;
    padding: 12px 3px;
  }
  .login-register-page .tab-content {
    padding: 17px 3vw 10px 3vw;
    min-height: 250px;
  }
  .login-register-page button {
    font-size: 1rem;
  }
}

/* === Product Details Container === */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  max-width: 1100px;
  margin: 60px auto 55px auto;
  padding: 28px 20px 30px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e5e5e7;
  box-shadow: 0 8px 32px rgba(23,119,155,0.08);
}

/* === Product Image === */
.product-image {
  flex: 1 1 340px;
  max-width: 400px;
  align-self: flex-start;
  padding: 14px 8px;
}
.product-image img {
  width: 100%;
  border-radius: 9px;
  border: none;
  object-fit: contain;
  background: #fff;
  min-height: 220px;
}

/* === Product Details (Form) === */
.product-details {
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 270px;
}
.product-details h1 {
  font-size: 2.2rem;
  color: var(--secondary-color);
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.product-details p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.93;
}
.product-details label {
  font-weight: 600;
  margin: 11px 0 5px 0;
  color: var(--primary-color);
  font-size: 1.06rem;
}
.product-details input[type="number"],
.product-details input[type="file"] {
  padding: 12px 13px;
  font-size: 1.02rem;
  border: 1.6px solid #dde2e7;
  border-radius: 8px;
  background-color: #fafbfc;
  font-family: inherit;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 14px;
  transition: border 0.17s;
}
.product-details input[type="number"]:focus,
.product-details input[type="file"]:focus {
  border-color: var(--secondary-color);
  outline: none;
  background: #fff;
}
/* Checkbox */
.product-details input[type="checkbox"] {
  transform: scale(1.15);
  margin-right: 8px;
}

/* ==== Main Button ==== */
.product-details button[type="submit"] {
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.13rem;
  cursor: pointer;
  margin-top: 5px;
  box-shadow: 0 2px 10px rgba(169,16,62,0.07);
  transition: background 0.21s, box-shadow 0.21s;
  letter-spacing: 0.5px;
}
.product-details button[type="submit"]:hover {
  background: var(--primary-color);
  box-shadow: 0 3px 18px rgba(23,119,155,0.08);
}
#total_price {
  font-size: 1.26rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 0.3px;
  margin-top: 8px;
}

/* === Description Section === */
.product-description {
  max-width: 1100px;
  margin: 36px auto 0 auto;
  padding: 32px 26px 28px 26px;
  background: #fff;
  border-radius: 13px;
  border: 1.5px solid #e0e0e0;
  font-size: 1.07rem;
  line-height: 1.7;
  color: var(--text-color);
  box-shadow: 0 3px 15px rgba(23,119,155,0.03);
}
.product-description h2 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 17px;
  font-weight: 800;
}

/* === Responsive === */
@media (max-width: 992px) {
  .product-container {
    flex-direction: column;
    padding: 18px 4vw;
    gap: 30px;
  }
  .product-image {
    max-width: 100%;
    margin: 0 auto 20px auto;
  }
  .product-details h1 {
    font-size: 1.4rem;
  }
  .product-description {
    padding: 19px 2vw;
    margin: 28px 6px 0 6px;
  }
}
@media (max-width: 520px) {
  .product-details,
  .product-container,
  .product-description {
    padding: 9px 2vw;
  }
  .product-description h2 {
    font-size: 1.08rem;
  }
}

/* ========== Footer ========== */
footer {
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font);
  padding: 50px 20px 100px;
  user-select: none;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-column {
  flex: 1 1 220px;
  min-width: 220px;
}
.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column li {
  margin-bottom: 8px;
}
.footer-column a {
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.footer-column a:hover {
  color: var(--secondary-color);
}
.social-icons a,
.payment-icons i {
  font-size: 1.4rem;
  margin-right: 15px;
  color: #fff;
  transition: var(--transition);
}
.social-icons a:hover,
.payment-icons i:hover {
  color: var(--secondary-color);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* ========== Floating Buttons ========== */
.floating-btn {
  position: fixed;
  z-index: 1200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid #ddd;
  font-size: 20px;
  text-align: center;
  line-height: 48px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}
.floating-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: transparent;
}
#backToTopBtn { bottom: 60px; right: 20px; display: none; }
#whatsappBtn  { bottom: 110px; right: 20px; }
#cookie-settings-btn { bottom: 170px; left: 20px; }

/* ========== Cookie Box ========== */
#cookie-consent-box {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: auto;
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  font-family: var(--font);
  z-index: 9999;
  animation: slideUp 0.4s ease-out;
}
#cookie-consent-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin: 0 0 12px;
}
#cookie-consent-box p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}
#cookie-consent-box label {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}
#cookie-consent-box input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}
#cookie-consent-box button {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 10px;
}
#accept-all {
  background-color: var(--primary-color);
  color: #fff;
}
#accept-all:hover {
  background-color: #a9103e;
}
#accept-selected {
  background-color: #f0f0f0;
  color: #333;
}
#accept-selected:hover {
  background-color: #ddd;
}
@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    line-height: 44px;
  }
  #backToTopBtn { bottom: 60px; }
  #whatsappBtn { bottom: 110px; }
  #cookie-settings-btn { bottom: 170px; }
}
/* ========== Cart Page Styles ========== */
.cart-container {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
  font-family: 'Inter', sans-serif;
}

.cart-container h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.cart-table th,
.cart-table td {
  padding: 14px;
  border: 1px solid #ddd;
  text-align: left;
}

.cart-table th {
  background-color: #f7f7f7;
  font-weight: 600;
}

.cart-table td a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.cart-table td a:hover {
  text-decoration: underline;
}

.btn-red {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-red:hover {
  background-color: var(--primary-color-hover);
}

/* ========== Empfohlene Produkte (Recommended Products) ========== */
.recommended-title {
  margin-top: 50px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-gray);
}

.recommended-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.recommended-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.recommended-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
}

.recommended-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #222;
}

.recommended-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
}

.recommended-card .btn-red {
  font-size: 0.9rem;
  padding: 8px 14px;
}

.recommended-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Responsive for Recommended Products */
@media (max-width: 768px) {
  .recommended-grid {
    flex-direction: column;
    align-items: center;
  }
  .recommended-card {
    width: 100%;
    max-width: 350px;
  }
}
/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--btn-radius);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background: var(--light-bg);
}

/* Hero */
.hero {
  background: url('/assets/banner.webp') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 200px 20px 80px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    background-image: url('/assets/Banner-mobile.jpg');
    padding: 150px 20px 60px;
  }
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-red {
  background-image: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-red:hover {
  opacity: 0.9;
}

/* Products Section */
#produkte {
  padding: 70px 20px;
  text-align: center;
}

#produkte h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.product-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.product-card .price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: white;
  padding: 10px 18px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-details:hover {
  background: var(--secondary-color);
}

/* FAQ Section */
/* FAQ Section */
#faq {
  background: #fff;
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 70px;
}

#faq .container {
  max-width: 1100px;
  margin: 0 auto;
}

#faq h2 {
  font-size: 2.5rem;
  margin-bottom: 35px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  user-select: none;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  background: var(--light-bg);
  padding: 16px 25px;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: var(--btn-radius);
  transition: background-color 0.3s ease;
  color: var(--primary-color);
  position: relative;
}

.faq-question i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.faq-question:hover {
  background-color: #e6e6e6;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 25px;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
  font-size: 1rem;
  color: #444;
}

.faq-answer.show {
  max-height: 400px;
  opacity: 1;
  padding: 20px 25px;
}

/* Kontakt Section */
#kontakt {
  background: #fff;
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 70px;
}

#kontakt .container {
  max-width: 1100px;
  margin: 0 auto;
}

#kontakt h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
}

.kontakt-form {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1.5px solid #ccc;
  border-radius: var(--btn-radius);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

.kontakt-form button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 14px 35px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kontakt-form button:hover {
  background: #a31441;
}


/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  #produkte h2,
  #faq h2,
  #kontakt h2 {
    font-size: 1.8rem;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
  }
  .btn-red {
    font-size: 1rem;
    padding: 12px 24px;
  }
}
#vorteile {
  background: #fdfdfd;
  padding: 70px 20px;
  text-align: center;
}

#vorteile h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.vorteil-box {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.vorteil-box:hover {
  transform: translateY(-5px);
}

.vorteil-box i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.vorteil-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.vorteil-box p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  #vorteile h2 {
    font-size: 1.8rem;
  }

  .vorteil-box {
    padding: 20px 15px;
  }
}
.logout-link {
  display: block;
  margin: 20px 0 0 10px;
  color: #b30000;
  text-decoration: none;
  font-weight: bold;
}

.logout-link:hover {
  text-decoration: underline;
}
/* === Login & Register Page === */
.login-register-page * {
  box-sizing: border-box;
}
.login-register-page .container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 16px rgba(60,0,33,0.07);
}
.login-register-page .tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
}
.login-register-page .tab {
  padding: 12px 32px;
  border: 1px solid #e3e3e3;
  border-bottom: none;
  background: #f9f9f9;
  color: #333;
  border-radius: 8px 8px 0 0;
  margin: 0 7px;
  font-size: 1.1rem;
  transition: background 0.3s, color 0.3s;
  font-weight: 500;
}
.login-register-page .tab:hover {
  background: #f5f5fa;
}
.login-register-page .tab.active {
  background-color: #c81755;
  color: #fff;
  font-weight: bold;
}
.login-register-page .tab-content {
  border: 1px solid #e3e3e3;
  padding: 32px 22px 24px 22px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  min-height: 340px;
  animation: fadeIn 0.4s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);}
  to   { opacity: 1; transform: translateY(0);}
}

.login-register-page .errors {
  background: #f8d7da;
  padding: 12px 17px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #842029;
  border: 1px solid #f1aeb5;
  font-size: 1.04rem;
}
.login-register-page .errors ul {
  margin: 0;
  padding-left: 20px;
}
.success-message {
  background: #e0ffe0;
  color: #207520;
  padding: 14px 20px;
  border-radius: 7px;
  margin-bottom: 22px;
  border: 1px solid #b0deb0;
  font-weight: bold;
  text-align: center;
  font-size: 1.08rem;
  animation: fadeIn 0.4s;
}
.login-register-page label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #27262b;
}
.login-register-page input[type="text"],
.login-register-page input[type="email"],
.login-register-page input[type="password"],
.login-register-page textarea {
  width: 100%;
  padding: 11px 10px;
  margin-top: 4px;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  background: #fafafb;
  color: #202023;
  transition: border 0.2s;
}
.login-register-page input:focus,
.login-register-page textarea:focus {
  border-color: #c81755;
  outline: none;
  background: #fff;
}
.login-register-page button {
  margin-top: 28px;
  padding: 13px 0;
  background-color: #c81755;
  border: none;
  width: 100%;
  color: #fff;
  font-size: 1.11rem;
  font-weight: bold;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: 0.05rem;
  box-shadow: 0 2px 10px rgba(200,23,85,0.08);
  transition: background 0.2s;
}
.login-register-page button:hover {
  background-color: #a31445;
}

@media (max-width: 768px) {
  .login-register-page .container {
    padding: 13px 3vw;
    box-shadow: none;
    border-radius: 0;
  }
  .login-register-page .tab {
    flex: 1;
    font-size: 1rem;
    padding: 12px 3px;
  }
  .login-register-page .tab-content {
    padding: 17px 3vw 10px 3vw;
    min-height: 250px;
  }
  .login-register-page button {
    font-size: 1rem;
  }
}
.client-dashboard {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1250px;
  margin: 60px auto 70px auto;
  gap: 38px;
  padding: 0 16px;
}

/* ===== Sidebar ===== */
.client-dashboard .dashboard-sidebar {
  background: #f7f9fa;
  border-radius: var(--radius);
  box-shadow: 0 2px 18px rgba(23, 119, 155, 0.08);
  min-width: 230px;
  max-width: 270px;
  padding: 33px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.client-dashboard .dashboard-user-info {
  font-weight: bold;
  color: var(--secondary-color);
  font-size: 1.11rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}
.client-dashboard .dashboard-user-info i {
  color: var(--primary-color);
  font-size: 1.5em;
}

.client-dashboard .dashboard-tab-btn {
  background: none;
  border: none;
  padding: 11px 7px;
  font-size: 1.06rem;
  color: var(--dark-gray);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  transition: background 0.17s, color 0.19s;
  margin-bottom: 2px;
  outline: none;
}
.client-dashboard .dashboard-tab-btn.active,
.client-dashboard .dashboard-tab-btn:focus {
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
}

.client-dashboard .dashboard-sidebar hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0 10px 0;
}

.client-dashboard .dashboard-logout-link {
  color: var(--secondary-color);
  font-weight: 700;
  margin-top: 7px;
  text-decoration: none;
  padding: 7px 6px;
  border-radius: 7px;
  transition: background 0.19s;
  display: inline-block;
}
.client-dashboard .dashboard-logout-link:hover {
  background: #ffe0ea;
}

/* ===== Content Wrapper ===== */
.client-dashboard .dashboard-content {
  flex: 1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 18px rgba(23,119,155,0.07);
  padding: 36px 34px 34px 34px;
  min-width: 0;
  max-width: 700px;
}

.client-dashboard .dashboard-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 23px;
  letter-spacing: 0.3px;
}

.client-dashboard label {
  display: block;
  margin-bottom: 13px;
  font-weight: 600;
  color: var(--dark-gray);
}
.client-dashboard input[type="text"],
.client-dashboard input[type="email"],
.client-dashboard input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #dde2e7;
  border-radius: 7px;
  font-size: 1rem;
  margin-top: 5px;
  background: #fafbfc;
  margin-bottom: 17px;
  transition: border 0.17s;
}
.client-dashboard input[type="text"]:focus,
.client-dashboard input[type="email"]:focus,
.client-dashboard input[type="password"]:focus {
  border-color: var(--primary-color);
  outline: none;
  background: #fff;
}

.client-dashboard .dashboard-btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1.09rem;
  border: none;
  cursor: pointer;
  transition: background 0.21s;
  background: var(--primary-color);
  color: #fff;
  margin-top: 8px;
}
.client-dashboard .dashboard-btn-primary {
  background: var(--primary-color);
  color: #fff;
}
.client-dashboard .dashboard-btn-primary:hover,
.client-dashboard .dashboard-btn-primary:focus {
  background: var(--secondary-color);
}
.client-dashboard .dashboard-btn-secondary {
  background: var(--secondary-color);
  color: #fff;
}
.client-dashboard .dashboard-btn-secondary:hover {
  background: var(--primary-color);
}
.client-dashboard .dashboard-btn-edit {
  background: #eee;
  color: var(--primary-color);
  padding: 7px 18px;
  font-size: .98rem;
  margin-left: 14px;
  margin-bottom: 6px;
  transition: background 0.15s, color 0.17s;
  border-radius: 6px;
}
.client-dashboard .dashboard-btn-edit:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ==== Tables ==== */
.client-dashboard .dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 0 0;
  background: #f9f9fb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(23,119,155,0.04);
}
.client-dashboard .dashboard-table th,
.client-dashboard .dashboard-table td {
  padding: 12px 11px;
  text-align: left;
}
.client-dashboard .dashboard-table th {
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: 0.4px;
}
.client-dashboard .dashboard-table td {
  background: #fff;
  color: var(--dark-gray);
  font-size: 1.03rem;
}
.client-dashboard .dashboard-table tr:nth-child(even) td {
  background: #f4f7fa;
}

/* ==== Address List ==== */
.client-dashboard .dashboard-address-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}
.client-dashboard .dashboard-address-list li {
  background: #f7f9fa;
  margin-bottom: 12px;
  padding: 14px 10px;
  border-radius: 7px;
  font-size: 1.05rem;
  box-shadow: 0 1px 4px rgba(23,119,155,0.04);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

/* ==== Edit Address Form ==== */
.client-dashboard .dashboard-edit-address {
  margin-top: 7px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(23,119,155,0.05);
  padding: 13px 10px 4px 10px;
}

/* ==== Messages ==== */
.client-dashboard .dashboard-message-success,
.client-dashboard .dashboard-message-error {
  padding: 13px 15px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1.07rem;
  margin-bottom: 17px;
  border-left: 5px solid var(--primary-color);
}
.client-dashboard .dashboard-message-success {
  background: #e9fcf3;
  color: #168753;
  border-left-color: #16bb63;
}
.client-dashboard .dashboard-message-error {
  background: #ffefef;
  color: #bc2525;
  border-left-color: #e05656;
}

/* ==== Add New Address Form ==== */
.client-dashboard form[method="post"] {
  margin-bottom: 14px;
}
.client-dashboard h3 {
  font-size: 1.13rem;
  color: var(--secondary-color);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

/* ==== Responsive ==== */
@media (max-width: 1000px) {
  .client-dashboard {
    flex-direction: column;
    gap: 25px;
    padding: 0 6px;
  }
  .client-dashboard .dashboard-sidebar {
    position: static;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    margin-bottom: 14px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 10px;
    box-shadow: none;
  }
  .client-dashboard .dashboard-user-info {
    margin-bottom: 0;
  }
}

@media (max-width: 650px) {
  .client-dashboard .dashboard-content {
    padding: 15px 7px;
    box-shadow: none;
    border-radius: 0;
  }
  .client-dashboard .dashboard-sidebar {
    border-radius: 0;
    padding: 10px 2vw;
  }
  .client-dashboard {
    margin: 28px 0 45px 0;
  }
}

@media (max-width: 450px) {
  .client-dashboard .dashboard-content h2 {
    font-size: 1.08rem;
  }
}
