/* Standardized Product Page Styles */

/* Product Tabs Styles */
.product-tabs {
    margin: 40px 0;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 8px;
}

.tab-btn {
    background: #ffffff;
    color: #0a2342;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-btn:hover {
    background: #009fe3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,159,227,0.3);
}

.tab-btn.active {
    background: #009fe3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,159,227,0.3);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Fix for table white space in product pages */
.specs-table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
    word-wrap: break-word;
    min-width: 150px;
}

.specs-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.specs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Main Content Area */
.product-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Main Title */
.product-title {
    font-size: 2.5rem;
    color: #0a2342;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.product-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #009fe3;
    border-radius: 2px;
}

/* Subcategory Section */
.subcategory-section {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subcategory-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Subcategory Title */
.subcategory-title {
    font-size: 1.8rem;
    color: #0a2342;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f7fa;
    padding: 20px;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

/* Product Info */
.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a2342;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #009fe3;
}

.view-details-btn {
    background: #0a2342;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-details-btn:hover {
    background: #009fe3;
    color: white;
}

/* Product card adjustments */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-description {
    flex-grow: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-image-container {
        height: 200px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .view-details-btn {
        width: 100%;
        text-align: center;
    }
}

/* Product Link */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.product-link:hover {
    background: #f0f7ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #009fe3;
}

.product-link h4 {
    font-size: 1.4rem;
    color: #0a2342;
    margin-bottom: 12px;
    font-weight: 700;
}

.product-link p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Features Section */
.features-section {
    margin: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #009fe3;
}

.feature-item h4 {
    color: #0a2342;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
    
    .subcategory-title {
        font-size: 1.5rem;
    }
    
    .products-list {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for page load */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-main {
    animation: fadeIn 0.6s ease-out forwards;
}
