/* Product Pages Common Styles */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section */
.hero-title {
    animation: slideInDown 0.8s ease-out;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-title:hover {
    text-decoration: none !important;
    transform: none !important;
}

.breadcrumb-item {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.bg-breadcrumb {
    background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/aboutbg.png');
    background-size: cover;
    background-position: center;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

/* Product Gallery */
.product-gallery {
    animation: slideInLeft 0.6s ease-out;
}

.product-image-main {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    background-color: transparent !important;
    background-image: none !important;
}

.product-image-main:hover {
    transform: scale(1.02);
}

/* Product Info Card */
.product-info-card {
    animation: slideInRight 0.6s ease-out;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product-info-card .card-body {
    padding: 30px;
}

.info-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.info-value {
    color: #666;
    font-size: 0.95rem;
}

/* Specs Table */
.specs-table {
    animation: fadeInUp 0.6s ease-out;
    overflow-x: auto;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white !important;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.specs-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #333 !important;
    background-color: white !important;
}

.specs-table td strong {
    color: #222 !important;
}

.specs-table tr:nth-child(even) td {
    background-color: #f8f9fa !important;
}

.specs-table tr:nth-child(even) td strong {
    color: #222 !important;
}

/* Feature Box */
.feature-box {
    animation: fadeInUp 0.6s ease-out;
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #dc3545;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.feature-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Section Title */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #333;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 2px;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4);
}

/* Tabs */
.nav-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.nav-tabs .nav-link.active {
    color: #dc3545;
    border-bottom-color: #dc3545;
    background: none;
}

.tab-content {
    animation: fadeInUp 0.4s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-info-card {
        height: auto !important;
        margin-top: 20px !important;
    }
    
    .specs-table table {
        font-size: 0.9rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 10px;
    }

    .product-card img {
        height: 120px !important;
        object-fit: contain !important;
        padding: 8px !important;
    }

    .tab-content {
        padding: 15px 0;
    }

    .tab-pane {
        color: #333 !important;
    }

    .tab-pane p,
    .tab-pane li,
    .tab-pane h3,
    .tab-pane h4,
    .tab-pane h5,
    .tab-pane h6 {
        color: #333 !important;
    }

    .tab-pane strong {
        color: #222 !important;
    }

    .text-muted {
        color: #666 !important;
    }

    .section-title {
        font-size: 1.3rem;
        color: #333 !important;
    }

    .feature-text {
        color: #666 !important;
        font-size: 0.9rem !important;
    }

    .card-text {
        color: #666 !important;
    }

    .nav-tabs {
        background-color: #f8f9fa;
        padding: 10px;
        border-radius: 8px;
    }

    .nav-tabs .nav-link {
        color: #333 !important;
        background-color: white;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        margin-right: 5px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .nav-tabs .nav-link.active {
        color: white !important;
        background-color: #dc3545 !important;
        border-color: #dc3545 !important;
    }
}

/* Gallery Image Styling */
.gallery-img {
    height: 120px;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

/* Hero text styling */
.bg-breadcrumb .text-white.fs-5 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.bg-breadcrumb .text-white-50.fs-6 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Hero Animation Classes */
.hero-animation {
    animation: slideInDown 0.8s ease-out;
}

.breadcrumb-animation {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Graphite Crucible Image Cards */
.image-card-crucible-1,
.image-card-crucible-2,
.image-card-crucible-3 {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card-crucible-4 {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card-crucible-1 .gallery-img,
.image-card-crucible-2 .gallery-img,
.image-card-crucible-3 .gallery-img,
.image-card-crucible-4 .gallery-img {
    object-fit: contain;
}

/* Carbon Bush Bearing Food Chemicals Image Cards */
.image-card-food-chemicals-1,
.image-card-food-chemicals-2 {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card-food-chemicals-1 .gallery-img,
.image-card-food-chemicals-2 .gallery-img {
    object-fit: contain;
}
