    .product-card.placeholder {
    pointer-events: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

:root {
    --primary: #c9b58a;         /* Beige Buttonfarbe */
    --primary-hover: #a3945d;   /* Hover-Farbe */
    --background: #FAF3E6;      /* Hintergrundfarbe der Startseite */
    --white: #ffffff;
    --dark: #333333;
    --light-border: #ddd;
    --radius: 8px;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--background);
    color: var(--dark);
}

.container {
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.search-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    top: 0;
    z-index: 10;
    border: 1px solid var(--light-border);
}

.search-sort input,
.search-sort select,
.search-sort button {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: #f9fbfd;
    color: var(--dark);
}

.search-sort input,
.search-sort select {
    flex: 1;
    min-width: 180px;
}

.search-sort button {
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-sort button:hover {
    background: var(--primary-hover);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-content: center;
    gap: 1.25rem;
}

@media (max-width: 620px),
       (max-width: 599px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .product-list {
        column-gap: 1px;
    }
    .product-card {
        padding: 10px !important;
    }
    .container {
        padding: 1rem 1rem;
    }
}
@media (max-width: 475px) {
    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
        column-gap: 1px;
    }
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    border: 1px solid var(--light-border);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #7a6a4f;
}

.media-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e9eaf3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--light-border);
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card p.description {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 3.6em;
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.price {
  margin-top: auto;  /* Schiebt Preis an den unteren Rand */
  font-weight: bold;
  color: #7a6a4f;
}

.add-to-cart-btn {
  margin-top: 0.5rem;
}

.description {
    flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;         /* Anzahl der sichtbaren Zeilen */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 7.5em;             /* Falls du Fallback brauchst */
}
.product-card .price {
    font-weight: bold;
    margin-top: 0.5rem;
    color: #7a6a4f;
}

.add-to-cart-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    margin-top: auto;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Mobile-Kategorie-Menü */
.mobile-nav-toggle {
    display: block;
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: var(--radius);
}

.mobile-sidebar {
    display: none;
    background: var(--white);
    color: var(--dark);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--light-border);
}

.mobile-sidebar.active {
    display: block;
}

.mobile-sidebar h3 {
    margin-top: 0;
}

.mobile-sidebar a {
    text-decoration: none;
    color: var(--dark);
    display: block;
    padding: 0.25rem 0;
}

.mobile-sidebar a:hover {
    text-decoration: underline;
}

.product-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0.5rem 0;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-filter-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    cursor: pointer;
}

@media (max-width: 515px) {
    .mobile-filter-toggle {
        display: block;
    }

    .collapsible-filter {
        display: none;
        flex-direction: column;
    }

    .collapsible-filter.active {
        display: flex;
    }
}
.admin-button {
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: inline-block;
    transition: background 0.3s ease;
}

.admin-button:hover {
    background: var(--primary-hover);
}
:root {
    --primary: #c9b58a;         /* Beige Buttonfarbe */
    --primary-hover: #a3945d;   /* Hover-Farbe */
    --background: #FAF3E6;      /* Hintergrundfarbe der Startseite */
    --white: #ffffff;
    --dark: #333333;
    --light-border: #ddd;
    --radius: 8px;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--background);
    color: var(--dark);
}

/* Shop Section Container */
.shop-section.container {
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.search-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    top: 0;
    z-index: 10;
    border: 1px solid var(--light-border);
}

.search-sort input,
.search-sort select,
.search-sort button {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: #f9fbfd;
    color: var(--dark);
}

.search-sort input,
.search-sort select {
    flex: 1;
    min-width: 180px;
}

.search-sort button {
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-sort button:hover {
    background: var(--primary-hover);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-content: center;
    gap: 1.25rem;
}

@media (max-width: 620px),
       (max-width: 599px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .product-list {
        column-gap: 1px;
    }
    .product-card {
        padding: 10px !important;
    }
    .shop-section.container {
        padding: 1rem 1rem;
    }
}
@media (max-width: 475px) {
    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
        column-gap: 1px;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    border: 1px solid var(--light-border);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #7a6a4f;
}

.media-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e9eaf3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--light-border);
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card p.description {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 3.6em;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.price {
  margin-top: auto;  /* Schiebt Preis an den unteren Rand */
  font-weight: bold;
  color: #7a6a4f;
}

.description {
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 7.1em;
    border: none;
    outline: none;
    box-shadow: inset 0 -2px 4px -2px rgba(0, 0, 0, 0.2);
}

.product-card .price {
    font-weight: bold;
    margin-top: 0.5rem;
    color: #7a6a4f;
}

.add-to-cart-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mobile-nav-toggle {
    display: block;
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: var(--radius);
}

.mobile-sidebar {
    display: none;
    background: var(--white);
    color: var(--dark);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--light-border);
}

