/**
 * Product Tabs Styling
 * Matches WordPress/WooCommerce tab appearance
 */

.product-tabs-wrapper {
    margin: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.product-tabs {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.product-tabs li {
    margin: 0;
}

.product-tabs a {
    display: block;
    padding: 1rem 1.5rem;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.product-tabs a:hover {
    background-color: #e9ecef;
    color: #333;
}

.product-tabs li.active a {
    background-color: #fff;
    color: #333;
    border-bottom-color: #007cba;
}

.product-tab-content {
    background-color: #fff;
    padding: 1.5rem;
    min-height: 200px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.25rem;
}

/* Quality Information Styling */
.quality-info-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.quality-info-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.quality-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.quality-item {
    color: #555;
    font-size: 0.95rem;
}

/* Stone Information Styling */
.stone-info-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f0f8ff;
    border-radius: 6px;
    border: 1px solid #cce7ff;
}

.stone-info-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.stone-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stone-item {
    color: #555;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e0e7ff;
}

.stone-item:last-child {
    border-bottom: none;
}

/* Pricing Section Styling */
.pricing-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Pricing Table Styling */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.pricing-table th,
.pricing-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table tbody tr:hover {
    background-color: #f8f9fa;
}

.item-cost {
    text-align: right;
    font-weight: 500;
    color: #333;
}

.item-details {
    font-size: 0.9rem;
    color: #666;
}

.item-details small {
    color: #888;
    font-style: italic;
}

.subtotal-row {
    background-color: #f8f9fa;
    font-weight: 500;
}

.total-row {
    background-color: #e8f4fd;
    font-weight: 600;
    border-top: 2px solid #007cba;
}

.selling-price {
    background-color: #e8f5e8;
    font-weight: 700;
    color: #2e7d32;
    border-top: 2px solid #4caf50;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.specs-table td:first-child {
    width: 40%;
    color: #666;
}

.specs-table td:last-child {
    color: #333;
    font-weight: 500;
}

/* Loading and Error States */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #d32f2f;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-tabs {
        flex-direction: column;
    }
    
    .product-tabs a {
        padding: 0.75rem 1rem;
    }
    
    .product-tab-content {
        padding: 1rem;
    }
    
    .quality-details {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        font-size: 0.9rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem 0.25rem;
    }
} 