/**
 * Janaushadhi Medical Store - Custom Styles
 * Professional medical / government theme
 */

:root {
    --primary: #0d6b4c;
    --primary-dark: #0a5239;
    --primary-light: #138f66;
    --accent: #ffc107;
    --white: #ffffff;
    --light-bg: #f0f7f4;
    --text-dark: #1a3c32;
    --text-muted: #5a7a72;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    background: #fafafa;
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.9rem;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-right: 1.5rem;
}

.top-bar a:hover {
    color: var(--white);
}

.govt-badge .badge {
    font-weight: 600;
}

/* Main Navbar – white background, theme text */
.main-nav {
    background: var(--white) !important;
    box-shadow: 0 2px 12px rgba(13, 107, 76, 0.08);
    border-bottom: 1px solid rgba(13, 107, 76, 0.1);
}

.main-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark) !important;
    transition: color 0.2s ease;
    background: #f0f7f4;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
}
.main-nav .navbar-brand:hover {
    color: var(--primary) !important;
    background: #e5f0eb;
}
.main-nav .navbar-brand i {
    color: var(--primary);
}
.main-nav .navbar-brand img {
    display: block;
}

.main-nav .nav-link {
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    border-radius: 6px;
    margin: 0 2px;
    color: var(--text-dark) !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav .nav-link:hover {
    background: rgba(13, 107, 76, 0.08);
    color: var(--primary) !important;
}
.main-nav .nav-link.active {
    background: rgba(13, 107, 76, 0.12);
    color: var(--primary-dark) !important;
}

.main-nav .navbar-toggler {
    border-color: rgba(13, 107, 76, 0.3);
    color: var(--text-dark);
}
.main-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 107, 76, 0.2);
}

/* Product Portfolio dropdown */
.main-nav .dropdown-menu {
    background: var(--white);
    border: 1px solid rgba(13, 107, 76, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(13, 107, 76, 0.12);
    padding: 0.25rem 0;
    margin-top: 0.35rem;
}

.main-nav .dropdown-menu .dropdown-item {
    color: var(--text-dark);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav .dropdown-menu .dropdown-item:hover,
.main-nav .dropdown-menu .dropdown-item:focus {
    background: rgba(13, 107, 76, 0.08);
    color: var(--primary-dark);
}

.main-nav .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: middle;
}

/* Product Portfolio dropdown – scrollable product list */
.product-portfolio-menu .dropdown-product-list {
    max-height: 70vh;
    overflow-y: auto;
    min-width: 320px;
}

.product-portfolio-menu .dropdown-product-list .dropdown-header {
    font-weight: 600;
    padding-left: 0;
}

.product-portfolio-menu .dropdown-product-list .dropdown-item {
    padding-left: 0.5rem;
}

/* ========== Product Portfolio Page – full width, eye-catching ========== */
.product-portfolio-page {
    min-height: 60vh;
    background: linear-gradient(180deg, var(--light-bg) 0%, #fff 120px);
}

.portfolio-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(13, 107, 76, 0.25);
}

.portfolio-title {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.portfolio-subtitle {
    opacity: 0.92;
    font-size: 0.95rem;
}

.portfolio-search-form {
    min-width: 240px;
}

.portfolio-input-group .input-group-text {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem 0 0 0.375rem;
}

.portfolio-input-group .form-control {
    border-radius: 0 0.375rem 0.375rem 0;
    min-width: 200px;
}

.portfolio-input-group:focus-within .input-group-text,
.portfolio-input-group:focus-within .form-control {
    border-color: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(13, 107, 76, 0.3);
}

/* Full-width table container */
.portfolio-table-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio-table {
    margin-bottom: 0 !important;
}

.portfolio-thead {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #083d2a 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.portfolio-th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1rem 1rem !important;
    border: none !important;
    white-space: nowrap;
}

.portfolio-th .thead-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.95;
}

.portfolio-th .thead-link:hover {
    color: #fff;
    opacity: 1;
    text-decoration: underline;
}

/* Portfolio below-hero: Product Detail select – app theme + dropdown icon */
.portfolio-detail-select-wrap {
    position: relative;
    display: inline-block;
}
.portfolio-detail-select-wrap .portfolio-detail-select-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1rem;
    color: var(--primary);
    transition: color 0.2s ease;
}
.portfolio-below-table .portfolio-detail-select {
    background: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 500;
    padding: 0.4rem 2.25rem 0.4rem 0.75rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.portfolio-below-table .portfolio-detail-select:hover {
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.98);
}
.portfolio-below-table .portfolio-detail-select:hover ~ .portfolio-detail-select-icon {
    color: var(--primary-dark);
}
.portfolio-below-table .portfolio-detail-select:focus {
    border-color: var(--white);
    box-shadow: 0 0 0 0.25rem rgba(13, 107, 76, 0.4);
    background: var(--white);
    color: var(--text-dark);
    outline: none;
}
.portfolio-below-table .portfolio-detail-select:focus ~ .portfolio-detail-select-icon {
    color: var(--primary-dark);
}
.portfolio-below-table .portfolio-detail-select option {
    padding: 0.5rem;
    background: var(--white);
    color: var(--text-dark);
}

