﻿html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    margin: 0;
    padding-top: 100px; /* adjust to match header height */
    font-family: Arial, sans-serif;
    background: url("wsbg4.png") repeat center top;
    background-size: cover;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

/* Header */
header {
    position: fixed; /* stick at top */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-right: 10px;
}

.title h1 {
    margin: 0;
    font-size: 20px;
    color: #002366;
}

.title h2 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    color: #002366;
}

.title p {
    margin: 0;
    font-size: 12px;
    color: red;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px; /* even spacing */
    margin: 0;
    padding: 0;
    align-items: center;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

    nav a:hover {
        color: #007BFF;
    }

/* Page layout with even side banners */
.page-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: auto;
    align-items: flex-start;
}

.promo-banner {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 700px; /* taller */
}

    .promo-banner img {
        height: 100%;
        width: 100%;
        object-fit: cover; /* fills space completely, may crop */
        display: block;
    }

.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    justify-content: center; /* centers items in available space */
    max-width: 1000px; /* prevents grid from going too wide */
    margin: 0 auto; /* center grid inside column */
}

.product-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

    .product-card img {
        width: 100%;
        height: 220px;
        object-fit: contain; /* show full product image */
        background-color: #fff;
    }

.product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .product-info h3 {
        font-size: 13px;
        margin: 0 0 6px;
        height: 36px;
        overflow: hidden;
        line-height: 1.3;
    }

.price {
    color: #ee4d2d;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.appoint-btn {
    background-color: #ee4d2d;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .appoint-btn:hover {
        background-color: #d93f20;
    }
