:root {
    /* Official Ginnovapharma Palette */
    --color-primary: #0964D7;
    /* Azul oscuro (principal) */
    --color-secondary: #00AC86;
    /* Verde primario */
    --color-accent: #74F1D3;
    /* Verde secundario */
    --color-light-blue: #02CDF8;
    /* Azul claro */
    --color-white: #FFFFFF;
    /* Fondo blanco */

    /* Main Palette - Mapped to Official Colors */
    --pharmacy-primary: var(--color-primary);
    --pharmacy-primary-hover: var(--color-secondary);
    /* Hover requested to be Green Primary */
    --pharmacy-secondary: var(--color-accent);

    /* Text Colors */
    --pharmacy-text: #2d3748;
    --pharmacy-text-muted: #6c757d;
    --pharmacy-text-light: var(--color-white);

    /* Backgrounds */
    --pharmacy-background: #f8f9fa;
    --pharmacy-card-bg: var(--color-white);

    /* Borders & Accents */
    --pharmacy-border: #dee2e6;
    --pharmacy-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --pharmacy-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}



body {
    padding-top: 76px;
}

/* Global Typography - Raleway */
* {
    font-family: 'Raleway', sans-serif;
}

.navbar-brand,
.nav-link,
.navbar-gradient .nav-link,
.navbar-gradient .navbar-brand,
.navbar-gradient .btn,
.navbar-gradient i,
.navbar-gradient span {
    color: var(--color-white) !important;
}

/* Navbar Gradient */
.navbar-gradient {
    /* Gradient handled in bg */
    background: linear-gradient(to right, #0964D7, #02CDF8) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.navbar-gradient .navbar-brand,
.navbar-gradient .btn,
.navbar-gradient i,
.navbar-gradient span {
    color: var(--color-white) !important;
}

.navbar-gradient .nav-link:hover,
.navbar-gradient .btn:hover {
    color: var(--color-accent) !important;
}

/* Standardized Buttons */
/* Standardized Buttons */
/* Standardized Buttons - Virtual Border Fix */
.btn-primary {
    background-color: var(--pharmacy-primary);
    border: 1px solid transparent !important;
    /* Physical spacer only */
    color: white;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
    /* No Layout Transition */
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    /* Freeze Box Model */
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #004494 !important;
    border: 1px solid transparent !important;
    /* Maintain spacer */
    /* Explicit Width */
    color: white !important;
    box-shadow: none;
    /* No extra shadow needed for solid */
    transform: none !important;
    /* No Scaling */
    margin: 0;
}

.btn-default {
    background-color: white;
    border: 1px solid transparent !important;
    /* Physical spacer */
    box-shadow: inset 0 0 0 1px #ced4da;
    /* Virtual Border */
    color: #495057;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.btn-default:hover {
    background-color: var(--pharmacy-primary);
    border: 1px solid transparent !important;
    box-shadow: inset 0 0 0 1px var(--pharmacy-primary);
    /* Change Virtual Border */
    color: white !important;
    transform: none !important;
    transform: none !important;
}

.hero-section {
    background: url(../assets/images/hero_bg.png);
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    margin-top: -76px;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero-content {
    padding-right: 20px;
}

.hero-title {
    color: var(--pharmacy-primary);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: #00AC86;
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    font-family: 'Raleway', sans-serif;
}

.hero-desc {
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-btn {
    background-color: var(--pharmacy-primary);
    border: 1px solid transparent !important;
    /* Stability Fix */
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-block;
    box-sizing: border-box;
}

.hero-btn:hover {
    background-color: #004494;
    /* Darker Blue */
    border: 1px solid transparent !important;
    color: white !important;
    text-decoration: none;
    transform: none !important;
    margin: 0;
}

.hero-content-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-logo {
    max-width: 100%;
    width: 420px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(9, 100, 215, 0.2));
}

/* =========================================
   FEATURE CARDS (TRUST BADGES)
   ========================================= */
.features-section {
    background-color: white;
    padding: 60px 0;
    margin-top: 0;
    /* Overlap effect removed as requested */
    position: relative;
    z-index: 10;
}

.feature-card {
    background-color: var(--pharmacy-card-bg);
    border: 1px solid var(--pharmacy-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pharmacy-shadow-hover);
    border-color: var(--pharmacy-secondary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--pharmacy-primary);
    margin-bottom: 1rem;
}

.feature-title {
    color: var(--pharmacy-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-text {
    color: var(--pharmacy-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* =========================================
   FOOTER REDESIGN
   ========================================= */
.footer-redesign {
    background-color: var(--pharmacy-background);
    padding-top: 60px;
    border-top: 1px solid var(--pharmacy-border);
    font-size: 0.95rem;
}

.footer-brand-section {
    margin-bottom: 2rem;
}

.footer-logo-img {
    width: 220px !important;
    /* Forced size */
    margin-bottom: 1rem;
}

.footer-slogan {
    color: var(--pharmacy-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 300px;
}

.footer-heading {
    color: var(--pharmacy-text);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-subheading {
    color: var(--pharmacy-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 10px;
}

.social-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--pharmacy-secondary);
    color: var(--pharmacy-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icon-circle:hover {
    background-color: var(--pharmacy-primary);
    color: white;
    transform: translateY(-3px);
}

/* Links List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--pharmacy-primary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--pharmacy-primary-hover);
    text-decoration: underline;
}

/* Contact Info */
.footer-contact-info {
    list-style: none;
    padding: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: var(--pharmacy-text);
}

.footer-contact-info i {
    color: #4a90e2;
    /* Light blue accent for icons */
    margin-right: 10px;
    font-size: 1.1rem;
    margin-top: 2px;
}

.contact-cta-link {
    display: inline-block;
    color: var(--pharmacy-primary);
    font-weight: 700;
    margin-top: 0.5rem;
    text-decoration: none;
}

.contact-cta-link:hover {
    color: var(--pharmacy-primary-hover);
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--pharmacy-border);
    text-align: center;
    color: var(--pharmacy-text-muted);
    font-size: 0.85rem;
}

body {
    font-family: 'Raleway', sans-serif !important;
    background-color: var(--pharmacy-background);
    color: var(--pharmacy-text);
}

/* =========================================
   1. HEADER V5 (Sears-Style Redesign - Standard Bootstrap)
   ========================================= */

/* Navbar Brand Adjustments */
.navbar-brand .brand-logo-img {
    filter: brightness(0) invert(1);
}

/* Enhancing standard nav links */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #4a90e2 !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active Link State */
.navbar-dark .navbar-nav .active>.nav-link {
    color: #fff !important;
    border-bottom: 2px solid #4a90e2;
}

/* User & Cart Icons sizing */
.navbar-nav .lnr {
    font-size: 1.3rem;
    vertical-align: middle;
}

/* Cart Specifics */
#cart-container-v5 {
    color: #fff;
    cursor: pointer;
    padding: 0 10px;
    height: 40px;
    border-radius: 4px;
    transition: background 0.2s;
    background-color: rgba(255, 255, 255, 0.1);
}

#cart-container-v5:hover {
    background: rgba(255, 255, 255, 0.25);
}

#cart-container-v5 a {
    color: #fff !important;
    text-decoration: none;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

#cart-container-v5 .badge {
    background-color: #dc3545 !important;
    color: #fff !important;
    font-size: 0.75rem;
    position: relative;
    top: -8px;
    left: -5px;
}

#cart-container-v5 .badge {
    background-color: #dc3545;
    /* Red badge for contrast */
    color: #fff;
    font-size: 0.75rem;
    position: relative;
    top: -10px;
    left: -5px;
}

/* =========================================
   2. FOOTER V2 RESTORED (Blue Palette Overrides)
   ========================================= */

.footer-pharmacy-v2 {
    background-color: #f8f9fa !important;
    border-top: 1px solid var(--pharmacy-border);
    padding-top: 60px;
}

.footer-pharmacy-v2 .footer-col-title {
    color: var(--pharmacy-primary);
    /* Blue Title */
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.footer-pharmacy-v2 .footer-links-v2 a {
    color: var(--pharmacy-text-muted);
    transition: all 0.2s;
}

.footer-pharmacy-v2 .footer-links-v2 a:hover {
    color: var(--pharmacy-primary);
    /* Blue Hover */
    padding-left: 5px;
}

.footer-pharmacy-v2 .footer-contact-v2 i {
    color: var(--pharmacy-primary);
}


.premium-product-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--pharmacy-border);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.premium-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(33, 168, 216, 0.1);
    border-color: var(--pharmacy-secondary);
}

.premium-product-card img {
    max-width: 150px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.premium-product-card:hover img {
    transform: scale(1.05);
}

.premium-product-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--pharmacy-primary);
}

.premium-product-card .brand {
    font-size: 13px;
    color: var(--pharmacy-text-muted);
    font-style: italic;
    margin-bottom: 15px;
}

.premium-product-card .price {
    font-size: 24px;
    font-weight: 800;
    color: var(--pharmacy-primary);
    margin-bottom: 20px;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.rx {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.product-badge.new {
    background: var(--pharmacy-secondary);
    color: var(--pharmacy-primary);
    border: 1px solid #c9e6ff;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
}

.cart-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--pharmacy-primary);
    color: var(--pharmacy-text-light);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border: 2px solid #fff;
}

@keyframes popIn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.cart-indicator.pop-active {
    animation: popIn 0.3s ease-out;
}

/* Quantity Control Redesign */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.quantity-input {
    width: 60px;
    padding: 0.375rem 0.75rem;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
}

.quantity-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

.quantity-input.is-invalid {
    border-color: #dc3545 !important;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-error {
    color: #dc3545;
    font-size: 0.875em;
    width: 100%;
    margin-top: 0.25rem;
}

.add-to-cart-btn {
    background-color: #0964D7;
    border-color: #0964D7;
    color: white;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover:not(:disabled) {
    background-color: #003d7a;
    border-color: #003d7a;
}

.add-to-cart-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Success Feedback */
.added-feedback {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 59, 102, 0.95);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    z-index: 100;
    animation: fadeInOut 1s ease forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -70%);
    }
}

/* Social Media Section */
.social-section {
    padding: 60px 0;
    text-align: center;
    background: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--pharmacy-secondary);
    color: var(--pharmacy-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--pharmacy-primary);
    color: #fff;
    transform: translateY(-3px);
}

