/**
 * Richardson 112 Product Page Styles
 * Extends top-sellers-product.css with Richardson-specific styling
 */

/* Reset and Base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #f3f4f6;
    color: #1f2937;
}

/* Color Category Tabs */
.color-category-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
}

.color-category-tabs .tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.color-category-tabs .tab:hover {
    color: #4cb354;
}

.color-category-tabs .tab.active {
    color: #4cb354;
    border-bottom-color: #4cb354;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.color-grid::-webkit-scrollbar {
    width: 8px;
}

.color-grid::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
}

.color-grid::-webkit-scrollbar-thumb {
    background: #4cb354;
    border-radius: 4px;
}

.color-swatch {
    text-align: center;
}

.color-swatch-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.color-swatch-image:hover {
    border-color: #4cb354;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(76, 179, 84, 0.3);
}

.color-name {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #6b7280;
    font-weight: 500;
}

/* Decoration Method Selector */
.decoration-selector {
    margin: 2rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.decoration-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.decoration-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.decoration-btn:hover {
    border-color: #4cb354;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.decoration-btn.active {
    border-color: #4cb354;
    background: #e8f5e9;
    color: #4cb354;
}

.decoration-btn i {
    font-size: 1.125rem;
}

/* CTA Section (Richardson-specific override) */
.cta-section {
    margin: 2rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #4cb354 0%, #45a048 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.cta-section p {
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    outline: none;
}

.btn-primary {
    background: white;
    color: #4cb354;
}

.btn-primary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Product Description */
.product-description {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

.product-description h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.product-description p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.product-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.product-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-description li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-description li:last-child {
    border-bottom: none;
}

.product-description li i {
    color: #4cb354;
    font-size: 1.25rem;
}

.product-description li span {
    font-size: 1rem;
    color: #4b5563;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-showcase {
        grid-template-columns: 50% 50% !important;
        gap: 1.5rem !important;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .color-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .color-category-tabs .tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.75rem;
        max-height: 300px;
    }

    .color-swatch-image {
        width: 60px;
        height: 60px;
    }

    .decoration-options {
        flex-direction: column;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .product-description {
        padding: 1.5rem;
    }

    .product-description h2 {
        font-size: 1.5rem;
    }

    .product-description p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .color-category-tabs .tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Loading States */
.price-cell.loading {
    color: #9ca3af;
    font-style: italic;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.color-swatch {
    animation: fadeIn 0.3s ease-out;
}

/* Print Styles */
@media print {
    .public-header, .breadcrumb-nav, .back-button-section, .cta-section {
        display: none;
    }

    .product-showcase {
        grid-template-columns: 1fr !important;
    }

    .product-description {
        page-break-inside: avoid;
    }
}
