@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* =========================================================
   PHARMACY — PREMIUM COMPACT
   صيدلية براء بسام الكنعان
========================================================= */

:root{
    --primary:#08a9d6;
    --primary-dark:#0789b5;
    --primary-light:#42c9e9;

    --accent:#f5a623;
    --accent-dark:#df8d08;
    --accent-light:#ffc45c;

    --green:#21b987;
    --green-dark:#15966d;

    --pink:#e86b9b;
    --purple:#8871d9;

    --dark:#123746;
    --dark-2:#17495b;

    --bg:#eef7fa;
    --bg-soft:#f6fbfd;
    --white:#ffffff;

    --text:#17212b;
    --muted:#71858e;

    --border:rgba(8,169,214,.14);

    --shadow:
        0 12px 30px rgba(20,70,90,.08);

    --shadow-lg:
        0 20px 48px rgba(20,70,90,.12);
}


/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    width:100%;
    overflow-x:hidden;
}

body{
    width:100%;
    min-width:0;

    font-family:"Cairo",Tahoma,Arial,sans-serif;

    color:var(--text);

    line-height:1.8;

    overflow-x:hidden;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(8,169,214,.08),
            transparent 35%
        ),
        var(--bg);
}

body.no-scroll{
    overflow:hidden;
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input,
textarea,
select{
    font-family:inherit;
}

button{
    border:0;
    outline:0;
    cursor:pointer;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:min(1150px,92%);
    margin:auto;
}


/* =========================================================
   HEADER
========================================================= */

.header{
    position:fixed;

    top:0;
    right:0;
    left:0;

    z-index:1000;

    background:
        rgba(255,255,255,.96);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border-bottom:
        1px solid rgba(8,169,214,.12);

    box-shadow:
        0 7px 28px rgba(20,70,90,.08);
}

.header-inner{
    min-height:72px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:18px;
}

.logo{
    display:flex;
    align-items:center;

    gap:8px;

    color:var(--dark);

    font-size:19px;
    font-weight:900;

    white-space:nowrap;
}

.logo-icon{
    width:41px;
    height:41px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:13px;

    background:
        linear-gradient(
            145deg,
            #e5f8fd,
            #d8f3f9
        );

    border:
        1px solid rgba(8,169,214,.18);

    color:var(--primary);

    font-size:21px;

    box-shadow:
        0 7px 18px rgba(8,169,214,.09);
}


/* =========================================================
   NAV
========================================================= */

.nav{
    display:flex;
    align-items:center;
    justify-content:center;

    gap:22px;
}

.nav a{
    position:relative;

    color:#526873;

    font-size:12px;
    font-weight:800;

    transition:.25s;
}

.nav a:hover{
    color:var(--primary-dark);
}

.nav a::after{
    content:"";

    position:absolute;

    right:0;
    bottom:-7px;

    width:0;
    height:2px;

    border-radius:20px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-light)
        );

    transition:.25s;
}

.nav a:hover::after{
    width:100%;
}


/* =========================================================
   CART
========================================================= */

.cart-button{
    min-width:90px;
    height:41px;

    padding:6px 10px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    gap:6px;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:#fff;

    font-size:11px;
    font-weight:900;

    box-shadow:
        0 8px 20px rgba(8,169,214,.16);

    transition:.25s;
}

.cart-button:hover{
    transform:translateY(-2px);
}

.cart-button b{
    min-width:22px;
    height:22px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:var(--accent);

    color:#fff;

    font-size:9px;
}


/* =========================================================
   HERO
   الصورة هي العنصر الأساسي
========================================================= */

.hero{
    position:relative;

    min-height:570px;

    padding:
        72px 0 30px;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    background:
        url("images/pharmacy-hero.webp")
        center center /
        cover
        no-repeat;

    background-color:#eaf7fb;
}

/* إزالة النص فوق صورة الهيرو */

.hero-content,
.hero-text,
.hero-badge,
.hero h1,
.hero p,
.hero-buttons{
    display:none !important;
}

.hero::before{
    content:"";

    position:absolute;

    width:320px;
    height:320px;

    left:-180px;
    top:25%;

    border-radius:50%;

    background:
        rgba(8,169,214,.045);

    filter:blur(55px);

    pointer-events:none;
}

.hero::after{
    content:"";

    position:absolute;

    width:250px;
    height:250px;

    right:-140px;
    bottom:-80px;

    border-radius:50%;

    background:
        rgba(245,166,35,.045);

    filter:blur(55px);

    pointer-events:none;
}


/* =========================================================
   QUICK CARDS
========================================================= */

.quick-links{
    position:relative;

    z-index:10;

    margin-top:-25px;

    padding-bottom:14px;
}

.quick-grid{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:12px;
}

.quick-card{
    position:relative;

    min-height:150px;

    padding:20px 17px;

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:center;

    gap:8px;

    overflow:hidden;

    text-align:center;

    border:
        1px solid rgba(8,169,214,.16);

    border-radius:25px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f2fafc
        );

    box-shadow:
        0 15px 35px rgba(20,70,90,.09),
        inset 0 1px 0 rgba(255,255,255,.95);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.quick-card:nth-child(1){
    --card-color:var(--primary);
}

.quick-card:nth-child(2){
    --card-color:var(--green);
}

.quick-card:nth-child(3){
    --card-color:var(--accent);
}

.quick-card:nth-child(4){
    --card-color:var(--pink);
}

.quick-card::before{
    content:"";

    position:absolute;

    width:125px;
    height:125px;

    left:-55px;
    bottom:-65px;

    border-radius:50%;

    background:
        color-mix(
            in srgb,
            var(--card-color) 9%,
            transparent
        );

    pointer-events:none;
}

.quick-card::after{
    content:"";

    position:absolute;

    right:0;
    top:50%;

    width:5px;
    height:48px;

    transform:translateY(-50%);

    border-radius:8px 0 0 8px;

    background:
        var(--card-color);
}

.quick-card:hover{
    transform:translateY(-5px);

    border-color:
        color-mix(
            in srgb,
            var(--card-color) 35%,
            transparent
        );

    box-shadow:
        0 23px 48px rgba(20,70,90,.14);
}

.quick-card > span{
    position:relative;

    z-index:2;

    width:63px;
    height:63px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:19px;

    background:
        color-mix(
            in srgb,
            var(--card-color) 10%,
            white
        );

    border:
        1px solid
        color-mix(
            in srgb,
            var(--card-color) 18%,
            transparent
        );

    box-shadow:
        0 8px 20px rgba(20,70,90,.06);

    font-size:28px;

    transition:.3s;
}

