:root {
    --navy:#123047;
    --teal:#087f8c;
    --mint:#e9f7f6;
    --yellow:#f5c84c;
    --ink:#1d2935;
    --muted:#687782;
    --line:#e5ebef;
    --bg:#f7f9fb;
    --white:#fff;
    --radius:16px;
    --shadow:0 8px 28px rgba(18,48,71,.08)
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
    color:var(--ink);
    background:var(--bg);
    line-height:1.55
}

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

button,input,textarea,select {
    font:inherit
}

.container {
    width:min(1180px,calc(100% - 32px));
    margin:auto
}

.topbar {
    background:var(--navy);
    color:#dbe8ee;
    font-size:13px;
    padding:8px 0
}

.topbar .container {
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap
}

.header {
    background:#fff;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:10
}

.nav {
    min-height:78px;
    display:flex;
    align-items:center;
    gap:26px
}

.brand {
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:850;
    color:var(--navy);
    font-size:21px;
    white-space:nowrap
}

.brand-mark {
    width:39px;
    height:39px;
    border-radius:12px;
    background:var(--teal);
    display:grid;
    place-items:center;
    color:white;
    font-weight:900;
    font-size:22px
}

.brand small {
    display:block;
    font-size:10px;
    letter-spacing:2px;
    color:var(--teal);
    margin-top:-5px
}

.search {
    flex:1;
    display:flex;
    position:relative
}

.search input {
    width:100%;
    border:1px solid var(--line);
    background:#f8fafb;
    border-radius:11px;
    padding:12px 15px;
    outline:none
}

.search input:focus,.field input:focus,.field textarea:focus {
    border-color:var(--teal);
    box-shadow:0 0 0 3px #087f8c1a
}

.nav-actions {
    display:flex;
    align-items:center;
    gap:10px
}

.icon-link {
    display:flex;
    align-items:center;
    gap:7px;
    padding:10px 12px;
    border-radius:10px;
    font-weight:650;
    font-size:14px
}

.icon-link:hover {
    background:var(--mint)
}

.cart-count {
    background:var(--yellow);
    border-radius:50%;
    min-width:20px;
    height:20px;
    display:inline-grid;
    place-items:center;
    font-size:12px
}

.subnav {
    border-top:1px solid #f0f2f4
}

.subnav .container {
    display:flex;
    gap:25px;
    overflow:auto;
    white-space:nowrap;
    padding:11px 0;
    font-size:14px;
    color:#50616d
}

.subnav a:hover {
    color:var(--teal)
}

.hero {
    margin:26px auto 32px;
    border-radius:24px;
    overflow:hidden;
    background:linear-gradient(115deg,#103047 0%,#0c6474 100%);
    color:white;
    position:relative
}

.hero-inner {
    padding:clamp(30px,6vw,70px);
    max-width:720px
}

.eyebrow {
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:2px;
    font-weight:800;
    color:var(--yellow)
}

h1,h2,h3,p {
    margin-top:0
}

h1 {
    font-size:clamp(32px,5vw,54px);
    line-height:1.08;
    letter-spacing:-1.5px;
    margin:14px 0 18px
}

h2 {
    font-size:clamp(24px,3vw,32px);
    letter-spacing:-.7px;
    margin-bottom:8px;
    color:var(--navy)
}

.hero p {
    color:#d7e8ed;
    font-size:17px;
    max-width:560px
}

.hero-cta {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:26px
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:0;
    border-radius:10px;
    padding:12px 18px;
    background:var(--teal);
    color:white;
    font-weight:750;
    cursor:pointer;
    transition:.2s
}

.btn:hover {
    filter:brightness(.94);
    transform:translateY(-1px)
}

.btn-primary {
    background:var(--yellow);
    color:var(--navy)
}

.btn-outline {
    border:1px solid #ffffff80;
    background:transparent;
    color:white
}

.btn-light {
    background:var(--mint);
    color:var(--teal)
}

.btn-dark {
    background:var(--navy);
    color:white
}

.section {
    padding:18px 0 34px
}

.section-head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:20px
}

.section-head p {
    color:var(--muted);
    margin-bottom:0
}

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

.category {
    padding:22px;
    background:white;
    border:1px solid var(--line);
    border-radius:var(--radius);
    transition:.2s
}

.category:hover,.product:hover {
    box-shadow:var(--shadow);
    transform:translateY(-2px)
}

.category-icon {
    width:48px;
    height:48px;
    background:var(--mint);
    color:var(--teal);
    display:grid;
    place-items:center;
    border-radius:14px;
    font-size:24px;
    margin-bottom:15px
}

.category h3 {
    margin-bottom:4px;
    font-size:17px
}

