/* ==========================================================================
   INKOMO ANIMAL HEALTH CARE - Core Design System & Styling
   Veterinary & Agricultural E-Commerce Experience
   ========================================================================== */

:root {
    --primary: #17634a;
    --primary-hover: #104c39;
    --primary-light: #438d70;
    --primary-subtle: #edf6f1;
    --primary-border: #c4dfd0;
    
    --accent: #b3262e;
    --accent-hover: #8f1e25;
    --accent-light: #fbeef0;
    
    --whatsapp-green: #25d366;
    --whatsapp-dark: #128c7e;
    --instagram-grad: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    
    --bg-page: #f5f7f6;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-elevated: #f0f3f1;
    
    --text-main: #172620;
    --text-muted: #53645c;
    --text-light: #84938b;
    --text-inverse: #ffffff;
    
    --danger: #ef4444;
    --danger-subtle: #fef2f2;
    --danger-border: #fecaca;
    --warning: #f59e0b;
    --warning-subtle: #fffbeb;
    --success: #10b981;
    --success-subtle: #ecfdf5;
    
    --border-color: #e1e8e3;
    --border-color-dark: #cbd7cf;
    
    --radius-sm: 7px;
    --radius-md: 11px;
    --radius-lg: 17px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgb(23 38 32 / 0.045);
    --shadow-md: 0 8px 24px rgb(23 38 32 / 0.075);
    --shadow-lg: 0 16px 38px rgb(23 38 32 / 0.11);
    --shadow-xl: 0 24px 60px rgb(23 38 32 / 0.16);
    
    --font-sans: Inter, "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    --font-heading: var(--font-sans);
    --font-size-base: 16px;
    --hero-bg-custom: linear-gradient(118deg, #173d30 0%, #1c503b 58%, #255d43 100%);
    --hero-overlay: rgba(0, 0, 0, 0.45);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: var(--font-size-base, 16px);
}

h1, h2, h3, h4, h5, h6, .brand-logo, .hero-content h2, .section-head-b2b h3, .admin-pane-header h2 {
    font-family: var(--font-heading, var(--font-sans));
}

/* Box sizing rules */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Top Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #022c22, #046a38, #065f46);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 40;
}

.announcement-bar .highlight {
    color: #fde047;
    font-weight: 700;
}

/* Header & Navigation */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    gap: 1.5rem;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    display: block;
    width: auto;
    height: 3.5rem;
    max-width: 9rem;
    object-fit: contain;
}

/* Search Input */
.header-search-wrap {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.6rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-main);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-icon-svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    stroke: var(--text-muted);
    pointer-events: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-whatsapp-header {
    background: #e7f9ee;
    color: var(--whatsapp-dark);
    border: 1px solid #a7f3d0;
}

.btn-whatsapp-header:hover {
    background: #d1fae5;
    color: #065f46;
    transform: translateY(-1px);
}

.btn-instagram-header {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.btn-instagram-header:hover {
    background: #fce7f3;
    color: #9d174d;
    transform: translateY(-1px);
}

.btn-cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #ffffff;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-cart-trigger:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.cart-count-badge {
    background: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
}

.btn-admin-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
}

.btn-admin-nav:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

/* Category Navigation Bar */
.category-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0;
    min-width: max-content;
}

.cat-pill {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    transition: var(--transition);
}

.cat-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.cat-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(4, 106, 56, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 60%, #046a38 100%);
    color: #ffffff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-content h2 .accent-word {
    color: #34d399;
}

.hero-content p {
    font-size: 1.05rem;
    color: #a7f3d0;
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn-hero-primary {
    background: #10b981;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-hero-primary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-hero-whatsapp {
    background: #25d366;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-hero-whatsapp:hover {
    background: #1eb956;
    transform: translateY(-2px);
}

.hero-card-promo {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-xl);
}

.promo-tag {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.hero-card-promo h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-card-promo p {
    font-size: 0.875rem;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
}

.promo-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: #cbd5e1;
}

.promo-features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-features-list li svg {
    color: #34d399;
    flex-shrink: 0;
}

/* Catalog Controls & Filter Bar */
.catalog-section {
    padding: 2.5rem 0 4rem;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.toolbar-title h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.toolbar-title p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.select-filter {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.select-filter:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.catalog-load-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 1.25rem;
}

.btn-load-more {
    min-height: 2.75rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--primary);
    font-weight: 700;
}

.btn-load-more:hover {
    background: var(--primary-subtle);
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
}

.product-media-box {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    overflow: hidden;
    cursor: pointer;
}

.product-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-media-box img {
    transform: scale(1.05);
}

/* Badges */
.badge-stack {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 5;
}

.stock-badge {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
}

.stock-badge.low-stock {
    background: rgba(245, 158, 11, 0.95);
    color: #ffffff;
    animation: pulseGlow 2s infinite;
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

.badge-featured {
    background: rgba(15, 23, 42, 0.85);
    color: #fbbf24;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.product-info-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-category-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-sku-tag {
    font-family: monospace;
}

.product-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    cursor: pointer;
}

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

.product-target-animals {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.product-short-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing-box {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.price-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-discount-pill {
    background: var(--danger-subtle);
    color: var(--danger);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
}

/* Product Card Actions */
.product-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
}

.btn-add-cart {
    background: var(--primary);
    color: #ffffff;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-add-cart:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-add-cart:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    color: #64748b;
}

.btn-whatsapp-inquire {
    background: #e7f9ee;
    color: var(--whatsapp-dark);
    border: 1px solid #a7f3d0;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-whatsapp-inquire:hover {
    background: var(--whatsapp-green);
    color: #ffffff;
}

/* Modals & Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-dialog {
    transform: scale(1);
}

.modal-dialog-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-close-modal {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.btn-close-modal:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
}

/* Product Detail Modal Layout */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-image-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 320px;
    background: #f1f5f9;
}

