:root{
    --primary:#006b2f;
    --primary-dark:#004d22;
    --accent:#12b76a;
    --bg:#f5fff9;
    --text:#102a1b;
    --muted:#667085;
    --glass:rgba(255,255,255,.68);
    --glass-border:rgba(255,255,255,.75);
    --shadow:0 24px 70px rgba(0,107,47,.18);
    --font-main:'Inter',sans-serif;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:var(--font-main);
    background:
        radial-gradient(circle at top left, rgba(18,183,106,.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(0,107,47,.18), transparent 40%),
        var(--bg);
    color:var(--text);
    min-height:100vh;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:min(1200px, calc(100% - 32px));
    margin:auto;
}

.glass{
    background:var(--glass);
    border:1px solid var(--glass-border);
    box-shadow:var(--shadow);
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
}

.site-header{
    position:sticky;
    top:0;
    z-index:100;
    padding:16px 0;
}

.navbar{
    border-radius:28px;
    padding:14px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:900;
    color:var(--primary);
}

.logo-mark{
    width:44px;
    height:44px;
    border-radius:16px;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    display:grid;
    place-items:center;
    font-weight:900;
    box-shadow:0 12px 30px rgba(0,107,47,.28);
}

.nav-links{
    display:flex;
    align-items:center;
    gap:20px;
    font-weight:700;
    color:#315742;
}

.nav-links a:hover{
    color:var(--primary);
}

.nav-btn{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff!important;
    padding:11px 18px;
    border-radius:999px;
    box-shadow:0 14px 28px rgba(0,107,47,.22);
}

.hero{
    padding:70px 0 40px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:34px;
    align-items:center;
}

.hero-card{
    border-radius:38px;
    padding:46px;
    position:relative;
    overflow:hidden;
}

.hero-card::after{
    content:"";
    position:absolute;
    right:-80px;
    top:-80px;
    width:260px;
    height:260px;
    border-radius:50%;
    background:rgba(18,183,106,.18);
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:999px;
    background:rgba(0,107,47,.09);
    color:var(--primary);
    font-weight:900;
    margin-bottom:22px;
}

.hero h1{
    font-size:clamp(42px, 6vw, 76px);
    line-height:.95;
    letter-spacing:-3px;
    margin:0 0 22px;
    color:var(--primary-dark);
}

.hero h1 span{
    color:var(--accent);
}

.hero p{
    font-size:18px;
    color:#476353;
    line-height:1.7;
    max-width:620px;
}

.hero-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:30px;
}

.btn{
    border:none;
    border-radius:999px;
    padding:15px 24px;
    font-weight:900;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:10px;
}

.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    box-shadow:0 18px 34px rgba(0,107,47,.25);
}

.btn-soft{
    background:rgba(255,255,255,.76);
    color:var(--primary);
    border:1px solid rgba(0,107,47,.12);
}

.hero-image{
    min-height:520px;
    border-radius:42px;
    overflow:hidden;
    position:relative;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:30px;
}

.hero-product{
    width:100%;
    min-height:450px;
    border-radius:34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.25), rgba(0,107,47,.18)),
        url('../images/hero/tripharm-hero.jpg') center/cover no-repeat;
}

.floating-card{
    position:absolute;
    left:28px;
    bottom:28px;
    right:28px;
    border-radius:28px;
    padding:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.floating-card strong{
    color:var(--primary-dark);
}

.section-title{
    text-align:center;
    margin:50px auto 28px;
}

.section-title h2{
    font-size:clamp(30px,4vw,48px);
    color:var(--primary-dark);
    margin:0;
}

.section-title p{
    color:var(--muted);
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    padding-bottom:70px;
}

.product-card{
    border-radius:30px;
    padding:18px;
    transition:.25s ease;
}

.product-card:hover{
    transform:translateY(-8px);
}

.product-img{
    height:190px;
    border-radius:24px;
    background:linear-gradient(135deg,rgba(0,107,47,.12),rgba(18,183,106,.12));
    display:grid;
    place-items:center;
    overflow:hidden;
    margin-bottom:16px;
}

.product-img img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.product-card h3{
    margin:0 0 8px;
    color:var(--primary-dark);
}

.product-card p{
    color:var(--muted);
    font-size:14px;
    line-height:1.5;
    min-height:64px;
}

.product-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:16px;
}

.price{
    color:var(--primary);
    font-weight:900;
}

.small-btn{
    border:none;
    background:var(--primary);
    color:#fff;
    padding:10px 14px;
    border-radius:14px;
    font-weight:800;
    cursor:pointer;
}

