@import url('responsive.css');

/* Standard size for product images in the products table */
.product-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.main-nav {
    display: flex;
    justify-content: center;
    list-style: none;
}

.main-nav li {
    padding: 15px 25px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 10px 80px;
    background-color: #f9f9f9;
    font-size: 14px;
}

.breadcrumb a {
    color: #0073b7;
    text-decoration: none;
}

.hero {
    display: flex;
    background: linear-gradient(to left, #bebebe, #242424f0) !important;
    color: white;
    padding: 120px 80px 40px 80px;
    min-height: 380px;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.hero-image-container {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    width: auto;
    height: auto;
    margin-right: 0;
    margin-bottom: 0;
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.intro-text {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: bold;
    margin-left: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .intro-text {
        margin-left: 65px;
    }
}

/* Products table */
.products-table {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    /* Added to respect border-radius */
    display: table;
    /* Changed from block to behave like a table while having width/margin auto */
}

.products-table thead,
.products-table tbody,
.products-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.products-table th {
    background-color: #6c7680;
    color: white;
    padding: 18px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.table-product-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.table-product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.products-table tr {
    transition: all 0.2s ease;
}

.products-table tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.product-row {
    display: flex;
    align-items: center;
}

.product-image {
    width: 100px;
}

.product-name {
    color: #0073b7;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.product-details {
    font-size: 14px;
    color: #666;
}

/* Loading and error states */
.loading,
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error-message {
    color: #dc3545;
}

/* Selected product indicator */
.selected-product {
    background-color: #e3f2fd !important;
    border-left: 4px solid #007bff;
}

/* WhatsApp Button Styles */
#whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    cursor: pointer;
    padding: 10px;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#whatsapp-btn img {
    width: 60px;
    height: 60px;
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 40px 20px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-image-container {
        width: 240px;
        height: 240px;
    }

    .main-content {
        padding: 20px;
    }

    .intro-text {
        margin-left: 0;
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .products-table {
        font-size: 14px;
    }

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

    .products-table th:nth-child(3),
    .products-table th:nth-child(4),
    .products-table th:nth-child(5),
    .products-table th:nth-child(6),
    .products-table td:nth-child(3),
    .products-table td:nth-child(4),
    .products-table td:nth-child(5),
    .products-table td:nth-child(6) {
        display: none;
    }
}