.trust-badges-section {
    padding: 60px 0;
    background: #fff;
    border-bottom: 1px solid var(--pharmacy-border);
}

.trust-badge-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.trust-badge-item:hover {
    transform: translateY(-5px);
}

.trust-badge-icon {
    font-size: 40px;
    color: var(--pharmacy-primary);
    margin-bottom: 15px;
    display: block;
}

.trust-badge-item h4 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.trust-badge-item p {
    font-size: 14px;
    color: #777;
}

.brands-section {
    padding: 80px 0;
    background: var(--pharmacy-background);
}

.brand-item {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item img {
    max-height: 50px;
    width: auto;
}

/* =========================================
   7. HOME PAGE SPECIFIC REFINEMENTS
   ========================================= */

.welcome-hero {
    display: flex;
    align-items: center;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.single-welcome-hero {
    height: 600px !important;
    /* Adjusted for better viewport balance */
}

.welcome-hero-txt h2 {
    font-size: 56px !important;
    font-weight: 800 !important;
    color: var(--pharmacy-primary) !important;
    line-height: 1.2;
}

.welcome-hero-txt p {
    font-size: 18px !important;
    color: var(--pharmacy-text-muted) !important;
    margin: 25px 0 40px !important;
}

.welcome-hero-img img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    max-height: 450px;
    width: auto;
}

.home-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--pharmacy-border), transparent);
    margin: 40px 0;
}

/* Enhanced Trust Badges */
.trust-badges-section {
    padding: 80px 0;
}

.trust-badge-card {
    background: #fff;
    border: 1px solid var(--pharmacy-border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    height: 100%;
    box-shadow: var(--pharmacy-shadow);
}

.trust-badge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(33, 168, 216, 0.1);
    border-color: var(--pharmacy-secondary);
}

.trust-badge-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--green-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.trust-badge-icon-wrapper i {
    font-size: 30px;
    color: var(--pharmacy-primary);
}

.trust-badge-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pharmacy-primary);
    margin-bottom: 12px;
}

.trust-badge-card p {
    font-size: 15px;
    color: var(--pharmacy-text-muted);
    line-height: 1.6;
}

/* Featured Products on Home - Consistency with Catalog */
#new-arrivals h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--pharmacy-primary);
}

/* Alternating background depth */
section:nth-of-type(even) {
    background-color: var(--pharmacy-background);
}

section:nth-of-type(odd) {
    background-color: #fff;
}

/* =========================================
   8. ADMIN PANEL REDESIGN STYLES
   ========================================= */

