/* PharmaCare Theme v2 - Navy Blue & Amber */

:root {
    /* Primary - Navy Blue */
    --theme-primary: #1e3a5f;
    --theme-primary-dark: #0f2744;
    --theme-primary-light: #2d4a6f;
    
    /* Accent - Amber */
    --theme-accent: #e9a03f;
    --theme-accent-light: #f0b55a;
    --theme-accent-dark: #c4852a;
    
    /* Neutrals */
    --theme-cream: #f5f7fa;
    --theme-cream-dark: #e8ecf1;
    --theme-white: #f8f9fc;
    
    --primary-color: var(--theme-primary);
    --secondary-color: #5a6b7a;
    --success-color: #1e3a5f;
    --danger-color: #c53030;
    --warning-color: var(--theme-accent);
    --info-color: #2d4a6f;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--theme-white);
    color: #2d3748;
}

main { flex: 1; }

/* ===== HEADER / NAVBAR ===== */
.navbar.pharmacare-nav {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%) !important;
    box-shadow: 0 2px 12px rgba(15, 39, 68, 0.35);
    padding: 0.5rem 0;
}

.navbar.pharmacare-nav .navbar-brand {
    font-weight: bold;
    padding: 0.25rem 0;
}

.navbar.pharmacare-nav .navbar-brand img {
    border-radius: 6px;
    max-width: 200px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
}

.navbar.pharmacare-nav .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.navbar.pharmacare-nav .nav-link:hover,
.navbar.pharmacare-nav .nav-link:focus {
    color: var(--theme-accent-light) !important;
    background: rgba(255, 255, 255, 0.12);
}

.navbar.pharmacare-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(15, 39, 68, 0.2);
    border-radius: 8px;
}

.navbar.pharmacare-nav .dropdown-item:hover {
    background: var(--theme-cream);
    color: var(--theme-primary);
}

.navbar.pharmacare-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar.pharmacare-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-accent-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-accent-light) 0%, var(--theme-accent) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(233, 160, 63, 0.45);
}

.btn-success {
    background: var(--theme-primary);
    border: none;
}

.btn-success:hover {
    background: var(--theme-primary-light);
    transform: translateY(-2px);
}

.btn { transition: all 0.25s ease; }

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 50%, #0a1f36 100%);
    color: white;
    border-radius: 12px;
    padding: 3rem !important;
    box-shadow: 0 8px 30px rgba(15, 39, 68, 0.3);
}

.hero-section h1 {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, var(--theme-accent-light) 0%, var(--theme-accent) 100%);
}

.hero-section .btn-primary:hover {
    background: white;
    color: var(--theme-primary);
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(30, 58, 95, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 28px rgba(30, 58, 95, 0.14);
}

.card-header { border-radius: 10px 10px 0 0 !important; font-weight: 600; }

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(30, 58, 95, 0.16) !important;
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
    background: var(--theme-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* ===== FOOTER ===== */
footer.pharmacare-footer {
    background: linear-gradient(180deg, var(--theme-primary-dark) 0%, #0a1f36 100%);
    color: var(--theme-cream);
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(15, 39, 68, 0.25);
}

footer.pharmacare-footer img {
    filter: brightness(1.06);
    opacity: 0.96;
}

footer.pharmacare-footer h5 {
    color: var(--theme-accent-light);
    font-weight: 600;
}

footer.pharmacare-footer a {
    color: rgba(245, 247, 250, 0.9);
    text-decoration: none;
    transition: color 0.25s ease;
}

footer.pharmacare-footer a:hover {
    color: var(--theme-accent-light) !important;
}

footer.pharmacare-footer hr {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ===== FORMS ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 0.25rem rgba(233, 160, 63, 0.28);
}

/* ===== TABLES ===== */
.table-hover tbody tr:hover {
    background-color: rgba(30, 58, 95, 0.06);
}

.badge { font-size: 0.85em; padding: 0.35em 0.65em; }

.bg-primary { background-color: var(--theme-primary) !important; }

/* ===== MODAL ===== */
.modal-header {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header .btn-close { filter: brightness(0) invert(1); }

/* ===== ADMIN DASHBOARD ===== */
.card.bg-primary { background: var(--theme-primary) !important; }
.card.bg-success { background: var(--theme-primary-light) !important; }
.card.bg-warning { background: var(--theme-accent) !important; }
.card.bg-danger { border: none; }

.text-primary { color: var(--theme-primary) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section { padding: 2rem !important; }
    .hero-section h1 { font-size: 2rem; }
    .product-card { margin-bottom: 1.5rem; }
    .navbar.pharmacare-nav .navbar-brand img { max-height: 45px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease-in; }
.opacity-50 { opacity: 0.5; }


@media (min-width: 1200px) { h1.display-4.text-primary {
    text-transform: uppercase;
    font-weight: 500;
    color: #fff !important;
}}




@media (min-width: 1200px) { h1.display-4.myabout.text-primary.mb-4, p.lead.myaboutdes {
    text-transform: uppercase;
    font-weight: 500;
    color: #000000 !important;
}}