/* =========================================================
   MODERN PHARMACY UI — FINAL PRODUCTION CSS
   ========================================================= */

/* ===== ROOT ===== */
:root {
    --primary: #0ea5a4;
    --primary-dark: #0f766e;
    --accent: #22c55e;

    --bg-soft: #e0f7f5;
    --bg-main: #f8fafc;

    --text: #0f172a;
    --muted: #64748b;

    --card: #ffffff;
    --border: #e2f3f2;
}

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

/* ===== GLOBAL BACKGROUND ===== */
body {
    font-family: 'Inter', sans-serif;

    background:
        linear-gradient(rgba(15, 76, 129, 0.65), rgba(14, 165, 164, 0.65)),
        url('/images/ui/bg-pharma.jpg') no-repeat center center;

    background-size: cover;
    background-attachment: fixed;

    min-height: 100vh;
    color: #0f172a;
}
/* ===== GLOBAL PAGE SURFACE ===== */
.page-surface {
    max-width: 1200px;
    margin: 40px auto;

    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);

    border-radius: 20px;
    padding: 30px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ===== CONTAINER ===== */
.container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:20px;
    box-sizing:border-box;
}


/* =========================================================
   HEADER (GLASS NAVBAR)
   ========================================================= */
.header-glass {

    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #0f4c81, #0ea5a4);
    padding: 10px 0;
}

/* FLEX */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* NAV */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #e6f0ff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

/* HOVER LINE */
.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #00d4ff;
    transition: 0.3s;
}

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

/* =========================================================
   SEARCH BAR (FIXED CLEAN VERSION)
   ========================================================= */
.big-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    padding: 4px;
    width: 420px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.big-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    background: transparent;
}

.big-search button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    gap: 15px;
}

.cart, .user {
    color: #fff;
    font-size: 18px;
    position: relative;
}

/* CART BADGE */
.cart span {
    position: absolute;
    top: -5px;
    right: -8px;
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* =========================================================
   HERO / PAGE HEADER
   ========================================================= */
.page-header {
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 700;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.page-subtitle {
    color: var(--muted);
    font-size: 14px;
    color: #475569;
    font-size: 14px;
}

/* =========================================================
   GRID
   ========================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */
.product-card {
    background: linear-gradient(180deg, #ffffff, #f0fdfa);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    transition: 0.25s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* IMAGE */
.product-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TITLE */
.product-info h3 {
    font-size: 15px;
    margin: 8px 0;
}

/* PRICE */
.price {
    font-weight: 700;
    color: var(--primary);
}

/* LINKS FIX */
.product-card a {
    text-decoration: none;
    color: var(--text);
}

.product-card a:hover h3 {
    color: var(--primary);
}

/* BUTTON */
.btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    border: none;
    font-size: 13px;
    margin-top: 8px;
}

/* =========================================================
   BADGES
   ========================================================= */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px;
    color: #fff;
}

.badge.otc {
    background: #22c55e;
}

.badge.rx {
    background: #ef4444;
}

/* =========================================================
   RATINGS
   ========================================================= */
.rating {
    color: #fbbf24;
    font-size: 13px;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.category-sidebar {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--border);
}

.category-sidebar h3 {
    margin-bottom: 10px;
}

.category-sidebar ul {
    list-style: none;
}

.category-sidebar li {
    margin-bottom: 8px;
}

.category-sidebar a {
    text-decoration: none;
    color: var(--text);
}

.category-sidebar a:hover {
    color: var(--primary);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background: linear-gradient(90deg, #0f4c81, #0ea5a4);
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
/* ===== HERO ===== */
.hero {
    height: 420px;
    display: flex;
    align-items: center;
    padding: 40px;

    background: linear-gradient(135deg, rgba(15,76,129,0.85), rgba(14,165,164,0.85)),
                url('/images/ui/bg-pharma.jpg') center/cover;

    border-radius: 20px;
    color: #fff;
}

.hero-content {
    max-width: 500px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    margin-bottom: 20px;
    color: #e2e8f0;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background: #22c55e;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}

/* ===== FEATURES ===== */
.features {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.7);
    border-radius: 14px;
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-item i {
    font-size: 22px;
    color: #0ea5a4;
    display: block;
    margin-bottom: 6px;
}

/* ===== VIDEO ===== */
.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

.video-wrapper video {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

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

    background: rgba(0,0,0,0.4);
    color: #fff;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    margin: 30px 0;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e2f3f2;
    text-decoration: none;
    color: #0f172a;
    transition: 0.2s;
}

.category-card:hover {
    background: #0ea5a4;
    color: #fff;
}

.category-card i {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

/* HERO MEDIA */
.hero-media {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
}

.video-section {
    position: relative;
    z-index: 0;
    margin-top: 20px;
}

/* IMAGE + VIDEO */
.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

/* DARK OVERLAY */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* CONTENT */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 40px;
}

.hero-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 15px;
    margin-bottom: 16px;
}

.hero-actions .btn {
    padding: 10px 18px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* BASE GLASS BUTTON */
.hero-actions .btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* GREEN */
.btn-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

/* YELLOW (mustard) */
.btn-yellow {
    background: linear-gradient(135deg, #d97706, #facc15);
    color: #111;
}

/* RED */
.btn-red {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

/* HOVER EFFECT */
.hero-actions .btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    filter: brightness(1.05);
}
/* =========================
   MODERN TENANT FOOTER
========================= */

.pharma-footer {
    margin-top: 60px;
    background:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 164, 0.22), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.16), transparent 28%),
        linear-gradient(135deg, #08111f, #0f172a 55%, #111827);
    color: #e5eefb;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 -18px 50px rgba(2, 6, 23, 0.35);
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 38px 24px 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 0.9fr 1.15fr;
    gap: 36px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14,165,164,0.22), rgba(56,189,248,0.12));
    border: 1px solid rgba(125, 211, 252, 0.24);
    box-shadow: 0 0 24px rgba(14, 165, 164, 0.2);
    overflow: hidden;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    color: #67e8f9;
}

.footer-site-name {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-badge {
    display: inline-flex;
    margin-top: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(134, 239, 172, 0.22);
}

.footer-text {
    margin: 0;
    color: #a9bdd6;
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 0;
}

.footer-link {
    display: grid;
    grid-template-columns: 22px auto;
    align-items: center;
    column-gap: 10px;
    color: #dbeafe;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.footer-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    color: #c7d2fe;
}

.footer-link:hover {
    color: #22d3ee;
    transform: translateX(4px);
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}

.footer-link:hover svg {
    color: #22d3ee;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.45));
}

.footer-map {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.footer-map iframe {
    display: block;
    width: 100%;
    border: 0;
}

.footer-map-placeholder {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 18px;
}

.footer-map-placeholder svg {
    width: 28px;
    height: 28px;
    color: #38bdf8;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
}

.footer-bottom-dot {
    color: #38bdf8;
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-map {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 32px 18px 16px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .footer-bottom-dot {
        display: none;
    }
}
