/* PRODUCT PAGE STYLES */

/* Purchase Card */
.product-purchase-card {
    background: linear-gradient(135deg, #f9fafb 0%, white 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 2rem 0;
    border: 2px solid #e5e7eb;
}

.product-purchase-card h2 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.price-section {
    margin-bottom: 1.5rem;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
}

.product-price-regular {
    font-size: 1.5rem;
    color: #6b7280;
    text-decoration: line-through;
    margin-right: 1rem;
}

.savings-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.stock-status.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.stock-status.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.product-info-row:last-child {
    border-bottom: none;
}

.product-info-label {
    font-weight: 600;
    color: #374151;
}

.product-info-value {
    color: #6b7280;
}

.modifier-section {
    margin: 1.5rem 0;
}

.modifier-section label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.modifier-section select,
.modifier-section input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modifier-section select:focus,
.modifier-section input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.modifier-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.qty-selector label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.qty-selector input[type="number"] {
    width: 100px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
}

.btn-add-to-cart {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(37,99,235,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37,99,235,0.4);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.security-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Product Details Tabs */
.product-tabs {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.tab-button {
    flex: 1;
    padding: 1.25rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-button:hover {
    color: #2563eb;
    background: rgba(37,99,235,0.05);
}

.tab-button.active {
    color: #2563eb;
    background: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

.tab-content {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: #111827;
}

/* Specifications Table in Tab */
.tab-content .specs {
    width: 100%;
    border-collapse: collapse;
}

.tab-content .specs th,
.tab-content .specs td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.tab-content .specs th {
    font-weight: 600;
    color: #374151;
    width: 200px;
}

.tab-content .specs td {
    color: #6b7280;
}

.tab-content .specs tr:last-child th,
.tab-content .specs tr:last-child td {
    border-bottom: none;
}

/* Downloads in Tab */
.download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.download-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.download-item i {
    font-size: 1.5rem;
    color: #ef4444;
}

.download-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.download-item a:hover {
    text-decoration: underline;
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
}

.content ul.list li {
    transition: all 0.2s ease-in-out;
    height: 490px;
    border-radius: 12px;
    border: 1px solid #ddd;
}