.quick-card:hover > span{
    transform:
        translateY(-3px)
        scale(1.04);
}

.quick-card strong{
    position:relative;

    z-index:2;

    color:var(--dark);

    font-size:16px;

    font-weight:900;

    line-height:1.4;
}

.quick-card small{
    position:relative;

    z-index:2;

    color:#7b9099;

    font-size:9px;

    line-height:1.5;
}


/* =========================================================
   SECTIONS
========================================================= */

.section{
    padding:48px 0;
}

.section-heading{
    max-width:720px;

    margin:
        0 auto 25px;

    text-align:center;
}

.section-heading > span{
    display:inline-block;

    color:var(--primary-dark);

    font-size:11px;

    font-weight:900;
}

.section-heading h2{
    margin:
        3px 0 5px;

    color:var(--dark);

    font-size:32px;

    font-weight:900;

    line-height:1.35;
}

.section-heading p{
    color:var(--muted);

    font-size:12px;
}


/* =========================================================
   TRACK ORDER
========================================================= */

#track-order{
    position:relative;

    padding:
        43px 0 46px;

    overflow:hidden;

    background:
        linear-gradient(
            180deg,
            #eaf8fc,
            #f8fcfe 50%,
            #fff
        );
}

#track-order::before{
    content:"";

    position:absolute;

    width:270px;
    height:270px;

    left:-140px;
    top:30px;

    border-radius:50%;

    background:
        rgba(8,169,214,.065);

    filter:blur(45px);
}

#track-order::after{
    content:"";

    position:absolute;

    width:220px;
    height:220px;

    right:-120px;
    bottom:-80px;

    border-radius:50%;

    background:
        rgba(245,166,35,.05);

    filter:blur(45px);
}

#track-order .container{
    position:relative;

    z-index:2;
}

#track-order .section-heading{
    margin-bottom:20px;
}

#track-order .section-heading > span{
    padding:6px 13px;

    border-radius:50px;

    background:
        rgba(8,169,214,.09);

    border:
        1px solid rgba(8,169,214,.14);
}

#track-order .section-heading h2{
    font-size:34px;
}


/* TRACK CARD */

.track-order-card{
    position:relative;

    width:min(680px,100%);

    margin:auto;

    padding:
        27px 27px 24px;

    text-align:center;

    overflow:hidden;

    border:
        1px solid rgba(8,169,214,.18);

    border-radius:28px;

    background:
        rgba(255,255,255,.98);

    box-shadow:
        0 20px 48px rgba(20,70,90,.11);

    transition:.3s;
}

.track-order-card:hover{
    transform:translateY(-3px);

    box-shadow:
        0 25px 55px rgba(20,70,90,.14);
}

.track-order-card::before{
    content:"";

    position:absolute;

    top:0;
    right:0;
    left:0;

    height:5px;

    background:
        linear-gradient(
            90deg,
            var(--primary-dark),
            var(--primary),
            var(--accent)
        );
}

.track-order-icon{
    width:70px;
    height:70px;

    margin:
        0 auto 12px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:21px;

    background:
        linear-gradient(
            145deg,
            #e2f7fc,
            #f5fcfe
        );

    border:
        1px solid rgba(8,169,214,.18);

    box-shadow:
        0 9px 23px rgba(8,169,214,.08);

    font-size:31px;
}

.track-order-card h3{
    margin-bottom:5px;

    color:var(--dark);

    font-size:24px;

    font-weight:900;
}

.track-order-card > p{
    margin-bottom:16px;

    color:var(--muted);

    font-size:11px;
}


/* TRACK FORM */

.track-order-form{
    display:flex;

    align-items:stretch;

    gap:8px;

    padding:6px;

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            #edfafd,
            #f8fcfe
        );

    border:
        1px solid rgba(8,169,214,.11);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9);
}

.track-order-form input{
    flex:1;

    min-width:0;

    height:51px;

    padding:
        0 17px;

    border:
        1px solid rgba(8,169,214,.18);

    border-radius:14px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f5fbfd
        );

    color:var(--dark);

    font-size:13px;

    font-weight:600;

    outline:none;

    box-shadow:
        inset 0 2px 7px rgba(20,70,90,.035);

    transition:.25s;
}

.track-order-form input::placeholder{
    color:#8ca1aa;

    font-weight:500;
}

.track-order-form input:focus{
    border-color:
        rgba(8,169,214,.55);

    background:#fff;

    box-shadow:
        0 0 0 3px rgba(8,169,214,.08),
        0 7px 18px rgba(8,169,214,.07);
}

.track-order-form button{
    min-width:150px;

    height:51px;

    padding:
        0 20px;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:#fff;

    font-size:12px;

    font-weight:900;

    box-shadow:
        0 8px 20px rgba(8,169,214,.18);

    transition:.25s;
}

.track-order-form button:hover{
    transform:translateY(-2px);

    box-shadow:
        0 12px 27px rgba(8,169,214,.25);
}

#trackOrderResult{
    margin-top:14px;
}

.track-result{
    padding:17px;

    border-radius:15px;

    background:#eefafd;

    border:
        1px solid rgba(8,169,214,.13);

    text-align:right;
}

.track-result h4{
    color:var(--dark);

    font-size:16px;
}

.track-result p{
    color:var(--muted);

    font-size:11px;
}

.track-status{
    display:inline-flex;

    align-items:center;

    gap:7px;

    margin-top:9px;

    padding:6px 12px;

    border-radius:50px;

    background:#e0f7fc;

    color:var(--primary-dark);

    font-size:10px;

    font-weight:900;
}


/* =========================================================
   CATEGORIES
========================================================= */

#categories{
    position:relative;

    padding:
        48px 0;

    background:
        linear-gradient(
            180deg,
            #f0f9fb,
            #fff
        );
}

.categories-grid{
    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:13px;
}

.category-card{
    position:relative;

    min-height:170px;

    padding:
        19px 10px;

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:center;

    overflow:hidden;

    border:
        1px solid rgba(8,169,214,.13);

    border-radius:23px;

    background:#fff;

    color:var(--dark);

    text-align:center;

    box-shadow:
        0 11px 28px rgba(20,70,90,.075);

    transition:.3s;
}

.category-card:nth-child(1){
    --category-color:var(--primary);
}

.category-card:nth-child(2){
    --category-color:var(--green);
}

.category-card:nth-child(3){
    --category-color:var(--pink);
}

.category-card:nth-child(4){
    --category-color:var(--accent);
}

.category-card:nth-child(5){
    --category-color:var(--purple);
}

.category-card:nth-child(6){
    --category-color:var(--green);
}

.category-card:nth-child(7){
    --category-color:var(--primary);
}

