/* Rinor STUBLLA */


:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-light-gray: #f5f5f5;
    --color-gray: #e6e6e6;
    --color-gray-light: #555555;
    --color-dark-gray: #ddd;
    --color-medium-gray: #ccc;
    --color-soft-gray: #777;
    --color-deep-gray: #727272;
    --color-border-gray: #e0e0e0;
    --color-strong-black: #111;
    --color-strong-black-alpha: #111111ce;
    --color-red: #e00;
    --color-dark-red: #c00;
    --color-light-red: #ffe6e6;
    --color-green: #0c0;
    --color-light-green-bg: #04d1481a;
    --color-star-yellow: #ffc107;
    --color-related-product: rgb(254, 254, 254);
    --color-related-img:#f5f5f5 ;
    --color-badge: #e00;
    --color-badge-hover:#ffe6e6;
    --color-stock-yellow: #fff9d8;

    --color-bg-lighter: #f7f7f7;
--color-border-light: #e0e0e0;
 --color-red-primary: #e00;
 --color-text-muted: #111111ce;
 --color-text-default: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--color-gray);
}

.breadcrumb {
    padding: 12px 20px;
    background-color: var(--color-bg-lighter);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumb a::after {
    content: "›";
    margin: 0 10px;
    color: var(--color-red-primary);
    display: inline-block;
    text-decoration: none;
}

.breadcrumb a:hover::after {
    text-decoration: none;
}


.breadcrumb a:hover {
    color: var(--color-text-muted);
    text-decoration: underline;
}


.breadcrumb span {
    color: var(--color-text-default);
    font-weight: bold;
}


.product-container {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
}

.product-gallery {
    width: 45%;
    background-color: var(--color-white);
    padding: 20px;
    border: 1px solid var(--color-dark-gray);
    border-radius: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    background-color: var(--color-light-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-row {
    display: flex;
    justify-content: start;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid var(--color-dark-gray);
    padding: 5px;
    cursor: pointer;
}

.thumbnail:hover {
    border-color: var(--color-red);
}

.thumbnail.active {
    border-color: var(--color-red);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-details {
    width: calc(55% - 30px);
    background-color: var(--color-white);
    padding: 20px;
    border: 1px solid var(--color-dark-gray);
    border-radius: 20px;
}

.product-badge {
    display: inline-block;
    background-color: var(--color-red);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    border-radius: 8px;
}

.sale {
    background-color: var(--color-red);
}

.product-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-black);
}

.product-short-description {
    font-size: 15px;
    color: var(--color-deep-gray);
    margin-bottom: 20px;
}

.product-id {
    font-size: 14px;
    color: var(--color-soft-gray);
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    color: var(--color-star-yellow);
    margin-right: 10px;
}

.reviews-count {
    color: var(--color-soft-gray);
    font-size: 14px;
}

.price-container {
    margin-bottom: 25px;
}

.old-price {
    color: var(--color-soft-gray);
    font-size: 15px;
    margin-right: 12px;
    text-decoration: line-through;
    display: inline-block;
    vertical-align: middle;
}

.old-price .price-prefix {
    font-size: 14px;      /* kleiner als normal */
    vertical-align: top;
    opacity: 0.7;
}

.price {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-black);
    display: inline-block;
    vertical-align: middle;
}

.onsale {
    color: var(--color-red);

}

.price-prefix {
    font-size: 20px;
    vertical-align: top;
}

.price-info span {
    color: var(--color-green);
}

.tax-info {
    font-size: 12px;
    color: var(--color-soft-gray);
}

.stock-status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 50px;
    margin-top: 20px;
    padding: 8px;
    border-radius: 8px;
}

.stock-status.green {
    background-color: var(--color-light-green-bg);
    border-left: var(--color-green) solid 4px;
}
.stock-status.yellow {
    background-color: var(--color-stock-yellow); /* Gelb #9e9775*/
    border-left: #ffcc00 solid 4px;
}

.stock-status.red {
    background-color: #fac2c2;  
    border-left: #e00 solid 4px;
}

.stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: var(--color-green); /* Standard: grün */
}

/* Zusätzliche Farben für gelb und rot */
.stock-dot.yellow {
    background-color: #ffcc00; /* Gelb */
}
.stock-dot.red {
    background-color: #e00;    /* Rot */
}

/* Optional: explizite green-Variante (falls du magst) */
.stock-dot.green {
    background-color: var(--color-green);
}

.stock-text {
    font-size: 14px;
    color: var(--color-green); /* Standard: grün */
}

.stock-text.yellow {
    color: #ffcc00;
}

.stock-text.red {
    color: #e00;
}

.stock-text.green {
    color: var(--color-green);
}


.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-selector {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.qty-selector label {
    margin-right: 10px;
    font-size: 14px;
    color: var(--color-deep-gray);
}

.qty-input {
    display: flex;
    border: 1px solid var(--color-dark-gray);

}


.qty-btn {
    width: 30px;
    height: 38px;
    background-color: var(--color-light-gray);
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--color-black);
}

.qty-btn:hover {
    background-color: var(--color-dark-gray);
}

.qty-value {
    width: 40px;
    height: 38px;
    border: none;
    border-left: 1px solid var(--color-dark-gray);
    border-right: 1px solid var(--color-dark-gray);
    text-align: center;
   
}

