/* 
=======================================
   SOULSIZE PRODUKTE CSS
   Alle Styles für Product Cards, Details und Listen
=======================================
*/

/* ======================
   PRODUCT CARDS
====================== */
.product-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    height: 100%;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f8f9fa;
}

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

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

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

/* ======================
   PRODUCT BADGES
====================== */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--orange-color, #D97706);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-new-badge {
    background: #28a745;
}

.product-limited-badge {
    background: #6f42c1;
}

/* ======================
   PRODUCT CONTENT
====================== */
.product-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 280px);
}

.product-brand {
    background: var(--orange-color, #D97706);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #212529;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: var(--orange-color, #D97706);
    text-decoration: none;
}

/* ======================
   PRODUCT ATTRIBUTES
====================== */
.product-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 0.5rem;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    position: relative;
}

.color-dot.white {
    border-color: #adb5bd;
}

.color-dot-lg {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
}

.color-dot-lg.white {
    border-color: #dee2e6 !important;
}

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.size-badge {
    background: #f8f9fa;
    color: #6c757d;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.size-badge.available {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.size-badge.unavailable {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    text-decoration: line-through;
}

/* ======================
   PRODUCT PRICING
====================== */
.product-price-section {
    margin-top: auto;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.product-original-price {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-discount {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.product-partner {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ======================
   PRODUCT QUICK ACTIONS
====================== */
.product-quick-action {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    border: 2px solid var(--orange-color, #D97706);
    color: var(--orange-color, #D97706);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 3;
}

.product-card:hover .product-quick-action {
    opacity: 1;
    transform: translateY(0);
}

.product-quick-action:hover {
    background: var(--orange-color, #D97706);
    color: white;
}

/* ======================
   PRODUCT GRID
====================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-content {
        height: calc(100% - 220px);
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
}

/* ======================
   PRODUCT DETAIL PAGE
====================== */
.product-detail {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.product-gallery {
    position: relative;
}

.product-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    background: #f8f9fa;
}

.product-thumbnail-nav {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    opacity: 1;
}

.product-detail-content {
    padding: 2rem;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-color, #D97706);
    margin-bottom: 1rem;
}

/* ======================
   PRODUCT ACTIONS
====================== */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-add-to-cart {
    background: var(--orange-color, #D97706);
    border-color: var(--orange-color, #D97706);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-add-to-cart:hover {
    background: var(--orange-hover, #B45309);
    border-color: var(--orange-hover, #B45309);
    color: white;
    transform: translateY(-1px);
}

.btn-wishlist {
    background: white;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-wishlist:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-wishlist.active {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* ======================
   PRODUCT SPECIFICATIONS
====================== */
.product-specs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.product-specs-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.product-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs-list li {
    display: flex;
    justify-content: between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.product-specs-list li:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #495057;
}

.spec-value {
    color: #6c757d;
}

/* ======================
   PRODUCT RECOMMENDATIONS
====================== */
.recommendations-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.recommendations-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #212529;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* ======================
   IMAGE CONTAINERS
====================== */
.image-flex-container {
    display: flex;
    height: 300px;
    width: 100%;
    background: #f8f9fa;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.image-flex-container img {
    flex: 1;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.image-flex-container:hover img {
    transform: scale(1.05);
}

/* ======================
   LOADING STATES
====================== */
.product-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.spinner-lg {
    width: 2rem !important;
    height: 2rem !important;
}