.category-card:nth-child(8){
    --category-color:var(--accent);
}

.category-card::before{
    content:"";

    position:absolute;

    width:90px;
    height:90px;

    left:-35px;
    bottom:-40px;

    border-radius:50%;

    background:
        color-mix(
            in srgb,
            var(--category-color) 8%,
            transparent
        );
}

.category-card:hover{
    transform:translateY(-5px);

    border-color:
        color-mix(
            in srgb,
            var(--category-color) 30%,
            transparent
        );

    box-shadow:
        0 20px 42px rgba(20,70,90,.11);
}

.category-card.active{
    border-color:
        var(--category-color);

    background:
        color-mix(
            in srgb,
            var(--category-color) 5%,
            white
        );
}

.category-card > span{
    position:relative;

    z-index:2;

    width:62px;
    height:62px;

    margin-bottom:11px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:19px;

    background:
        color-mix(
            in srgb,
            var(--category-color) 10%,
            white
        );

    border:
        1px solid
        color-mix(
            in srgb,
            var(--category-color) 18%,
            transparent
        );

    color:
        var(--category-color);

    font-size:28px;

    box-shadow:
        0 7px 17px rgba(20,70,90,.05);
}

.category-card strong{
    position:relative;

    z-index:2;

    font-size:13px;

    font-weight:900;
}


/* =========================================================
   SUBCATEGORIES
========================================================= */

.subcategories{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:12px;

    margin-top:12px;
}

.subcategories[hidden]{
    display:none !important;
}

.subcategories .category-card{
    min-height:140px;
}


/* =========================================================
   PRODUCTS
========================================================= */

.products-section{
    padding:
        48px 0;

    background:
        linear-gradient(
            180deg,
            #fff,
            #eef7fa
        );
}

.products-grid{
    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:15px;
}

.product-card{
    overflow:hidden;

    border:
        1px solid rgba(8,169,214,.11);

    border-radius:21px;

    background:#fff;

    box-shadow:
        0 11px 30px rgba(20,70,90,.075);

    transition:.3s;
}

.product-card:hover{
    transform:translateY(-5px);

    border-color:
        rgba(8,169,214,.28);

    box-shadow:
        0 19px 42px rgba(20,70,90,.12);
}

.product-image{
    position:relative;

    height:205px;

    margin:9px;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:16px;

    background:#edf7fa;
}

.product-image::after{
    content:"";

    position:absolute;

    inset:0;

    border-radius:inherit;

    border:
        1px solid rgba(8,169,214,.08);

    pointer-events:none;
}

.product-image img{
    width:100%;
    height:100%;

    object-fit:cover;

    transition:.4s;
}

.product-card:hover .product-image img{
    transform:scale(1.045);
}

.product-placeholder{
    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:58px;
}

.offer-badge{
    position:absolute;

    top:9px;
    right:9px;

    z-index:3;

    padding:5px 10px;

    border-radius:50px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-dark)
        );

    color:#fff;

    font-size:9px;

    font-weight:900;
}

.product-info{
    padding:
        5px 15px 16px;
}

.product-category{
    color:var(--primary-dark);

    font-size:9px;

    font-weight:800;
}

.product-info h3{
    margin:
        4px 0 10px;

    color:var(--dark);

    font-size:15px;

    font-weight:900;

    line-height:1.5;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

.product-bottom{
    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:10px;
}

.product-price{
    color:var(--primary-dark);

    font-size:13px;

    font-weight:900;
}

.price-box{
    display:flex;

    flex-direction:column;

    line-height:1.35;
}

.price-box del{
    color:#9aaab2;

    font-size:9px;
}

.add-cart-btn{
    width:40px;
    height:40px;

    flex-shrink:0;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-dark)
        );

    color:#fff;

    font-size:20px;

    box-shadow:
        0 7px 18px rgba(245,166,35,.17);

    transition:.25s;
}

.add-cart-btn:hover{
    transform:
        translateY(-2px)
        scale(1.04);
}


/* =========================================================
   EMPTY
========================================================= */

.empty-state{
    padding:40px 20px;

    text-align:center;
}

.empty-state span{
    display:block;

    margin-bottom:8px;

    font-size:45px;
}

.empty-state h3{
    color:var(--dark);

    font-size:19px;
}