.buy-btn {
    display: block;
    background-color: var(--color-red);
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.buy-btn.disabled {
    background-color: #d6d6d6;          
    color: #888888;                      
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
    border: none;
    pointer-events: none;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: none;
}


.buy-btn:hover {
    background-color: var(--color-dark-red);
    transform: translateY(-1px);
}

.wishlist-btn {
    display: block;
    background-color: var(--color-strong-black);
    color: var(--color-white);
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 20px;
}

.wishlist-btn:hover {
    background-color: var(--color-gray-light);
    transform: translateY(-1px);
}

.additional-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    align-items: center;
    justify-content: center;
}

.info-badge {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    background-color: var(--color-white);
    border: 1px solid var(--color-badge);
    border-radius: 20px;
    color: var(--color-badge);
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.info-badge:hover {
    background-color: var(--color-badge-hover);
    transform: translateY(-3px);
}

.specs-list {
    list-style: none;
    margin-bottom: 30px;
}

.specs-list li {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    color: var(--color-deep-gray);
}

.specs-list li::before {
    content: "›";
    margin-right: 8px;
    color: var(--color-red);
    font-size: 18px;
    line-height: 1;
}

.tabs {
    width: 100%;
    margin-top: 40px;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid var(--color-dark-gray);
}

.tab-item {
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-black);
}

.tab-item.active {
    border-bottom: 2px solid var(--color-red);
    color: var(--color-red);
    margin-bottom: -2px;
}

.tab-content {
    padding: 30px 0;
    background-color: var(--color-white);
    border: 1px solid var(--color-dark-gray);
    border-top: none;
    padding: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.tab-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--color-black);
}

.tab-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--color-deep-gray);
}

.specs-table-container {
    width: 100%;
    margin-top: 30px;
    background-color: var(--color-white);
    border: 1px solid var(--color-dark-gray);
    padding: 20px;
    border-radius: 20px;
    
}

.specs-table-container h3 {
    margin-bottom: 20px;
    color: var(--color-black);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-deep-gray);
}

.specs-table tr:nth-child(odd) {
    background-color: var(--color-light-gray);
}

.specs-table td {
    padding: 12px;
    font-size: 14px;
}

.specs-table td:first-child {
    width: 30%;
    font-weight: bold;
}

.related-products {
    width: 100%;
    margin-top: 50px;
    background-color: var(--color-white);
    border: 1px solid var(--color-dark-gray);
    padding: 20px;
    border-radius: 20px;
}

.section-title {
    font-size: 20px;
    text-transform: uppercase;
    display: inline-block;
    color: var(--color-black);
}

.products-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-top: 20px;
}

.related-product {
    width: 100%;
    max-width: 300px;
    min-width: 280px;
    background-color: var(--color-related-product);
    border: 1px solid var(--color-dark-gray);
    padding: 15px;
    border-radius: 20px;
}

.related-product:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   
}

.related-product-image {
    width: 100%;
    height: 180px;
    background-color: var(--color-related-img);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.related-product-title {
    font-size: 16px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 10px;
    color: var(--color-black);
}

.related-product-subtitle {
    font-size: 14px;
    color: var(--color-soft-gray);
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: center;
}

.related-product-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    color: var(--color-deep-gray);
}

.related-product-btn {
    display: block;
    background-color: var(--color-red);
    color: white;
    text-align: center;
    padding: 8px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    border-radius: 20px;
}

.related-product-btn:hover {
    background-color: var(--color-dark-red);
}

.darkMode {
    --color-white: #3b3b3b;
    --color-black: #ffffff;
    --color-light-gray: #2c2c2c;
    --color-gray: #fc0000;
    --color-dark-gray: #333333;
    --color-medium-gray: #888888;
     --color-gray-light: #cfcfcf;
    --color-soft-gray: #aaaaaa;
    --color-deep-gray: #bbbbbb;
    --color-border-gray: #444444;
    --color-strong-black: #f5f5f5;
    --color-strong-black-alpha: #f5f5f5cc;
     --color-red: #e00;
    --color-dark-red: #c00;
    --color-light-red: #330000;
    --color-green: #2ecc71;
    --color-light-green-bg: #2ecc711a;
    --color-star-yellow: #ffd700;
    --color-related-product: #2c2c2c;
    --color-related-img:#3b3b3b ;
    --color-badge:#d4d4d4;
    --color-badge-hover:#505050;
    --color-stock-yellow: #9e9775; /* Gelb #9e9775*/

    --color-bg-lighter: #1e1e1e;
 --color-border-light: #2c2c2c;
--color-red-primary: #e00;
 --color-text-default: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
}

/* Rinor STUBLLA Ende*/




/* Laurin Schnitzer*/

/* ===================== Meldungsblock für ProductView ===================== */

.meldung-container {
  max-width: 500px;
  margin: 30px auto;
  padding: 20px 25px;
  border-radius: 16px;
  background-color: var(--color-white);
  border: 2px solid var(--color-border-gray);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  font-weight: 500;
  animation: slideFadeIn 0.5s ease-out;
}

.meldung-erfolg {
  background-color: var(--color-light-green-bg);
  border-color: var(--color-green);
  color: var(--color-green);
}

.meldung-fehler {
  background-color: var(--color-light-red);
  border-color: var(--color-red);
  color: var(--color-red);
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Laurin Schnitzer Ende*/