:root {
    --admin-blue-primary: #0d3b66;
    --admin-blue-hover: #0a2c4d;
    --admin-blue-light: #e3f2fd;
    --admin-blue-accent: #4a90e2;
    --admin-warning: #cfe2ff;
    /* Light professional blue for warnings */
    --admin-orange: var(--admin-blue-primary);
    --admin-orange-hover: var(--admin-blue-hover);
    --admin-dark-text: #1a1a1a;
    --admin-gray-text: #555555;
    --admin-bg-light: #f8f9fa;
    --admin-border: #DDDDDD;
    --admin-font: 'Inter', system-ui, -apple-system, sans-serif;
}

.admin-body {
    font-family: var(--admin-font) !important;
    background-color: var(--admin-bg-light);
    color: var(--admin-dark-text);
}

.admin-title {
    font-weight: 800;
    color: var(--admin-dark-text);
    margin-bottom: 5px;
    margin-top: 0;
}

.admin-subtitle {
    color: var(--admin-gray-text);
    font-size: 14px;
    margin-bottom: 25px;
}



/* Sticky Sidebar Styles */
.admin-wrapper {
    display: flex;
    align-items: flex-start;
}

.admin-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 130px;
    /* Increased buffer ++ */
    /* Adjusted to prevent overlap with sticky header */
    height: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
    width: 280px;
    flex-shrink: 0;
}

.admin-content {
    flex-grow: 1;
    padding: 30px;
    width: calc(100% - 280px);
    /* Prevent overflow */
}

/* Sidebar Navigation Styling */
.admin-sidebar .nav-link {
    color: #2d3748 !important;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover {
    background-color: #e3f2fd !important;
    color: #0056b3 !important;
    padding-left: 1.25rem;
    /* Subtle movement effect */
}

.admin-sidebar .nav-link.active {
    background-color: #e3f2fd !important;
    color: #0056b3 !important;
    border-left: 4px solid #0056b3 !important;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
    font-weight: 600;
}

.admin-sidebar .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 20px;
        padding: 0.5rem;
    }

    .admin-sidebar .nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .admin-sidebar .nav-item {
        margin-right: 5px;
    }

    .admin-sidebar .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .admin-content {
        width: 100%;
        padding: 15px;
        margin-left: 0 !important;
        /* Reset margin if any */
    }
}

/* Color Utilities */
.text-admin-primary {
    color: var(--admin-blue-primary) !important;
}

.text-admin-accent {
    color: var(--admin-blue-accent) !important;
}

.bg-admin-gradient {
    background: linear-gradient(135deg, var(--admin-blue-primary) 0%, var(--admin-blue-accent) 100%) !important;
    color: white !important;
}

/* Card Styling */
.admin-card {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.admin-card-icon {
    font-size: 2rem;
    color: var(--admin-blue-accent);
    margin-bottom: 15px;
    display: block;
}

.admin-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Button Styling (Admin Specific Overrides) */
.admin-btn-primary {
    background-color: var(--admin-blue-primary) !important;
    border: none !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.admin-btn-primary:hover {
    background-color: var(--admin-blue-hover) !important;
}

.admin-btn-outline {
    background-color: white !important;
    border: 1px solid var(--admin-blue-accent) !important;
    color: var(--admin-blue-accent) !important;
    padding: 6px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.admin-btn-outline:hover {
    background-color: var(--admin-blue-light) !important;
}

.admin-btn-edit {
    background-color: var(--admin-orange) !important;
    border: none !important;
    color: white !important;
    border-radius: 6px !important;
}

.admin-btn-edit:hover {
    background-color: var(--admin-orange-hover) !important;
}

/* Table Styling */
.admin-table-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    overflow: hidden;
    margin-top: 20px;
}

.admin-table {
    margin-bottom: 0 !important;
    width: 100%;
}

.admin-table thead th {
    background-color: white !important;
    color: var(--admin-dark-text) !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--admin-border) !important;
    padding: 15px !important;
    text-align: left;
}

.admin-table tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

.admin-table tbody tr:nth-of-type(even) {
    background-color: var(--admin-bg-light);
}

.admin-table tbody tr:hover {
    background-color: var(--admin-blue-light) !important;
    border-color: var(--admin-blue-accent) !important;
    transition: background-color 0.2s ease;
}

.admin-table tbody td {
    padding: 12px 15px !important;
    vertical-align: middle !important;
    border-top: 1px solid var(--admin-border) !important;
}

/* Status Badges */
.admin-badge {
    padding: 4px 12px !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    display: inline-block;
    color: white !important;
}

.admin-badge-pending {
    background-color: var(--admin-warning) !important;
    color: var(--admin-blue-primary) !important;
}

.admin-badge-success {
    background-color: var(--admin-blue-primary) !important;
}

/* Product Images */
.admin-product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
}

/* =========================================
   9. BRAND REFINEMENTS (Ginnovapharma Redesign)
   ========================================= */

.brand-logo-img {
    height: 50px !important;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.2px;
    display: flex;
}

.brand-ginnov {
    color: var(--pharmacy-primary) !important;
    font-family: 'Quicksand', sans-serif;
}

.brand-pharma {
    color: var(--pharmacy-accent-detail, #4a90e2) !important;
    font-family: 'Quicksand', sans-serif;
}

.navbar-brand:hover .brand-logo-img {
    transform: scale(1.05) rotate(5deg);
}

.modern-hero-btn {
    border-radius: 50px !important;
    padding: 18px 45px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background-color: var(--pharmacy-primary) !important;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2) !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-hero-btn:hover {
    background-color: var(--pharmacy-primary-hover) !important;
    box-shadow: 0 15px 30px rgba(0, 61, 122, 0.3) !important;
    transform: translateY(-3px) !important;
}

.hero-heart-wrapper:hover {
    transform: scale(1.1) rotate(-5deg);
}

@media (max-width: 991px) {
    .brand-text {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .brand-text {
        display: none;
    }

    .brand-logo-img {
        height: 40px !important;
    }

    .modern-hero-btn {
        padding: 12px 30px !important;
        font-size: 16px !important;
    }
}

/* =========================================
   10. AUTHENTICATION & FORM PAGES
   ========================================= */

.auth-section {
    padding: 80px 0;
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    background-color: var(--pharmacy-background);
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pharmacy-border);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-weight: 800;
    color: var(--pharmacy-primary);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--pharmacy-text-muted);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    font-weight: 600;
    color: var(--pharmacy-text-dark);
    margin-bottom: 8px;
    display: block;
}

.auth-form .form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--pharmacy-border);
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--pharmacy-primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.auth-btn {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--pharmacy-border);
}