.portfolio-table tbody tr {
    transition: background-color 0.15s ease;
}

.portfolio-row-even {
    background: #fff;
}

.portfolio-row-odd {
    background: rgba(13, 107, 76, 0.04);
}

.portfolio-table tbody tr:hover {
    background: rgba(13, 107, 76, 0.08) !important;
}

.portfolio-table tbody td {
    padding: 0.85rem 1rem !important;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio-table tbody tr:last-child td {
    border-bottom: none;
}

.portfolio-table .sr-col { width: 5%; min-width: 60px; }
.portfolio-table .code-col { width: 8%; min-width: 80px; }
.portfolio-table .name-col { width: 42%; min-width: 200px; }
.portfolio-table .unit-col { width: 12%; min-width: 90px; }
.portfolio-table .group-col { width: 23%; min-width: 160px; }
.portfolio-table .mrp-col { width: 10%; min-width: 90px; }
.portfolio-table .order-col { width: 10%; min-width: 100px; }
.portfolio-order-btn {
    background: #25D366;
    color: #fff !important;
    border: none;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.portfolio-order-btn:hover {
    background: #1da851;
    color: #fff !important;
    transform: scale(1.02);
}

.group-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(13, 107, 76, 0.12);
    color: var(--primary-dark);
    border-radius: 6px;
    font-size: 0.85rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pagination on portfolio page */
.product-portfolio-page .pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
}

.product-portfolio-page .pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

/* Hero */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #083d2a 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-banner .container {
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-banner .lead {
    opacity: 0.95;
}

.hero-disclaimer {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Hero – modern (light theme, category search) – theme #0A5239, #09422E */
.hero-modern {
    position: relative;
    min-height: 420px;
    padding: 3.5rem 0 4rem;
    background: linear-gradient(180deg, #e8f5f0 0%, #d4ede3 35%, #f8fcf9 85%, #fff 100%);
    overflow: hidden;
}

/* Hero carousel wrapper */
.hero-carousel-wrap {
    position: relative;
    overflow: hidden;
    padding: 0; /* remove extra space above first slide */
}
.hero-carousel-wrap .carousel,
.hero-carousel-wrap .carousel-inner,
.hero-carousel-wrap .carousel-item {
    min-height: 480px;
}
@media (min-width: 992px) {
    .hero-carousel-wrap .carousel,
    .hero-carousel-wrap .carousel-inner,
.hero-carousel-wrap .carousel-item { min-height: 520px; }
}

.hero-slide {
    position: relative;
    background-color: #0A5239;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 480px;
    padding: 3rem 0;
}
@media (min-width: 992px) {
    .hero-slide { min-height: 520px; }
}

/* Slide 1: hero-main.jpg – content on left */
.hero-with-bg {
    background-position: right center;
}
.hero-with-bg .hero-modern-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 35%, rgba(10, 82, 57, 0.25) 70%, transparent 100%);
    pointer-events: none;
}
.hero-slide .container {
    z-index: 1;
}

/* Slide 2: hero-2.jpg – dark image, light overlay left, theme */
.hero-slide-2 {
    background-position: center center;
}
.hero-slide-2-overlay {
    background: linear-gradient(90deg, rgba(10, 82, 57, 0.88) 0%, rgba(9, 66, 46, 0.82) 40%, rgba(0, 0, 0, 0.5) 100%);
}
.hero-slide-2 .hero-modern-title,
.hero-slide-2 .hero-modern-subtitle {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.hero-slide-2 .hero-modern-subtitle {
    opacity: 0.95;
}
.hero-slide-badge {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.hero-slide-2 .btn-outline-hero {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.hero-slide-2 .btn-outline-hero:hover {
    background: #fff;
    color: #0A5239;
    border-color: #fff;
}

/* Slide 3: hero-1.png – green herbal image, text on right */
.hero-slide-3 {
    background-position: left center;
}
.hero-slide-3-overlay {
    background: linear-gradient(270deg, rgba(10, 82, 57, 0.9) 0%, rgba(9, 66, 46, 0.85) 40%, rgba(0, 0, 0, 0.4) 100%);
}
.hero-slide-3 .hero-modern-title,
.hero-slide-3 .hero-modern-subtitle {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.hero-slide-3 .hero-modern-subtitle {
    opacity: 0.96;
}
.hero-modern-content-right .hero-modern-actions,
.hero-modern-content-right .hero-modern-dots {
    justify-content: flex-end;
}

/* Hero carousel dots & controls */
.hero-carousel-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.hero-carousel-dots .hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    padding: 0;
    opacity: 0.8;
    transition: background 0.2s, opacity 0.2s;
}
.hero-carousel-dots .hero-dot.active {
    background: #fff;
    opacity: 1;
}
.hero-carousel-control {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0.9;
    z-index: 2;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
.hero-carousel-control:hover {
    background: rgba(10, 82, 57, 0.9);
    border-color: #fff;
    opacity: 1;
}

.hero-with-bg .container {
    z-index: 1;
}

.min-vh-hero {
    min-height: 420px;
}

@media (min-width: 992px) {
    .hero-slide { min-height: 520px; }
    .min-vh-hero { min-height: 480px; }
}

.hero-modern-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero-modern-content .hero-modern-title {
    text-align: left;
}

.hero-modern-content .hero-modern-actions,
.hero-modern-content .hero-modern-dots {
    justify-content: flex-start;
}

.hero-modern-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-modern-title {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    color: #09422E;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.hero-with-bg .hero-modern-title {
    color: #09422E;
    text-shadow: 0 1px 3px rgba(255,255,255,0.9);
}

.hero-modern-subtitle {
    color: #0A5239;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 480px;
}

.hero-with-bg .hero-modern-subtitle {
    color: #09422E;
}

.hero-modern-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(10, 82, 57, 0.12), 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(10, 82, 57, 0.12);
}

.hero-search-cat {
    flex: 0 0 auto;
    width: 160px;
    max-width: 42%;
    border: none;
    border-right: 1px solid #e5e7eb;
    border-radius: 0;
    font-weight: 500;
    color: #09422E;
    background: #f8faf9;
}

.hero-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-input:focus {
    box-shadow: none;
    outline: none;
}

.hero-search-btn {
    flex: 0 0 auto;
    width: 56px;
    background: #0A5239;
    color: #fff;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s;
}

.hero-search-btn:hover {
    background: #09422E;
    color: #fff;
}

.hero-modern-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.btn-hero-cta {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.95rem;
}

.hero-modern-actions .btn-primary {
    background: #0A5239;
    border-color: #0A5239;
}

.hero-modern-actions .btn-primary:hover {
    background: #09422E;
    border-color: #09422E;
}

.btn-outline-hero {
    background: #fff;
    color: #09422E;
    border: 2px solid #0A5239;
}

.btn-outline-hero:hover {
    background: #0A5239;
    color: #fff;
    border-color: #0A5239;
}

.hero-modern-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #0A5239;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
}

.hero-dot.active {
    background: #0A5239;
    opacity: 1;
}

.hero-carousel-prev,
.hero-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(10, 82, 57, 0.2);
    color: #0A5239;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}

.hero-carousel-prev { left: 1rem; }
.hero-carousel-next { right: 1rem; }

.hero-carousel-prev:hover,
.hero-carousel-next:hover {
    background: #0A5239;
    color: #fff;
    border-color: #0A5239;
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: 360px;
        padding: 2.5rem 0 3rem;
    }
    .hero-with-bg {
        min-height: 400px;
        background-position: 60% center;
    }
    .hero-with-bg .hero-modern-overlay {
        background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.85) 55%, transparent 100%);
    }
    .hero-modern-search {
        flex-direction: column;
        border-radius: 12px;
    }
    .hero-search-cat {
        width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    .hero-search-btn {
        width: 100%;
        padding: 0.6rem;
    }
}

/* Hero – search layout (dark teal, search bar + medicines slider) */
.hero-banner-search {
    background: #1c4544;
    background: linear-gradient(135deg, #1c4544 0%, #163938 50%, #0f2d2c 100%);
    padding: 3rem 0 3.5rem;
}

.hero-banner-search::before {
    opacity: 0.35;
}

.hero-banner-search .hero-badge {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.hero-banner-search .hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-banner-search .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.hero-search-form {
    max-width: 480px;
}

.hero-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-search-wrap i {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.hero-search-wrap .form-control {
    border: none;
    padding: 0.6rem 0;
    font-size: 1rem;
}

.hero-search-wrap .form-control:focus {
    box-shadow: none;
    outline: none;
}

.hero-search-wrap .btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}

.hero-actions .btn-outline-light:hover {
    color: #1c4544 !important;
    background: #fff;
}

/* Hero – centered layout (match reference image: heading + search, illustrations left/right) */
.hero-banner-centered {
    background: #1c4544;
    background: linear-gradient(135deg, #1c4544 0%, #163938 50%, #0f2d2c 100%);
    padding: 3rem 0 3.5rem;
}

.hero-banner-centered::before {
    opacity: 0.25;
}

.hero-banner-centered .hero-title {
    font-size: clamp(1.6rem, 4.5vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.hero-banner-centered .hero-center {
    max-width: 560px;
    margin: 0 auto;
}

.hero-search-form-centered {
    max-width: 100%;
}

.hero-search-form-centered .hero-search-wrap {
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    border-radius: 14px;
    min-height: 56px;
}

.hero-search-form-centered .hero-search-wrap i {
    font-size: 1.35rem;
    color: #64748b;
}

.hero-search-form-centered .hero-search-wrap .form-control {
    font-size: 1.05rem;
    padding: 0.5rem 0.75rem;
}

/* Hero illustrations (flat medical characters) */
.hero-illus {
    flex: 0 0 auto;
}

.hero-illus-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
    max-height: 220px;
    opacity: 0.95;
}

.hero-illus-left .hero-illus-svg {
    margin-right: 0;
}

.hero-illus-right .hero-illus-svg {
    margin-left: 0;
}

@media (min-width: 992px) {
    .hero-banner-centered .hero-center {
        flex: 0 1 50%;
        max-width: 520px;
    }
}

/* Hero medicines carousel (legacy) */
.hero-medicines-carousel {
    border-radius: 12px;
    overflow: hidden;
}

.hero-medicine-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-medicine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.hero-medicine-img,
.hero-medicine-placeholder {
    height: 72px;
    background: var(--light-bg);
}

.hero-medicine-placeholder {
    font-size: 1.75rem;
}

.hero-medicine-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-medicines-carousel .carousel-control-prev,
.hero-medicines-carousel .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 0.9;
}

.hero-medicines-carousel .carousel-control-prev { left: 4px; }
.hero-medicines-carousel .carousel-control-next { right: 4px; }

.hero-visual-placeholder {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Sections */
.section-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.bg-light-custom {
    background: var(--light-bg);
}

/* Cards */
.medicine-card,
/* Home quick links */
.quick-link-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.12) !important;
}
.quick-link-card:hover .card-title {
    color: var(--primary) !important;
}

.feature-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.medicine-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(13, 107, 76, 0.15);
}

.medicine-card .card-body {
    padding: 1.25rem;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.medicine-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Related medicines on detail page – keep content inside card */
.medicine-related-wrap .medicine-card {
    min-width: 0;
    overflow: hidden;
}
.medicine-related-wrap .medicine-related-card-body {
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.medicine-related-wrap .medicine-related-title {
    font-size: 0.95rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.medicine-related-wrap .medicine-related-generic {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    flex-shrink: 0;
}
.medicine-related-wrap .medicine-card .price {
    margin-top: auto;
    padding-top: 0.35rem;
}

.medicine-card .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.feature-card .card-body {
    padding: 1.5rem;
}

.feature-card .bi {
    font-size: 2rem;
    color: var(--primary);
}

/* Janaushadhi / PMBJP info card */
.pmbjp-info-card {
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pmbjp-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(13, 107, 76, 0.18) !important;
}
.pmbjp-info-card .card-body {
    padding: 1.5rem 1.5rem;
}
.pmbjp-bullet-list {
    padding-left: 0;
}
.pmbjp-bullet-item {
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.pmbjp-bullet-item:hover {
    background-color: rgba(13, 107, 76, 0.06);
    padding-left: 0.75rem;
}
.pmbjp-bullet-item .bi {
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary,
.btn-success {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-success:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Home: About section intro text */
.about-intro-text {
    text-align: left;
    max-width: 100%;
    line-height: 1.65;
    padding: 0.75rem 0;
    padding-left: 1rem;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: border-left-color 0.25s ease, background-color 0.25s ease, padding-left 0.25s ease;
}
.about-intro-text:hover {
    border-left-color: var(--primary);
    background-color: rgba(13, 107, 76, 0.04);
    padding-left: 1.15rem;
}

/* About "Know More" button hover */
.about-cta {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 107, 76, 0.35);
}
.about-cta .bi-arrow-right {
    transition: transform 0.2s ease;
}
.about-cta:hover .bi-arrow-right {
    transform: translateX(3px);
}

/* Home: store highlights card (replaces scheme-section) */
.store-highlights-card {
    background: var(--white);
    border: 1px solid rgba(13, 107, 76, 0.12);
}
.store-highlights-card.about-store-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.store-highlights-card.about-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.25rem rgba(13, 107, 76, 0.15);
    border-color: rgba(13, 107, 76, 0.2);
}
.store-highlights-card h3 {
    font-weight: 700;
    color: var(--text-dark);
}

/* Contact CTA */
/* ========== Contact page ========== */
.contact-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #083d2a 100%);
    color: var(--white);
    padding: 3rem 0;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 24px rgba(13, 107, 76, 0.25);
    transition: box-shadow 0.3s ease;
}
.contact-hero:hover {
    box-shadow: 0 12px 32px rgba(13, 107, 76, 0.35);
}
.contact-hero-inner {
    max-width: 640px;
}
.contact-hero-title {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.contact-hero-lead {
    font-size: 1.1rem;
    opacity: 0.95;
}

.contact-content {
    background: linear-gradient(180deg, #fff 0%, var(--light-bg) 10%, #fff 100%);
}

/* Contact info card */
.contact-info-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.1) !important;
}
.contact-info-heading {
    display: inline-block;
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: background 0.25s ease;
}
.contact-info-item:hover {
    background: rgba(13, 107, 76, 0.06);
}
.contact-info-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem 1rem;
    margin: -0.75rem -1rem;
    border-radius: 12px;
    transition: background 0.25s ease, color 0.2s ease;
}
.contact-info-link:hover {
    background: rgba(13, 107, 76, 0.08);
    color: var(--primary);
}
.contact-info-link:hover .contact-info-value {
    color: var(--primary);
}
.contact-info-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(13, 107, 76, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: background 0.25s ease, transform 0.25s ease;
}
.contact-info-item:hover .contact-info-icon-wrap,
.contact-info-link:hover .contact-info-icon-wrap {
    background: rgba(13, 107, 76, 0.2);
    transform: scale(1.05);
}
.contact-info-text {
    flex: 1;
}
.contact-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}
.contact-info-value {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

/* Contact form card */
.contact-form-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-form-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.08) !important;
}
.contact-input {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-input:hover {
    border-color: rgba(13, 107, 76, 0.4);
}
.contact-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 107, 76, 0.2);
}
.contact-submit-btn {
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 107, 76, 0.35);
}
.contact-submit-btn:active {
    transform: translateY(0);
}

