/* almaavet Medical Modern Theme (Refined Teal) */
/* Palette: #2F404F (dark base), #3894A1 (refined teal), #F0F1EE (light background) */

:root {
    --primary: #3894A1;
    --dark: #2F404F;
    --bg: #F0F1EE;
    --text: #1a1a1a;
    --white: #ffffff;
}

/* Base */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

/* Header - Ultra Slim Version */
.site-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    display: flex;
    justify-content: space-between;  /* logo left, contacts right */
    align-items: center;             /* vertical alignment */
    width: 90%;
    margin: auto;
    height: 40px;
    gap: 0.5rem;
    box-sizing: border-box;          /* ensures padding doesn't break alignment */
}

.logo a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;                   /* ensures vertical centering */
    align-items: center;
    height: 100%;                    /* same height as header */
}

.logo a:hover {
    transform: scale(1.05);
}

/* Contact Icons */
.contact-icons {
    display: flex;
    align-items: center;             /* vertical centering */
    gap: 8px;
    font-size: 0.95rem;
    color: var(--white);
    height: 100%;                    /* same height as header */
}

.contact-text {
    font-weight: 500;
    opacity: 0.9;
}

.contact-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-icons a:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.contact-icons img {
    width: 18px;
    height: 18px;
}

.gmail-icon img {
    width: 20px;
    height: 22px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.gmail-icon img:hover {
    transform: scale(1.15);
    filter: brightness(0) invert(0.7);
}

/* Search bar outside header */
.search-form {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 650px;
    margin: 1rem auto;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    border-radius: 12px 0 0 12px;
}

.search-form button {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0 12px 12px 0;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-form button:hover {
    background: #2b7682;
    transform: scale(1.05);
}

/* Layout */
main.container {
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

/* Titles */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

/* Product List */
.product-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    padding: 1rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 3px solid var(--primary);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.product-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.product-card h3 {
    margin: 0.8rem 0 0.4rem;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 600;
}

.product-card p {
    color: #2F404F;
    font-size: 0.85rem;
}

.product-card .card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Product Detail */
.product-detail {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 2rem auto;
    border-top: 4px solid var(--primary);
}

.product-detail h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-detail .product-image {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-detail .description {
    color: #2F404F;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Buttons & Pagination */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #2b7682;
    transform: translateY(-2px);
}

.pagination {
    text-align: center;
    margin-top: 2rem;
}

.pagination span {
    margin: 0 1rem;
    color: var(--dark);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 0.8rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        height: 48px;
    }

    .contact-icons a {
        width: 28px;
        height: 28px;
    }

    .contact-icons img {
        width: 16px;
        height: 16px;
    }

    .search-form {
        width: 95%;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .product-detail {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-form button {
        width: 100%;
        margin: 0.2rem 0;
        border-radius: 12px;
    }

    .header-content {
        gap: 0.3rem;
    }

    .logo a {
        font-size: 1.1rem;
    }
}

/* 
html, body {
    direction: rtl;
    text-align: right;
    font-family: "Cairo", "Tajawal", "Noto Kufi Arabic", sans-serif;
    background-color: #f0f1ee;
}


.navbar, header {
    direction: rtl;
}

.product-card {
    text-align: right;
}
*/