.empty-state p{
    color:var(--muted);

    font-size:12px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section{
    padding:
        48px 0;

    background:
        linear-gradient(
            180deg,
            #edf8fb,
            #fff
        );
}

.about-grid{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:13px;
}

.about-card{
    min-height:200px;

    padding:
        23px 18px;

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:center;

    text-align:center;

    border:
        1px solid rgba(8,169,214,.13);

    border-radius:23px;

    background:#fff;

    box-shadow:
        0 12px 30px rgba(20,70,90,.075);

    transition:.3s;
}

.about-card:hover{
    transform:translateY(-4px);

    box-shadow:
        0 20px 42px rgba(20,70,90,.11);
}

.about-card > span{
    width:61px;
    height:61px;

    margin-bottom:11px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:19px;

    background:#e9f9fd;

    border:
        1px solid rgba(8,169,214,.16);

    font-size:29px;
}

.about-card h3{
    margin-bottom:5px;

    color:var(--dark);

    font-size:18px;

    font-weight:900;
}

.about-card p{
    max-width:270px;

    color:var(--muted);

    font-size:11px;

    line-height:1.85;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section{
    padding:
        48px 0;

    background:
        linear-gradient(
            145deg,
            #eaf7fb,
            #fff
        );
}

.contact-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:11px;
}

.contact-card{
    position:relative;

    min-height:105px;

    padding:
        16px 20px;

    display:flex;

    align-items:center;

    gap:15px;

    overflow:hidden;

    text-align:right;

    border:
        1px solid rgba(8,169,214,.13);

    border-radius:21px;

    background:#fff;

    box-shadow:
        0 11px 29px rgba(20,70,90,.075);

    transition:.3s;
}

.contact-card:hover{
    transform:translateY(-4px);

    box-shadow:
        0 19px 40px rgba(20,70,90,.11);
}

.contact-card > span{
    width:60px;
    height:60px;

    flex-shrink:0;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:18px;

    background:#eaf9fd;

    border:
        1px solid rgba(8,169,214,.16);

    font-size:27px;
}

.contact-card strong{
    display:block;

    margin-bottom:2px;

    color:var(--dark);

    font-size:15px;

    font-weight:900;
}

.contact-card small{
    display:block;

    color:var(--muted);

    font-size:10px;

    line-height:1.7;
}

.contact-card::after{
    content:"‹";

    position:absolute;

    left:13px;
    top:50%;

    width:29px;
    height:29px;

    display:flex;
    align-items:center;
    justify-content:center;

    transform:translateY(-50%);

    border-radius:50%;

    background:#edf9fc;

    color:var(--primary-dark);

    font-size:21px;
}

.contact-card:hover::after{
    background:var(--accent);

    color:#fff;
}


/* =========================================================
   FOOTER
========================================================= */

.footer{
    padding:
        27px 0 18px;

    background:
        #123746;

    color:#b7d0d9;

    text-align:center;
}

.footer p{
    color:#fff;

    font-size:12px;

    font-weight:800;
}

.footer small{
    display:block;

    margin-top:2px;

    color:#8eacb7;

    font-size:9px;
}


/* =========================================================
   OVERLAY
========================================================= */

.overlay{
    position:fixed;

    inset:0;

    z-index:10000;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:18px;

    background:
        rgba(16,39,49,.48);

    backdrop-filter:blur(9px);
    -webkit-backdrop-filter:blur(9px);

    opacity:0;
    visibility:hidden;

    pointer-events:none;

    transition:.3s;
}

.overlay.active{
    opacity:1;

    visibility:visible;

    pointer-events:auto;
}


/* =========================================================
   MODALS
========================================================= */

.cart-modal,
.checkout-modal{
    width:min(600px,100%);

    max-height:90vh;

    overflow-y:auto;

    padding:24px;

    border:
        1px solid rgba(8,169,214,.16);

    border-radius:23px;

    background:#fff;

    box-shadow:
        0 30px 80px rgba(20,70,90,.25);

    transform:
        translateY(25px)
        scale(.98);

    transition:.3s;
}

.overlay.active .cart-modal,
.overlay.active .checkout-modal{
    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   MODAL HEADER
========================================================= */

.modal-header{
    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:15px;

    padding-bottom:16px;

    border-bottom:
        1px solid rgba(8,169,214,.09);
}

.modal-header h3{
    color:var(--dark);

    font-size:19px;

    font-weight:900;
}

.modal-header button{
    width:34px;
    height:34px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#edf8fb;

    color:var(--dark);

    font-size:21px;

    transition:.25s;
}

.modal-header button:hover{
    background:var(--accent);

    color:#fff;

    transform:rotate(90deg);
}


/* =========================================================
   CART ITEMS
========================================================= */

.cart-items{
    margin-top:4px;
}

.cart-item{
    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:14px;

    padding:14px 0;

    border-bottom:
        1px solid rgba(20,70,90,.07);
}

.cart-item-info{
    min-width:0;

    display:flex;

    align-items:center;

    gap:9px;
}

.cart-item-info img,
.cart-item-placeholder{
    width:54px;
    height:54px;

    flex-shrink:0;

    border-radius:12px;

    background:#edf9fc;
}

.cart-item-info img{
    object-fit:cover;
}

.cart-item-placeholder{
    display:flex;

    align-items:center;
    justify-content:center;

    font-size:24px;
}

.cart-item-info strong{
    display:block;

    max-width:205px;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    color:var(--dark);

    font-size:12px;
}

.cart-item-info small{
    display:block;

    color:var(--primary-dark);

    font-size:9px;
}

.cart-item-actions{
    display:flex;

    align-items:center;

    gap:4px;
}

.cart-item-actions button{
    width:30px;
    height:30px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:9px;

    background:#eaf9fd;

    color:var(--primary-dark);

    font-size:15px;

    font-weight:900;
}

.cart-item-actions button:hover{
    background:var(--primary);

    color:#fff;
}

.cart-item-actions span{
    min-width:27px;

    text-align:center;

    color:var(--dark);

    font-size:12px;

    font-weight:900;
}

.cart-item-actions .remove-btn{
    margin-right:3px;

    background:#fff0ef;

    color:#d95c56;
}

.cart-item-actions .remove-btn:hover{
    background:#d95c56;

    color:#fff;
}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart{
    padding:42px 10px;

    text-align:center;
}

.empty-cart > span{
    display:block;

    margin-bottom:7px;

    font-size:45px;
}

.empty-cart h3{
    margin-bottom:4px;

    color:var(--dark);

    font-size:18px;

    font-weight:900;
}

.empty-cart p{
    margin-bottom:16px;

    color:var(--muted);

    font-size:11px;
}


/* =========================================================
   CART FOOTER
========================================================= */

.cart-footer{
    padding-top:13px;
}

.cart-total-row{
    display:flex;

    align-items:center;
    justify-content:space-between;

    margin-top:9px;

    padding:15px;

    border-radius:15px;

    background:#edf9fc;

    border:
        1px solid rgba(8,169,214,.11);
}

.cart-total-row > span{
    color:var(--muted);

    font-size:12px;
}

.cart-total-row strong{
    color:var(--primary-dark);

    font-size:17px;

    font-weight:900;
}

.checkout-btn,
.submit-order-btn{
    width:100%;

    min-height:45px;

    margin-top:11px;

    border-radius:13px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-dark)
        );

    color:#fff;

    font-weight:900;

    box-shadow:
        0 8px 22px rgba(245,166,35,.17);

    transition:.25s;
}

.checkout-btn:hover,
.submit-order-btn:hover{
    transform:translateY(-2px);
}


/* =========================================================
   CHECKOUT FORM
========================================================= */

.checkout-form{
    padding-top:2px;
}

.form-group{
    margin-top:16px;
}

.form-group label{
    display:block;

    margin-bottom:6px;

    color:var(--dark);

    font-size:11px;

    font-weight:800;
}

.form-group input,
.form-group textarea{
    width:100%;

    padding:11px 13px;

    border:
        1px solid rgba(8,169,214,.13);

    border-radius:12px;

    outline:none;

    background:#f8fcfe;

    color:var(--text);

    font-size:12px;

    resize:vertical;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color:var(--primary);

    background:#fff;

    box-shadow:
        0 0 0 3px rgba(8,169,214,.07);
}


/* =========================================================
   DELIVERY
========================================================= */

.delivery-options{
    display:grid !important;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:12px;
}

.delivery-option{
    position:relative;

    min-height:120px;

    padding:17px 11px;

    display:flex !important;

    align-items:center;
    justify-content:center;

    text-align:center;

    border-radius:17px !important;

    border:
        2px solid rgba(8,169,214,.10) !important;

    background:#f8fcfe;

    cursor:pointer;

    transition:.2s;
}

.delivery-option:hover{
    border-color:
        rgba(8,169,214,.40) !important;
}

.delivery-option:has(input:checked){
    border-color:
        var(--primary) !important;

    background:#eaf9fd;

    box-shadow:
        0 7px 22px rgba(8,169,214,.07);
}