.detail-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-stock-status {
    margin-bottom: 0.75rem;
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.detail-meta-box {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.detail-meta-box span {
    margin-right: 1rem;
}

.detail-price-box {
    margin-bottom: 1.25rem;
}

.detail-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.dosage-callout {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.detail-actions-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    overflow: hidden;
}

.qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    font-weight: 700;
    color: var(--text-main);
}

.qty-btn:hover {
    background: #e2e8f0;
}

.qty-input {
    width: 3rem;
    text-align: center;
    border: none;
    font-weight: 700;
    outline: none;
}

/* Slide-Over Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    z-index: 95;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #f1f5f9;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.cart-item-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-remove-cart {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-remove-cart:hover {
    text-decoration: underline;
}

.cart-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-page);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.btn-checkout-proceed {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(4, 106, 56, 0.25);
    margin-bottom: 0.75rem;
}

.btn-checkout-proceed:hover {
    background: var(--primary-hover);
}

.btn-whatsapp-cart {
    width: 100%;
    background: #e7f9ee;
    color: var(--whatsapp-dark);
    border: 1px solid #a7f3d0;
    padding: 0.65rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp-cart:hover {
    background: var(--whatsapp-green);
    color: #ffffff;
}

/* Checkout Modal */
.checkout-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: #ffffff;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.checkout-summary-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.checkout-summary-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-items-preview {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.checkout-partner-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.75rem;
    color: #92400e;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkout-social-options {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Order Confirmation & Auto-Redirection Modal */
.redirection-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.check-animation-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: #ecfdf5;
    color: #10b981;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 0 8px #d1fae5;
    animation: scaleIn 0.4s ease;
}

.redirection-box h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.redirection-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.countdown-visual-container {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 1s linear;
}

