:root {
    --primary-color: #2596be;
    --primary-dark: #1d7a9b;
    --light-bg: #e9f4f8;
    --text-dark: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}


/* --- Top Header Logo --- */
.top-header {
    background-color: white;
    border-bottom: 1px solid #eee;
}

.top-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.top-logo i {
    margin-right: 8px;
}



/* --- Navigation --- */

.navbar {
    background: var(--primary-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.navbar-brand, .nav-link {
    color: white !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #f0f0f0 !important;
    text-decoration: underline;
}
.nav-link.active {
    color: var(--light-bg) !important;
    font-weight: 500;
    background-color: var(--primary-color);
}
/* --- Center Navbar Links --- */
.navbar-nav {
    gap: 1.5rem;
}
/* --- Buttons --- */
.btn-custom {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline-custom {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Hero Slider --- */

#homeCarousel,
#homeCarousel .carousel-inner,
#homeCarousel .carousel-item {
    width: 100%;
    height: auto; 
    object-fit: contain;
}


.carousel-item {
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;

}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* --- Inner Page Hero --- */
.page-hero {
    position: relative;
    width: 100%;
}

.page-hero img {
    width: 100%;
    height: auto;          /* Image controls height */
    display: block;
}

/* Overlay */
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
}

.page-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
}

.page-subtitle {
    color: #f1f1f1;
    max-width: 600px;
}

/* Responsive text */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
}
/***************/

.auto-serial {
    counter-reset: rowNumber; /* Start from 0 (first row = 1) */
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto; /* Scrollable on mobile */
    display: block;
}

/* --- Table header --- */
.auto-serial thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 12px 10px;
    border: 1px solid #ddd;
}

/* --- Center only first header column --- */
.auto-serial thead th:first-child {
    text-align: center;
}

/* --- Table body rows --- */
.auto-serial tbody tr {
    counter-increment: rowNumber; /* Auto serial */
    border-bottom: 1px solid #eee;
}

/* --- Serial number in first column --- */
.auto-serial tbody tr td:first-child::before {
    content: counter(rowNumber);
    display: block;
    text-align: center;
    font-weight: 500;
    color: var(--primary-dark);
}

/* --- Center only first column --- */
.auto-serial tbody td:first-child {
    text-align: center;
    padding: 10px; /* optional */
}

/* --- Left-align all other cells --- */
.auto-serial tbody td:not(:first-child) {
    text-align: left; 
    padding: 10px;
}

/* --- Responsive: Scroll on small screens --- */
@media (max-width: 768px) {
    .auto-serial {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/***************/

.thumb-wrapper {
  display: block;
  text-decoration: none;
  border: none !important;
}

.thumb-wrapper img {
  display: block;
}


/* Body cells */
table.auto-serial tbody td {
    padding: 10px;
    vertical-align: middle;
    word-wrap: break-word;
}

/* Hover effect */
table.auto-serial tbody tr:hover {
    background-color: #f5faff;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    table.auto-serial thead th,
    table.auto-serial tbody td {
        font-size: 14px;
        padding: 8px;
    }
}

/* --- Product Cards --- */
/* --- Product Cards --- */
.product-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* Image wrapper — fixed height for equal cards */
.product-image-wrapper {
    height: 220px;            /* same height for all cards */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;        /* IMPORTANT */
}

/* Image — no crop, no cut */
.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Footer sticks to bottom */
.card-footer {
    margin-top: auto;
    background: transparent;
    border-top: 1px solid #eee;
}



/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
}