.delivery-option input{
    position:absolute;

    top:13px;
    right:13px;

    width:21px;
    height:21px;

    accent-color:var(--primary);
}

.delivery-option span{
    display:flex !important;

    flex-direction:column;

    align-items:center;

    gap:7px;

    color:var(--dark);

    font-size:17px;
}


/* =========================================================
   CHECKOUT SUMMARY
========================================================= */

.checkout-summary{
    margin-top:20px;

    padding:15px;

    border-radius:15px;

    background:#f1f9fc;

    border:
        1px solid rgba(8,169,214,.09);
}

.checkout-summary h4{
    margin-bottom:9px;

    color:var(--dark);

    font-size:13px;

    font-weight:900;
}

.checkout-item{
    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:15px;

    padding:7px 0;

    border-bottom:
        1px solid rgba(20,70,90,.06);

    color:var(--muted);

    font-size:10px;
}

.checkout-item strong{
    color:var(--dark);

    font-size:10px;
}

.checkout-total{
    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:15px;

    padding-top:11px;
}

.checkout-total span{
    color:var(--muted);

    font-size:11px;
}

.checkout-total strong{
    color:var(--primary-dark);

    font-size:16px;

    font-weight:900;
}


/* =========================================================
   GOVERNORATE
========================================================= */

.governorate-choice-grid{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:12px;

    margin-top:11px;
}

.governorate-choice{
    position:relative;

    min-height:125px;

    padding:17px 11px;

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:center;

    gap:6px;

    background:#f8fcfe;

    border:
        2px solid rgba(8,169,214,.10);

    border-radius:17px;

    color:var(--dark);

    cursor:pointer;

    transition:.2s;
}

.governorate-choice:hover{
    transform:translateY(-2px);
}

.governorate-choice.selected{
    border-color:
        var(--primary) !important;

    background:#eaf9fd !important;
}

.governorate-choice input{
    position:absolute;

    opacity:0;

    pointer-events:none;
}

.governorate-choice.selected .governorate-check{
    border-color:
        var(--primary) !important;

    background:
        var(--primary) !important;
}

.governorate-choice.selected
.governorate-check::after{
    content:"";

    position:absolute;

    width:7px;
    height:7px;

    background:#fff;

    border-radius:50%;

    top:50%;
    left:50%;

    transform:
        translate(-50%,-50%);
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar{
    width:7px;
}

::-webkit-scrollbar-track{
    background:#e6f1f5;
}

::-webkit-scrollbar-thumb{
    background:#91d8e9;

    border-radius:50px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--primary);
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:950px){

    .nav{
        gap:12px;
    }

    .nav a{
        font-size:10px;
    }

    .categories-grid{
        grid-template-columns:
            repeat(3,1fr);
    }

    .products-grid{
        grid-template-columns:
            repeat(2,1fr);
    }

    .about-grid{
        grid-template-columns:
            repeat(2,1fr);
    }

    .contact-grid{
        grid-template-columns:
            repeat(2,1fr);
    }
}


@media(max-width:700px){

    .container{
        width:92%;
        max-width:92%;
    }


    /* HEADER */

    .header-inner{
        min-height:64px;

        gap:7px;
    }

    .logo{
        min-width:0;

        font-size:13px;

        gap:5px;
    }

    .logo-icon{
        width:33px;
        height:33px;

        font-size:18px;
    }

    .logo > span:last-child{
        overflow:hidden;

        text-overflow:ellipsis;

        white-space:nowrap;
    }

    .nav{
        display:none;
    }


    /* CART */

    .cart-button{
        min-width:77px;

        height:38px;

        padding:5px 7px;

        gap:4px;

        border-radius:10px;

        font-size:9px;
    }

    .cart-button b{
        min-width:20px;
        height:20px;

        font-size:8px;
    }


    /* HERO */

    .hero{
        min-height:500px;

        padding:
            64px 0 22px;

        background-position:center center;
    }

    .hero-content{
        display:none !important;
    }


    /* QUICK */

    .quick-links{
        margin-top:-20px;

        padding-bottom:8px;
    }

    .quick-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap:8px;
    }

    .quick-card{
        min-height:145px;

        padding:
            16px 7px;

        border-radius:21px;

        gap:7px;
    }

    .quick-card > span{
        width:56px;
        height:56px;

        border-radius:17px;

        font-size:25px;
    }

    .quick-card strong{
        font-size:13px;
    }

    .quick-card small{
        font-size:8px;
    }

    .quick-card::after{
        width:4px;
        height:38px;
    }


    /* SECTIONS */

    .section{
        padding:
            43px 0;
    }

    .section-heading{
        margin-bottom:21px;
    }

    .section-heading > span{
        font-size:10px;
    }

    .section-heading h2{
        font-size:27px;
    }

    .section-heading p{
        font-size:10px;
    }


    /* TRACK */

    #track-order{
        padding:
            39px 0 42px;
    }

    #track-order .section-heading{
        margin-bottom:17px;
    }

    #track-order .section-heading h2{
        font-size:27px;
    }

    .track-order-card{
        padding:
            23px 13px 18px;

        border-radius:23px;
    }

    .track-order-icon{
        width:62px;
        height:62px;

        margin-bottom:10px;

        border-radius:19px;

        font-size:28px;
    }

    .track-order-card h3{
        font-size:21px;
    }

    .track-order-card > p{
        margin-bottom:13px;

        font-size:9px;
    }

    .track-order-form{
        flex-direction:column;

        gap:7px;

        padding:5px;
    }

    .track-order-form input{
        width:100%;

        height:50px;

        border-radius:13px;

        font-size:12px;
    }

    .track-order-form button{
        width:100%;

        min-width:0;

        height:50px;

        border-radius:13px;
    }


    /* CATEGORIES */

    #categories{
        padding:
            43px 0;
    }

    .categories-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap:8px;
    }

    .category-card{
        min-height:145px;

        padding:
            16px 6px;

        border-radius:20px;
    }

    .category-card > span{
        width:55px;
        height:55px;

        margin-bottom:9px;

        border-radius:17px;

        font-size:24px;
    }

    .category-card strong{
        font-size:10px;
    }

    .subcategories{
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap:8px;

        margin-top:8px;
    }

    .subcategories .category-card{
        min-height:130px;
    }


    /* PRODUCTS */

    .products-section{
        padding:
            43px 0;
    }

    .products-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap:8px;
    }

    .product-card{
        border-radius:17px;
    }

    .product-image{
        height:112px;

        margin:6px;

        border-radius:12px;
    }

    .product-info{
        padding:
            3px 8px 9px;
    }

    .product-category{
        font-size:7px;
    }

    .product-info h3{
        margin:
            3px 0 6px;

        font-size:10px;
    }

    .product-price{
        font-size:8px;
    }

    .price-box del{
        font-size:6px;
    }

    .add-cart-btn{
        width:30px;
        height:30px;

        border-radius:8px;

        font-size:16px;
    }


    /* ABOUT */

    .about-section{
        padding:
            43px 0;
    }

    .about-grid{
        grid-template-columns:1fr;

        gap:8px;
    }

    .about-card{
        min-height:150px;

        padding:
            18px 14px;

        border-radius:20px;
    }

    .about-card > span{
        width:51px;
        height:51px;

        margin-bottom:8px;

        border-radius:16px;

        font-size:24px;
    }

    .about-card h3{
        font-size:16px;
    }

    .about-card p{
        font-size:9px;
    }


    /* CONTACT */

    .contact-section{
        padding:
            43px 0;
    }

    .contact-grid{
        grid-template-columns:1fr;

        gap:8px;
    }

    .contact-card{
        min-height:95px;

        padding:
            13px 16px;

        gap:11px;

        border-radius:19px;
    }

    .contact-card > span{
        width:52px;
        height:52px;

        border-radius:16px;

        font-size:24px;
    }

    .contact-card strong{
        font-size:13px;
    }

    .contact-card small{
        font-size:9px;
    }

    .contact-card::after{
        left:9px;

        width:27px;
        height:27px;

        font-size:20px;
    }


    /* MODALS */

    .overlay{
        align-items:flex-end;

        padding:0;
    }

    .cart-modal,
    .checkout-modal{
        width:100%;

        max-height:92vh;

        border-radius:
            22px 22px 0 0;

        padding:17px;
    }

    .modal-header h3{
        font-size:17px;
    }

    .cart-item{
        gap:8px;

        padding:12px 0;
    }

    .cart-item-info img,
    .cart-item-placeholder{
        width:49px;
        height:49px;
    }

    .cart-item-info strong{
        max-width:120px;

        font-size:11px;
    }

    .cart-item-actions button{
        width:28px;
        height:28px;
    }


    /* DELIVERY */

    .delivery-options{
        grid-template-columns:
            1fr 1fr !important;

        gap:9px;
    }

    .delivery-option{
        min-height:110px;
    }

    .governorate-choice-grid{
        grid-template-columns:
            1fr 1fr;

        gap:9px;
    }

    .governorate-choice{
        min-height:110px;
    }


    /* FOOTER */

    .footer{
        padding:
            24px 0 16px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:390px){

    .logo{
        font-size:11px;
    }

    .logo-icon{
        width:30px;
        height:30px;

        font-size:16px;
    }

    .cart-button{
        min-width:73px;

        font-size:8px;
    }

    .hero{
        min-height:465px;
    }

    .quick-card{
        min-height:138px;
    }

    .quick-card > span{
        width:52px;
        height:52px;

        border-radius:16px;

        font-size:23px;
    }

    .quick-card strong{
        font-size:11px;
    }

    .quick-card small{
        font-size:7px;
    }

    .section-heading h2{
        font-size:25px;
    }

    .category-card{
        min-height:137px;
    }

    .category-card > span{
        width:51px;
        height:51px;

        font-size:22px;
    }

    .category-card strong{
        font-size:9px;
    }

    .product-image{
        height:103px;
    }

    .product-info h3{
        font-size:9px;
    }

    .contact-card{
        min-height:91px;
    }
}


