/**
 * Shopware 6 Product Tile Styles
 * Modern & Minimalistic Design
 */

.sw6-product-tile {
    max-width: 400px;
    width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sw6-product-tile__inner {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sw6-product-tile__inner:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Image Section */
.sw6-product-tile__image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.sw6-product-tile__image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.sw6-product-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Content Section */
.sw6-product-tile__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.sw6-product-tile__title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.sw6-product-tile__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sw6-product-tile__title a:hover {
    color: #0066cc;
}

/* Rating */
.sw6-product-tile__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sw6-product-tile__stars {
    display: flex;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}

.sw6-product-tile__star {
    color: #d1d5db;
}

.sw6-product-tile__star--full {
    color: #fbbf24;
}

.sw6-product-tile__star--half {
    background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sw6-product-tile__rating-value {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Description */
.sw6-product-tile__description {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    flex-grow: 1;
}

/* Footer */
.sw6-product-tile__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Button */
.sw6-product-tile__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #f19712;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.sw6-product-tile__button:hover {
    background: #d8850f;
    transform: translateY(-1px);
}

.sw6-product-tile__button:active {
    transform: translateY(0);
}

/* Error State */
.sw6-product-tile--error .sw6-product-tile__inner {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.sw6-product-tile__error {
    padding: 40px 20px;
    text-align: center;
    color: #dc2626;
}

.sw6-product-tile__error-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #dc2626;
}

.sw6-product-tile__error-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 480px) {
    .sw6-product-tile {
        max-width: 100%;
        margin: 16px 0;
    }
    
    .sw6-product-tile__inner {
        border-radius: 8px;
    }
    
    .sw6-product-tile__content {
        padding: 16px;
    }
    
    .sw6-product-tile__title {
        font-size: 18px;
    }
    
    .sw6-product-tile__button {
        width: 100%;
    }
}

/* Tablet and larger */
@media (min-width: 768px) {
    .sw6-product-tile {
        max-width: 380px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .sw6-product-tile {
        max-width: 400px;
    }
    
    .sw6-product-tile__content {
        padding: 24px;
    }
}

/* Light mode always - removed dark mode for better visibility */
.sw6-product-tile__inner {
    background: #ffffff !important;
}

.sw6-product-tile__title {
    color: #1a1a1a !important;
}

.sw6-product-tile__description {
    color: #4b5563 !important;
}

.sw6-product-tile__button {
    background: #f19712 !important;
}

.sw6-product-tile__button:hover {
    background: #d8850f !important;
}

/* Print styles */
@media print {
    .sw6-product-tile__inner {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .sw6-product-tile__button {
        display: none;
    }
}