/* Contact map */
.contact-map-wrap {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.contact-map-wrap:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
}
.contact-map-placeholder {
    transition: box-shadow 0.25s ease;
}
.contact-map-placeholder:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}
.contact-map-placeholder-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.25s ease, color 0.25s ease;
}
.contact-map-placeholder:hover .contact-map-placeholder-icon {
    opacity: 1;
    color: var(--primary);
}

/* Newsletter section – app theme */
.newsletter-section {
    background: linear-gradient(180deg, var(--light-bg) 0%, rgba(224, 239, 232, 0.5) 100%);
}
.newsletter-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8fbf9 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 32px rgba(13, 107, 76, 0.1);
    border: 1px solid rgba(13, 107, 76, 0.12);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}
.newsletter-card .row.align-items-center {
    justify-content: center;
}
.newsletter-card:hover {
    box-shadow: 0 12px 40px rgba(13, 107, 76, 0.14);
    border-color: rgba(13, 107, 76, 0.18);
    transform: translateY(-4px);
}
.newsletter-card:hover .newsletter-title {
    color: var(--primary);
}
.newsletter-card:hover .newsletter-lead {
    color: var(--text-dark);
}
.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.newsletter-lead {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 420px;
}
.newsletter-card .newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.newsletter-form .input-group-text {
    background: rgba(13, 107, 76, 0.06);
    border: 1px solid rgba(13, 107, 76, 0.2);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--primary);
}
.newsletter-form .form-control {
    border: 1px solid rgba(13, 107, 76, 0.2);
    border-radius: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 107, 76, 0.18);
}
.newsletter-input-group .newsletter-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    border: none;
    border-radius: 0 10px 10px 0;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.newsletter-input-group .newsletter-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 107, 76, 0.35);
    color: var(--white) !important;
}
.newsletter-msg.newsletter-success {
    color: var(--primary-dark);
}
.newsletter-msg.newsletter-error {
    color: #b02a37;
}