/* =========================================================
   FINAL SAFETY
========================================================= */

.subcategories[hidden]{
    display:none !important;
}

.hero,
.quick-links,
.section,
.footer,
.contact-section,
.products-section,
.about-section,
#categories{
    width:100%;
    max-width:100%;
}

.quick-grid,
.categories-grid,
.products-grid,
.about-grid,
.contact-grid,
.subcategories{
    width:100%;
    max-width:100%;
}

.quick-card,
.category-card,
.product-card,
.about-card,
.contact-card{
    min-width:0;
    max-width:100%;
}

.hero{
    overflow:hidden;
}

.hero-content{
    overflow:hidden;
}
/* =========================================================
   PREMIUM PHARMACY HEADER
   ألوان مستوحاة من شعار الصيدلية
========================================================= */

.header {
    background:
        linear-gradient(
            135deg,
            #087f9f 0%,
            #08a9d6 55%,
            #087f9f 100%
        ) !important;

    border-bottom:
        1px solid rgba(255,255,255,.22) !important;

    box-shadow:
        0 8px 30px rgba(0,80,110,.28) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


.header-inner {
    min-height: 72px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 15px !important;
}


/* NAV */

.nav {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

.nav a {
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 800 !important;

    text-shadow:
        0 1px 2px rgba(0,0,0,.12);

    transition: .25s ease !important;
}

.nav a::after {
    background:
        linear-gradient(
            90deg,
            #ffffff,
            #f5a623
        ) !important;

    box-shadow:
        0 0 10px rgba(255,255,255,.5) !important;
}

.nav a:hover {
    color: #ffffff !important;

    transform:
        translateY(-1px);
}


/* CART */

.cart-button {
    position: relative !important;

    min-width: 105px !important;
    height: 48px !important;

    padding: 7px 14px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    border-radius: 15px !important;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #eefcff 100%
        ) !important;

    color: #087f9f !important;

    border:
        1px solid rgba(255,255,255,.75) !important;

    box-shadow:
        0 7px 18px rgba(0,0,0,.18),
        0 0 0 2px rgba(245,166,35,.12) !important;

    font-size: 13px !important;
    font-weight: 900 !important;

    transition: .25s ease !important;
}


/* Cart icon */

.cart-button .cart-icon {
    font-size: 23px !important;

    line-height: 1;
}


/* Cart text */

.cart-button .cart-label {
    color: #087f9f !important;

    font-weight: 900 !important;
}


/* Cart count */

.cart-button #cartCount,
.cart-button b {
    position: absolute !important;

    top: -8px !important;
    left: -7px !important;

    min-width: 23px !important;
    height: 23px !important;

    padding: 0 5px !important;

    display: grid !important;
    place-items: center !important;

    border-radius: 50% !important;

    background:
        linear-gradient(
            135deg,
            #f5a623,
            #e88b08
        ) !important;

    color: #ffffff !important;

    border:
        2px solid #ffffff !important;

    box-shadow:
        0 4px 10px rgba(0,0,0,.20) !important;

    font-size: 10px !important;
    font-weight: 900 !important;
}


/* Cart hover */

.cart-button:hover {
    transform:
        translateY(-2px) !important;

    box-shadow:
        0 10px 25px rgba(0,0,0,.22),
        0 0 0 2px rgba(245,166,35,.22) !important;
}


/* Cart click */

.cart-button:active {
    transform:
        scale(.96) !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width:700px) {

    .header-inner {
        min-height: 64px !important;

        width: 92% !important;

        gap: 8px !important;
    }


    .nav {
        display: none !important;
    }


    .cart-button {
        min-width: 105px !important;

        height: 46px !important;

        padding: 6px 13px !important;

        border-radius: 15px !important;

        font-size: 13px !important;
    }


    .cart-button .cart-icon {
        font-size: 22px !important;
    }


    .cart-button .cart-label {
        font-size: 13px !important;
    }


    .cart-button #cartCount,
    .cart-button b {
        min-width: 23px !important;
        height: 23px !important;

        top: -7px !important;
        left: -6px !important;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width:390px) {

    .cart-button {
        min-width: 98px !important;

        height: 44px !important;

        padding: 5px 11px !important;
    }

    .cart-button .cart-icon {
        font-size: 20px !important;
    }

    .cart-button .cart-label {
        font-size: 12px !important;
    }

}
/* =========================================================
   FINAL PREMIUM HEADER — MOBILE FIX
========================================================= */

.header {
    background:
        linear-gradient(
            135deg,
            #087f9f 0%,
            #08a9d6 55%,
            #087f9f 100%
        ) !important;

    border-bottom: 1px solid rgba(255,255,255,.22) !important;

    box-shadow:
        0 6px 25px rgba(0,80,110,.25) !important;
}

.header-inner {
    min-height: 64px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 0 !important;
}


/* السلة */

.cart-button {
    position: relative !important;

    min-width: 108px !important;
    height: 46px !important;

    margin-right: auto !important;

    padding: 6px 14px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    border-radius: 16px !important;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #eefcff
        ) !important;

    color: #087f9f !important;

    border: 1px solid rgba(255,255,255,.8) !important;

    box-shadow:
        0 7px 18px rgba(0,0,0,.18),
        0 0 0 2px rgba(245,166,35,.12) !important;

    font-size: 13px !important;
    font-weight: 900 !important;

    transition: .25s ease !important;
}


/* أيقونة السلة */

.cart-button .cart-icon {
    font-size: 23px !important;
    line-height: 1 !important;
}


/* كلمة السلة */

.cart-button .cart-label {
    color: #087f9f !important;
    font-weight: 900 !important;
}


/* رقم المنتجات */

.cart-button #cartCount,
.cart-button b {
    position: absolute !important;

    top: -7px !important;
    left: -7px !important;

    min-width: 23px !important;
    height: 23px !important;

    padding: 0 5px !important;

    display: grid !important;
    place-items: center !important;

    border-radius: 50% !important;

    background:
        linear-gradient(
            135deg,
            #f5a623,
            #e88b08
        ) !important;

    color: white !important;

    border: 2px solid white !important;

    box-shadow:
        0 4px 10px rgba(0,0,0,.2) !important;

    font-size: 10px !important;
    font-weight: 900 !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width:700px) {

    .header-inner {
        width: 92% !important;
        max-width: 92% !important;

        min-height: 60px !important;

        margin: auto !important;

        display: flex !important;
        align-items: center !important;

        justify-content: flex-start !important;
    }

    .nav {
        display: none !important;
    }

    .cart-button {
        min-width: 104px !important;

        height: 44px !important;

        margin-right: auto !important;

        border-radius: 15px !important;

        padding: 5px 12px !important;
    }

    .cart-button .cart-icon {
        font-size: 21px !important;
    }

    .cart-button .cart-label {
        font-size: 13px !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width:390px) {

    .header-inner {
        min-height: 58px !important;
    }

    .cart-button {
        min-width: 98px !important;

        height: 42px !important;

        padding: 5px 10px !important;
    }

    .cart-button .cart-icon {
        font-size: 20px !important;
    }

    .cart-button .cart-label {
        font-size: 12px !important;
    }

    .cart-button #cartCount,
    .cart-button b {
        min-width: 22px !important;
        height: 22px !important;

        top: -6px !important;
        left: -6px !important;
    }

}
@media (max-width: 700px) {
    .header-inner {
        justify-content: flex-start !important;
    }

    .cart-button {
        margin-right: auto !important;
        margin-left: 0 !important;
    }
}
/* عرض صورة الـ Hero كاملة على الهاتف */
@media (max-width: 700px) {
    .hero {
        min-height: 0 !important;
        height: 100vw !important;
        padding: 0 !important;

        background-image: url("images/pharmacy-hero.webp") !important;
        background-size: 100% 100% !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
}
@media (max-width: 700px) {
    .header-inner {
        min-height: 50px !important;
    }

    .header {
        height: 50px !important;
    }

    .cart-button {
        min-width: 72px !important;
        height: 34px !important;
        padding: 4px 7px !important;
        font-size: 9px !important;
    }

    .cart-button b {
        min-width: 19px !important;
        height: 19px !important;
        font-size: 8px !important;
    }
}
.footer {
    background: linear-gradient(135deg, #0d3d4c, #087ea8) !important;
    color: #ffffff;
    border-top: 3px solid #08a9d6;
}

.footer p,
.footer span {
    color: rgba(255,255,255,.85);
}
/* =====================================================
   CONTACT — NEW PROFESSIONAL STYLE
===================================================== */

.contact-section {
    background: linear-gradient(145deg, #fffaf0, #f4eee3) !important;
    padding-top: 70px;
    padding-bottom: 70px;
}

.contact-section .section-heading h2 {
    color: #17324d !important;
}

.contact-section .section-heading > span {
    color: #b28a3c !important;
}

.contact-section .section-heading p {
    color: #65727c !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-card {
    min-height: 115px;
    padding: 18px 22px !important;

    display: flex;
    align-items: center;
    gap: 16px;

    background: rgba(255,255,255,.92) !important;

    border: 1px solid rgba(178,138,60,.18) !important;
    border-radius: 22px !important;

    box-shadow:
        0 12px 30px rgba(35,50,70,.08) !important;

    transition: .3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(178,138,60,.38) !important;
}

.contact-card > span {
    width: 62px !important;
    height: 62px !important;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px !important;

    background: linear-gradient(
        145deg,
        #eef8f6,
        #dcefeb
    ) !important;

    border: 1px solid rgba(22,160,145,.15) !important;

    font-size: 28px !important;
}

.contact-card strong {
    color: #17324d !important;
    font-size: 16px !important;
}

.contact-card small {
    color: #7b858c !important;
    font-size: 11px !important;
}

/* سهم البطاقة */
.contact-card::after {
    background: #f4ead5 !important;
    color: #a17a32 !important;
}

/* الموبايل */
@media (max-width: 700px) {

    .contact-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-card {
        min-height: 100px;
        padding: 15px 17px !important;
        border-radius: 20px !important;
    }

    .contact-card > span {
        width: 56px !important;
        height: 56px !important;
        border-radius: 17px !important;
        font-size: 25px !important;
    }

    .contact-card strong {
        font-size: 14px !important;
    }

    .contact-card small {
        font-size: 10px !important;
    }
}
/* توحيد حجم أيقونات التواصل */
.contact-icon svg {
    width: 38px;
    height: 38px;
    display: block;
}
/* =====================================================
   FOOTER — PROFESSIONAL PHARMACY STYLE
===================================================== */

.footer {
    background: linear-gradient(135deg, #17324d, #0d5260) !important;
    color: #ffffff !important;
    border-top: 3px solid #b28a3c !important;
    padding: 28px 20px !important;
}

.footer p,
.footer span,
.footer a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer a:hover {
    color: #f1d59b !important;
}

@media (max-width: 700px) {
    .footer {
        padding: 24px 16px !important;
    }
}
/* تقليل المسافة بين الأقسام */
.about-section {
    padding-bottom: 35px !important;
}

.contact-section {
    padding-top: 35px !important;
}
/* تقليل المسافات بين الأقسام */
@media (max-width: 700px) {

    #categories {
        padding-bottom: 25px !important;
    }

    .products-section {
        padding-top: 25px !important;
    }

    .about-section {
        padding-bottom: 25px !important;
    }
}
/* تقليل الفراغ فوق قسم الأقسام */
@media (max-width: 700px) {
    #categories {
        padding-top: 35px !important;
    }
}
/* =========================================
   HEADER — SPACING + FONT
   ========================================= */

header,
.navbar,
nav {
    font-family: "Cairo", sans-serif !important;
}

/* ترتيب عناصر الشريط */
nav ul,
.nav-links {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 38px !important;
}

/* روابط الشريط */
nav a,
.nav-links a {
    font-family: "Cairo", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* زر السلة */
.cart,
.cart-btn,
.cart-button {
    font-family: "Cairo", sans-serif !important;
    font-weight: 800 !important;
}

/* الموبايل */
@media (max-width: 700px) {

    nav ul,
    .nav-links {
        gap: 20px !important;
    }

    nav a,
    .nav-links a {
        font-size: 13px !important;
        font-weight: 700 !important;
    }
}
/* =====================================================
   FINAL HEADER — CLEAN SPACING
===================================================== */

.header-inner{
    min-height:72px !important;
    width:min(1150px,92%) !important;
    margin:auto !important;

    display:flex !important;
    align-items:center !important;

    /* السلة يسار — القائمة يمين */
    justify-content:space-between !important;

    gap:30px !important;
}

/* القائمة */
.nav{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    gap:38px !important;

    margin-right:auto !important;
    margin-left:auto !important;
}

/* روابط القائمة */
.nav a{
    font-family:"Cairo",sans-serif !important;

    color:#fff !important;

    font-size:16px !important;
    font-weight:800 !important;

    line-height:1 !important;

    white-space:nowrap !important;

    padding:8px 2px !important;

    transition:.25s ease !important;
}

/* الخط تحت الرابط */
.nav a::after{
    bottom:-8px !important;
}

/* السلة */
.cart-button{
    flex-shrink:0 !important;

    min-width:105px !important;
    height:48px !important;

    margin:0 !important;

    border-radius:15px !important;
}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width:700px){

    .header-inner{
        min-height:50px !important;
        width:92% !important;

        justify-content:flex-start !important;

        gap:0 !important;
    }

    .nav{
        display:none !important;
    }

    .cart-button{
        min-width:72px !important;
        height:34px !important;

        margin-right:auto !important;

        padding:4px 7px !important;

        border-radius:11px !important;

        font-size:9px !important;
    }
}
@media (min-width:701px){

    .header-inner{
        gap:10px !important;
    }

    .nav{
        gap:30px !important;
        margin-right:auto !important;
        margin-left:20px !important;
    }

    .nav a{
        font-size:15px !important;
        padding:6px 0 !important;
    }

    .cart-button{
        min-width:100px !important;
        height:46px !important;
    }
}
/* =====================================================
   PREMIUM NAVIGATION
===================================================== */

.nav{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    gap:10px !important;
}

.nav a{
    position:relative !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    min-width:105px !important;
    height:44px !important;

    padding:0 15px !important;

    border-radius:13px !important;

    color:#ffffff !important;

    font-family:"Cairo",sans-serif !important;
    font-size:14px !important;
    font-weight:800 !important;

    white-space:nowrap !important;

    background:transparent !important;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease,
        color .25s ease !important;
}

/* خط صغير أسفل القسم */
.nav a::after{
    content:"" !important;

    position:absolute !important;

    right:50% !important;
    bottom:4px !important;

    width:0 !important;
    height:2px !important;

    transform:translateX(50%) !important;

    border-radius:20px !important;

    background:#f5a623 !important;

    box-shadow:
        0 0 8px rgba(245,166,35,.5) !important;

    transition:.25s ease !important;
}

/* عند المرور */
.nav a:hover{
    background:
        rgba(255,255,255,.13) !important;

    color:#ffffff !important;

    transform:translateY(-1px) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12) !important;
}

.nav a:hover::after{
    width:35px !important;
}

/* القسم النشط */
.nav a.active{
    background:
        rgba(255,255,255,.16) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 5px 15px rgba(0,0,0,.08) !important;
}

.nav a.active::after{
    width:35px !important;
}


/* =====================================================
   DESKTOP SPACING
===================================================== */

@media(min-width:701px){

    .nav{
        gap:7px !important;
    }

    .nav a{
        min-width:108px !important;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:700px){

    .nav{
        display:none !important;
    }

}
/* =====================================================
   FINAL NAV — BALANCED
===================================================== */

@media (min-width:701px){

    .header-inner{
        width:92% !important;
        max-width:1150px !important;
        margin:auto !important;

        gap:12px !important;
    }

    .nav{
        flex:1 !important;
        min-width:0 !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        gap:4px !important;

        margin:0 !important;
    }

    .nav a{
        min-width:auto !important;

        height:42px !important;

        padding:
            0 12px !important;

        font-size:14px !important;

        flex:0 1 auto !important;
    }

    .cart-button{
        flex:0 0 100px !important;

        min-width:100px !important;

        margin:0 !important;
    }
}