@media(max-width:900px){
    .hero-grid,
    .products-grid{
        grid-template-columns:1fr;
    }

    .nav-links{
        display:none;
    }

    .hero-card{
        padding:30px;
    }

    .products-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:560px){
    .products-grid{
        grid-template-columns:1fr;
    }

    .hero-image{
        min-height:360px;
    }
}
.footer{
    margin:50px auto 0;
    border-radius:34px 34px 0 0;
    padding:34px 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1.4fr;
    gap:24px;
}

.footer h2,
.footer h4{
    color:var(--primary-dark);
    margin-top:0;
}

.footer p{
    color:var(--muted);
    line-height:1.6;
}

.product-page{
    padding:55px 0 80px;
}

.page-head{
    border-radius:34px;
    padding:34px;
    margin-bottom:28px;
}

.page-head h1{
    margin:0 0 10px;
    color:var(--primary-dark);
    font-size:clamp(32px,5vw,56px);
}

.page-head p{
    margin:0;
    color:var(--muted);
}

.product-view{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:28px;
    align-items:start;
}

.product-view-img{
    border-radius:36px;
    padding:30px;
    min-height:440px;
    display:grid;
    place-items:center;
}

.product-view-img img{
    width:100%;
    max-height:420px;
    object-fit:contain;
}

.product-info{
    border-radius:36px;
    padding:34px;
}

.product-info h1{
    margin:0 0 12px;
    color:var(--primary-dark);
    font-size:42px;
}

.product-info .size{
    display:inline-flex;
    padding:10px 16px;
    border-radius:999px;
    background:rgba(0,107,47,.1);
    color:var(--primary);
    font-weight:900;
    margin-bottom:18px;
}

.product-info p{
    color:#4d6658;
    line-height:1.8;
}

.qty-row{
    display:flex;
    gap:12px;
    align-items:center;
    margin:22px 0;
}

.qty-row input{
    width:90px;
    padding:14px;
    border-radius:16px;
    border:1px solid rgba(0,107,47,.18);
    font-weight:900;
}

@media(max-width:900px){
    .footer-grid,
    .product-view{
        grid-template-columns:1fr;
    }
}
.auth-premium{
    min-height:calc(100vh - 120px);
    display:grid;
    place-items:center;
    padding:60px 18px 90px;
}

.auth-shell{
    width:min(1050px,100%);
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:22px;
    border-radius:42px;
    padding:22px;
}

.auth-brand{
    border-radius:34px;
    padding:38px;
    color:#fff;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    min-height:520px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.auth-logo{
    width:74px;
    height:74px;
    border-radius:24px;
    background:rgba(255,255,255,.18);
    display:grid;
    place-items:center;
    font-weight:900;
    font-size:28px;
    margin-bottom:28px;
}

.auth-brand h1{
    font-size:56px;
    line-height:1;
    margin:0 0 18px;
}

.auth-brand p{
    font-size:17px;
    line-height:1.7;
}

.auth-points{
    display:grid;
    gap:12px;
    margin-top:28px;
}

.auth-points div{
    display:flex;
    align-items:center;
    gap:12px;
    padding:13px 15px;
    border-radius:18px;
    background:rgba(255,255,255,.14);
    font-weight:800;
}

.auth-form-card{
    border-radius:34px;
    background:rgba(255,255,255,.78);
    padding:38px;
    backdrop-filter:blur(20px);
}

.auth-form-head{
    text-align:center;
    margin-bottom:24px;
}

.auth-form-head > span{
    font-size:58px;
    color:var(--primary);
}

.auth-form-head h2{
    margin:8px 0 4px;
    color:var(--primary-dark);
    font-size:42px;
}

.premium-group{
    margin-bottom:16px;
}

.premium-group label{
    display:block;
    color:var(--primary-dark);
    font-weight:900;
    margin-bottom:8px;
}

.premium-input{
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid rgba(0,107,47,.16);
    background:rgba(255,255,255,.85);
    border-radius:20px;
    padding:0 14px;
    min-height:54px;
}

.premium-input span{
    color:var(--primary);
}

.premium-input input{
    flex:1;
    border:none;
    outline:none;
    background:transparent;
    min-height:52px;
    font-family:var(--font-main);
    font-weight:700;
}

.eye-btn{
    border:none;
    background:transparent;
    cursor:pointer;
}