.contact-cta {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 6px 24px rgba(13, 107, 76, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.contact-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(13, 107, 76, 0.16);
    background-color: rgba(224, 239, 232, 0.7);
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #062d20 100%);
    color: var(--white);
    margin-top: 4rem;
}

.footer-main .container {
    padding-left: var(--bs-gutter-x, 1rem);
    padding-right: var(--bs-gutter-x, 1rem);
    margin-left: auto;
    margin-right: auto;
}

.footer-main h5, .footer-main h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-main h5.d-flex.align-items-center {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    width: fit-content;
}

.footer-logo-img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Footer Contact column – align icon + text */
.footer-contact-list {
    margin-bottom: 0;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.footer-contact-item:last-child {
    margin-bottom: 0;
}
.footer-contact-icon {
    flex-shrink: 0;
    margin-top: 0.15em;
    opacity: 0.9;
}
.footer-contact-text {
    min-width: 0;
    word-break: break-word;
}

.footer-main a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-main a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    display: inline-block;
    padding: 0.2rem 0;
    border-radius: 4px;
}

.footer-links a:hover {
    color: var(--accent) !important;
    padding-left: 6px;
}

/* FAQ accordion – hover on buttons */
.accordion-faq .accordion-button {
    transition: background-color 0.2s ease, color 0.2s ease;
}
.accordion-faq .accordion-button:not(.collapsed) {
    background: rgba(13, 107, 76, 0.12);
    color: var(--primary-dark);
}
.accordion-faq .accordion-button:hover {
    background: rgba(13, 107, 76, 0.08);
}
.accordion-faq .accordion-button:not(.collapsed):hover {
    background: rgba(13, 107, 76, 0.18);
}
.accordion-faq .accordion-item {
    transition: box-shadow 0.2s ease;
}
.accordion-faq .accordion-item:hover {
    box-shadow: 0 6px 20px rgba(13, 107, 76, 0.1) !important;
}

/* Policy/Terms/FAQ content links */
.about-content a.text-success {
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.about-content a.text-success:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
}

/* Flash Messages */
.alert {
    border-radius: 8px;
    border: none;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

/* ========== About page ========== */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #083d2a 100%);
    color: var(--white);
    padding: 3.5rem 0;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 24px rgba(13, 107, 76, 0.25);
    transition: box-shadow 0.3s ease;
}
.about-hero:hover {
    box-shadow: 0 12px 32px rgba(13, 107, 76, 0.35);
}
.about-hero-inner {
    max-width: 640px;
}
.about-hero-title {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.about-hero-lead {
    font-size: 1.1rem;
    opacity: 0.95;
}

.about-content {
    background: linear-gradient(180deg, #fff 0%, var(--light-bg) 15%, #fff 100%);
}

/* About intro card */
.about-intro-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-intro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
}
.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}
.about-intro-text {
    font-size: 1.05rem;
    line-height: 1.65;
}

/* About block cards (Auth + Vision) */
.about-block-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.about-block-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(13, 107, 76, 0.12) !important;
}
.about-block-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13, 107, 76, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}
.about-block-card:hover .about-block-icon-wrap {
    background: rgba(13, 107, 76, 0.18);
    transform: scale(1.05);
}
.about-block-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

