* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #222;
    line-height: 1.6;
}

.container {
    width: 92%;
    max-width: 1160px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background: #90d6c0;
    color: #fff;
    padding: 12px 0;
    margin-bottom: 25px;
    width: 100%;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    max-width: 1160px;
    margin: 0 auto;
}
.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.back-link {
    color: #0e4b8e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap; /* Prevents text from breaking awkwardly */
}

/* Company Logo Styling */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo image and text */
}

.company-logo {
    height: 32px;  /* Optimized for mobile view */
    width: auto;
    object-fit: contain;
}
.navbar .logo span {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.85);
}

/* Homepage Category Grid */
.hero {
    text-align: center;
    margin-bottom: 30px;
}
.hero h1 { font-size: 2rem; margin-bottom: 6px; }
.hero p { color: #555; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #1e293b;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    place-items: center;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.cat-img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    /object-fit: contain;*/
    display: block;
    background: #e2e8f0;
}
.cat-title {
    padding: 18px;
    text-align: center;
    background: #fff;
}
.cat-title h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Category Page Header */
.category-header {
    margin-bottom: 18px;
}
.category-header h1 { font-size: 1.8rem; }
.category-header p { color: #555; font-size: 0.95rem; }

/* Horizontal / Grid Product Selector Bar */
.cat-products-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.mini-prod-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.mini-prod-card:hover {
    border-color: #93c5fd;
}
.mini-prod-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.mini-prod-card img {
    width: 100%;
    height: 105px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
}
.mini-prod-card h3 {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* Product Detail Switcher Panels */
.product-detail-panel {
    display: none;
}
.product-detail-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Top Section */
.product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 22px;
}
.main-image-box img {
    width: 100%;
    height: 330px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}
.thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
}
.thumb.active, .thumb:hover {
    border-color: #2563eb;
    opacity: 1;
}

.cat-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.product-info h2 { font-size: 1.7rem; margin-bottom: 8px; }
.tagline { color: #555; margin-bottom: 16px; }
.product-info h3 { margin-bottom: 8px; font-size: 1.1rem; }
.highlights { margin-left: 20px; margin-bottom: 20px; }
.highlights li { margin-bottom: 6px; }

/* Buttons */
.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}
.btn:hover { background: #1d4ed8; }
.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    padding: 7px 14px;
}
.btn-outline:hover { background: #2563eb; color: #fff; }

/* Sections, Specs, Videos & Downloads */
.section-box {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 22px;
}
.section-box h3 {
    margin-bottom: 14px;
    font-size: 1.25rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td {
    padding: 11px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.specs-table th { width: 35%; background: #f8fafc; color: #334155; }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.video-card video { width: 100%; border-radius: 8px; background: #000; }
.video-card h4 { margin-top: 8px; font-size: 1rem; }

.download-list { display: flex; flex-direction: column; gap: 12px; }
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    gap: 12px;
}
.badge {
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

footer {
    text-align: center;
    padding: 25px 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
        margin-bottom: 18px;
    }
    
    .logo {
        font-size: 1.05rem; /* Scales down slightly to prevent overflow */
    }

    .company-logo {
        height: 28px; /* Fits better in tighter mobile headers */
    }

    .back-link {
        font-size: 0.85rem;
    }

    .cat-products-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .mini-prod-card img { height: 80px; }
    .product-top {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .main-image-box img { height: 240px; }
    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .download-item .btn { width: 100%; text-align: center; }
}

/* --- Search Bar & Results --- */
.search-wrapper {
    position: relative;
    max-width: 560px;
    margin: 18px auto 0;
}
.search-wrapper input {
    width: 100%;
    padding: 13px 42px 13px 18px;
    font-size: 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 30px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrapper input:focus {
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
#clearSearchBtn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
}

.search-results-box {
    max-width: 820px;
    margin: 20px auto 10px;
    text-align: left;
}
.search-status {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 12px;
    font-weight: 500;
}
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: border-color 0.2s, transform 0.15s;
}
.search-result-item:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}
.search-result-item img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 6px;
    flex-shrink: 0;
}
.search-cat-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
}
.search-item-info h4 { font-size: 1rem; margin: 2px 0; }
.search-item-info p {
    font-size: 0.85rem;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Action Buttons & WhatsApp Button --- */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.btn-whatsapp {
    background: #16a34a;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #15803d;
}

@media (max-width: 768px) {
    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
}