/* Electronic Conduit Product Page Styles - PVC Layout Structure */

/* Product Page Container */
.product-page-container {
    padding: 20px;
    background-color: #f5f5f5;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styles */
.top-bar {
    background-color: #2c2c2c;
    color: white;
    padding: 10px 80px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffc107;
}

/* Product Header - Yellow Bar */
.product-header {
    background: linear-gradient(135deg, #f4e942, #c4d436);
    padding: 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
}

.product-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Main Content Container */
.main-content {
    display: flex;
    gap: 30px;
    background-color: white;
    padding: 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Left Section */
.left-section {
    flex: 1;
    max-width: 500px;
}

/* Product Image */
.product-image-container {
    margin-bottom: 25px;
}

.product-image {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.placeholder-image {
    width: 100%;
    height: 280px;
    background-color: #e9ecef;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
}

/* Product Info */
.product-info {
    margin-bottom: 25px;
}

.product-info h2 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* Key Features */
.key-features {
    margin-bottom: 30px;
}

.key-features h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.key-features ul {
    list-style: none;
    padding: 0;
}

.key-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.key-features li i {
    color: #28a745;
    margin-right: 10px;
    font-size: 12px;
}

/* Size Selection */
.size-selection {
    margin-bottom: 25px;
}

.size-selection h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.size-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.size-btn {
    background-color: #f4e942;
    border: 2px solid #f4e942;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    min-width: 60px;
}

.size-btn:hover {
    background-color: #e6d73a;
    border-color: #e6d73a;
    transform: translateY(-1px);
}

.size-btn.active {
    background-color: #333;
    color: #f4e942;
    border-color: #333;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 25px;
}

.quantity-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
}

.quantity-btn:hover {
    border-color: #f4e942;
    background-color: #f4e942;
    color: #333;
}

.quantity-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #f4a742, #e89611);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
}

.request-quote-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
}

.add-to-cart-btn:hover,
.request-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.add-to-cart-btn.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* Right Section */
.right-section {
    flex: 1;
    max-width: 500px;
}

/* Technical Specifications */
.tech-specs {
    margin-bottom: 30px;
}

.tech-specs h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    font-size: 14px;
}

.specs-table th {
    background-color: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
    color: #333;
    font-size: 13px;
}

.specs-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.specs-table tr:hover td {
    background-color: #f8f9fa;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:last-child {
    border-right: none;
}

/* Additional Specifications */
.additional-specs {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #007bff;
}

.additional-specs h4 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.spec-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.spec-value {
    color: #555;
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    background-color: #2c2c2c;
    color: white;
    padding: 20px;
    border-radius: 8px;
}

.contact-section h3 {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.contact-number {
    color: #f4e942;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.contact-number:hover {
    color: #fff;
    text-decoration: underline;
}
/* Contact Actions */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-btn {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.email-btn {
    background-color: #007bff;
    color: white;
}

.call-btn {
    background-color: #28a745;
    color: white;
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-page-container {
        padding: 10px;
    }
    
    .main-content {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }
    
    .product-header h1 {
        font-size: 20px;
    }
    
    .size-buttons {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .specs-table {
        font-size: 12px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 8px 4px;
    }
    
    .contact-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .product-header {
        padding: 15px;
    }
    
    .product-header h1 {
        font-size: 18px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .size-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 55px;
    }
    
    .specs-table {
        font-size: 11px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 6px 3px;
    }
    
    .contact-section {
        padding: 15px;
    }
}

/* Focus states for accessibility */
.size-btn:focus,
.quantity-btn:focus,
.contact-btn:focus,
.add-to-cart-btn:focus,
.request-quote-btn:focus,
.quantity-input:focus {
    outline: 2px solid #f4e942;
    outline-offset: 2px;
}