/* About store cards */
.about-store-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12) !important;
}
.about-store-card-img {
    height: 200px;
    background: linear-gradient(145deg, var(--light-bg) 0%, #e5efeb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.about-store-card-img i {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.about-store-card:hover .about-store-card-img {
    background: linear-gradient(145deg, rgba(13, 107, 76, 0.08) 0%, rgba(19, 143, 102, 0.12) 100%);
}
.about-store-card:hover .about-store-card-img i {
    transform: scale(1.1);
    opacity: 1;
}
.about-store-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.about-store-card:hover .about-store-caption {
    color: var(--text-dark);
}

/* About registration card */
.about-reg-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-reg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
}
.about-reg-list .about-reg-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: padding-left 0.2s ease;
}
.about-reg-list .about-reg-item:last-child {
    border-bottom: none;
}
.about-reg-card:hover .about-reg-item {
    padding-left: 4px;
}

/* Trust badges */
.trust-badge {
    border: 2px solid rgba(13, 107, 76, 0.25);
    border-radius: 16px;
    padding: 1.75rem 1rem;
    text-align: center;
    height: 100%;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(13, 107, 76, 0.15);
    border-color: var(--primary);
    background: rgba(13, 107, 76, 0.03);
}
.trust-badge-icon {
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    transition: transform 0.3s ease;
}
.trust-badge:hover .trust-badge-icon {
    transform: scale(1.1);
}
.trust-badge-title {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s ease;
}
.trust-badge:hover .trust-badge-title {
    color: var(--primary);
}
.trust-badge-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Contact form */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 107, 76, 0.25);
}

