/* Mauszeiger für Rossi-Bilder */
#marmi-hartgesteine-products .product-image-wrapper,
#marmi-kalkstein-products .product-image-wrapper {
    cursor: pointer;
}


/* Gemeinsame Grid-Basis */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
}

.product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #ced4da;
}

/* Abschnittsköpfe */
.section-header {
    margin-bottom: 30px;
}

.own-products-header {
    margin-top: 20px;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.6em;
    font-weight: 600;
}

.section-description {
    color: #6c757d;
    font-size: 1em;
    margin-bottom: 8px;
}

.section-divider {
    border: 0;
    height: 3px;
    background: linear-gradient(to right, #e9ecef 0%, #ced4da 50%, #e9ecef 100%);
    margin-bottom: 30px;
}

/* Produktbild */
.product-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    max-width: 100%;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image a,
.product-image {
    cursor: zoom-in;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Badges */
.own-badge {
    font-size: 0.7em;
    padding: 4px 10px;
    margin-bottom: 12px;
    display: inline-block;
    background: #185441;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.marmi-badge {
    font-size: 0.7em;
    padding: 4px 10px;
    margin-bottom: 12px;
    display: inline-block;
    background: #17a2b8;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

/* Marmi Rossi – Abschnitt */
.marmi-rossi-section {
    padding-top: 20px;
}

/* Marmi Rossi – Filterleiste */
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-size: 0.9em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.filter-item input,
.filter-item select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95em;
    background: white;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.filter-stats {
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.95em;
}

.filter-stats strong {
    color: #2c3e50;
    font-size: 1.1em;
}

/* Smartphone-Optimierung */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .filter-item input,
    .filter-item select {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filter-item label {
        font-size: 0.85em;
    }
    
    .filter-item input,
    .filter-item select {
        font-size: 16px;
        padding: 10px;
    }
}

/* Marmi Rossi – Produktkarten */
.marmi-block-number {
    margin-bottom: 8px;
}

.marmi-variant {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    background: #f8f9fa;
    border-radius: 4px;
}

.marmi-variant:last-child {
    margin-bottom: 0;
}

.variant-availability {
    padding-top: 8px;
    border-top: 2px solid #e9ecef;
}

.variant-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.variant-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.variant-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9em;
}

.variant-value {
    color: #2c3e50;
    font-size: 0.95em;
}

.availability-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #185441;
    color: white;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 700;
    white-space: nowrap;
    width: fit-content;
}

.availability-badge.low {
    background: #ffc107;
    color: #000;
}

/* Lade-Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6c757d;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fehler- und Leer-Zustände */
.marmi-error {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 25px;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}

.marmi-error .small {
    font-size: 0.9em;
    margin-top: 5px;
    opacity: 0.8;
}

.marmi-no-results {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

/* Lupensymbol für Marmi-Rossi-Bilder */
.marmi-products .product-image-wrapper {
    position: relative;
    cursor: zoom-in;
}

.marmi-products .product-image-wrapper::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.marmi-products .product-image-wrapper:hover::after {
    opacity: 1;
}

.marmi-products .product-image-wrapper img {
    transition: all 0.3s ease;
}

.marmi-products .product-image-wrapper:hover img {
    opacity: 0.8;
    filter: brightness(0.9);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
    line-height: 40px;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.1em;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border: none;
    z-index: 10000;
}

.lightbox-prev { left: 0;  border-radius: 0 3px 3px 0; }
.lightbox-next { right: 0; border-radius: 3px 0 0 3px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Responsive */
@media (max-width: 1400px) {
    .product-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .filter-row          { grid-template-columns: 1fr; }
    .product-grid        { grid-template-columns: repeat(2, 1fr) !important; }
    .marmi-variant       { grid-template-columns: 1fr; }
    .section-title       { font-size: 1.3em; }
    .product-image img   { height: auto; max-height: 300px; }
    .lightbox-content    { max-width: 95%; }
    .lightbox-close      { font-size: 35px; right: 15px; top: 10px; }
    .lightbox-prev,
    .lightbox-next       { font-size: 20px; padding: 12px; }
    .lightbox-caption    { font-size: 0.9em; padding: 15px 10px; }
}

@media (max-width: 480px) {
    .marmi-rossi-section { margin-top: 40px; padding-top: 20px; }
    .product-grid        { gap: 15px !important; }
    .product-info        { padding: 15px; }
}

.intro-text {
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    margin-bottom: 0rem;
}