.auth-footer a {
    color: var(--pharmacy-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   11. COMPONENT REFINEMENTS (Layout Cleanup)
   ========================================= */

/* Moving Layout styles from inline to class-based */
.main-content-wrapper {
    margin-top: 80px;
    min-height: 60vh;
}

.navbar-pharmacy {
    background-color: var(--pharmacy-accent) !important;
    border-bottom: 1px solid var(--pharmacy-primary) !important;
}

.footer-pharmacy {
    background-color: var(--pharmacy-accent) !important;
    color: var(--pharmacy-text-dark) !important;
    padding: 60px 0 30px;
    border-top: 1px solid var(--pharmacy-border) !important;
}

.footer-brand-logo {
    height: 35px;
    width: auto;
}

.footer-section-title {
    font-weight: 700;
    color: var(--pharmacy-text-dark);
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--pharmacy-text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--pharmacy-primary);
}

.footer-contact-info p {
    color: var(--pharmacy-text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info i {
    color: var(--pharmacy-primary);
    width: 20px;
}

.footer-copyright {
    border-top: 1px solid var(--pharmacy-border);
    margin-top: 40px;
    padding: 30px 0;
    color: var(--pharmacy-copyright) !important;
    font-size: 0.75rem;
}

/* =========================================
   12. FOOTER & CONTACT BANNER REDESIGN
   ========================================= */

.contact-banner-section {
    background-color: var(--pharmacy-secondary);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--pharmacy-border);
}

.contact-banner-content h4 {
    color: var(--pharmacy-text-dark);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-banner-content p {
    color: var(--pharmacy-text-muted);
    font-size: 16px;
}

.contact-banner-content a {
    color: var(--pharmacy-primary);
    font-weight: 800;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-banner-content a:hover {
    color: var(--pharmacy-primary-hover);
}

.footer-pharmacy-v2 {
    background-color: #f8f9fa !important;
    /* Requested Light Gray/White */
    padding: 60px 0 0;
    border-top: 1px solid var(--pharmacy-border) !important;
    color: var(--pharmacy-text-muted);
}

.footer-col-title {
    font-weight: 700;
    color: var(--pharmacy-text-dark);
    margin-bottom: 25px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-slogan {
    color: var(--pharmacy-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
}

.footer-links-v2 {
    list-style: none;
    padding: 0;
}

.footer-links-v2 li {
    margin-bottom: 12px;
}

.footer-links-v2 a {
    color: var(--pharmacy-text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.footer-links-v2 a:hover {
    color: var(--pharmacy-primary) !important;
    padding-left: 5px;
}

.footer-contact-v2 p {
    color: var(--pharmacy-text-muted);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-v2 i {
    color: var(--pharmacy-primary);
    font-size: 18px;
    margin-top: 2px;
}

.footer-divider {
    border-top: 1px solid #dee2e6;
    margin: 40px 0 25px;
}

.footer-logo-img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-copyright p {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 20px;
}


/* =========================================
   12. CATALOG PAGE REFINEMENTS
   ========================================= */

.catalog-header-v2 {
    background-color: #fff;
    border-bottom: 1px solid var(--pharmacy-border);
    padding: 60px 0 40px;
    text-align: center;
}

.catalog-header-v2 h1 {
    color: var(--pharmacy-primary);
    font-weight: 800;
}

.catalog-header-v2 p {
    color: var(--pharmacy-text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 10px auto 0;
}

.brand-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid var(--pharmacy-border);
    color: var(--pharmacy-text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
    background: #fff;
}

.brand-pill:hover,
.brand-pill.active {
    background-color: var(--pharmacy-primary);
    border-color: var(--pharmacy-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

.catalog-toolbar-v2 {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--pharmacy-shadow);
    margin-top: -35px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--pharmacy-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    justify-content: space-between;
}

.catalog-search-wrapper {
    position: relative;
    flex-grow: 1;
    min-width: 300px;
}

.catalog-search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pharmacy-primary);
    font-weight: bold;
}

.catalog-search-input {
    padding-left: 45px !important;
    border-radius: 30px !important;
    height: 50px !important;
}

.catalog-brand-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.catalog-brand-label {
    font-weight: 700;
    color: var(--pharmacy-text);
    white-space: nowrap;
}

.catalog-brand-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================
   13. HEADER REDESIGN (Professional V5)
   ========================================= */

.header-v5 {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.pharmacy-navbar {
    padding: 15px 0 !important;
    background: #fff !important;
    border-bottom: 2px solid var(--pharmacy-primary);
}

.pharmacy-navbar .navbar-brand {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--pharmacy-text-dark) !important;
    transition: transform 0.2s ease;
}

.pharmacy-navbar .navbar-brand:hover {
    transform: translateY(-2px);
}

.pharmacy-navbar .brand-text {
    color: var(--pharmacy-primary);
}

/* Center Links */
.nav-center-links {
    margin: 0 auto;
    /* Ensure centering in flex container */
}

.nav-center-links .nav-link {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: var(--pharmacy-text-dark) !important;
    padding: 10px 20px !important;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-center-links .nav-link:hover,
.nav-center-links .nav-link:focus {
    color: var(--pharmacy-primary) !important;
    background-color: var(--pharmacy-secondary);
}

/* Actions Right */
.header-actions-v5 {
    gap: 15px;
}

.header-actions-v5 .user-btn {
    border-color: var(--pharmacy-primary) !important;
    color: var(--pharmacy-primary) !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 16px;
}

.header-actions-v5 .user-btn:hover {
    background-color: var(--pharmacy-primary) !important;
    color: #fff !important;
}

.header-actions-v5 .login-btn {
    background-color: #4c829f !important;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.header-actions-v5 .login-btn:hover {
    background-color: #3a637a !important;
}

/* Override existing cart styles if needed */
.attr-nav>ul>li>a {
    color: var(--pharmacy-primary) !important;
    /* Cart Icon Color */
    padding: 0 !important;
}

.attr-nav>ul>li>a span.badge {
    background-color: var(--pharmacy-primary) !important;
}

@media (max-width: 991px) {
    .nav-center-links .nav-link {
        text-align: center;
        margin: 5px 0;
    }

    .header-actions-v5 {
        flex-direction: column;
        /* Stack actions on mobile if needed or keep inline */
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }
}

/* =========================================
   14. SEARCH SUGGESTIONS
   ========================================= */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 24px;
    /* Align with input start (approx via padding) */
    right: 24px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    overflow: hidden;
    display: none;
    /* Hidden by default */
    max-width: 600px;
    margin: 0 auto;
}

.search-suggestions-dropdown .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.search-suggestions-dropdown .list-group-item:last-child {
    border-bottom: none;
}

.search-suggestions-dropdown .list-group-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

@media (max-width: 991px) {
    .search-suggestions-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }
}

/* =========================================
   14. CATALOG REDESIGN (Sticky Sidebar)
   ========================================= */

/* =========================================
   14. CATALOG REDESIGN (Sticky Sidebar)
   ========================================= */

.catalog-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 140px;
    /* Increased buffer ++ */
    height: auto;
    /* min-height removed */
    background: #ffffff;
    border-right: 1px solid #dee2e6;
    border-radius: 8px;
    /* Optional slight radius for refined look */
    padding: 1.5rem;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 900;
}

/* Sidebar Sections */
.sidebar-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Brand Buttons (Outline Style) */
.btn-outline-primary {
    color: var(--pharmacy-primary);
    border-color: var(--pharmacy-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: #e3f2fd;
    color: var(--pharmacy-primary);
    border-color: var(--pharmacy-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Price Range Slider */
.price-slider-wrapper {
    padding: 0 5px;
}

.form-range::-webkit-slider-thumb {
    background: var(--pharmacy-primary);
}

.form-range::-moz-range-thumb {
    background: var(--pharmacy-primary);
}

/* Promotion Badges */
.badge-yellow {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.badge-blue {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

.promo-badge {
    transition: transform 0.2s ease;
    cursor: default;
}

.promo-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .catalog-sidebar {
        position: static;
        height: auto;
        min-height: auto;
        width: 100%;
        margin-bottom: 30px;
        border-right: none;
        border: 1px solid #dee2e6;
    }
}



/* Helper for mobile responsiveness of sidebar */
@media (max-width: 991px) {
    .catalog-sidebar {
        position: static !important;
        /* Unstick on mobile */
        margin-bottom: 30px;
    }
}

/* Catalog Grid Adjustments */
.product-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.premium-product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.brand-sm {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pharmacy-text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 44px;
    /* Ensure 2 lines alignment */
}

/* =========================================
   CATALOG REDESIGN 2026
   ========================================= */

/* Catalog Layout */


/* Sticky Sidebar */
.catalog-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    /* Adjust based on header height */
    z-index: 900;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--pharmacy-border);
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pharmacy-text);
    margin-bottom: 15px;
}

/* Search Input inside Sidebar */
.sidebar-search-box .form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid #ced4da;
    border-right: none;
}

.sidebar-search-box .btn {
    border-radius: 0 20px 20px 0;
    border: 1px solid #ced4da;
    border-left: none;
    background-color: #0056b3;
    color: #fff;
}

.sidebar-search-box .btn:hover {
    background-color: #004494;
    color: #fff;
}

/* Brand Filter Pills */
.brand-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-pill {
    display: inline-block;
    padding: 6px 14px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    color: var(--pharmacy-text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.brand-pill:hover {
    background-color: #e9ecef;
    color: var(--pharmacy-primary);
    text-decoration: none;
}

.brand-pill.active {
    background-color: var(--pharmacy-primary);
    color: #fff;
    border-color: var(--pharmacy-primary);
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.2);
}

/* Result Counter in Sidebar */
.sidebar-result-count {
    font-size: 0.9rem;
    color: var(--pharmacy-text-muted);
    margin-top: 10px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .catalog-sidebar-sticky {
        position: static;
        height: auto;
        margin-bottom: 30px;
        top: 0;
    }
}

/* =========================================
   PAGINATION STYLES
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.page-item .page-link {
    color: var(--pharmacy-primary);
    background-color: #fff;
    border: 1px solid var(--pharmacy-border);
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-item .page-link:hover {
    color: #fff;
    background-color: #003d7a;
    /* Darker blue */
    border-color: #003d7a;
}

.page-item.active .page-link {
    color: #fff;
    background-color: #0056b3;
    /* Primary blue */
    border-color: #0056b3;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.3);
}

.page-item.disabled .page-link {
    color: #fff;
    /* Adjusted text for contrast on darker gray if needed, or keep standard gray text if background is light */
    background-color: #dee2e6;
    border-color: #dee2e6;
    pointer-events: none;
}

/* =========================================
   15. REDESIGNED CONTACT PAGE
   ========================================= */
.contact-section {
    padding: 60px 0;
    min-height: calc(100vh - 85px - 300px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
}

.contact-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #4a90e2);
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-title {
    color: #0056b3;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.contact-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

.contact-form .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form .form-control {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 1rem;
    transition: all 0.25s ease;
    background-color: #fcfcfc;
}

.contact-form .form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    background-color: #ffffff;
}

.btn-contact-submit {
    background-color: #0056b3;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    border: none;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

.btn-contact-submit:hover {
    background-color: #003d7a;
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3);
    color: white;
    border: none !important;
    padding: 14px 30px !important;
    transform: none !important;
}

.contact-link {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #003d7a;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }
}

/* =========================================
   16. REDESIGNED REGISTER PAGE
   ========================================= */
.register-section {
    padding: 80px 0;
    min-height: calc(100vh - 85px - 250px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
}

.register-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #4a90e2);
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-title {
    color: #0056b3;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.register-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.register-form .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.register-form .form-control {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
    background-color: #fcfcfc;
    transition: all 0.25s ease;
}

.register-form .form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    background-color: #ffffff;
}

.btn-register-submit {
    background-color: #0056b3;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

.btn-register-submit:hover {
    background-color: #003d7a;
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3);
    color: white;
    border: none !important;
    padding: 12px !important;
    transform: none !important;
}

.register-link {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link:hover {
    color: #003d7a;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .register-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .register-card {
        padding: 2rem 1.5rem;
    }
}

/* =========================================
   17. REDESIGNED MINI-CART
   ========================================= */
.mini-cart-dropdown {
    min-width: 320px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    margin-top: 15px;
    /* Offset from navbar */
    background-color: #ffffff;
    border-top: 4px solid #0056b3;
    /* Brand accent */
}

/* Caret/Arrow (Optional, usually tricky with bootstrap dropdowns, skipping for cleanliness) */

.mini-cart-header {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.mini-cart-items-wrapper {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 5px;
    /* Space for scrollbar */
}

/* Scrollbar styling */
.mini-cart-items-wrapper::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-items-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mini-cart-items-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f8f9fa;
}

.mini-cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mini-cart-img-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.mini-cart-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mini-cart-details {
    flex-grow: 1;
}

.mini-cart-details .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

.mini-cart-details .product-pricing {
    font-size: 0.9rem;
    color: #6c757d;
}

.mini-cart-details .qty {
    font-weight: 600;
    color: #2d3748;
}

.mini-cart-details .price {
    color: #0056b3;
    font-weight: 700;
    margin-left: 4px;
}

.mini-cart-footer {
    padding-top: 15px;
    border-top: 2px solid #f1f3f5;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.total-row .label {
    font-size: 1rem;
    color: #6c757d;
}

.total-row .amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0056b3;
}

.btn-pharmacy-primary {
    background-color: #0056b3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.btn-pharmacy-primary:hover {
    background-color: #003d7a;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
    border: none !important;
    padding: 10px 20px !important;
}

/* =========================================
   18. GLOBAL BUTTON STABILIZATION
   ========================================= */
/* Apply strict transitions to prevent size animation */
button,
.btn,
a.btn,
.modern-hero-btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
.btn-pharmacy-primary,
.btn-contact-submit,
.btn-register-submit,
.btn-auth-primary {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
    /* Explicitly excluding transform, width, height, padding, margin */
}

button:hover,
.btn:hover,
a.btn:hover,
.feature-card:hover,
.trust-badge-card:hover,
.modern-hero-btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-info:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-pharmacy-primary:hover,
.btn-contact-submit:hover,
.btn-register-submit:hover,
.btn-auth-primary:hover {
    transform: none !important;
    /* Force static size/position */
    /* margin: 0 !important; REMOVED to prevent jumping */
}

/* Ensure box-sizing */
button,
.btn {
    box-sizing: border-box;
}

.login-page-bg {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    min-height: 80vh;
    /* Occupy significant vertical space but allow header/footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    position: relative;
    /* Optional subtle pattern overlay */
    background-image:
        radial-gradient(#4a90e2 0.5px, transparent 0.5px),
        radial-gradient(#4a90e2 0.5px, #f0f7ff 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    /* Blend the pattern to be very subtle */
    background-blend-mode: multiply;
}

/* Ensure the pattern doesn't overpower - adding a white overlay with opacity if needed
   or handling it via the radial gradient color directly. 
   Let's use a cleaner approach for the pattern opacity */
.login-page-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.95) 0%, rgba(227, 242, 253, 0.95) 100%);
    z-index: 0;
}

.login-container-wrapper {
    position: relative;
    z-index: 1;
    /* Sit above the background overlay */
    width: 100%;
}

.auth-card-modern {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft shadow as requested */
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 450px;
    /* Keep it focused */
    margin: 0 auto;
    /* Center horizontally */
}

.auth-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header-modern h2 {
    color: var(--pharmacy-primary);
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 2rem;
}

.auth-header-modern p {
    color: var(--pharmacy-text-muted);
    font-size: 0.95rem;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--pharmacy-text);
    font-size: 0.9rem;
}

.auth-input {
    width: 100%;
    padding: 10px 15px;
    /* p-2 equivalent roughly */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #FAFAFA;
}

.auth-input:focus {
    border-color: #0056b3;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Button */
.btn-auth-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-auth-primary:hover {
    background-color: #003d7a;
    color: #fff;
    border: none !important;
    padding: 12px !important;
    transform: none !important;
}

/* Footer Links */
.auth-footer-modern {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.auth-footer-modern a {
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-modern a:hover {
    color: #003d7a;
    text-decoration: underline;
}

/* =========================================
   ADMIN FORMS MODERN (Edit Product Redesign)
   ========================================= */

.admin-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    /* Ensure vertical centering feeling */
    padding: 40px 0;
}

.admin-card-modern {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft shadow as requested */
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    width: 100%;
    margin: 0 auto;
}

.admin-header-modern {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(2, 205, 248, 0.1);
    /* Subtle separator line */
    padding-bottom: 20px;
}

.admin-title-modern {
    color: var(--pharmacy-primary);
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 2rem;
    padding: 10px 0;
}

.admin-subtitle-modern {
    color: var(--pharmacy-text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.admin-label {
    font-weight: 600;
    color: var(--pharmacy-text);
    margin-bottom: 8px;
    display: block;
}

/* Enhance form-control for admin to look like auth-input */
.admin-card-modern .form-control {
    padding: 10px 15px;
    /* p-2 equivalent */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #FAFAFA;
    margin-bottom: 15px;
}

.admin-card-modern .form-control:focus {
    border-color: #0056b3;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.admin-btn-save {
    background-color: var(--pharmacy-primary);
    color: white;
    border: 1px solid transparent !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.admin-btn-save:hover {
    background-color: #003d7a;
    color: white !important;
    text-decoration: none;
}

.admin-btn-cancel {
    background-color: white;
    border: 1px solid #ced4da !important;
    /* Visible border */
    color: var(--pharmacy-primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-right: 15px;
    text-decoration: none;
    display: inline-block;
}

.admin-btn-cancel:hover {
    background-color: #f8f9fa;
    color: var(--pharmacy-primary);
    text-decoration: none;
}

/* Fix Input Group Alignment */
.admin-card-modern .input-group {
    margin-bottom: 15px;
}

.admin-card-modern .input-group-text {
    background-color: #FAFAFA;
    /* Match input bg */
    border: 1px solid #dee2e6;
    border-right: none;
    padding: 10px 15px;
    /* Match input padding */
    border-radius: 8px 0 0 8px;
    /* Left rounded corners */
    color: var(--pharmacy-primary);
}

.admin-card-modern .input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    /* Seamless join */
    margin-bottom: 0;
    /* Override default mb-15 */
}

/* Clean buttons removed */
/* Isolated V2 Buttons - NO GLOBAL USAGE */
.btn-v2-primary {
    background-color: #0964D7;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    /* NO BORDER Logic */
    padding: 13px 26px !important;
    /* LOCK PADDING */
    min-height: 54px;
    /* FORCE HEIGHT (Line height + padding) */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
    margin: 0 !important;
    line-height: 1.5 !important;
    vertical-align: middle;
}

.btn-v2-primary:hover {
    background-color: #004494;
    border: none !important;
    padding: 13px 26px !important;
    /* LOCK PADDING */
    transform: none;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: #fff !important;
    text-decoration: none;
    margin: 0 !important;
    min-height: 54px;
    /* LOCK HEIGHT */
}

.btn-v2-secondary {
    background-color: #fff;
    color: #495057 !important;
    padding: 13px 26px !important;
    /* LOCK PADDING */
    min-height: 54px;
    /* FORCE HEIGHT */
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    /* No physical border */
    box-shadow: inset 0 0 0 1px #ced4da;
    /* Simulated Border */
    transition: all 0.2s;
    margin: 0 !important;
    line-height: 1.5 !important;
    vertical-align: middle;
}

.btn-v2-secondary:hover {
    box-shadow: inset 0 0 0 1px #0964D7;
    /* Change simulated border color */
    color: #0964D7 !important;
    background-color: #f8f9fa;
    text-decoration: none;
    padding: 13px 26px !important;
    margin: 0 !important;
    min-height: 54px;
}

.btn-v2-primary i,
.btn-v2-secondary i {
    margin-right: 8px;
}

/* =========================================
   19. VISUAL POLISH (CATALOG UPGRADE)
   ========================================= */

/* A. Product Area Background (Scoped to not affect Sidebar) */
/* Requires a wrapper class in View: .catalog-product-area */
.catalog-product-area {
    background-color: #FFFFFF;
    position: relative;
    border-radius: 12px;
    padding: 20px;
    /* Optional Subtle Pattern: Molecules/Capsules */
    /* CAPSULE PATTERN: Horizontal and Vertical Pills */
    background-image:
        radial-gradient(ellipse 6px 3px at center, #00AC86 100%, transparent 100%),
        /* Horizontal Pill */
        radial-gradient(ellipse 3px 6px at center, #74F1D3 100%, transparent 100%);
    /* Vertical Pill (lighter) */
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 1;
    /* Structure opacity */
}

/* Ensure the pattern doesn't affect content readability */
.catalog-product-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    /* Much more transparent overlay to reveal pattern */
    z-index: 0;
    pointer-events: none;
    border-radius: 12px;
}

.catalog-product-area>* {
    position: relative;
    z-index: 1;
}

/* B. Product Cards Modernization */
.premium-product-card {
    border-radius: 8px !important;
    border: 1px solid #f0f0f0;
    /* Softer border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
    background: #fff;
}

.premium-product-card:hover {
    transform: translateY(-5px) !important;
    /* Gentle lift */
    box-shadow: 0 12px 24px rgba(9, 100, 215, 0.1) !important;
    /* Blue glow */
    border-color: #00AC86 !important;
    /* Green primary border on hover */
}

/* Price Upgrade */
.premium-product-card .price {
    color: #0964D7 !important;
    /* Darker Blue (Primary) */
    font-weight: 800;
}

/* Button & Badge Colors */
/* Offer Badges */
.product-badge.rx {
    background-color: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
}

.product-badge.new {
    background-color: #00AC86 !important;
    /* Green Primary */
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 3px 12px;
}

/* C. Sidebar Promo Badges */
.promo-badge.badge-yellow {
    background-color: #fff3cd !important;
    border: 1px solid #ffeeba;
}

.promo-badge.badge-yellow i,
.promo-badge.badge-yellow span {
    color: #0964D7 !important;
    /* Dark Blue Text */
}

.promo-badge.badge-blue {
    background-color: #d1ecf1 !important;
    border: 1px solid #bee5eb;
}

.promo-badge.badge-blue i,
.promo-badge.badge-blue span {
    color: #00AC86 !important;
    /* Green Text */
}

/* Ensuring V2 Button Colors match Brand */
.btn-v2-primary {
    background-color: #0964D7 !important;
}

.btn-v2-primary:hover {
    background-color: #003d7a !important;
}

/* =========================================
   LAYOUT UPDATE: 5-COLUMNS & COMPACT SIDEBAR
   ========================================= */

/* 1. Sidebar & Content Columns (Desktop) */
@media (min-width: 992px) {
    .catalog-sidebar-col {
        width: 340px !important;
        flex: 0 0 340px !important;
        max-width: 340px !important;
        padding-right: 40px !important;
        /* Even more spacer */
    }

    .catalog-content-col {
        width: calc(100% - 340px) !important;
        flex: 0 0 calc(100% - 340px) !important;
        max-width: calc(100% - 340px) !important;
    }

    /* 2. Custom 4-Column Grid */
    .col-custom-4 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
        padding: 0 20px !important;
        /* Wide separation */
    }
}

/* 3. Sticky Sidebar Adjustment */
.catalog-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 135px;
    height: calc(100vh - 160px);
    /* Reduced height to prevent bottom clipping */
    overflow-y: auto;
    z-index: 990;
    /* Clean Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 4. Product Card Compact Styles */
.premium-product-card {
    padding: 0.75rem !important;
    /* Tighter padding */
    min-height: 0 !important;
    height: 100%;
}

.premium-product-card img {
    height: 140px !important;
    /* Smaller image */
    object-fit: contain;
    margin-bottom: 8px !important;
}

.premium-product-card h5.product-title {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-bottom: 4px;

    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.premium-product-card .product-details .brand-sm {
    margin-bottom: 2px;
    font-size: 0.75rem;
}

.premium-product-card .price {
    font-size: 1.15rem !important;
    margin-bottom: 8px !important;
}

/* Compact Quantity Wrapper */
.premium-product-card .quantity-wrapper .quantity-control {
    margin-bottom: 0.4rem !important;
    gap: 2px !important;
}

.premium-product-card .quantity-input {
    width: 45px !important;
    height: 26px;
    padding: 2px;
    font-size: 0.85rem;
}

.premium-product-card .qty-btn {
    width: 26px !important;
    height: 26px !important;
}

.premium-product-card .add-to-cart-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* 5. Tighter Grid Gap (12px) */
/* Override default row margins for the product grid */
.product-grid-row {
    margin-left: -6px;
    margin-right: -6px;
}

/* Reduce horizontal padding on columns inside this row */
.product-grid-row>[class*='col-'] {
    padding-left: 6px;
    padding-right: 6px;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 991.98px) {

    /* Reset sidebar width on tablet/mobile */
    .catalog-sidebar-col,
    .catalog-content-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Reset sticky if needed, or keep it but top 0 might be annoying if menu is large */
    .catalog-sidebar {
        height: auto;
        position: static;
        margin-bottom: 2rem;
    }
}

/* =========================================
   6. COMPACT NAVBAR REDESIGN (Amazon Style - Tweaked)
   ========================================= */

/* A. Body Padding Adjustment */
body {
    padding-top: 58px !important;
    /* Slightly increased for taller navbar */
}

/* B. Navbar Container */
.navbar-gradient .navbar {
    min-height: 58px !important;
    /* Increased from 48px */
    padding-top: 0.4rem !important;
    /* Relaxed padding */
    padding-bottom: 0.4rem !important;
}

/* Fix container padding inside navbar */
.navbar-gradient .container-fluid.px-4.py-2 {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

/* C. Logo & Brand Text */
.navbar-brand img {
    height: 38px !important;
    /* Increased from 32px */
    width: auto !important;
    margin-right: 0.75rem !important;
}

.navbar-brand div span {
    font-size: 15px !important;
    /* Slightly larger text */
    line-height: 1.1 !important;
}

/* D. Links */
.navbar-nav .nav-link {
    font-size: 0.95rem !important;
    /* Slightly larger */
    padding: 0.5rem 0.8rem !important;
    line-height: 1.4 !important;
}

/* E. Search Bar (Relaxed) */
.input-group input#mainSearchInput {
    height: 40px !important;
    /* Increased from 36px */
    font-size: 0.95rem !important;
    padding: 0.375rem 0.75rem !important;
}

.input-group button.btn {
    height: 40px !important;
    /* Match input */
    width: 48px !important;
    padding: 0 !important;
}

/* Adjust margins around search form */
.navbar form.d-flex {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* F. Icons & Cart */
.navbar-nav .lnr {
    font-size: 1.4rem !important;
    /* Restored size slightly */
}

#cart-container-v5 {
    height: 40px !important;
    /* Match input height */
    padding: 0 10px !important;
    gap: 8px !important;
}

#cart-container-v5 a {
    font-size: 1.2rem !important;
}

#cart-container-v5 .badge {
    top: -8px !important;
}

/* G. Sidebar Adjustments for Compact Header */
@media (min-width: 992px) {
    .catalog-sidebar {
        top: 75px !important;
        /* Position below taller header */
        height: calc(100vh - 100px) !important;
        /* Adjusted calculation */
    }
}

/* =========================================
   7. HERO REFINEMENT (Compact)
   ========================================= */

.hero-content-container {
    padding: 2.5rem !important;
    /* Reduced from 40px/3rem */
    max-width: 950px !important;
    /* Compact width constraint */
    margin: 0 auto;
    /* Center alignment */
}

/* Typography Tweaks */
.hero-title {
    font-size: 3rem !important;
    /* Reduced from 3.5rem */
}

.hero-subtitle {
    font-size: 1.75rem !important;
    /* Reduced from 2rem */
    margin-bottom: 1.2rem !important;
}

.hero-desc {
    font-size: 1rem !important;
    /* Reduced from 1.1rem */
}

/* Logo Tweak */
.hero-logo {
    width: 360px !important;
    /* Reduced from 420px */
}

/* =========================================
   8. HERO BACKGROUND ZOOM FIX
   ========================================= */
.hero-section {
    background-size: 100% 100% !important;
    /* Force fit to show all content (zoom out) */
    background-position: center center !important;
}

/* =========================================
   9. MODERN SHOPPING CART REDESIGN
   ========================================= */

/* A. Main Container */
.cart-modern-container {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    padding: 2rem !important;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.cart-header-title {
    font-weight: 700;
    color: var(--pharmacy-text);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 1rem;
}

/* B. Product Card Item */
.cart-modern-item {
    background-color: #f8f9fa;
    /* Light background */
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cart-modern-item:hover {
    background-color: #fff;
    border-color: var(--pharmacy-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Item Image */
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
    border: 1px solid #dee2e6;
}

/* Content Layout */
.cart-item-details {
    flex: 2;
    min-width: 200px;
}

.cart-item-title {
    font-weight: 700;
    color: var(--pharmacy-text);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    display: block;
    text-decoration: none;
}

.cart-item-price-unit {
    color: var(--pharmacy-text-muted);
    font-size: 0.9rem;
}

/* C. Quantity & Inputs */
.cart-qty-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 100px;
}

.cart-qty-input {
    width: 70px;
    text-align: center;
    border: 1px solid var(--pharmacy-border);
    border-radius: 6px;
    padding: 0.4rem;
    background: #fff;
    font-weight: 600;
    color: var(--pharmacy-text);
}

/* D. Total & Actions */
.cart-item-total-wrapper {
    flex: 1;
    text-align: right;
    min-width: 120px;
}

.cart-item-total-price {
    display: block;
    color: var(--pharmacy-primary);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cart-remove-btn {
    color: #dc3545;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cart-remove-btn:hover {
    color: #a71d2a;
    text-decoration: underline;
}

/* E. Footer Total Section */
.cart-footer-summary {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f3f5;
    text-align: right;
}

.cart-total-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pharmacy-text);
    margin-right: 1rem;
}

.cart-total-amount {
    font-size: 2.5rem;
    color: var(--pharmacy-primary);
    font-weight: 800;
    line-height: 1;
}

/* Buttons */
.btn-cart-action {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    border: 1px solid transparent !important;
    /* Stability Fix */
}

.btn-continue-shopping {
    background-color: #e9ecef;
    color: var(--pharmacy-text);
    margin-right: 1rem;
    border: 1px solid transparent !important;
    /* Stability Fix */
}

.btn-continue-shopping:hover {
    background-color: #dee2e6;
    color: var(--pharmacy-text);
    border: 1px solid transparent !important;
    /* Maintain Border */
    transform: none !important;
}

.btn-checkout-modern {
    background-color: var(--pharmacy-primary);
    color: #fff;
    box-shadow: 0 4px 6px rgba(9, 100, 215, 0.2);
    border: 1px solid transparent !important;
    /* Stability Fix */
}

.btn-checkout-modern:hover {
    background-color: #004494;
    color: #fff;
    transform: none !important;
    /* Stop vibration/movement */
    box-shadow: 0 6px 12px rgba(9, 100, 215, 0.3);
    border: 1px solid transparent !important;
    /* Maintain Border */
}


/* Buttons V2 (Stability Fixed) */
.btn-v2-primary {
    background-color: var(--pharmacy-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent !important;
    /* FIXED BORDER */
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(9, 100, 215, 0.2);
}

.btn-v2-primary:hover {
    background-color: #004494;
    color: #fff;
    border: 2px solid transparent !important;
    /* MAINTAIN BORDER */
    transform: none !important;
    /* NO MOVEMENT */
    box-shadow: 0 6px 12px rgba(9, 100, 215, 0.3);
}

.btn-v2-secondary {
    background-color: #e9ecef;
    color: var(--pharmacy-text);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent !important;
    /* FIXED BORDER */
    transition: all 0.2s;
}

.btn-v2-secondary:hover {
    background-color: #dee2e6;
    color: var(--pharmacy-text);
    border: 2px solid transparent !important;
    /* MAINTAIN BORDER */
    transform: none !important;
    /* NO MOVEMENT */
}

/* Empty State */
.cart-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty-icon {
    font-size: 4rem;
    color: var(--pharmacy-border);
    margin-bottom: 1.5rem;
}

/* UPDATED CATALOG BACKGROUND */
#catalog-main,
.catalog-main,
.catalog-product-area,
.catalog-content-col {
    background-color: #f0fdf4 !important;
    /* Verde casi blanco */
    background-image: none !important;
    /* Remove any capsule design */
}