/* Medicine details */
.detail-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Medicine detail page – app theme + hovers */
.medicine-detail-page {
    background: linear-gradient(180deg, var(--light-bg) 0%, rgba(224, 239, 232, 0.4) 100%);
}
.medicine-detail-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.medicine-detail-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.medicine-detail-breadcrumb .breadcrumb-item.active {
    color: var(--text-muted);
}
.medicine-detail-image-card {
    border: 1px solid rgba(13, 107, 76, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.medicine-detail-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.25rem rgba(13, 107, 76, 0.15);
    border-color: rgba(13, 107, 76, 0.25);
}

/* Medicine detail – no image placeholder (theme + medicine-related) */
.medicine-detail-no-image {
    padding: 1rem;
    max-width: 280px;
}
.medicine-detail-no-image-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 107, 76, 0.12) 0%, rgba(13, 107, 76, 0.06) 100%);
    border: 2px dashed rgba(13, 107, 76, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.medicine-detail-no-image-icon-wrap .bi {
    font-size: 2.25rem;
    color: var(--primary);
    opacity: 0.85;
}
.medicine-detail-no-image-title {
    font-weight: 600;
.medicine-detail-no-image-text {
    font-size: 0.8rem;
}
    color: var(--text-dark);
    font-size: 1rem;
}
.medicine-detail-no-image-badge {
    background: rgba(13, 107, 76, 0.12) !important;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.75rem;
}
.medicine-detail-card {
    border: 1px solid rgba(13, 107, 76, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.medicine-detail-card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(13, 107, 76, 0.12);
    border-color: rgba(13, 107, 76, 0.2);
}
.medicine-detail-card-body {
    padding: 1rem 1.25rem !important;
}
.medicine-detail-name {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.medicine-detail-generic {
    font-size: 0.875rem;
    margin-bottom: 0.5rem !important;
}
.medicine-detail-disclaimer {
    font-size: 0.75rem !important;
    line-height: 1.4;
    margin-bottom: 0.5rem !important;
}
.medicine-detail-qty-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.medicine-detail-hr {
    margin: 0.75rem 0 !important;
}
.medicine-detail-desc {
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 0;
}
.medicine-detail-back-wrap {
    margin-top: 1rem;
}
.medicine-detail-card .medicine-detail-heading {
    font-size: 0.95rem;
    margin-bottom: 0.35rem !important;
}
.medicine-detail-category {
    background: var(--primary) !important;
    color: var(--white) !important;
    font-weight: 600;
}
.medicine-detail-price {
    color: var(--primary) !important;
    font-weight: 700;
}
.medicine-detail-specs .detail-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}
.medicine-detail-specs .d-block {
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.35;
}
.medicine-detail-specs .row {
    padding: 0.25rem 0;
}
.medicine-detail-specs .col-sm-6 {
    padding-bottom: 0.35rem;
}
.medicine-detail-specs .medicine-detail-price {
    font-size: 1rem !important;
}
.medicine-detail-heading {
    color: var(--primary) !important;
    font-weight: 600;
}
.medicine-qty-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 107, 76, 0.25);
}
.medicine-wa-btn {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.medicine-wa-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    filter: brightness(1.05);
}
.medicine-back-btn {
    border-color: var(--primary);
    color: var(--primary);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.medicine-back-btn:hover {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
    transform: translateX(-2px);
}
.medicine-back-btn .bi-arrow-left {
    display: inline-block;
    transition: transform 0.2s ease;
}
.medicine-back-btn:hover .bi-arrow-left {
    transform: translateX(-3px);
}
.medicine-related-wrap {
    border-top-color: rgba(13, 107, 76, 0.2) !important;
}
.medicine-related-wrap .section-title::after {
    background: var(--primary);
}

/* ========== Admin panel – sidebar ========== */
.admin-body {
    background: #f0f4f2;
}
.admin-wrap {
    min-height: 100vh;
}

.admin-main-footer {
    background: linear-gradient(180deg, rgba(13, 107, 76, 0.08) 0%, rgba(13, 107, 76, 0.04) 100%);
    border-top: 2px solid rgba(13, 107, 76, 0.25);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.admin-main-footer a {
    color: var(--primary);
    text-decoration: none;
}
.admin-main-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0a5239 0%, #083d2a 50%, #062d20 100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    padding: 0;
    flex-shrink: 0;
}

.admin-sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-radius: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.admin-brand-link:hover {
    opacity: 0.95;
    transform: translateX(2px);
}
.admin-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s ease;
}
.admin-brand-link:hover .admin-brand-icon {
    background: rgba(255,255,255,0.25);
}
.admin-brand-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
}
.admin-brand-text {
    letter-spacing: -0.02em;
}

