    /*
Theme Name: Baba Medicos
Theme URI: https://babamedicos.shop
Author: Vijay Kumar
Description: Custom Medical Shop Theme
Version: 1.0
*/

/* BODY */

body{
    margin:0;
    padding:0;
    font-family:Arial,sans-serif;
    background:#f7f7f7;
}

html,body{
    overflow-x:hidden;
}

img{
    max-width:100%;
    height:auto;
}

.container{
    width:95%;
    max-width:1200px;
    margin:auto;
}

/* HEADER */

header{
    background:#0b8f4d;
    padding:4px 0;
    position:sticky;
    top:0;
    z-index:999;
}

.header-flex{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:70px;
}

/* LOGO */

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    width:140px;
    height:auto;
    display:block;
}

/* NAVIGATION */

nav ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    gap:25px;
    align-items:center;
}

nav li{
    list-style:none;
}

nav a{
    color:#fff;
    text-decoration:none;
    font-size:16px;
    font-weight:500;
    transition:0.3s;
}

nav a:hover{
    color:#d4ffd4;
}

/* HERO SECTION */

.hero{

    background:
    linear-gradient(
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.55)
    ),
    url('/wp-content/themes/baba-medicos/images/banner.jpg');

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    min-height:550px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    padding:80px 20px;

    color:#fff;
}

.hero h1{
    font-size:54px;
    margin-bottom:20px;
    color:#fff;
    line-height:1.2;
}

.hero p{
    font-size:22px;
    margin-bottom:15px;
    color:#fff;
}

/* BUTTON */

.btn{
    display:inline-block;
    background:#25D366;
    color:#fff;
    padding:14px 24px;
    text-decoration:none;
    border-radius:8px;
    margin-top:15px;
    font-weight:bold;
    transition:0.3s;
    border:none;
    cursor:pointer;
}

.btn:hover{
    background:#1da851;
    transform:translateY(-2px);
}

/* PRODUCTS GRID */

.products{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:22px;
    margin-top:30px;
    margin-bottom:50px;
}

/* PRODUCT CARD */

.product-card{
    background:#fff;
    padding:18px;
    border-radius:14px;
    text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    transition:0.3s;
    position:relative;
    overflow:hidden;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 8px 25px rgba(0,0,0,0.15);
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:contain;
    margin-bottom:15px;
}

.product-card h3{
    font-size:17px;
    color:#222;
    margin-bottom:10px;
    line-height:1.4;
    min-height:48px;
}

.product-card p{
    color:#0b8f4d;
    font-size:20px;
    font-weight:bold;
    margin-bottom:15px;
}

/* CATEGORY BADGE */

.category-badge{
    display:inline-block;
    background:#e9f9ef;
    color:#0b8f4d;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
    margin-bottom:12px;
}

/* STOCK BADGE */

.stock-badge{
    position:absolute;
    top:12px;
    right:12px;
    background:#ff3b30;
    color:#fff;
    padding:6px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
}

/* FOOTER */

footer{
    background:#111;
    color:#fff;
    text-align:center;
    padding:40px 20px;
}

footer p{
    margin-bottom:15px;
}

footer a{
    color:#25D366;
    text-decoration:none;
}

/* FLOATING WHATSAPP */

.floating-whatsapp{
    position:fixed;
    right:20px;
    bottom:20px;
    width:60px;
    height:60px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    text-decoration:none;
    z-index:9999;
    box-shadow:0 4px 10px rgba(0,0,0,0.3);
}

/* LIVE SEARCH */

#live-search-results{
    position:relative;
    width:100%;
    background:#fff;
    border-radius:10px;
    margin-top:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    overflow:hidden;
    z-index:999;
}

.live-search-item{
    display:flex;
    align-items:center;
    gap:15px;
    padding:12px;
    border-bottom:1px solid #eee;
    text-decoration:none;
    color:#222;
    transition:0.3s;
    background:#fff;
}

.live-search-item:hover{
    background:#f7f7f7;
}

.live-search-item img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.live-search-item h4{
    margin:0;
    font-size:16px;
}

.live-search-item p{
    margin:5px 0 0;
    color:#0b8f4d;
    font-weight:bold;
}

/* FORMS */

input,
select,
textarea{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:8px;
    box-sizing:border-box;
    font-size:15px;
    margin-bottom:15px;
}

/* MOBILE */

@media(max-width:768px){

.header-flex{
    flex-direction:column;
    justify-content:center;
    text-align:center;
    padding:10px 0;
}

.logo img{
    width:120px;
    margin-bottom:10px;
}

nav ul{
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}

nav a{
    font-size:14px;
}

.hero{
    min-height:420px;
    padding:70px 15px;
}

.hero h1{
    font-size:34px;
    line-height:1.3;
}

.hero p{
    font-size:16px;
}

.btn{
    padding:12px 20px;
    font-size:14px;
}

.product-card{
    padding:14px;
}

.product-card img{
    height:160px;
}

}

/* EXTRA SMALL MOBILE */

@media(max-width:480px){

.hero h1{
    font-size:28px;
}

.hero p{
    font-size:15px;
}

.product-card{
    padding:10px;
}

.product-card h3{
    font-size:16px;
}

.floating-whatsapp{
    width:55px;
    height:55px;
    font-size:26px;
}

}
/* PRESCRIPTION FORM */

.wpcf7{
    background:#fff;
    padding:25px;
    border-radius:14px;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    max-width:700px;
    margin:auto;
}

.wpcf7 label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
    color:#222;
}

.wpcf7 input,
.wpcf7 textarea{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:8px;
    margin-top:5px;
    margin-bottom:20px;
    box-sizing:border-box;
    font-size:15px;
}

.wpcf7 textarea{
    min-height:120px;
}

.wpcf7 input[type="submit"]{
    background:#25D366;
    color:#fff;
    border:none;
    cursor:pointer;
    font-weight:bold;
    transition:0.3s;
}

.wpcf7 input[type="submit"]:hover{
    background:#1da851;
}