.mobile-sidebar.active {
    display: block;
}

.mobile-sidebar h3 {
    margin-top: 0;
}

.mobile-sidebar a {
    text-decoration: none;
    color: var(--dark);
    display: block;
    padding: 0.25rem 0;
}

.mobile-sidebar a:hover {
    text-decoration: underline;
}

.product-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0.5rem 0;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-filter-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    cursor: pointer;
}

@media (max-width: 585px) {
    .mobile-filter-toggle {
        display: block;
    }

    .collapsible-filter {
        display: none;
        flex-direction: column;
    }

    .collapsible-filter.active {
        display: flex;
    }
    #category-select{
        width: 96%;
        max-width: none;
    }
}

.admin-button {
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: inline-block;
    transition: background 0.3s ease;
}

.admin-button:hover {
    background: var(--primary-hover);
}

.product-card.placeholder {
    pointer-events: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

@media (max-width: 500px) {
    .product-card .description {
        display: none;
    }
    .product-title {
        -webkit-line-clamp: 3;
        min-height: 3.6em;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card .price {
    margin-top: auto;
}

.price {
    margin-bottom: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 0.5rem;
    font-weight: normal;
}

.discount-price {
    color: #7a6a4f;
    font-weight: bold;
    margin-right: 0.5rem;
}

.discount-percent {
    color: #e74c3c;
    font-weight: bold;
    background: #fdecea;
    padding: 0 0.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.2em;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 600px;
}

.qty-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    width: 40px;
    height: 20px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.3s;
}

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

.qty-btn:active {
    background-color: #ddd;
}

/* Links spitz, rechts spitz für Pfeiloptik */
.qty-btn:first-child {
    border-radius: 5px 0 0 5px;
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 30% 100%, 0% 50%);
}

.qty-btn:last-child {
    border-radius: 0 5px 5px 0;
    clip-path: polygon(0% 0%, 70% 0%, 100% 50%, 70% 100%, 0% 100%);
}

.qty-input {
    flex: 1;
    height: 20px;
    font-size: 16px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
@media (max-width: 900px) {
    .product-card .description {
        display: none;
    }
}
/* Custom Select – optisch passend zu deiner Filterleiste */
.custom-select {
    position: relative;
    width: 100%;
    max-width: 250px;
    cursor: pointer;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: #f9fbfd;
    padding: 0.5rem;
    font-size: 1rem;
}
.custom-select .selected { color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.custom-select .options {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 100;
}
.custom-select.active .options { display: block; }
.select-item { padding: 0.5rem; position: relative; }
.select-item .label { display: block; }
.select-item:hover { background: var(--primary); color: #fff; }
.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    min-width: 180px;
    box-shadow: var(--shadow);
}
.select-item:hover > .submenu { display: block; }
.select-item {
    padding: 0.5rem;
    position: relative;
    color: #000; /* Standard schwarz */
    background: #fff; /* Standard weiß */
}

.select-item .label {
    display: block;
    color: inherit; /* übernimmt die Textfarbe vom Eltern */
}

.select-item:hover {
    background: var(--primary);
    color: #fff; /* Hover: weiße Schrift */
}

.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    min-width: 180px;
    box-shadow: var(--shadow);
}

.select-item:hover > .submenu {
    display: block;
}
@media (max-width: 627px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 450px) {
    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1000;
}

.select-item:hover > .submenu {
    display: block;
}

/* Variante nach links */
.submenu.open-left {
    left: auto;
    right: 100%;
}

/* Variante untereinander */
.submenu.stack {
    position: relative;
    left: 0;
    right: auto;
    top: auto;
    display: block;
    box-shadow: none;
}
.submenu.stack .select-item .label {
    padding-left: 20px;
}