.admin-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}
.admin-nav-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    padding: 0.5rem 1rem 0.35rem;
    margin-top: 0.5rem;
}
.admin-nav-label:first-child {
    margin-top: 0;
}
.admin-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.25rem 0;
}
.admin-nav-list li {
    margin-bottom: 2px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.admin-nav-link i:first-child {
    font-size: 1.15rem;
    width: 1.4rem;
    text-align: center;
    opacity: 0.9;
}
.admin-nav-link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.admin-nav-link.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.admin-nav-link.active:hover {
    background: rgba(255,255,255,0.22);
}

.admin-nav-dropdown {
    list-style: none;
    margin-bottom: 2px;
}
.admin-nav-toggle .admin-nav-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.8;
    transition: transform 0.25s ease;
}
.admin-nav-toggle[aria-expanded="true"] .admin-nav-chevron {
    transform: rotate(180deg);
}
.admin-nav-sublist {
    list-style: none;
    padding: 0.25rem 0 0.25rem 0.5rem;
    margin: 0 0 0 1.5rem;
    border-left: 2px solid rgba(255,255,255,0.15);
}
.admin-nav-sublist li {
    margin-bottom: 1px;
}
.admin-nav-sublink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.admin-nav-sublink i {
    font-size: 1rem;
    opacity: 0.85;
}
.admin-nav-sublink:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding-left: 1rem;
}
.admin-nav-sublink.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.admin-nav-spacer {
    flex: 1;
    min-height: 1rem;
}
.admin-nav-link-external:hover {
    background: rgba(19, 143, 102, 0.3);
}
.admin-nav-link-logout {
    color: rgba(255,255,255,0.75);
}
.admin-nav-link-logout:hover {
    background: rgba(200, 80, 80, 0.25);
    color: #fff;
}

