/* =========================================
   CSS VARIABLEN FÜR THEME SUPPORT
   ========================================= */
   :root {
    --text-color: #f5f5f7;
    --background-color: #121212;
    --card-bg-color: rgba(40, 40, 40, 0.3);
    --modal-bg-color: #1f1f1f;
    --modal-border-color: #333;
    --input-bg-color: #333;
    --button-color: #0071e3;
    --button-hover-color: #005bb5;
    --section-bg-1: #0c0c0c;
    --section-bg-2: #121212;
    --heading-color: #f5f5f7;
    --subtext-color: #a1a1a6;
    --footer-bg-color: #000000;
    --footer-text-color: #f5f5f7;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg-color: rgba(255, 255, 255, 0.05);
    --planizer-gold: linear-gradient(135deg, #daa520, #f5ce7f, #daa520);
  }
  
  /* =========================================
     BASIS-EINSTELLUNGEN
     ========================================= */
  body {
    margin: 0;
    padding-top: 70px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  /* Navbar – nutzt globale Styles aus style-Homepage.css */
  
  /* =========================================
     GOLD GRADIENT
     ========================================= */
  .gold-gradient {
    background: linear-gradient(135deg, #d4b660 0%, #c19a49 50%, #a17e32 100%);
    background-size: 200% 200%;
    animation: goldShimmer 6s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
  }
  
  @keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* =========================================
     BREADCRUMB
     ========================================= */
  .breadcrumb-container {
    padding: 20px 0;
  }
  
  .breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
  }
  
  .breadcrumb-item, .breadcrumb-item.active {
    color: var(--subtext-color);
  }
  
  .breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
  }
  
  .breadcrumb-item a:hover {
    text-decoration: underline;
  }
  
  .breadcrumb-item+.breadcrumb-item::before {
    color: var(--subtext-color);
  }
  
  /* =========================================
     PRODUCT PREVIEW SECTION
     ========================================= */
  .product-preview-section {
    padding: 30px 0 60px;
  }
  
  /* =========================================
     GALLERY (PRODUKTVORSCHAU STYLE)
     ========================================= */
  .product-gallery {
    position: relative;
    margin-bottom: 30px;
  }
  
  .product-image-container {
    border-radius: 12px;
    overflow: hidden;
    background-color: #1c1c1e;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    height: 0;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
  }
  
  .product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .product-image-container:hover img {
    transform: scale(1.05);
  }

  /* Placeholder Content für leere Galerie */
  .placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--subtext-color);
    opacity: 0.6;
  }

  .placeholder-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
  }

  .placeholder-content p {
    font-size: 1.1rem;
    margin: 0;
  }
  
  /* Swiper Navigation Buttons - versteckt für einzelne Bilder */
  .swiper-button-next, .swiper-button-prev {
    color: #daa520;
    background-color: rgba(18, 18, 18, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  
  .swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
  }
  
  /* =========================================
     PRODUCT INFO
     ========================================= */
  .product-info {
    padding: 20px;
  }
  
  .product-header {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .product-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
  }
  
  .product-description {
    font-size: 1.3rem;
    color: var(--subtext-color);
    line-height: 1.6;
    margin: 0;
  }
  
  /* =========================================
     UPLOAD SECTION
     ========================================= */
  .upload-section {
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
  }
  
  .section-description {
    font-size: 1rem;
    color: var(--subtext-color);
    margin-bottom: 2rem;
  }
  
  .upload-area {
    background: var(--card-bg-color);
    border-radius: 16px;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
  }
  
  .upload-area:hover {
    border-color: #c19a49;
    background: var(--hover-bg-color);
  }
  
  /* Single image grid for individual image upload */
  .image-grid-single {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .image-box {
    aspect-ratio: 3/4;
    width: 200px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
  }
  
  .image-box:hover {
    border-color: #c19a49;
    background: var(--hover-bg-color);
    transform: translateY(-2px);
  }
  
  .image-box.dragover {
    border-color: #c19a49;
    background: rgba(193, 154, 73, 0.1);
    transform: scale(1.02);
  }
  
  .slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: var(--subtext-color);
    font-size: 0.9rem;
  }
  
  .slot-content i {
    font-size: 2rem;
    opacity: 0.6;
  }
  
  .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .delete-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
  }
  
  .delete-button:hover {
    background: #dc3545;
    transform: scale(1.1);
  }
  
  .upload-note {
    font-size: 0.9rem;
    color: var(--subtext-color);
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  /* =========================================
     FEATURES SECTION
     ========================================= */
  .features-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 12px;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg-color);
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .feature-item:hover {
    background: var(--hover-bg-color);
    transform: translateY(-2px);
  }
  
  .feature-icon {
    font-size: 1.5rem;
    color: #c19a49;
    margin-top: 0.2rem;
    flex-shrink: 0;
  }
  
  .feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
  }
  
  .feature-content p {
    font-size: 0.9rem;
    color: var(--subtext-color);
    margin: 0;
    line-height: 1.4;
  }
  
  /* =========================================
     PURCHASE SECTION
     ========================================= */
  .purchase-section {
    background: var(--card-bg-color);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
  }
  
  .price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .price-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
  }
  
  .price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #c19a49;
  }
  
  .quantity-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
  }
  
  .quantity-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
  }
  
  .quantity-controls {
    display: flex;
    align-items: center;
    background: var(--input-bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
  }
  
  .quantity-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
  
  .quantity-btn:hover {
    background: var(--hover-bg-color);
  }
  
  #quantityInput {
    background: none;
    border: none;
    color: var(--text-color);
    text-align: center;
    width: 60px;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
  }
  
  #quantityInput:focus {
    outline: none;
  }
  
  .add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
  }
  
  .add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.3);
  }
  
  .add-to-cart-btn:active {
    transform: translateY(0);
  }
  
  .add-to-cart-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.1), rgba(255,255,255,0) 80%);
    transform: rotate(45deg);
    animation: shineEffect 3s infinite linear;
    pointer-events: none;
  }
  
  @keyframes shineEffect {
    0% { transform: translateX(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) rotate(45deg); }
  }
  
  .shipping-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--subtext-color);
    text-align: center;
    justify-content: center;
  }
  
  /* =========================================
     SPECIFICATIONS SECTION
     ========================================= */
  .specs-section {
    padding: 6rem 0;
    background-color: var(--section-bg-2);
  }
  
  .specs-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--heading-color);
  }
  
  .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .spec-item {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
  }
  
  .spec-item:hover {
    background: var(--hover-bg-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }
  
  .spec-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
  }
  
  .spec-item p {
    font-size: 1rem;
    color: var(--subtext-color);
    margin: 0;
  }
  
  /* =========================================
     MODAL STYLING
     ========================================= */
  .modal-content {
    background-color: var(--modal-bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  
  .modal-header {
    border-bottom: 1px solid var(--modal-border-color);
    padding: 1.5rem 2rem;
  }
  
  .modal-body {
    padding: 2rem;
  }
  
  .modal-footer {
    border-top: 1px solid var(--modal-border-color);
    padding: 1.5rem 2rem;
  }
  
  .modal-title {
    font-weight: 600;
    color: var(--text-color);
  }
  
  /* CROP MODAL SPEZIFISCHES STYLING - 1:1 AUS ORIGINAL */
  #cropModal {
    display: none;
  }
  
  #cropModal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  #cropModal .modal-dialog {
    max-width: 95%;
    margin: auto;
  }
  
  #cropModal .modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
  }
  
  #cropModal .modal-body {
    width: 50vw;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  
  #cropModal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .btn-close {
    background: none;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    opacity: 0.9;
    position: relative;
  }
  
  .btn-close::before,
  .btn-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    transform-origin: center;
    background: linear-gradient(90deg, #d4b660, #a17e32);
  }
  
  .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .btn-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
  }
  
  .btn-secondary {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
  }
  
  /* =========================================
     FOOTER
     ========================================= */
  footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 1rem 0;
    font-size: 0.85rem;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-container span,
  .footer-container a,
  .footer-container .payment-icons {
    color: var(--footer-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
  }
  
  .payment-icons {
    gap: 0.5rem;
  }
  
  .payment-icons img {
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
  }
  
  /* =========================================
     RESPONSIVE DESIGN
     ========================================= */
  @media (max-width: 768px) {
    .product-title {
      font-size: 2.5rem;
    }

    .product-description {
      font-size: 1.1rem;
    }
    
    .specs-title {
      font-size: 2rem;
    }
    
    .image-box {
      width: 150px;
    }
    
    .features-grid {
      grid-template-columns: 1fr;
    }

    .features-section {
      margin: 1rem 0;
      padding: 1rem;
    }
    
    .purchase-section {
      padding: 1.5rem;
    }
    
    .quantity-section {
      flex-direction: column;
      gap: 1rem;
      align-items: stretch;
    }
    
    .price-display {
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }
  }
  
  @media (max-width: 576px) {
    .product-title {
      font-size: 2rem;
    }

    .product-description {
      font-size: 1rem;
    }
    
    .upload-area {
      padding: 1rem;
    }
    
    .feature-item {
      padding: 1rem;
    }
    
    .specs-grid {
      grid-template-columns: 1fr;
    }
    
    .image-box {
      width: 120px;
    }
  }