.auth-main-btn{
    width:100%;
    min-height:56px;
    border:none;
    border-radius:20px;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    font-weight:900;
    font-size:16px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    cursor:pointer;
    box-shadow:0 18px 34px rgba(0,107,47,.26);
}

.auth-bottom{
    text-align:center;
    margin-top:22px;
    color:var(--muted);
}

.auth-bottom a{
    color:var(--primary);
    font-weight:900;
}

.auth-two{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.auth-alert{
    padding:15px;
    border-radius:18px;
    margin-bottom:18px;
    font-weight:800;
}

.auth-alert.error{
    background:rgba(217,45,32,.1);
    color:#b42318;
}

.auth-alert.success{
    background:rgba(18,183,106,.14);
    color:#027a48;
}

@media(max-width:900px){
    .auth-shell{
        grid-template-columns:1fr;
    }

    .auth-brand{
        min-height:auto;
    }
}

@media(max-width:620px){
    .auth-two{
        grid-template-columns:1fr;
    }
}
.admin-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:24px;
    width:min(1400px, calc(100% - 32px));
    margin:30px auto;
    align-items:start;
}

.admin-sidebar{
    position:sticky;
    top:100px;
    border-radius:30px;
    padding:18px;
}

.admin-side-head{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 8px 18px;
}

.admin-side-head strong{
    display:block;
    color:var(--primary-dark);
    font-size:18px;
}

.admin-side-head small{
    color:var(--muted);
    font-weight:800;
}

.admin-side-nav{
    display:grid;
    gap:8px;
}

.admin-side-nav a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:13px 14px;
    border-radius:18px;
    color:#315742;
    font-weight:900;
}

.admin-side-nav a:hover,
.admin-side-nav a.active{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    box-shadow:0 14px 28px rgba(0,107,47,.2);
}

.admin-side-nav hr{
    width:100%;
    border:none;
    border-top:1px solid rgba(0,0,0,.08);
    margin:10px 0;
}

.admin-side-nav .logout-link{
    color:#b42318;
}

.admin-side-nav .logout-link:hover{
    background:#d92d20;
    color:#fff;
}

.admin-content{
    min-width:0;
}

@media(max-width:950px){
    .admin-layout{
        grid-template-columns:1fr;
    }

    .admin-sidebar{
        position:relative;
        top:auto;
    }

    .admin-side-nav{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:560px){
    .admin-side-nav{
        grid-template-columns:1fr;
    }
}
/* ================= HERO SLIDER ================= */

.hero{
    position:relative;
    overflow:hidden;
    margin-bottom:40px;
}

.hero-slider{
    position:relative;
    height:520px;
    border-radius:34px;
    overflow:hidden;
}

/* EACH SLIDE */
.hero-slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity 0.7s ease;
    display:flex;
    align-items:center;
}

/* ACTIVE SLIDE */
.hero-slide.active{
    opacity:1;
    z-index:2;
}

/* DARK OVERLAY */
.hero-slide::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(0,0,0,.55),
        rgba(0,0,0,.2)
    );
}

/* GRID */
.hero-grid{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:1fr;
}

/* HERO CARD */
.hero-card{
    max-width:520px;
    padding:34px;
    border-radius:28px;
    backdrop-filter:blur(18px);
}

/* BADGE */
.hero-card .badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(255,255,255,.15);
    padding:6px 12px;
    border-radius:999px;
    font-size:13px;
    margin-bottom:14px;
    color:#fff;
}

/* TITLE */
.hero-card h1{
    font-size:42px;
    color:#fff;
    margin:10px 0;
    line-height:1.2;
}

/* DESCRIPTION */
.hero-card p{
    color:rgba(255,255,255,.9);
    font-size:15px;
    margin-bottom:18px;
}

/* BUTTONS */
.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

/* ================= GLASS EFFECT ================= */

.glass{
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 20px 40px rgba(0,0,0,.2);
}

/* ================= BUTTONS ================= */

.btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 16px;
    border-radius:16px;
    font-weight:900;
    text-decoration:none;
}

.btn-primary{
    background:linear-gradient(135deg, var(--primary), var(--accent));
    color:#fff;
}

.btn-soft{
    background:rgba(255,255,255,.2);
    color:#fff;
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){
    .hero-slider{
        height:460px;
    }

    .hero-card h1{
        font-size:32px;
    }
}

@media(max-width:600px){
    .hero-slider{
        height:420px;
    }

    .hero-card{
        padding:22px;
    }

    .hero-card h1{
        font-size:26px;
    }
}