.redirection-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.btn-redirect-now {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel-redirect {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.btn-cancel-redirect:hover {
    color: var(--danger);
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-view-container {
    display: none;
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-view-container.active {
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-brand h2 {
    font-size: 1.15rem;
    font-weight: 800;
}

.admin-brand .badge-admin-tag {
    background: #10b981;
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-exit-admin {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-exit-admin:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-layout {
    display: flex;
    flex: 1;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.admin-nav-item:hover {
    background: var(--bg-page);
    color: var(--text-main);
}

.admin-nav-item.active {
    background: #ecfdf5;
    color: var(--primary);
    font-weight: 700;
}

.admin-nav-item svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* Admin Main Content */
.admin-content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.admin-tab-pane {
    display: none;
}

.admin-tab-pane.active {
    display: block;
}

.tab-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-header-row h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.btn-admin-cta {
    background: var(--primary);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-admin-cta:hover {
    background: var(--primary-hover);
}

/* Admin Dashboard Cards Grid */
.metrics-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.metric-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.metric-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-panel-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.chart-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.chart-panel-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Circular Progress Component Styling */
.circular-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.circular-svg-box {
    position: relative;
    width: 180px;
    height: 180px;
}

.circular-progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circular-progress-center .pct-val {
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.circular-progress-center .pct-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.circular-progress-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    background: var(--bg-page);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
}

.meta-item {
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meta-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.meta-val.text-emerald {
    color: var(--primary);
}

.meta-divider {
    color: var(--border-color-dark);
    font-weight: 300;
    font-size: 1.5rem;
}

/* Horizontal Bar Chart */
.hbar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hbar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
}

.hbar-name {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.hbar-numbers {
    display: flex;
    gap: 0.5rem;
}

.hbar-revenue {
    color: var(--primary);
}

.hbar-units {
    color: var(--text-light);
}

.hbar-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.hbar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: var(--radius-full);
    transition: width 0.8s ease-out;
}

/* Stock Health Card */
.stock-health-card {
    padding: 1rem 0;
}

.stock-meter-bar {
    width: 100%;
    height: 16px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    display: flex;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.meter-segment {
    height: 100%;
    transition: width 0.5s ease;
}

.meter-segment.healthy {
    background: #10b981;
}

.meter-segment.low {
    background: #f59e0b;
}

.meter-segment.out {
    background: #ef4444;
}

.stock-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.legend-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.legend-chip .dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.dot.bg-emerald { background: #10b981; }
.dot.bg-amber { background: #f59e0b; }
.dot.bg-rose { background: #ef4444; }

/* Admin Data Tables */
.admin-card-table {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-toolbar {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.table-search {
    max-width: 300px;
    position: relative;
    flex: 1;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.admin-data-table th {
    background: var(--bg-page);
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.admin-data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

.admin-data-table tr:hover td {
    background: #f8fafc;
}

.table-img-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #e2e8f0;
}

.stock-editor-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-stock-adj {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.btn-stock-adj:hover {
    background: #e2e8f0;
}

.input-stock-direct {
    width: 3.5rem;
    text-align: center;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action-sm {
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.btn-action-edit {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.btn-action-delete {
    background: var(--danger-subtle);
    color: var(--danger);
    border-color: var(--danger-border);
}

/* Image Upload Preview Box */
.image-upload-wrapper {
    border: 2px dashed var(--border-color-dark);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    background: var(--bg-page);
    cursor: pointer;
    transition: var(--transition);
}

.image-upload-wrapper:hover {
    border-color: var(--primary-light);
    background: #ecfdf5;
}

.image-preview-display {
    max-height: 160px;
    margin: 0.75rem auto;
    border-radius: var(--radius-sm);
    display: block;
}

/* Settings Form Tabs & Layout */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.settings-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.settings-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.settings-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.toggle-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.toggle-switch-row:last-child {
    border-bottom: none;
}

.toggle-info strong {
    display: block;
    font-size: 0.875rem;
}

.toggle-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modern Switch */
.switch-label {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: 0.2s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.switch-label input:checked + .switch-slider {
    background-color: var(--primary);
}

.switch-label input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    pointer-events: auto;
    animation: slideUpToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
}

.toast.toast-success {
    background: #065f46;
    border-left: 4px solid #34d399;
}

.toast.toast-error {
    background: #7f1d1d;
    border-left: 4px solid #f87171;
}

.toast.toast-info {
    background: #1e293b;
    border-left: 4px solid #38bdf8;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #ffffff;
    padding: 3.5rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    display: block;
    width: auto;
    height: 4.5rem;
    max-width: 9rem;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.875rem;
    color: #94a3b8;
    max-width: 320px;
    margin-bottom: 1.25rem;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.footer-links a:hover {
    color: #34d399;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Keyframes */
@keyframes scaleIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

@keyframes slideUpToast {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-form-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-search-wrap {
        display: none; /* Can be opened on toggle in mobile */
    }
    
    .btn-social span {
        display: none;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .admin-content-area {
        padding: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-drawer {
        max-width: 100%;
    }
}


/* ==========================================================================
   ADDITIONAL MODULES: PRECAUTIONS, REVIEWS, DOCTOR CONSULT & REMINDERS
   ========================================================================== */

/* --- Modal Tabs (Product Details & Specs) --- */
.product-modal-tabs {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.25rem;
    gap: 0.5rem;
    overflow-x: auto;
}

.modal-tab-btn {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.modal-tab-btn:hover {
    color: var(--primary);
}

.modal-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.modal-tab-content {
    display: none;
    animation: fadeInTab 0.25s ease;
}

.modal-tab-content.active {
    display: block;
}

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

/* --- Precautions & Warnings Section --- */
.precautions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
}

.precautions-alert-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #d97706;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.precautions-alert-card.danger {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #ef4444;
}

.precautions-title {
    font-weight: 800;
    color: #92400e;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.precautions-alert-card.danger .precautions-title {
    color: #991b1b;
}

.withdrawal-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.withdrawal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff;
    border: 1px solid #f59e0b;
    color: #b45309;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.precautions-text {
    color: #475569;
    line-height: 1.6;
    white-space: pre-line;
}

/* --- Doctor / Veterinarian Consultation --- */
.btn-doctor-consult {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-doctor-consult:hover {
    background: #dbeafe;
    color: #1e40af;
    transform: translateY(-1px);
}

.doctor-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: doctorPulse 2s infinite;
}

@keyframes doctorPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.floating-doctor-pill {
    position: fixed;
    bottom: 1.75rem;
    left: 1.75rem;
    background: #0f172a;
    color: #ffffff;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-xl);
    z-index: 50;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.floating-doctor-pill:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(4, 106, 56, 0.3);
}

.doctor-profile-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.doctor-avatar-circle {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(4, 106, 56, 0.2);
}

.doctor-info-box h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.doctor-info-box p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.doctor-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.btn-doctor-call {
    background: #0284c7;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.btn-doctor-call:hover {
    background: #0369a1;
}

.btn-doctor-whatsapp {
    background: #25d366;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-doctor-whatsapp:hover {
    background: #1eb956;
}

/* --- Customer Reviews & Ratings --- */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reviews-summary-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    align-items: center;
}

.rating-score-box {
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 1.25rem;
}

.rating-big-num {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.rating-stars-gold {
    color: #f59e0b;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.rating-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.rating-bar-track {
    flex: 1;
    height: 7px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: var(--radius-full);
}

.review-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.875rem;
}

.verified-buyer-badge {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.review-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.review-comment {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.review-vet-reply-bubble {
    background: #f0fdf4;
    border-left: 3px solid #10b981;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: #065f46;
    margin-top: 0.5rem;
}

/* Review Submission Form */
.review-submit-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.review-submit-box h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.star-picker-group {
    display: flex;
    gap: 0.35rem;
    font-size: 1.5rem;
    color: #cbd5e1;
    cursor: pointer;
    margin-bottom: 1rem;
}

.star-picker-star:hover,
.star-picker-star.active {
    color: #f59e0b;
}

/* --- Post-Purchase Medicine Reminders & Treatment Schedules --- */
.reminders-portal-box {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.reminder-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.reminder-item-card.completed {
    background: #f8fafc;
    border-color: #cbd5e1;
    opacity: 0.8;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.reminder-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.reminder-product-name {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
}

.reminder-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    background: var(--bg-page);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
}

.reminder-meta-item strong {
    display: block;
    color: var(--text-main);
    font-size: 0.8125rem;
}

.reminder-meta-item span {
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.reminder-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-mark-reminder {
    background: #ecfdf5;
    color: #046a38;
    border: 1px solid #a7f3d0;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-mark-reminder:hover {
    background: #10b981;
    color: #ffffff;
}

/* --- Theme & Layout Customization Admin Panel --- */
.theme-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.color-preset-btn {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: var(--transition);
}

.color-preset-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.color-swatch-circle {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* Review Moderation Badges */
.badge-rev-status {
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-rev-approved {
    background: #d1fae5;
    color: #065f46;
}

.badge-rev-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-rev-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Top Notification Banner for Herd Telemedicine */
.telemed-notice-bar {
    background: #022c22;
    color: #a7f3d0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.telemed-notice-bar a {
    color: #fde047;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 0.4rem;
}

/* ==========================================================================
   INKOMO ANIMAL HEALTH CARE - B2B MARKETPLACE ENHANCEMENTS & EXTENSIONS
   ========================================================================== */

/* Sub-header Navigation Links */
.b2b-subnav {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.b2b-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap;
}

.b2b-nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.b2b-nav-links a {
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0.25rem 0;
    position: relative;
}

.b2b-nav-links a:hover,
.b2b-nav-links a.active {
    color: var(--primary);
}

.b2b-nav-badge {
    background: #ecfdf5;
    color: var(--primary);
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-border);
    margin-left: 0.25rem;
}

/* User Account Pill & Role Status */
.auth-nav-status-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--border-color-dark);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.user-pill:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
}

.user-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.user-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-main);
}

.user-role-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.role-admin { color: #dc2626; }
.role-merchant { color: #d97706; }
.role-buyer { color: var(--primary); }

/* Account Dropdown Menu */
.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border: 1px solid var(--border-color-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
}

.account-dropdown-menu.open {
    display: flex;
}

.adm-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.adm-header span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

.adm-header strong {
    font-size: 0.875rem;
    color: var(--text-main);
}

.adm-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.adm-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.adm-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.4rem 0;
}

/* Regulatory Badges on Product Cards */
.reg-badge-schedule-h {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.reg-badge-cold-chain {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.reg-badge-otc {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Manufacturers Showcase Grid */
.manufacturers-section {
    padding: 3rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-head-b2b {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.section-head-b2b h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.section-head-b2b p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.mfg-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.mfg-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mfg-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.mfg-hq {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.mfg-licence {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: #ecfdf5;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.6rem;
}

.mfg-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: auto;
}

/* How It Works B2B Workflow */
.how-it-works-section {
    padding: 3.5rem 0;
    background: #ffffff;
}

.workflow-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.workflow-step-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.step-num-badge {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.workflow-step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.workflow-step-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* B2B RFQ Preview Card & Form */
.rfq-preview-card {
    display: flex;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.rfq-preview-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.rfq-preview-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.rfq-preview-sku {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.rfq-preview-merchant {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.rfq-pricing-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-pill-wholesale {
    background: #ecfdf5;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-border);
}

.price-pill-moq {
    background: #fffbeb;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid #fde68a;
}

.quote-calc-breakdown {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Buyer & Merchant Dashboard Portals */
.portal-container {
    display: none;
    padding: 2rem 0 4rem;
    min-height: 80vh;
}

.portal-container.active {
    display: block;
}

.portal-header {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.portal-header-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.portal-header-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.portal-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-portal-back {
    background: #f1f5f9;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-color-dark);
}

.btn-portal-back:hover {
    background: #e2e8f0;
}

/* Portal Tabs */
.portal-tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.75rem;
    overflow-x: auto;
    white-space: nowrap;
}

.portal-tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.portal-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.portal-tab-pane {
    display: none;
}

.portal-tab-pane.active {
    display: block;
}

/* KPI Metric Cards Grid */
.portal-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.portal-kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.kpi-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
    display: block;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

/* KYC Banners */
.kyc-banner-approved {
    background: #ecfdf5;
    border: 1px solid var(--primary-border);
    color: #065f46;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.kyc-banner-pending {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.b2b-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.b2b-data-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.b2b-data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.b2b-data-table tbody tr:hover {
    background: #f8fafc;
}

.table-prod-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.btn-table-action {
    background: #f1f5f9;
    color: var(--text-main);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color-dark);
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.btn-table-action:hover {
    background: #e2e8f0;
}

.btn-accept-quote {
    background: #ecfdf5;
    color: var(--primary);
    border-color: var(--primary-border);
}

.btn-accept-quote:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-reject-quote {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.btn-reject-quote:hover {
    background: #ef4444;
    color: #ffffff;
}

.btn-danger-action {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.btn-danger-action:hover {
    background: #b91c1c;
    color: #ffffff;
}

.audit-action-tag {
    background: #f1f5f9;
    color: #334155;
    font-family: monospace;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

/* GST Tax Invoice Styles */
.tax-invoice-container {
    background: #ffffff;
    padding: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    max-width: 850px;
    margin: 0 auto;
    font-family: var(--font-sans);
    color: #0f172a;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.invoice-parties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.invoice-party-col {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.party-label {
    font-size: 0.6875rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.35rem;
}

.invoice-party-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}

.invoice-items-table th {
    background: #0f172a;
    color: #ffffff;
    padding: 0.65rem 0.75rem;
    font-weight: 700;
    text-align: left;
}

.invoice-items-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.invoice-summary-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.summary-right {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
}

.summary-line.total {
    border-top: 2px solid #cbd5e1;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
}

/* Shipment Tracking Progress Bar */
.tracking-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2.5rem 0;
}

.tracking-timeline::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.track-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.track-step.completed .step-dot {
    background: var(--primary);
}

.track-step.current .step-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    display: block;
}

.track-step.completed .step-label {
    color: var(--primary);
    font-weight: 700;
}

.track-step.current .step-label {
    color: var(--accent);
    font-weight: 800;
}

/* Chatbot Floating Button & Panel */
.chatbot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #046a38;
    color: #ffffff;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 999;
    border: 2px solid #ffffff;
    transition: var(--transition);
}

.chatbot-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(4, 106, 56, 0.4);
}

.chatbot-panel {
    position: fixed;
    bottom: 85px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chatbot-panel.active {
    display: flex;
}

.chatbot-header {
    background: #046a38;
    color: #ffffff;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chatbot-messages-container {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble-row {
    display: flex;
    width: 100%;
}

.chat-bubble-row.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 82%;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.chat-bubble.bot {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: #046a38;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-time {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    text-align: right;
}

.chat-bubble.user .chat-bubble-time {
    color: rgba(255, 255, 255, 0.7);
}

.btn-chat-action {
    display: block;
    margin-top: 0.5rem;
    background: #ecfdf5;
    color: #046a38;
    border: 1px solid #a7f3d0;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    text-align: center;
}

.btn-chat-action:hover {
    background: #046a38;
    color: #ffffff;
}

.chatbot-quick-pills {
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    white-space: nowrap;
}

.chatbot-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-pill:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.chatbot-input-bar {
    padding: 0.65rem 0.75rem;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color-dark);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    outline: none;
}

.chatbot-input:focus {
    border-color: var(--primary);
}

.btn-chatbot-send {
    background: var(--primary);
    color: #ffffff;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8125rem;
}

/* Mobile Responsive Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-links {
    padding: 1rem 0;
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.mobile-drawer-links li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
}

.mobile-drawer-links li a:hover {
    background: #f8fafc;
    color: var(--primary);
}

/* Print Styles for Tax Invoice */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-tax-invoice, #printable-tax-invoice * {
        visibility: visible;
    }
    #printable-tax-invoice {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        border: none;
    }
}

/* Premium marketplace system */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
}

::selection {
    color: #fff;
    background: var(--primary);
}

:focus-visible {
    outline: 3px solid rgb(67 141 112 / 38%);
    outline-offset: 2px;
}

.container {
    max-width: 1320px;
    padding-right: clamp(1rem, 3vw, 2rem);
    padding-left: clamp(1rem, 3vw, 2rem);
}

.announcement-bar {
    background: #193d30;
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.015em;
}

.telemed-notice-bar {
    background: #edf4ef;
    color: #3c574a;
    border-bottom: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
}

.telemed-notice-bar a {
    color: var(--primary);
}

.site-header {
    border-bottom-color: #e8ede9;
    box-shadow: 0 3px 14px rgb(23 38 32 / 0.035);
}

.header-inner {
    min-height: 5rem;
    height: auto;
    gap: clamp(0.75rem, 2vw, 1.75rem);
}

.brand-logo {
    flex-shrink: 0;
}

.search-input {
    background: #f5f7f5;
    border-color: #e5ebe6;
    border-radius: 10px;
    min-height: 2.8rem;
}

.search-input:focus,
.form-control:focus,
.select-filter:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgb(67 141 112 / 14%);
}

.header-actions {
    gap: 0.55rem;
}

.btn-login-header,
.btn-register-header {
    display: inline-flex;
    min-height: 2.45rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #dfe7e1;
    border-radius: 9px;
    color: #355342;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn-login-header:hover {
    background: #f2f6f3;
}

.btn-register-header {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-register-header:hover {
    background: var(--primary-hover);
}

.btn-cart-trigger,
.btn-admin-nav,
.btn-doctor-consult,
.btn-social,
.user-pill {
    min-height: 2.55rem;
    border-radius: 10px;
}

.btn-cart-trigger {
    background: var(--primary);
    padding: 0.55rem 0.85rem;
}

.btn-cart-trigger:hover,
.btn-hero-primary:hover,
.btn-card-add-cart:hover {
    background: var(--primary-hover);
}

.btn-admin-nav {
    background: #fff;
}

.b2b-subnav {
    background: #fff;
    padding: 0.2rem 0;
}

.b2b-subnav-inner {
    min-height: 2.9rem;
}

.b2b-nav-links {
    gap: clamp(0.8rem, 1.5vw, 1.45rem);
    font-size: 0.82rem;
}

.b2b-nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
}

.b2b-nav-links a.active::after,
.b2b-nav-links a:hover::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--primary);
    content: "";
}

.b2b-nav-badge {
    background: var(--primary-subtle);
    border-color: var(--primary-border);
}

.category-strip {
    background: #f5f7f5;
    border-bottom-color: #e8ede9;
}

.category-pills {
    gap: 0.55rem;
    padding: 0.75rem 0;
}

.cat-pill {
    background: #fff;
    border-color: #e2e9e4;
    padding: 0.45rem 0.9rem;
}

.cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: none;
}

.hero-section {
    isolation: isolate;
    background: var(--hero-bg-custom,
        radial-gradient(ellipse at 82% 4%, rgb(90 145 104 / 28%), transparent 36%),
        linear-gradient(118deg, #173d30 0%, #1c503b 58%, #255d43 100%)
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(3.75rem, 7vw, 6rem) 0;
    position: relative;
}

.hero-section.has-wallpaper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay, rgba(0, 0, 0, 0.45));
    z-index: -1;
    pointer-events: none;
}

.hero-section.hide-pattern::before {
    display: none !important;
}

.hero-section::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px), linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px);
    background-size: 52px 52px;
    content: "";
    mask-image: linear-gradient(90deg, transparent, #000);
}

.hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-content h2 {
    max-width: 780px;
    font-size: clamp(2.45rem, 5vw, 4.25rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.hero-content h2 .accent-word {
    color: #b7d9bb;
}

.hero-content p {
    max-width: 640px;
    color: #d3e2d8;
    font-size: clamp(1rem, 1.45vw, 1.15rem);
    line-height: 1.75;
}

.hero-badges-row {
    gap: 0.55rem;
}

.hero-badge-item {
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 15%);
    padding: 0.42rem 0.72rem;
    font-size: 0.76rem;
}

.btn-hero-primary,
.btn-hero-whatsapp {
    min-height: 2.9rem;
    justify-content: center;
    border-radius: 9px;
    box-shadow: none;
    font-size: 0.88rem;
}

.btn-hero-primary {
    background: #398665;
}

.hero-actions > .btn-hero-primary:first-child {
    background: #fff;
    color: #214f3b;
}

.hero-actions > .btn-hero-primary:first-child:hover {
    background: #edf4ef;
}

.hero-actions > .btn-hero-primary[style*="accent"] {
    background: #b87932 !important;
}

.btn-hero-whatsapp {
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 28%);
    box-shadow: none;
}

.hero-card-promo {
    padding: clamp(1.35rem, 3vw, 2rem);
    background: rgb(16 42 32 / 48%);
    border: 1px solid rgb(220 238 224 / 19%);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgb(9 28 20 / 24%);
}

.promo-tag {
    background: #dfc28f;
    color: #43351e;
    border-radius: 5px;
    letter-spacing: 0.04em;
}

.manufacturers-section,
.how-it-works-section,
.catalog-section {
    padding-top: clamp(3rem, 5vw, 4.75rem);
    padding-bottom: clamp(3rem, 5vw, 4.75rem);
}

.manufacturers-section {
    background: #f2f5f2;
}

.section-head-b2b {
    margin-bottom: 2rem;
}

.section-head-b2b h3,
.toolbar-title h3 {
    color: #1d3027;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    letter-spacing: -0.025em;
}

.section-head-b2b p {
    color: #68776f;
}

.mfg-card,
.workflow-step-card {
    border-color: #e3eae5;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mfg-card {
    min-height: 155px;
}

.mfg-card:hover,
.workflow-step-card:hover {
    transform: translateY(-3px);
    border-color: #c4dfd0;
    box-shadow: var(--shadow-md);
}

.how-it-works-section {
    background: #fff;
}

.workflow-step-card {
    background: #fbfcfb;
    text-align: left;
}

.step-num-badge {
    width: 2.35rem;
    height: 2.35rem;
    margin-bottom: 1.1rem;
    border-radius: 9px;
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: 0.9rem;
}

.workflow-step-card h4 {
    color: #25382e;
}

.catalog-section {
    background: #f5f7f6;
}

.catalog-toolbar {
    align-items: end;
    border-bottom-color: #e1e8e3;
    padding-bottom: 1.25rem;
}

.toolbar-title p {
    margin-top: 0.25rem;
    color: #6c7b73;
}

.select-filter,
.form-control {
    min-height: 2.7rem;
    border-color: #dce5df;
    border-radius: 9px;
    background-color: #fff;
}

.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.product-card {
    min-width: 0;
    border-color: #e3eae5;
    border-radius: 14px;
    box-shadow: 0 2px 9px rgb(23 38 32 / 4%);
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #c4dfd0;
    box-shadow: var(--shadow-md);
}

.product-card-image-box {
    position: relative;
    display: grid;
    place-items: center;
    height: 205px;
    overflow: hidden;
    background: linear-gradient(145deg, #f3f6f3, #eaf0eb);
    cursor: pointer;
}

.product-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 220ms ease;
}

.product-card:hover .product-card-image-box img {
    transform: scale(1.035);
}

.product-card-badges {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: calc(100% - 1.4rem);
}

.reg-badge-schedule-h,
.reg-badge-cold-chain,
.reg-badge-otc,
.badge-stock {
    padding: 0.24rem 0.48rem;
    border-radius: 5px;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.35;
}

.reg-badge-schedule-h {
    background: #fbefec;
    color: #984936;
}

.reg-badge-cold-chain {
    background: #ebf3f7;
    color: #326277;
}

.reg-badge-otc {
    background: #edf6f1;
    color: #316a50;
}

.badge-out {
    background: #fff0ef;
    color: #a63e35;
}

.badge-low {
    background: #fff6e8;
    color: #986420;
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    color: #79867f;
    font-size: 0.7rem;
}

.product-mfg {
    overflow: hidden;
    color: #4c6858;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-sku {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 0.66rem;
}

.product-title {
    min-height: 2.7em;
    margin-bottom: 0.45rem;
    color: #21342a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.product-title:hover {
    color: var(--primary);
}

.product-livestock-tag {
    align-self: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.22rem 0.48rem;
    border-radius: 5px;
    background: #f3f6f3;
    color: #637269;
    font-size: 0.7rem;
}

.product-pricing-box {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.4rem;
    margin: auto 0 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #edf0ed;
}

.price-wholesale-group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.22rem 0.4rem;
}

.price-label {
    flex-basis: 100%;
    color: #7b8880;
    font-size: 0.68rem;
}

.price-val {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-mrp {
    color: #8d9991;
    font-size: 0.68rem;
    text-decoration: line-through;
}

.moq-tag {
    flex-shrink: 0;
    color: #6c7971;
    font-size: 0.68rem;
}

.product-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.45rem;
}

.btn-card-quote,
.btn-card-add-cart {
    display: inline-flex;
    min-width: 0;
    min-height: 2.45rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--primary-border);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-card-quote:hover {
    background: var(--primary-subtle);
}

.btn-card-add-cart {
    background: var(--primary);
    color: #fff;
}

.btn-card-add-cart.disabled {
    background: #e9eeeb;
    border-color: #e9eeeb;
    color: #8b9690;
    cursor: not-allowed;
}

.trust-compliance-section {
    background: #203b30 !important;
    padding: clamp(3rem, 5vw, 4.5rem) 0 !important;
}

.site-footer {
    padding: 3.5rem 0 1.5rem;
    background: #172d24;
}

.footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.footer-col h4 {
    color: #dce9df;
    font-size: 0.76rem;
    letter-spacing: 0.09em;
}

.footer-links {
    gap: 0.65rem;
    color: #adbbb1;
}

.footer-links a {
    transition: color 160ms ease;
}

.footer-links a:hover {
    color: #c2dec8;
}

.footer-bottom {
    border-top-color: rgb(255 255 255 / 12%);
    color: #9bab9f;
}

.portal-container {
    padding: clamp(1.25rem, 3vw, 2.5rem) 0 4rem;
}

.portal-header {
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border-color: #e3eae5;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.portal-header-info h2 {
    color: #20362a;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    letter-spacing: -0.025em;
}

.portal-header-actions {
    flex-wrap: wrap;
}

.portal-tabs-nav {
    gap: 0.3rem;
    border-bottom: 1px solid #dfe7e1;
}

.portal-tab-btn {
    padding: 0.8rem 1rem;
    border-bottom-width: 2px;
    font-size: 0.85rem;
}

.portal-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.portal-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.portal-kpi-card,
.admin-card,
.kpi-card,
.admin-card-table {
    border-color: #e3eae5;
    border-radius: 13px;
    box-shadow: var(--shadow-sm);
}

.portal-kpi-card {
    padding: 1.2rem;
}

.kpi-label {
    color: #6d7a72;
    font-size: 0.72rem;
}

.kpi-value {
    color: #245f45;
    font-size: 1.8rem;
}

.portal-panel {
    border-radius: 13px;
}

.table-responsive {
    overflow-x: auto;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    background: #fff;
}

.b2b-data-table {
    min-width: 650px;
    border-collapse: separate;
    border-spacing: 0;
}

.b2b-data-table th {
    background: #f3f6f3;
    color: #506257;
    font-size: 0.7rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.b2b-data-table td,
.b2b-data-table th {
    border-bottom-color: #e9eeea;
    padding: 0.8rem 0.9rem;
}

.b2b-data-table tbody tr:last-child td {
    border-bottom: 0;
}

.b2b-data-table tbody tr:hover {
    background: #fafcfb;
}

.admin-view-container.active {
    flex-direction: row;
    background: #f4f7f5;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    width: 270px;
    height: 100vh;
    padding: 1.2rem 0.8rem;
    background: #19392d;
    border-right: 0;
    gap: 0.35rem;
}

.admin-brand-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0.65rem 1.2rem;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    margin-bottom: 0.7rem;
}

.admin-brand-logo-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 0.35rem;
}

.admin-brand-logo-img {
    display: block;
    width: auto;
    height: 2.75rem;
    max-width: 4.25rem;
    object-fit: contain;
}

.admin-nav-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.admin-nav-item {
    width: 100%;
    color: #c4d2c8;
    text-align: left;
    font-size: 0.8rem;
}

.admin-nav-item:hover {
    background: rgb(255 255 255 / 8%);
    color: #fff;
}

.admin-nav-item.active {
    background: #e7f1e9;
    color: #20583f;
}

.btn-exit-admin-nav {
    color: #d5e0d8;
}

.admin-main-content {
    flex: 1;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.admin-pane-header {
    margin-bottom: 1.5rem;
}

.admin-pane-header h2 {
    color: #20362a;
    font-size: clamp(1.4rem, 2.3vw, 1.9rem);
    letter-spacing: -0.025em;
}

.admin-pane-header p {
    color: #69786f;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.05rem;
    background: #fff;
}

.kpi-card-label {
    color: #6d7a72;
    font-size: 0.73rem;
    font-weight: 600;
}

.kpi-card-value {
    color: #245f45;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.admin-card {
    min-width: 0;
    padding: 1.1rem;
    background: #fff;
}

.admin-card .card-header {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #edf0ed;
}

.admin-card .card-header h4 {
    color: #293d32;
    font-size: 0.95rem;
}

.modal-overlay {
    padding: clamp(0.6rem, 3vw, 1.5rem);
}

.modal-dialog {
    border: 1px solid rgb(225 232 227 / 80%);
    border-radius: 18px;
}

.modal-header {
    padding: 1.1rem 1.35rem;
}

.modal-header h3 {
    color: #20362a;
    font-size: 1.1rem;
}

.modal-body {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.auth-tab-pane form {
    display: block;
}

.auth-tab-pane .form-label {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #3d5045;
    font-size: 0.8rem;
    font-weight: 650;
}

.auth-tab-pane .form-control,
.auth-tab-pane .select-filter {
    width: 100%;
}

.detail-image-box {
    border: 1px solid #e5ebe6;
    border-radius: 14px;
    background: #f3f6f3;
}

.detail-image-box img {
    object-fit: contain;
}

.detail-title {
    color: #20362a;
}

.mobile-menu-drawer {
    width: min(340px, 88vw);
    background: #fbfcfb;
}

.mobile-drawer-header {
    padding: 1.15rem 1.25rem;
}

.mobile-drawer-links li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom-color: #edf1ed;
    font-size: 0.88rem;
}

.mobile-drawer-links li a svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: #668072;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.admin-nav-item svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.mobile-drawer-links li a:hover {
    background: #f0f5f1;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   ADMIN SITE CUSTOMIZER & ENTRANCE APPEARANCE STYLES
   ========================================================================== */

.btn-wallpaper-preset {
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wallpaper-preset:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-wallpaper-preset.active {
    background: #ecfdf5;
    border-color: #34d399;
    color: #065f46;
}

.customizer-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.customizer-card:focus-within {
    border-color: var(--primary-light) !important;
}

@media (max-width: 900px) {
    #admin-site-customizer-form > div {
        grid-template-columns: 1fr !important;
    }
    .customizer-preview-wrapper #prev-hero-box > div {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1120px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-inner {
        gap: 1rem;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .btn-doctor-consult,
    #btn-reminders-header {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 4.4rem;
    }

    .header-search-wrap {
        display: block;
        flex: 1;
        max-width: none;
    }

    .b2b-subnav {
        display: none;
    }

    .btn-mobile-toggle {
        display: inline-flex;
        width: 2.5rem;
        height: 2.5rem;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-color);
        border-radius: 9px;
        color: #355342;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
        gap: 2rem;
    }

    .admin-view-container.active {
        flex-direction: column;
    }

    .admin-sidebar {
        position: relative;
        z-index: 20;
        width: 100%;
        height: auto;
        padding: 0.7rem 1rem;
    }

    .admin-brand-box {
        padding: 0.2rem 0.3rem 0.7rem;
        margin-bottom: 0.4rem;
    }

    .admin-nav-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .admin-nav-item {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .admin-sidebar > div:last-child {
        padding: 0.6rem 0.25rem 0 !important;
        margin-top: 0.4rem !important;
        border-top: 1px solid rgb(255 255 255 / 12%);
    }

    .admin-sidebar > div:last-child button {
        width: auto !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 5rem;
    }

    .announcement-bar {
        padding: 0.42rem 0.75rem;
        font-size: 0.68rem;
        line-height: 1.4;
    }

    .telemed-notice-bar {
        font-size: 0.67rem;
        line-height: 1.45;
    }

    .telemed-notice-bar a {
        display: block;
        margin: 0.15rem 0 0;
    }

    .header-inner {
        min-height: 4rem;
        gap: 0.5rem;
    }

    .brand-logo {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .brand-logo-img {
        height: 2.75rem;
        max-width: 6rem;
    }

    .header-search-wrap {
        display: none;
    }

    .header-actions {
        gap: 0.35rem;
    }

    .btn-register-header,
    .btn-admin-nav {
        display: none;
    }

    .btn-login-header {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        font-size: 0;
    }

    .btn-login-header svg {
        flex: 0 0 auto;
    }

    #floating-doctor-btn {
        display: none;
    }

    .chatbot-fab {
        right: 0.8rem;
        bottom: 0.8rem;
        width: 3rem;
        height: 3rem;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
        box-shadow: 0 7px 22px rgb(23 38 32 / 24%);
    }

    .chatbot-fab span {
        display: none;
    }

    .btn-cart-trigger {
        width: 2.55rem;
        height: 2.55rem;
        justify-content: center;
        padding: 0;
        font-size: 0;
    }

    .btn-cart-trigger svg {
        width: 19px;
        height: 19px;
    }

    .cart-count-badge {
        position: absolute;
        top: -0.35rem;
        right: -0.3rem;
        min-width: 1.1rem;
        height: 1.1rem;
        font-size: 0.65rem;
    }

    .btn-admin-nav {
        width: 2.55rem;
        height: 2.55rem;
        justify-content: center;
        padding: 0;
        font-size: 0;
    }

    .btn-admin-nav svg {
        flex: 0 0 auto;
    }

    .auth-nav-status-box {
        max-width: 2.55rem;
    }

    .user-pill {
        width: 2.5rem;
        height: 2.5rem;
        justify-content: center;
        padding: 0;
    }

    .user-meta,
    .user-pill > svg {
        display: none;
    }

    .hero-section {
        padding: 3.25rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h2 {
        font-size: clamp(2.25rem, 10vw, 3.1rem);
    }

    .hero-content p {
        margin-bottom: 1.2rem;
    }

    .hero-badges-row {
        display: grid;
        gap: 0.45rem;
        margin-bottom: 1.3rem;
    }

    .hero-badge-item {
        width: fit-content;
        max-width: 100%;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .hero-actions > * {
        padding: 0.7rem 0.65rem;
        font-size: 0.78rem;
    }

    .hero-actions > :first-child {
        grid-column: 1 / -1;
    }

    .hero-card-promo {
        padding: 1.25rem;
    }

    .manufacturers-grid,
    .workflow-steps-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step-card {
        padding: 1.2rem;
    }

    .catalog-toolbar {
        align-items: stretch;
        margin-bottom: 1.2rem;
    }

    .toolbar-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 0.5rem;
    }

    .toolbar-filters .select-filter {
        min-width: 0;
        width: 100%;
        padding: 0.5rem 0.55rem;
        font-size: 0.74rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .product-card {
        border-radius: 11px;
    }

    .product-card-image-box {
        height: 145px;
    }

    .product-card-image-box img {
        padding: 0.65rem;
    }

    .product-card-body {
        padding: 0.75rem;
    }

    .product-card-meta {
        display: block;
        font-size: 0.63rem;
    }

    .product-sku {
        display: block;
        margin-top: 0.1rem;
    }

    .product-title {
        min-height: 2.7em;
        font-size: 0.85rem;
    }

    .product-livestock-tag {
        margin-bottom: 0.5rem;
        font-size: 0.62rem;
    }

    .product-pricing-box {
        align-items: start;
        flex-direction: column;
        gap: 0.1rem;
        margin-bottom: 0.55rem;
        padding-top: 0.55rem;
    }

    .price-val {
        font-size: 1.05rem;
    }

    .product-card-actions {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .btn-card-quote,
    .btn-card-add-cart {
        min-height: 2.25rem;
        font-size: 0.68rem;
    }

    .trust-compliance-section .container > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        font-size: 0.72rem;
    }

    .portal-container {
        padding-top: 1rem;
    }

    .portal-header {
        padding: 1rem;
        gap: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .portal-header-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .portal-header-actions > * {
        min-width: 0;
        flex: 1;
        justify-content: center;
        padding: 0.55rem !important;
        font-size: 0.73rem !important;
    }

    .portal-tabs-nav {
        margin-right: -1rem;
        margin-bottom: 1.2rem;
        padding-right: 1rem;
    }

    .portal-tab-btn {
        padding: 0.7rem 0.75rem;
        font-size: 0.78rem;
    }

    .portal-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin-bottom: 1.3rem;
    }

    .portal-kpi-card {
        padding: 0.9rem;
    }

    .kpi-value {
        font-size: 1.45rem;
    }

    .portal-container h3 {
        font-size: 1rem !important;
    }

    .portal-container form > div[style*="grid-template-columns"],
    .auth-tab-pane form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.7rem !important;
    }

    .admin-main-content {
        padding: 1rem;
    }

    .admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .kpi-card {
        padding: 0.85rem;
    }

    .admin-charts-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    .admin-card {
        padding: 0.85rem;
    }

    .modal-dialog {
        max-height: 94vh;
        border-radius: 14px;
    }

    .modal-header {
        padding: 0.9rem 1rem;
    }

    .modal-body {
        padding: 0.9rem 1rem;
    }

    .product-modal-tabs {
        gap: 0.15rem;
    }

    .modal-tab-btn {
        padding: 0.6rem 0.7rem;
        font-size: 0.78rem;
    }

    .detail-image-box {
        height: 220px;
    }

    #toast-container {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .toast {
        max-width: none;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-image-box {
        height: 190px;
    }

    .product-card-actions {
        grid-template-columns: 1fr 1fr;
    }

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

    .footer-brand {
        grid-column: auto;
    }

    .portal-kpi-grid,
    .admin-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   ADMIN SITE CUSTOMIZER & ENTRANCE APPEARANCE STYLES
   ========================================================================== */

.btn-wallpaper-preset {
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wallpaper-preset:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-wallpaper-preset.active {
    background: #ecfdf5;
    border-color: #34d399;
    color: #065f46;
}

.customizer-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.customizer-card:focus-within {
    border-color: var(--primary-light) !important;
}

@media (max-width: 900px) {
    #admin-site-customizer-form > div {
        grid-template-columns: 1fr !important;
    }
    .customizer-preview-wrapper #prev-hero-box > div {
        grid-template-columns: 1fr !important;
    }
}