.category p {
    font-size:13px;
    color:var(--muted);
    margin:0
}

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

.benefit {
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    padding:18px;
    display:flex;
    gap:13px
}

.benefit b {
    display:block;
    color:var(--navy)
}

.benefit span {
    font-size:13px;
    color:var(--muted)
}

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

.product {
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
    transition:.2s
}

.product-art {
    height:165px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#e9f7f6,#f7f9fb);
    font-size:55px
}

.product-body {
    padding:16px
}

.tag {
    display:inline-block;
    background:#e8f6ee;
    color:#21734b;
    border-radius:5px;
    padding:3px 7px;
    font-size:11px;
    font-weight:800;
    margin-bottom:8px
}

.product h3 {
    font-size:15px;
    line-height:1.4;
    margin:0 0 8px
}

.product-meta {
    font-size:12px;
    color:var(--muted);
    margin-bottom:12px
}

.price-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px
}

.price {
    font-weight:850;
    font-size:18px;
    color:var(--navy)
}

.price small {
    font-size:11px;
    font-weight:500;
    color:var(--muted)
}

.add-btn {
    width:38px;
    height:38px;
    border:0;
    border-radius:10px;
    background:var(--teal);
    color:#fff;
    font-size:22px;
    cursor:pointer
}

.banner {
    background:#fff4d2;
    border:1px solid #f2df9c;
    border-radius:16px;
    padding:25px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px
}

.banner p {
    margin:5px 0 0;
    color:#6c6653
}

.page-title {
    padding:36px 0 20px
}

.page-title p {
    color:var(--muted);
    margin:5px 0 0
}

.layout-two {
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);
    gap:22px;
    align-items:start
}

.panel {
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:24px;
    margin-bottom:18px
}

.panel h2,.panel h3 {
    margin-bottom:18px
}

.field {
    margin-bottom:16px
}

.field label {
    display:block;
    font-size:13px;
    font-weight:750;
    margin-bottom:7px
}

.field input,.field textarea,.field select {
    width:100%;
    border:1px solid #dbe3e8;
    border-radius:9px;
    padding:12px 13px;
    background:white;
    outline:none
}

.field textarea {
    min-height:125px;
    resize:vertical
}

.field-row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px
}

.form-note {
    font-size:13px;
    color:var(--muted)
}

.form-links {
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    font-size:13px;
    margin-top:15px;
    color:var(--teal)
}

.summary-line {
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:11px 0;
    border-bottom:1px solid var(--line);
    font-size:14px
}

.summary-line.total {
    font-size:19px;
    font-weight:850;
    color:var(--navy);
    border-bottom:0
}

.full {
    width:100%
}

.cart-item {
    display:grid;
    grid-template-columns:70px 1fr auto;
    gap:14px;
    align-items:center;
    padding:16px 0;
    border-bottom:1px solid var(--line)
}

.cart-thumb {
    height:70px;
    background:var(--mint);
    border-radius:12px;
    display:grid;
    place-items:center;
    font-size:30px
}

.cart-item h3 {
    font-size:15px;
    margin:0 0 4px
}

.cart-item p {
    font-size:12px;
    color:var(--muted);
    margin:0
}

.qty {
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:8px
}

.qty button {
    border:1px solid var(--line);
    background:#fff;
    border-radius:6px;
    width:26px;
    height:26px;
    cursor:pointer
}

.remove {
    color:#a33;
    background:none;
    border:0;
    cursor:pointer;
    font-size:12px
}

.table-wrap {
    overflow:auto
}

table {
    width:100%;
    border-collapse:collapse;
    font-size:14px
}

th,td {
    text-align:left;
    padding:14px 12px;
    border-bottom:1px solid var(--line);
    white-space:nowrap
}

th {
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:var(--muted);
    background:#f8fafb
}

.status {
    display:inline-block;
    background:#e8f6ee;
    color:#21734b;
    padding:5px 9px;
    border-radius:20px;
    font-size:12px;
    font-weight:750
}

.status.pending {
    background:#fff4d2;
    color:#8b6810
}

.status.ship {
    background:#e7f1ff;
    color:#2d63a5
}

.content-copy {
    max-width:850px
}

.content-copy h2 {
    font-size:21px;
    margin-top:28px
}

.content-copy p,.content-copy li {
    color:#52616c
}

.footer {
    margin-top:50px;
    background:#102b3d;
    color:#d7e3e9;
    padding:42px 0 20px
}

.footer-grid {
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1fr;
    gap:28px
}

.footer .brand {
    color:#fff;
    margin-bottom:14px
}

.footer p,.footer a {
    font-size:13px;
    color:#b8cbd5
}

.footer h3 {
    font-size:14px;
    color:white;
    margin-bottom:13px
}