/* Admin logo page: preview area – white & light gray checkerboard so white/transparent logos are visible */
.logo-preview-wrap {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    min-height: 80px;
}
.logo-preview-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0.5rem;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    border-radius: 6px;
}
.logo-preview-wrap .img-thumbnail {
    background: transparent;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.logo-preview-wrap .form-check {
    margin-bottom: 0;
}
.logo-preview-wrap .form-check-label {
    user-select: none;
}
.logo-preview-wrap .form-check-input:checked {
    background-color: #0a5239;
    border-color: #0a5239;
}

/* Admin dashboard main content */
.flex-grow-1.p-4 {
    background: linear-gradient(180deg, #f8faf9 0%, #fff 100%);
    min-height: 100vh;
}

/* Admin page header (Dashboard + username) */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,247,244,0.95) 100%);
    border-radius: 14px;
    border: 1px solid rgba(13, 107, 76, 0.1);
    box-shadow: 0 2px 12px rgba(13, 107, 76, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.admin-page-header:hover {
    box-shadow: 0 4px 20px rgba(13, 107, 76, 0.1);
    border-color: rgba(13, 107, 76, 0.15);
}
.admin-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.02em;
}
.admin-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(13, 107, 76, 0.06);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.admin-user-badge:hover {
    background: rgba(13, 107, 76, 0.12);
    color: var(--primary-dark);
    transform: translateY(-1px);
}
.admin-user-badge i {
    font-size: 1.25rem;
    color: var(--primary);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.admin-user-badge:hover i {
    opacity: 1;
}

/* Admin breadcrumb (CMS / Hero Section etc.) */
.admin-breadcrumb-wrap {
    padding: 0.5rem 0;
}
.admin-breadcrumb {
    --bs-breadcrumb-divider: "/";
    font-size: 0.95rem;
}
.admin-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.admin-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-dark);
    opacity: 0.95;
}
.admin-breadcrumb .breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 500;
}
.admin-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Admin Contact Messages table – theme table */
.admin-messages-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(13, 107, 76, 0.1);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.admin-messages-card:hover {
    box-shadow: 0 8px 28px rgba(13, 107, 76, 0.1);
    border-color: rgba(13, 107, 76, 0.15);
}
.admin-messages-table thead tr {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}
.admin-messages-table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1rem 1rem;
    border: none;
}
.admin-messages-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(13, 107, 76, 0.08);
    color: var(--text-dark);
}
.admin-messages-table tbody tr:last-child td {
    border-bottom: none;
}
.admin-message-row {
    transition: background 0.2s ease;
}
.admin-message-row:hover {
    background: rgba(13, 107, 76, 0.06) !important;
}
.admin-message-unread {
    background: rgba(13, 107, 76, 0.04) !important;
}
.admin-message-unread:hover {
    background: rgba(13, 107, 76, 0.1) !important;
}
.admin-messages-table tbody a[href^="mailto:"] {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.admin-messages-table tbody a[href^="mailto:"]:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.admin-messages-table .admin-btn-mark-read {
    border-color: rgba(13, 107, 76, 0.4);
    color: var(--primary-dark);
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.admin-messages-table .admin-btn-mark-read:hover {
    background: rgba(13, 107, 76, 0.1);
    border-color: var(--primary);
    color: var(--primary-dark);
}
.admin-messages-table .admin-btn-view {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.admin-messages-table .admin-btn-view:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-1px);
}
.admin-table-pagination .page-link {
    color: var(--primary);
    border-radius: 6px;
    margin: 0 2px;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-table-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}
.admin-table-pagination .page-link:hover {
    background: rgba(13, 107, 76, 0.1);
    color: var(--primary-dark);
}

.admin-dashboard {
    max-width: 1400px;
}

.admin-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 107, 76, 0.12) !important;
}

.admin-stat-card .admin-stat-icon {
    flex-shrink: 0;
}

.admin-stat-label {
    font-size: 0.85rem;
}

.admin-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-dashboard-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-dashboard-table td {
    vertical-align: middle;
}

.admin-dashboard .card-header h6.fw-600 {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner {
        padding: 2.5rem 0;
    }
    .hero-banner h1 {
        font-size: 1.75rem;
    }
    .hero-banner-search,
    .hero-banner-centered {
        padding: 2rem 0 2.5rem;
    }
    .hero-search-wrap {
        flex-wrap: wrap;
    }
    .hero-search-wrap .btn {
        width: 100%;
        margin-top: 0.25rem;
    }
    .top-contact a {
        margin-right: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Medicine card as link */
.medicine-card-link {
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.medicine-card-link:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}
.medicine-card-link:hover .card-title,
.medicine-card-link:hover .price { color: var(--primary) !important; }

/* Floating Call Widget - icon only */
.call-widget-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(13, 107, 76, 0.4);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.call-widget-fab:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(13, 107, 76, 0.5);
}
.call-widget-fab i {
    font-size: 1.5rem;
}
@media (max-width: 576px) {
    .call-widget-fab {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .call-widget-fab i {
        font-size: 1.35rem;
    }
}

/* Floating WhatsApp Widget */
.whatsapp-widget-fab {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    background: #25D366;
    color: #fff !important;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.whatsapp-widget-fab:hover {
    background: #1da851;
    color: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
@media (max-width: 576px) {
    .whatsapp-widget-fab {
        bottom: 78px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-widget-fab svg {
        width: 24px;
        height: 24px;
    }
}
