/* =============================================
   CLEAN "YOU MAY ALSO LIKE" SECTION
   3 Products per Row, 2 Rows = 6 Products Total
   ============================================= */

/* Section Styling */
.related-products-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: linear-gradient(180deg, 
        rgba(249, 250, 251, 0) 0%,
        rgba(249, 250, 251, 1) 20%,
        rgba(249, 250, 251, 1) 80%,
        rgba(249, 250, 251, 0) 100%
    );
    position: relative;
}

/* Decorative Lines */
.related-products-section::before,
.related-products-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        color-mix(in srgb, var(--t-secondary) 50%, transparent) 50%,
        transparent 100%
    );
}

.related-products-section::before {
    top: 0;
}

.related-products-section::after {
    bottom: 0;
}

/* Header Styling */
.related-products-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-products-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--t-btn-from) 0%, var(--t-btn-to) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--t-shadow-gold);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.related-products-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.related-products-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.025em;
}

.related-products-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

/* =============================================
   CLEAN PRODUCT GRID - 3x2 Layout
   ============================================= */

.related-products-grid-clean {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* =============================================
   CLEAN PRODUCT CARD
   ============================================= */

.related-product-card-clean {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-product-card-clean::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--t-btn-from), var(--t-btn-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.related-product-card-clean:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--t-btn-from) 20%, transparent);
    border-color: transparent;
}

.related-product-card-clean:hover::before {
    opacity: 1;
}

/* =============================================
   IMAGE CONTAINER
   ============================================= */

.related-product-image-container-clean {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.related-product-image-clean {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-product-card-clean:hover .related-product-image-clean {
    transform: scale(1.08);
}

/* =============================================
   BADGES
   ============================================= */

.product-badge-clean {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-bestseller {
    background: linear-gradient(135deg, var(--t-btn-from) 0%, var(--t-btn-to) 100%);
    color: var(--t-btn-text);
}

/* =============================================
   QUICK ACTIONS (Desktop Only)
   ============================================= */

.product-quick-actions-clean {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.related-product-card-clean:hover .product-quick-actions-clean {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn-clean {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-action-btn-clean:hover {
    background: linear-gradient(135deg, var(--t-btn-from) 0%, var(--t-btn-to) 100%);
    border-color: transparent;
    transform: scale(1.1);
}

.quick-action-btn-clean svg {
    width: 1.125rem;
    height: 1.125rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.quick-action-btn-clean:hover svg {
    color: white;
}

/* =============================================
   PRODUCT INFO
   ============================================= */

.related-product-info-clean {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-clean {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-name-clean {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   RATING
   ============================================= */

.product-rating-clean {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-stars-clean {
    font-size: 0.875rem;
    color: var(--t-secondary-light);
    letter-spacing: 0.05em;
}

.product-review-count-clean {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* =============================================
   PRICING
   ============================================= */

.product-pricing-clean {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-price-clean {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--t-btn-from) 0%, var(--t-btn-to) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-original-price-clean {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* =============================================
   ADD TO CART BUTTON
   ============================================= */

.product-add-to-cart-clean {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--t-primary) 0%, var(--t-primary-light) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.product-add-to-cart-clean:hover {
    background: linear-gradient(135deg, var(--t-btn-from) 0%, var(--t-btn-to) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--t-secondary) 40%, transparent);
}

.product-add-to-cart-clean svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* =============================================
   VIEW ALL BUTTON
   ============================================= */

.view-all-container-clean {
    text-align: center;
    margin-top: 2.5rem;
}

.view-all-btn-clean {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--t-btn-from) 0%, var(--t-btn-to) 100%);
    color: var(--t-btn-text);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--t-shadow-gold);
    position: relative;
    overflow: hidden;
}

.view-all-btn-clean::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.view-all-btn-clean:hover::before {
    transform: translateX(100%);
}

.view-all-btn-clean:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--t-btn-from) 50%, transparent);
}

.view-all-btn-clean svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.view-all-btn-clean:hover svg {
    transform: translateX(4px);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .related-products-grid-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        max-width: 800px;
    }
    
    .related-products-title {
        font-size: 1.75rem;
    }
    
    /* Show all 4 products on tablet (2x2) */
}

/* Mobile - 1 column */
@media (max-width: 640px) {
    .related-products-section {
        padding: 2rem 0;
        margin-top: 3rem;
    }
    
    .related-products-grid-clean {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
    }
    
    .related-products-title {
        font-size: 1.5rem;
    }
    
    .related-products-subtitle {
        font-size: 0.875rem;
    }
    
    .related-products-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1rem;
    }
    
    .related-products-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    /* Show only 2 products on mobile */
    .related-product-card-clean:nth-child(n+3) {
        display: none;
    }
    
    /* Always show quick actions on mobile */
    .product-quick-actions-clean {
        opacity: 1;
        transform: translateX(0);
    }
    
    .product-name-clean {
        font-size: 0.9375rem;
    }
    
    .product-price-clean {
        font-size: 1.25rem;
    }
}

/* Desktop Large - Keep 2 columns max */
@media (min-width: 1280px) {
    .related-products-grid-clean {
        max-width: 1000px;
        gap: 2rem;
    }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

.quick-action-btn-clean:focus,
.product-add-to-cart-clean:focus,
.view-all-btn-clean:focus {
    outline: 2px solid var(--t-btn-from);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
    .product-quick-actions-clean,
    .product-add-to-cart-clean,
    .view-all-btn-clean {
        display: none !important;
    }
    
    .related-products-grid-clean {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .related-product-card-clean {
        page-break-inside: avoid;
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
    }
}