.footer-links {
    display:grid;
    gap:9px
}

.footer-bottom {
    border-top:1px solid #ffffff20;
    margin-top:30px;
    padding-top:17px;
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    font-size:12px;
    color:#9db4c0
}

.notice {
    padding:13px 15px;
    border-radius:10px;
    background:#edf8f6;
    color:#176d68;
    font-size:13px;
    margin-bottom:16px
}

.empty {
    text-align:center;
    padding:40px 15px;
    color:var(--muted)
}

.mobile-menu {
    display:none
}

@media(max-width:900px) {
    .nav {
    gap:12px;
    flex-wrap:wrap;
    padding:13px 0
}

.search {
    order:3;
    flex-basis:100%
}

.nav-actions {
    margin-left:auto
}

.category-grid,.product-grid {
    grid-template-columns:repeat(2,1fr)
}

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

.layout-two {
    grid-template-columns:1fr
}

.hero-inner {
    max-width:100%
}

.benefits {
    grid-template-columns:1fr
}


}

@media(max-width:560px) {
    .container {
    width:min(100% - 22px,1180px)
}

.topbar .container {
    font-size:11px
}

.nav {
    min-height:auto
}

.brand {
    font-size:18px
}

.brand-mark {
    width:34px;
    height:34px
}

.icon-link {
    padding:8px;
    font-size:12px
}

.icon-link .action-label {
    display:none
}

.subnav .container {
    gap:18px
}

.hero {
    margin-top:15px;
    border-radius:18px
}

.hero-inner {
    padding:30px 22px
}

.hero p {
    font-size:15px
}

.category-grid,.product-grid {
    gap:10px
}

.category {
    padding:15px
}

.category-icon {
    width:40px;
    height:40px;
    font-size:20px
}

.product-art {
    height:125px;
    font-size:42px
}

.product-body {
    padding:12px
}

.product h3 {
    font-size:14px
}

.price {
    font-size:16px
}

.section-head {
    align-items:start;
    flex-direction:column
}

.banner {
    align-items:flex-start;
    flex-direction:column
}

.panel {
    padding:18px
}

.field-row {
    grid-template-columns:1fr;
    gap:0
}

.footer-grid {
    grid-template-columns:1fr 1fr;
    gap:22px
}

.footer-grid>div:first-child {
    grid-column:1/-1
}

.cart-item {
    grid-template-columns:55px 1fr auto;
    gap:10px
}

.cart-thumb {
    height:55px
}

.cart-item .price {
    font-size:14px
}


}



.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    display: block;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: #f2d12c;
    color: #222429;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
}

.product-info {
    padding: 16px;
}

.product-category {
    display: block;
    margin-bottom: 8px;
    color: #777777;
    font-size: 12px;
}

.product-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #222429;
}

.product-reference {
    margin: 0 0 12px;
    font-size: 12px;
    color: #888888;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: #222429;
    font-size: 18px;
    font-weight: 700;
}

.product-price small {
    font-size: 11px;
    font-weight: 400;
    color: #777777;
}

.btn-add-cart {
    width: 100%;
    padding: 11px 10px;
    border: none;
    border-radius: 6px;
    background: #222429;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-add-cart:hover {
    background: #d6b900;
    color: #222429;
}

/* Tablettes */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobiles */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 14px;
    }

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

    .btn-add-cart {
        padding: 10px 6px;
        font-size: 11px;
    }
}



.pharma-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;

    background-image: url("http://allpharm.axeserp.cloud/assets/images/pharmacie-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pharma-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.88) 40%,
        rgba(255, 255, 255, 0.15) 100%
    );
}

.pharma-hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    padding: 55px 45px;
}

.pharma-hero-label {
    display: inline-block;
    margin-bottom: 18px;
    color: #087f78;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.pharma-hero-content h1 {
    margin: 0 0 20px;
    color: #172b3a;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 750;
    line-height: 1.2;
}

.pharma-hero-content p {
    max-width: 480px;
    margin-bottom: 28px;
    color: #52616b;
    font-size: 16px;
    line-height: 1.8;
}

.pharma-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 8px;

    background: #087f78;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;

    transition: background 0.25s ease;
}

.pharma-hero-btn:hover {
    background: #065f59;
    color: #ffffff;
}

@media (max-width: 576px) {
    .pharma-hero {
        min-height: 390px;
        border-radius: 10px;
        background-position: 65% center;
    }

    .pharma-hero-overlay {
        background: rgba(255, 255, 255, 0.86);
    }

    .pharma-hero-content {
        padding: 35px 22px;
    }

    .pharma-hero-content h1 {
        font-size: 30px;
    }

    .pharma-hero-content p {
        font-size: 14px;
    }
}

