:root {
    color-scheme: light;
    --medix-blue-950: #063583;
    --medix-blue-900: #0743a8;
    --medix-blue-800: #0755c8;
    --medix-blue-700: #0870df;
    --medix-cyan: #08d9e8;
    --medix-green: #13dc82;
    --medix-green-dark: #00bd70;
    --medix-white: #f7fbff;
}

html:has(body.public-theme) {
    min-height: 100%;
    background: #0646ad !important;
}

body.public-theme {
    color: var(--medix-white) !important;
    background: linear-gradient(160deg, #063d9f 0%, #0754bd 52%, #06409f 100%) fixed !important;
}

body.public-theme main {
    color: var(--medix-white);
    background: transparent !important;
}

body.public-theme main > section {
    background-color: transparent !important;
}

body.public-theme .navbar,
body.public-theme .navbar-menu.active {
    color: #fff !important;
    background: linear-gradient(100deg, #073c99 0%, #0754c3 100%) !important;
    border-bottom-color: var(--medix-cyan) !important;
    box-shadow: 0 5px 20px rgba(0, 20, 76, .28);
}

body.public-theme .navbar-menu a,
body.public-theme .navbar-menu .logout-btn {
    color: #fff !important;
}

body.public-theme .navbar-menu a:hover,
body.public-theme .navbar-menu .logout-btn:hover {
    color: var(--medix-cyan) !important;
}

body.public-theme main .home-trust-icon,
body.public-theme main .sec-tag {
    background: rgba(8, 217, 232, .15) !important;
    border-color: rgba(8, 217, 232, .65) !important;
}

body.public-theme main .home-trust-icon {
    color: var(--medix-green) !important;
}

body.public-theme .footer {
    color: #e9f5ff !important;
    background: linear-gradient(145deg, #052e78 0%, #063b91 100%) !important;
    border-top: 1px solid rgba(8, 217, 232, .6);
}

body.public-theme .footer h3,
body.public-theme .footer .footer-content h3 span:first-of-type,
body.public-theme .footer .footer-content h3 span:last-of-type,
body.public-theme .footer .footer-content h3 > i,
body.public-theme .footer-contact-link i {
    color: var(--medix-cyan) !important;
}

body.public-theme .footer ul a,
body.public-theme .footer ul a.footer-contact-link,
body.public-theme .footer .footer-legal-note {
    color: #d9efff !important;
}

body.public-theme .footer ul a:hover {
    color: var(--medix-cyan) !important;
}

body.public-theme .products-header,
body.public-theme .contact-header,
body.public-theme .about-page-header,
body.public-theme .category-page-header,
body.public-theme .detail-page-header,
body.public-theme .medicines-detail-header,
body.public-theme .farma-header,
body.public-theme .act-header,
body.public-theme .news-page-header,
body.public-theme .home-brand-hero {
    color: #fff !important;
    background:
        radial-gradient(ellipse at 88% 12%, rgba(8, 217, 232, .45), transparent 35%),
        radial-gradient(ellipse at 5% 100%, rgba(19, 220, 130, .22), transparent 42%),
        linear-gradient(125deg, #0643a8 0%, #0757c9 58%, #0875d9 100%) !important;
    border-color: rgba(8, 217, 232, .8) !important;
    box-shadow: 0 14px 36px rgba(0, 24, 89, .3);
}

body.public-theme .home-brand-hero {
    background:
        linear-gradient(90deg, rgba(0, 48, 132, .9) 0%, rgba(0, 70, 158, .76) 48%, rgba(0, 82, 204, .22) 100%),
        url("/BACKGROUND%20MEDIX%20DEKSTOP.jpeg") center right / cover no-repeat,
        linear-gradient(118deg, #003eaa 0%, #0052cc 56%, #0878d1 100%) !important;
}

body.public-theme .home-brand-hero-label,
body.public-theme .home-brand-hero h1 span,
body.public-theme .section-eyebrow,
body.public-theme .topbar-title {
    color: var(--medix-cyan) !important;
}

body.public-theme .home-brand-hero p,
body.public-theme .home-brand-hero h1 {
    color: #fff !important;
}

body.public-theme main button[type="submit"],
body.public-theme main .btn-primary,
body.public-theme main .btn-submit,
body.public-theme main .btn-checkout,
body.public-theme main .btn-detail,
body.public-theme main .btn-verify,
body.public-theme main .btn-submit-wa,
body.public-theme main .gass-access-button,
body.public-theme main .btn-order-wa,
body.public-theme main a[class*="btn-primary"],
body.public-theme main a[class*="btn-checkout"] {
    color: #fff !important;
    background: linear-gradient(135deg, var(--medix-green) 0%, #08c879 100%) !important;
    border: 1px solid rgba(157, 255, 205, .8) !important;
    box-shadow: 0 5px 14px rgba(0, 38, 83, .2);
}

body.public-theme main .cart-item .btn-cart,
body.public-theme main .co-delivery-tab,
body.public-theme main .co-payment-tab,
body.public-theme main .co-pay-opt {
    color: #fff !important;
    background: linear-gradient(135deg, #0870df, #0755c8) !important;
    border-color: rgba(8, 217, 232, .75) !important;
}

body.public-theme main .co-delivery-tab.active,
body.public-theme main .co-payment-tab.active,
body.public-theme main .co-pay-opt.active {
    background: linear-gradient(135deg, var(--medix-green), #08c879) !important;
}

body.public-theme main .co-submit-btn,
body.public-theme main .co-disc-btn {
    color: #fff !important;
    background: linear-gradient(135deg, var(--medix-green), #08c879) !important;
    border-color: rgba(157, 255, 205, .8) !important;
}

body.public-theme main .co-radio-row.active {
    color: #fff !important;
    background: rgba(8, 217, 232, .16) !important;
    border-color: var(--medix-cyan) !important;
}

body.public-theme main .filter-bar button {
    color: #fff !important;
    background: linear-gradient(135deg, var(--medix-green), #08c879) !important;
    border-color: rgba(157, 255, 205, .8) !important;
}

body.public-theme main button[type="submit"]:hover,
body.public-theme main .btn-primary:hover,
body.public-theme main .btn-submit:hover,
body.public-theme main .btn-checkout:hover,
body.public-theme main .gass-access-button:hover,
body.public-theme main .btn-order-wa:hover {
    background: linear-gradient(135deg, #20ee91 0%, var(--medix-green-dark) 100%) !important;
    transform: translateY(-1px);
}

body.public-theme main [class*="card"]:not(i),
body.public-theme main [class*="panel"]:not(i),
body.public-theme main [class*="box"]:not(i) {
    color: #f7fbff !important;
    background: linear-gradient(145deg, rgba(8, 91, 197, .97), rgba(8, 75, 174, .97)) !important;
    border-color: rgba(8, 217, 232, .55) !important;
    box-shadow: 0 8px 22px rgba(0, 26, 90, .2);
}

body.public-theme main .home-trust-strip,
body.public-theme main .home-trust-item,
body.public-theme main .why-section,
body.public-theme main .filter-bar,
body.public-theme main .co-left-col,
body.public-theme main .co-right-col,
body.public-theme main .co-radio-group,
body.public-theme main .co-delivery-tabs,
body.public-theme main .co-radio-row,
body.public-theme main .co-pay-opt,
body.public-theme main .co-payment-detail,
body.public-theme main .co-summary-card,
body.public-theme main .co-section-card,
body.public-theme main .cart-page-card,
body.public-theme main .cart-summary,
body.public-theme main .cart-item,
body.public-theme main .gass-access-card {
    color: #f7fbff !important;
    background: linear-gradient(145deg, rgba(8, 91, 197, .97), rgba(8, 75, 174, .97)) !important;
    border-color: rgba(8, 217, 232, .55) !important;
    box-shadow: 0 8px 22px rgba(0, 26, 90, .2);
}

body.public-theme main .home-trust-item h3,
body.public-theme main .home-trust-item h4,
body.public-theme main .home-trust-item p,
body.public-theme main .why-text h4,
body.public-theme main .why-text p,
body.public-theme main .co-left-col h1,
body.public-theme main .co-left-col h2,
body.public-theme main .co-left-col h3,
body.public-theme main .co-left-col p,
body.public-theme main .co-left-col label,
body.public-theme main .co-right-col h1,
body.public-theme main .co-right-col h2,
body.public-theme main .co-right-col h3,
body.public-theme main .co-right-col p,
body.public-theme main .co-right-col label,
body.public-theme main .filter-bar label {
    color: #f7fbff !important;
}

body.public-theme main .co-sum-name,
body.public-theme main .co-sum-price,
body.public-theme main .co-payment-detail-title,
body.public-theme main .co-transfer-number,
body.public-theme main .co-cash-amount {
    color: #fff !important;
}

body.public-theme main .co-sum-meta,
body.public-theme main .co-total,
body.public-theme main .co-total strong {
    color: var(--medix-cyan) !important;
}

body.public-theme main .co-sum-item,
body.public-theme main .co-disc-row,
body.public-theme main .co-footer-links {
    border-color: rgba(8, 217, 232, .35) !important;
}

body.public-theme main p,
body.public-theme main label,
body.public-theme main small,
body.public-theme main li {
    color: #e5f2ff !important;
}

body.public-theme main strong,
body.public-theme main b,
body.public-theme main span,
body.public-theme main h4,
body.public-theme main h5 {
    color: #f7fbff !important;
}

body.public-theme main .home-section-eyebrow,
body.public-theme main .sec-tag,
body.public-theme main .home-trust-icon,
body.public-theme main .prod-price,
body.public-theme main .discounted-product-current-price,
body.public-theme main .co-total,
body.public-theme main .co-total strong {
    color: var(--medix-cyan) !important;
}

body.public-theme main .home-trust-item,
body.public-theme main .why-item {
    border: 1px solid rgba(8, 217, 232, .55);
    border-radius: 16px;
}

body.public-theme main .why-card-content {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.public-theme main .why-card-badge {
    border: 0 !important;
    box-shadow: none !important;
}

body.public-theme main .why-card:nth-child(1) .why-card-badge {
    color: #1565c0 !important;
    background: #e3f2fd !important;
}

body.public-theme main .why-card:nth-child(2) .why-card-badge {
    color: #1b5e20 !important;
    background: #e8f5e9 !important;
}

body.public-theme main .why-card:nth-child(3) .why-card-badge {
    color: #bf360c !important;
    background: #fff3e0 !important;
}

body.public-theme.public-theme-standalone > main {
    color: #f7fbff !important;
    background: linear-gradient(145deg, #0756c6, #06449f) !important;
    border-color: rgba(8, 217, 232, .7) !important;
}

body.public-theme.public-theme-standalone .login-container,
body.public-theme.public-theme-standalone .register-container {
    color: #f7fbff !important;
    background: linear-gradient(145deg, #0756c6, #06449f) !important;
    border: 1px solid rgba(8, 217, 232, .7) !important;
    box-shadow: 0 18px 45px rgba(0, 24, 89, .4);
}

body.public-theme.public-theme-standalone .login-container h1,
body.public-theme.public-theme-standalone .login-container h2,
body.public-theme.public-theme-standalone .login-container p,
body.public-theme.public-theme-standalone .login-container label,
body.public-theme.public-theme-standalone .register-container h1,
body.public-theme.public-theme-standalone .register-container h2,
body.public-theme.public-theme-standalone .register-container p,
body.public-theme.public-theme-standalone .register-container label {
    color: #f7fbff !important;
}

body.public-theme.public-theme-standalone .login-container a,
body.public-theme.public-theme-standalone .register-container a {
    color: var(--medix-cyan) !important;
}

body.public-theme.public-theme-standalone input,
body.public-theme.public-theme-standalone select,
body.public-theme.public-theme-standalone textarea {
    color: #14243d !important;
    background: #fff !important;
    border-color: #9bc4ee !important;
}

body.public-theme.public-theme-standalone button[type="submit"] {
    color: #fff !important;
    background: linear-gradient(135deg, var(--medix-green), #08c879) !important;
    border-color: rgba(157, 255, 205, .8) !important;
}

body.public-theme.public-theme-standalone .toggle-password {
    color: var(--medix-cyan) !important;
}

body.public-theme.public-theme-standalone > main h1,
body.public-theme.public-theme-standalone > main p,
body.public-theme.public-theme-standalone > main label,
body.public-theme.public-theme-standalone > main small {
    color: #f7fbff !important;
}

body.public-theme main [class*="card"] h1,
body.public-theme main [class*="card"] h2,
body.public-theme main [class*="card"] h3,
body.public-theme main [class*="card"] h4,
body.public-theme main [class*="card"] p,
body.public-theme main [class*="card"] label,
body.public-theme main [class*="card"] small,
body.public-theme main [class*="panel"] h1,
body.public-theme main [class*="panel"] h2,
body.public-theme main [class*="panel"] h3,
body.public-theme main [class*="panel"] p,
body.public-theme main [class*="box"] h1,
body.public-theme main [class*="box"] h2,
body.public-theme main [class*="box"] h3,
body.public-theme main [class*="box"] p {
    color: #f7fbff !important;
}

body.public-theme main .products-main .medicine-card {
    color: #172033 !important;
    background: #fff !important;
    border: 1px solid #dbe4ee !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

body.public-theme main .products-main .medicine-card:hover {
    border-color: #93c5fd !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}

body.public-theme main .products-main .medicine-card-brand {
    color: #64748b !important;
}

body.public-theme main .products-main .medicine-image {
    background: #f1f7fd !important;
}

body.public-theme main .products-main .medicine-card-principal,
body.public-theme main .products-main .medicine-meta,
body.public-theme main .products-main .product-unit-heading {
    color: #64748b !important;
}

body.public-theme main .products-main .medicine-name,
body.public-theme main .products-main .medicine-name a,
body.public-theme main .products-main .medicine-card-details,
body.public-theme main .products-main .medicine-card-details p,
body.public-theme main .products-main .medicine-card-details strong {
    color: #172033 !important;
}

body.public-theme main .products-main .medicine-name a:hover {
    color: #0755c8 !important;
}

body.public-theme main .products-main .product-unit-card {
    color: #172033 !important;
    background: #fff !important;
    border-color: #dbe4ee !important;
}

body.public-theme main .products-main .product-unit-card.is-selected {
    background: #eff6ff !important;
    border-color: #0755c8 !important;
    box-shadow: 0 0 0 1px #0755c8;
}

body.public-theme main .products-main .product-unit-choice,
body.public-theme main .products-main .product-unit-name,
body.public-theme main .products-main .product-unit-price {
    color: #172033 !important;
}

body.public-theme main .products-main .product-unit-stock {
    color: #64748b !important;
}

body.public-theme main .products-main .product-unit-quantity {
    background: #f8fafc !important;
    border-color: #dbe4ee !important;
}

body.public-theme main .products-main .product-unit-quantity button,
body.public-theme main .products-main .product-unit-quantity input {
    color: #172033 !important;
    background: transparent !important;
}

body.public-theme main .products-main .product-unit-quantity button:disabled,
body.public-theme main .products-main .product-unit-quantity input:disabled {
    color: #94a3b8 !important;
}

body.public-theme main .products-main .product-stock.available {
    color: #166534 !important;
    background: #dcfce7 !important;
}

body.public-theme main .products-main .product-stock.low {
    color: #92400e !important;
    background: #fef3c7 !important;
}

body.public-theme main .products-main .product-stock.empty {
    color: #991b1b !important;
    background: #fee2e2 !important;
}

body.public-theme main .products-main .btn-cart {
    color: #fff !important;
    background: linear-gradient(135deg, #0755c8, #0870df) !important;
    box-shadow: 0 5px 12px rgba(7, 85, 200, .2);
}

body.public-theme main .products-main .btn-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #0643a8, #0755c8) !important;
}

body.public-theme main .products-main .btn-cart.added {
    color: #166534 !important;
    background: #dcfce7 !important;
    box-shadow: none;
}

body.public-theme main h1,
body.public-theme main h2,
body.public-theme main h3 {
    color: #fff !important;
}

body.public-theme main a:not([class*="btn"]):not(.cart-drawer a):not(.cart-popup a):not(.modal-content a):not(dialog a):not(.home-brand-hero-actions a):not(:where(.about-contact-details a, [class*="card"] a, [class*="panel"] a, [class*="box"] a)) {
    color: #55f3e8 !important;
}

body.public-theme main .home-brand-hero-actions a {
    color: #0646a5 !important;
    background: #fff !important;
    border: 1px solid rgba(255, 255, 255, .95) !important;
    box-shadow: 0 6px 18px rgba(0, 24, 72, .2);
}

body.public-theme main .home-brand-hero-actions a i {
    color: #078a68 !important;
}

body.public-theme main .home-brand-hero-actions a > span {
    color: #078a68 !important;
    background: #ecfdf5 !important;
}

body.public-theme main .home-brand-hero-actions a > span svg {
    color: #078a68 !important;
    stroke: #078a68 !important;
}

body.public-theme main .home-brand-hero-actions a:hover {
    color: #003eaa !important;
    background: #eaf3ff !important;
    box-shadow: 0 10px 24px rgba(0, 24, 72, .28);
    transform: translateY(-2px);
}

body.public-theme main .home-brand-hero-actions a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

body.public-theme main input,
body.public-theme main select,
body.public-theme main textarea {
    color: #14243d !important;
    background: #fff !important;
    border-color: #9bc4ee !important;
}

body.public-theme main input::placeholder,
body.public-theme main textarea::placeholder {
    color: #64748b !important;
}

body.public-theme main input:focus,
body.public-theme main select:focus,
body.public-theme main textarea:focus {
    border-color: var(--medix-cyan) !important;
    box-shadow: 0 0 0 3px rgba(8, 217, 232, .22) !important;
}

body.public-theme main table {
    color: #f7fbff;
    border-color: rgba(8, 217, 232, .45);
}

body.public-theme main th {
    color: #fff !important;
    background: linear-gradient(100deg, #0870df, #0755c8) !important;
}

body.public-theme main td {
    color: #f2f8ff !important;
    border-color: rgba(8, 217, 232, .28) !important;
}

body.public-theme .float-btn-wa {
    background: linear-gradient(135deg, #1be58a, #05bd73) !important;
    border-color: #8affc6 !important;
    box-shadow: 0 4px 18px rgba(0, 19, 70, .45), 0 0 0 2px #08d9e8 !important;
}

body.public-theme .med-particles {
    opacity: .18;
}

body.public-theme .alert {
    border-color: rgba(8, 217, 232, .5);
}

body.public-theme .dropdown-menu-nav {
    background: #0750b8 !important;
    border-color: rgba(8, 217, 232, .55) !important;
}

body.public-theme .navbar-menu .dropdown-menu-nav li a:hover {
    color: #fff !important;
    background: #0870df !important;
}

body.public-theme .home-brand-hero-actions a {
    text-decoration: none;
}

body.public-theme main .cart-drawer,
body.public-theme main .cart-popup,
body.public-theme main .modal-content,
body.public-theme main dialog {
    color: #172033 !important;
    background: #fff !important;
    border-color: #cbd5e1 !important;
}

body.public-theme main .cart-drawer h1,
body.public-theme main .cart-drawer h2,
body.public-theme main .cart-drawer h3,
body.public-theme main .cart-popup h1,
body.public-theme main .cart-popup h2,
body.public-theme main .cart-popup h3,
body.public-theme main .modal-content h1,
body.public-theme main .modal-content h2,
body.public-theme main .modal-content h3,
body.public-theme main dialog h1,
body.public-theme main dialog h2,
body.public-theme main dialog h3,
body.public-theme main .cart-drawer p,
body.public-theme main .cart-popup p,
body.public-theme main .modal-content p,
body.public-theme main dialog p {
    color: #172033 !important;
}

body.public-theme main :is(.medicine-card, .prod-card, .product-card, .discounted-product-card) {
    color: #172033 !important;
    background: #fff !important;
    border: 1px solid #dbe4ee !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

body.public-theme main :is(.medicine-card, .prod-card, .product-card, .discounted-product-card):hover {
    border-color: #93c5fd !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}

body.public-theme main :is(.medicine-image, .prod-img, .product-img, .discounted-product-image) {
    background: #f1f7fd !important;
}

body.public-theme main :is(.medicine-card-brand, .medicine-card-principal, .medicine-company, .prod-brand-tag, .discounted-product-brand, .medicine-meta, .product-unit-heading) {
    color: #64748b !important;
}

body.public-theme main :is(.medicine-card-principal, .medicine-company, .prod-brand-tag) {
    background: #eff6ff !important;
}

body.public-theme main :is(.medicine-name, .medicine-name a, .prod-name, .prod-name a, .product-name, .product-name a, .discounted-product-name, .medicine-card-details, .medicine-card-details p, .medicine-card-details strong, .medicine-desc, .prod-desc, .product-desc, .product-meta) {
    color: #172033 !important;
}

body.public-theme main :is(.medicine-name a, .prod-name a, .product-name a):hover {
    color: #0755c8 !important;
}

body.public-theme main :is(.medicine-price, .prod-price, .product-price, .discounted-product-current-price) {
    color: #0755c8 !important;
}

body.public-theme main :is(.product-unit-card) {
    color: #172033 !important;
    background: #fff !important;
    border: 1px solid #dbe4ee !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
}

body.public-theme main .product-unit-card.is-selected {
    background: #eff6ff !important;
    border-color: #0755c8 !important;
    box-shadow: 0 0 0 1px #0755c8;
}

body.public-theme main :is(.product-unit-choice, .product-unit-name, .product-unit-price) {
    color: #172033 !important;
}

body.public-theme main .product-unit-stock,
body.public-theme main .product-unit-old-price {
    color: #64748b !important;
}

body.public-theme main .product-unit-quantity {
    background: #f8fafc !important;
    border-color: #dbe4ee !important;
}

body.public-theme main .product-unit-quantity button,
body.public-theme main .product-unit-quantity input {
    color: #172033 !important;
    background: transparent !important;
}

body.public-theme main .product-unit-quantity :disabled {
    color: #94a3b8 !important;
}

body.public-theme main :is(.product-stock.available, .product-stock.stock-available, .stock-ok, .stock-available) {
    color: #166534 !important;
    background: #dcfce7 !important;
}

body.public-theme main :is(.product-stock.low, .product-stock.stock-low, .stock-low) {
    color: #92400e !important;
    background: #fef3c7 !important;
}

body.public-theme main :is(.product-stock.empty, .product-stock.stock-out, .stock-out) {
    color: #991b1b !important;
    background: #fee2e2 !important;
}

body.public-theme main :is(.btn-cart, .btn-detail, .discounted-product-actions button) {
    color: #fff !important;
    background: linear-gradient(135deg, #0755c8, #0870df) !important;
    border: 0 !important;
    box-shadow: 0 5px 12px rgba(7, 85, 200, .2);
}

body.public-theme main :is(.btn-cart, .btn-detail, .discounted-product-actions button):hover:not(:disabled) {
    color: #fff !important;
    background: linear-gradient(135deg, #0643a8, #0755c8) !important;
}

body.public-theme main .btn-cart.added {
    color: #166534 !important;
    background: #dcfce7 !important;
    box-shadow: none;
}

body.public-theme main .discounted-product-actions a {
    color: #0755c8 !important;
    background: #eff6ff !important;
}

body.public-theme main .discounted-product-actions a:hover {
    color: #0643a8 !important;
    background: #dbeafe !important;
}

body.public-theme main .discounted-product-badge,
body.public-theme main .prod-badge-label,
body.public-theme main .prod-badge-grade-a {
    color: #fff !important;
}

body.public-theme main :is(.medicine-card, .prod-card, .product-card, .discounted-product-card) {
    position: relative;
    min-width: 0;
    border: 1px solid #dbe7f3 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(8, 36, 82, .09);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.public-theme main :is(.medicine-card, .prod-card, .product-card, .discounted-product-card):hover {
    transform: translateY(-5px);
    border-color: #8fc5ff !important;
    box-shadow: 0 18px 36px rgba(8, 65, 142, .16);
}

body.public-theme main :is(.medicine-card, .prod-card, .product-card, .discounted-product-card):focus-within {
    border-color: #4b9cff !important;
    box-shadow: 0 0 0 3px rgba(7, 112, 223, .15), 0 12px 28px rgba(8, 65, 142, .12);
}

body.public-theme main .discounted-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    justify-content: center;
}

body.public-theme main .discounted-product-card {
    width: 100%;
    max-width: 277px;
    justify-self: center;
}

body.public-theme main :is(.medicine-image, .prod-img, .product-img, .discounted-product-image) {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(8, 217, 232, .13), transparent 58%),
        linear-gradient(145deg, #f1f7ff, #e7f4fb) !important;
}

body.public-theme main :is(.medicine-image, .prod-img, .product-img) img,
body.public-theme main .discounted-product-image img {
    object-fit: contain;
    padding: 1rem;
    transition: transform .3s ease;
}

body.public-theme main :is(.medicine-card, .prod-card, .product-card, .discounted-product-card):hover :is(.medicine-image, .prod-img, .product-img, .discounted-product-image) img {
    transform: scale(1.045);
}

body.public-theme main :is(.medicine-body, .prod-body, .product-body, .discounted-product-body) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

body.public-theme main :is(.medicine-name, .prod-name, .product-name, .discounted-product-name) {
    color: #172b4d !important;
    font-size: .98rem;
    font-weight: 750;
    line-height: 1.4;
}

body.public-theme main :is(.medicine-name a, .prod-name a, .product-name a) {
    color: inherit !important;
    text-decoration: none;
}

body.public-theme main :is(.medicine-name a, .prod-name a, .product-name a):hover {
    color: #0755c8 !important;
}

body.public-theme main :is(.medicine-card-brand, .medicine-card-principal, .medicine-company, .prod-brand-tag, .discounted-product-brand) {
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    color: #1855a6 !important;
    background: #edf5ff !important;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
}

body.public-theme main :is(.medicine-card-details, .medicine-card-details p, .medicine-card-details strong, .medicine-desc, .prod-desc, .product-desc, .product-meta, .medicine-meta, .prod-meta) {
    color: #52647c !important;
    line-height: 1.5;
}

body.public-theme main :is(.medicine-price, .prod-price, .product-price, .discounted-product-current-price, .product-unit-price) {
    color: #0755c8 !important;
    font-weight: 800;
}

body.public-theme main .product-unit-section {
    margin-top: .55rem;
    text-align: left;
}

body.public-theme main .product-unit-heading {
    margin-bottom: .45rem;
    color: #52647c !important;
    font-size: .72rem;
    font-weight: 700;
}

body.public-theme main .product-unit-grid {
    gap: .45rem;
}

body.public-theme main .product-unit-card {
    min-width: 0;
    padding: .45rem .35rem;
    border: 1px solid #dbe7f3 !important;
    border-radius: 12px;
    background: #f9fbff !important;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.public-theme main .product-unit-card:hover {
    border-color: #9ecbfa !important;
    background: #f1f7ff !important;
}

body.public-theme main .product-unit-card.is-selected {
    border-color: #4b9cff !important;
    background: #edf5ff !important;
    box-shadow: inset 0 0 0 1px #4b9cff !important;
}

body.public-theme main .product-unit-choice {
    color: #172b4d !important;
}

body.public-theme main .product-unit-choice:focus-visible,
body.public-theme main .product-unit-quantity button:focus-visible,
body.public-theme main .product-unit-quantity input:focus-visible {
    outline: 2px solid #0870df;
    outline-offset: 2px;
}

body.public-theme main .product-unit-name {
    color: #52647c !important;
    font-size: .72rem;
    font-weight: 600;
}

body.public-theme main .product-unit-stock,
body.public-theme main .product-unit-old-price {
    color: #718198 !important;
}

body.public-theme main .product-unit-quantity {
    min-height: 28px;
    border-color: #dbe7f3 !important;
    border-radius: 8px;
    background: #fff !important;
}

body.public-theme main .product-unit-quantity button {
    color: #0755c8 !important;
    font-weight: 800;
}

body.public-theme main .product-stock,
body.public-theme main .stock-ok,
body.public-theme main .stock-low,
body.public-theme main .stock-out {
    width: fit-content;
    padding: .28rem .58rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

body.public-theme main :is(.product-stock.available, .product-stock.stock-available, .stock-ok, .stock-available) {
    border-color: #bbf7d0;
}

body.public-theme main :is(.product-stock.low, .product-stock.stock-low, .stock-low) {
    border-color: #fde68a;
}

body.public-theme main :is(.product-stock.empty, .product-stock.stock-out, .stock-out) {
    border-color: #fecaca;
}

body.public-theme main :is(.btn-cart, .btn-detail, .discounted-product-actions button, .discounted-product-actions a) {
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: .82rem;
    font-weight: 750;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

body.public-theme main :is(.btn-cart, .btn-detail, .discounted-product-actions button):hover:not(:disabled),
body.public-theme main .discounted-product-actions a:hover {
    transform: translateY(-1px);
}

body.public-theme main .discounted-product-actions a {
    color: #0755c8 !important;
    background: #edf5ff !important;
}

body.public-theme main .btn-cart:disabled,
body.public-theme main .discounted-product-actions button:disabled {
    box-shadow: none;
    opacity: .58;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    body.public-theme main :is(.medicine-card, .prod-card, .product-card, .discounted-product-card, .medicine-image img, .prod-img img, .product-img img, .discounted-product-image img, .btn-cart, .btn-detail) {
        transition: none;
    }
}

@media (max-width: 768px) {
    body.public-theme .home-brand-hero {
        margin-right: .75rem;
        margin-left: .75rem;
        background:
            linear-gradient(180deg, rgba(0, 48, 132, .72), rgba(0, 64, 150, .88)),
            url("/BACKGROUND%20MEDIX%20MOBILE.jpeg") center 55% / cover no-repeat,
            linear-gradient(118deg, #003eaa 0%, #0052cc 56%, #0878d1 100%) !important;
    }

    body.public-theme main :is(.medicine-card, .prod-card, .product-card, .discounted-product-card) {
        border-radius: 16px !important;
    }

    body.public-theme main :is(.medicine-image, .prod-img, .product-img, .discounted-product-image) {
        border-radius: 13px;
    }

    body.public-theme main [class*="card"]:not(i),
    body.public-theme main [class*="panel"]:not(i),
    body.public-theme main [class*="box"]:not(i) {
        border-radius: 14px;
    }
}

body.public-theme main :is(.featured-track .prod-card, .discounted-product-card) {
    gap: 0;
    padding: .75rem;
}

body.public-theme main .medicine-card-brand {
    padding: .05rem .15rem .55rem;
    color: #52647c !important;
    font-size: .82rem;
    font-weight: 600;
    text-align: right;
}

body.public-theme main :is(.featured-track .prod-img, .discounted-product-image) {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / .92;
    flex: none;
    border-radius: 12px;
}

body.public-theme main .featured-track .prod-img img,
body.public-theme main .discounted-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

body.public-theme main .discounted-product-badge {
    top: 2.7rem;
    left: .75rem;
}

body.public-theme main .featured-track .prod-body,
body.public-theme main .discounted-product-body {
    gap: .45rem;
    padding: .8rem .15rem .15rem;
}

body.public-theme main .featured-track .prod-name,
body.public-theme main .discounted-product-name {
    margin: 0;
    font-size: .98rem;
    line-height: 1.25;
}

body.public-theme main .featured-track .prod-price,
body.public-theme main .discounted-product-prices {
    display: none;
}

body.public-theme main :is(.featured-track .product-unit-section, .discounted-product-body .product-unit-section) {
    margin: .15rem 0 0;
    text-align: center;
}

body.public-theme main :is(.featured-track .product-unit-grid, .discounted-product-body .product-unit-grid) {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

body.public-theme main .featured-track .product-unit-grid-1,
body.public-theme main .discounted-product-body .product-unit-grid-1 {
    grid-template-columns: minmax(0, 1fr);
}

body.public-theme main :is(.featured-track .product-unit-card, .discounted-product-body .product-unit-card) {
    gap: .2rem;
    padding: .4rem .3rem;
}

body.public-theme main :is(.featured-track .product-unit-choice, .discounted-product-body .product-unit-choice) {
    min-height: 2.9rem;
}

body.public-theme main :is(.featured-track .product-unit-name, .discounted-product-body .product-unit-name) {
    font-size: .78rem;
}

body.public-theme main :is(.featured-track .product-unit-price, .discounted-product-body .product-unit-price) {
    font-size: .79rem;
}

body.public-theme main :is(.featured-track .product-stock, .discounted-product-body .product-stock) {
    align-self: flex-start;
    margin: 0;
}

body.public-theme main .featured-track .btn-detail,
body.public-theme main .discounted-product-actions a {
    display: flex;
    min-height: 0;
    width: fit-content;
    justify-content: flex-start;
    padding: .2rem 0;
    border-radius: 0;
    color: #0755c8 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: .78rem;
}

body.public-theme main .featured-track .btn-detail:hover,
body.public-theme main .discounted-product-actions a:hover {
    color: #0643a8 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.public-theme main .discounted-product-actions {
    gap: .15rem;
}

body.public-theme main .discounted-product-actions .btn-cart,
body.public-theme main .featured-track .btn-cart {
    width: 100%;
    margin-top: auto;
    padding: .7rem .55rem;
    border-radius: 10px;
    font-size: .83rem;
}

@media (min-width: 769px) {
    body.public-theme main .featured-track .prod-card {
        flex-basis: calc(25% - .75rem);
    }
}

@media (max-width: 768px) {
    body.public-theme main .featured-track .prod-card {
        flex-basis: calc(50% - .5rem);
        border-radius: 16px !important;
    }

    body.public-theme main .discounted-product-card {
        max-width: 100%;
    }

    body.public-theme main :is(.featured-track .prod-img, .discounted-product-image) {
        border-radius: 11px;
    }
}

@media (max-width: 600px) {
    body.public-theme main :is(.featured-track .prod-img, .discounted-product-image) {
        aspect-ratio: 1.9 / 1;
    }

    body.public-theme main :is(.featured-track .prod-body, .discounted-product-body) {
        gap: .4rem;
        padding: .7rem .1rem .1rem;
    }
}

@media (max-width: 380px) {
    body.public-theme main :is(.featured-track .prod-img, .discounted-product-image) {
        aspect-ratio: 1.6 / 1;
    }
}

body.public-theme main .featured-track {
    align-items: stretch;
}

body.public-theme main .discounted-products-grid {
    grid-auto-rows: 1fr;
}

body.public-theme main .featured-track .prod-card,
body.public-theme main .discounted-product-card {
    height: 100%;
}

body.public-theme main :is(.featured-track .medicine-card-principal, .discounted-product-body .medicine-card-principal) {
    min-height: 1.15rem;
    padding: 0;
    color: #52647c !important;
    background: transparent !important;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.15rem;
}

body.public-theme main :is(.featured-track .medicine-card-details, .discounted-product-body .medicine-card-details) {
    display: grid;
    height: 4.8rem;
    min-height: 4.8rem;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    align-content: stretch;
    gap: .15rem;
    overflow: hidden;
    padding: .5rem .6rem;
    border: 1px solid #d8e8fb;
    border-radius: 11px;
    color: #34445b !important;
    background: #f2f7ff !important;
    font-size: .74rem;
    line-height: 1.25;
}

body.public-theme main :is(.featured-track .medicine-card-details p, .discounted-product-body .medicine-card-details p) {
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #34445b !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.public-theme main :is(.featured-track .medicine-card-details strong, .discounted-product-body .medicine-card-details strong) {
    color: #1755a3 !important;
    font-weight: 750;
}

body.public-theme main :is(.featured-track .product-unit-section, .discounted-product-body .product-unit-section) {
    height: 7.5rem;
    min-height: 7.5rem;
    box-sizing: border-box;
    margin: .15rem 0 0;
    text-align: left;
}

body.public-theme main :is(.featured-track .product-unit-heading, .discounted-product-body .product-unit-heading) {
    min-height: 1.1rem;
    margin-bottom: .4rem;
    color: #52647c !important;
    font-size: .72rem;
    font-weight: 700;
}

body.public-theme main :is(.featured-track .product-unit-grid, .discounted-product-body .product-unit-grid) {
    height: 5.8rem;
    min-height: 5.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: .4rem;
}

body.public-theme main .featured-track .product-unit-grid-1,
body.public-theme main .discounted-product-body .product-unit-grid-1 {
    grid-template-columns: minmax(92px, 120px);
    justify-content: center;
}

body.public-theme main :is(.featured-track .product-unit-card, .discounted-product-body .product-unit-card) {
    height: 100%;
    min-height: 0;
    gap: .2rem;
    padding: .4rem .3rem;
    border: 1px solid #dbe7f3 !important;
    border-radius: 11px;
    background: #f9fbff !important;
    box-shadow: none !important;
}

body.public-theme main :is(.featured-track .product-unit-card.is-selected, .discounted-product-body .product-unit-card.is-selected) {
    border-color: #4b9cff !important;
    background: #edf5ff !important;
    box-shadow: inset 0 0 0 1px #4b9cff !important;
}

body.public-theme main :is(.featured-track .product-unit-choice, .discounted-product-body .product-unit-choice) {
    min-height: 3rem;
    flex: 1;
    justify-content: center;
    gap: .15rem;
}

body.public-theme main :is(.featured-track .product-unit-name, .featured-track .product-unit-price, .featured-track .product-unit-stock, .discounted-product-body .product-unit-name, .discounted-product-body .product-unit-price, .discounted-product-body .product-unit-stock) {
    max-width: 100%;
    font-size: .68rem;
    line-height: 1.2;
    white-space: normal;
}

body.public-theme main :is(.featured-track .product-unit-price, .discounted-product-body .product-unit-price) {
    overflow-wrap: anywhere;
}

body.public-theme main :is(.featured-track .product-unit-quantity, .discounted-product-body .product-unit-quantity) {
    display: grid;
    min-height: 1.65rem;
    grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
    align-items: center;
    justify-items: center;
    gap: .1rem;
    padding: .1rem;
    border: 1px solid #dbe7f3 !important;
    border-radius: 8px;
    background: #fff !important;
}

body.public-theme main :is(.featured-track .product-unit-quantity button, .discounted-product-body .product-unit-quantity button) {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    color: #0755c8 !important;
    font-size: .8rem;
    font-weight: 800;
}

body.public-theme main :is(.featured-track .product-unit-quantity input, .discounted-product-body .product-unit-quantity input) {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: #172b4d !important;
    font-size: .72rem;
    text-align: center;
}

body.public-theme main :is(.featured-track .product-stock, .discounted-product-body .product-stock) {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    align-self: flex-start;
    margin: .1rem 0;
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    line-height: 1.3;
}

body.public-theme main :is(.featured-track .medicine-meta, .discounted-product-body .medicine-meta) {
    display: flex;
    min-height: 1.2rem;
    align-items: center;
    gap: .35rem;
    margin: 0 !important;
    color: #52647c !important;
    font-size: .72rem;
}

body.public-theme main :is(.featured-track .medicine-meta-placeholder, .discounted-product-body .medicine-meta-placeholder) {
    visibility: hidden;
}

body.public-theme main :is(.featured-track .btn-cart, .discounted-product-body .btn-cart) {
    display: flex;
    width: 100%;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: auto;
    padding: .65rem .55rem;
    border: 0 !important;
    border-radius: 10px;
    color: #fff !important;
    background: linear-gradient(135deg, #0755c8, #0870df) !important;
    box-shadow: 0 5px 12px rgba(7, 85, 200, .2);
    font-size: .8rem;
    font-weight: 750;
}

body.public-theme main :is(.featured-track .btn-cart, .discounted-product-body .btn-cart):hover:not(:disabled) {
    background: linear-gradient(135deg, #0643a8, #0755c8) !important;
}

body.public-theme main :is(.featured-track .btn-cart.added, .discounted-product-body .btn-cart.added) {
    color: #166534 !important;
    background: #dcfce7 !important;
    box-shadow: none;
}

body.public-theme main :is(.featured-track .btn-cart, .discounted-product-body .btn-cart):disabled {
    opacity: .58;
}

body.public-theme main .discounted-product-prices,
body.public-theme main .featured-track .prod-price {
    display: none;
}

body.public-theme main .products-main .medicines-grid {
    grid-auto-rows: 1fr;
    align-items: stretch;
}

body.public-theme main .products-main .medicine-card {
    height: 100%;
    min-width: 0;
    padding: .75rem;
    border: 1px solid #dbe7f3 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(8, 36, 82, .09);
    gap: 0;
}

body.public-theme main .products-main .medicine-card:hover {
    transform: translateY(-3px);
    border-color: #8fc5ff !important;
    box-shadow: 0 16px 32px rgba(8, 65, 142, .14);
}

body.public-theme main .products-main .medicine-card-brand {
    min-height: 1.45rem;
    padding: .05rem .15rem .45rem;
    color: #52647c !important;
    font-size: .72rem;
    text-align: right;
}

body.public-theme main .products-main .medicine-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / .92;
    border-radius: 13px;
}

body.public-theme main .products-main .medicine-body {
    min-width: 0;
    gap: .45rem;
    padding: .8rem .15rem .15rem;
}

body.public-theme main .products-main .medicine-card-principal {
    min-height: 1.15rem;
    padding: 0;
    color: #52647c !important;
    background: transparent !important;
    font-size: .75rem;
}

body.public-theme main .products-main .medicine-name {
    min-height: 2.5em;
    flex: none;
    margin: 0;
    color: #172b4d !important;
    font-size: .98rem;
    line-height: 1.25;
}

body.public-theme main .products-main .medicine-card-details {
    display: grid;
    height: 4.8rem;
    min-height: 4.8rem;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    align-content: stretch;
    gap: .15rem;
    overflow: hidden;
    padding: .5rem .6rem;
    border: 1px solid #d8e8fb;
    border-radius: 11px;
    color: #34445b !important;
    background: #f2f7ff !important;
    font-size: .74rem;
    line-height: 1.25;
}

body.public-theme main .products-main .medicine-card-details p {
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #34445b !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.public-theme main .products-main .medicine-card-details strong {
    color: #1755a3 !important;
    font-weight: 750;
}

body.public-theme main .products-main .product-unit-section {
    height: 7.5rem;
    min-height: 7.5rem;
    box-sizing: border-box;
    margin: .15rem 0 0;
    text-align: left;
}

body.public-theme main .products-main .product-unit-heading {
    min-height: 1.1rem;
    margin-bottom: .4rem;
    color: #52647c !important;
    font-size: .72rem;
    font-weight: 700;
}

body.public-theme main .products-main .product-unit-grid {
    height: 5.8rem;
    min-height: 5.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: .4rem;
}

body.public-theme main .products-main .product-unit-grid-1 {
    grid-template-columns: minmax(0, 1fr);
}

body.public-theme main .products-main .product-unit-card {
    height: 100%;
    min-height: 0;
    gap: .2rem;
    padding: .4rem .3rem;
    border: 1px solid #dbe7f3 !important;
    border-radius: 11px;
    background: #f9fbff !important;
    box-shadow: none !important;
}

body.public-theme main .products-main .product-unit-card.is-selected {
    border-color: #4b9cff !important;
    background: #edf5ff !important;
    box-shadow: inset 0 0 0 1px #4b9cff !important;
}

body.public-theme main .products-main .product-unit-choice {
    min-height: 3rem;
    flex: 1;
    justify-content: center;
    gap: .15rem;
}

body.public-theme main .products-main .product-unit-name,
body.public-theme main .products-main .product-unit-price,
body.public-theme main .products-main .product-unit-stock {
    max-width: 100%;
    font-size: .68rem;
    line-height: 1.2;
    white-space: normal;
}

body.public-theme main .products-main .product-unit-price {
    overflow-wrap: anywhere;
}

body.public-theme main .products-main .product-unit-quantity {
    display: grid;
    min-height: 1.65rem;
    grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
    align-items: center;
    justify-items: center;
    gap: .1rem;
    padding: .1rem;
    border: 1px solid #dbe7f3 !important;
    border-radius: 8px;
    background: #fff !important;
}

body.public-theme main .products-main .product-unit-quantity button {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    color: #0755c8 !important;
    font-size: .8rem;
    font-weight: 800;
}

body.public-theme main .products-main .product-unit-quantity input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: #172b4d !important;
    font-size: .72rem;
    text-align: center;
}

body.public-theme main .products-main .product-stock,
body.public-theme main .products-main .stock-badge {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    align-self: flex-start;
    margin: .1rem 0;
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    line-height: 1.3;
}

body.public-theme main .products-main .medicine-meta {
    display: flex;
    min-height: 1.2rem;
    align-items: center;
    gap: .35rem;
    margin: 0 !important;
    color: #52647c !important;
    font-size: .72rem;
}

body.public-theme main .products-main .medicine-meta-placeholder {
    visibility: hidden;
}

body.public-theme main .products-main .btn-cart {
    display: flex;
    width: 100%;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: auto;
    padding: .65rem .55rem;
    border: 0 !important;
    border-radius: 10px;
    color: #fff !important;
    background: linear-gradient(135deg, #0755c8, #0870df) !important;
    box-shadow: 0 5px 12px rgba(7, 85, 200, .2);
    font-size: .8rem;
    font-weight: 750;
}

body.public-theme main .products-main .btn-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #0643a8, #0755c8) !important;
}

body.public-theme main .products-main .btn-cart.added {
    color: #166534 !important;
    background: #dcfce7 !important;
    box-shadow: none;
}

body.public-theme main .products-main .btn-cart:disabled {
    opacity: .58;
}

@media (max-width: 900px) {
    body.public-theme main :is(.featured-track .product-unit-section, .discounted-product-body .product-unit-section) {
        min-height: 0;
    }

    body.public-theme main .products-main .medicine-card {
        padding: .6rem;
    }
}

@media (max-width: 600px) {
    body.public-theme main .products-main .medicine-image {
        aspect-ratio: 1.9 / 1;
    }

    body.public-theme main .products-main .product-unit-section {
        min-height: 0;
    }

    body.public-theme main .products-main .product-unit-grid {
        min-height: 5.8rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    body.public-theme main .products-main .medicine-image {
        aspect-ratio: 1.6 / 1;
    }

    body.public-theme main .products-main .product-unit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.public-theme main .products-pbf .medicine-card-details {
    height: 4rem;
    min-height: 4rem;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: .2rem;
    padding: .5rem .65rem;
    border-color: #cfe2f7;
    border-radius: 12px;
    background: #f1f7ff !important;
    font-size: .76rem;
}

body.public-theme main .products-pbf .medicine-card-details,
body.public-theme main .products-pbf .medicine-card-details p {
    color: #25364d !important;
}

body.public-theme main .products-pbf .medicine-card-details strong {
    color: #0646a5 !important;
    font-weight: 800;
}

body.public-theme main .products-pbf .medicine-card-details p {
    white-space: nowrap;
}

body.public-theme main .products-pbf .stock-badge {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 2rem;
    align-items: center;
    align-self: flex-start;
    gap: .4rem;
    margin: .15rem 0;
    padding: .35rem .65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

body.public-theme main .products-pbf .stock-available {
    color: #166534 !important;
    background: #dcfce7 !important;
    border-color: #bbf7d0;
}

body.public-theme main .products-pbf .stock-low {
    color: #92400e !important;
    background: #fef3c7 !important;
    border-color: #fde68a;
}

body.public-theme main .products-pbf .stock-out {
    color: #991b1b !important;
    background: #fee2e2 !important;
    border-color: #fecaca;
}

body.public-theme main .products-pbf .medicine-meta {
    min-height: 1.2rem;
    align-items: center;
    margin: 0 !important;
    color: #64748b !important;
    font-size: .72rem;
}

body.public-theme main :is([class*="card"], [class*="panel"], [class*="box"]):not(:is(
    .home-trust-item, .co-left-col, .co-right-col, .co-radio-group, .co-delivery-tabs,
    .co-radio-row, .co-pay-opt, .co-payment-detail, .co-summary-card, .co-section-card,
    .cart-page-card, .cart-summary, .cart-item, .gass-access-card, .promo-card,
    .medicine-card-details, .product-unit-card, i, [class*="fa-"]
)) {
    color: #172b4d !important;
    background: #fff !important;
    border-color: #d7e2ee !important;
    box-shadow: 0 8px 22px rgba(15, 35, 65, .09);
}

body.public-theme main :is([class*="card"], [class*="panel"], [class*="box"]):not(:is(
    .home-trust-item, .co-left-col, .co-right-col, .co-radio-group, .co-delivery-tabs,
    .co-radio-row, .co-pay-opt, .co-payment-detail, .co-summary-card, .co-section-card,
    .cart-page-card, .cart-summary, .cart-item, .gass-access-card, .promo-card,
    .medicine-card-details, .product-unit-card, i, [class*="fa-"]
)) :is(h1, h2, h3, h4, h5, p, label, small, li, strong, b, span):not(:where(button *, a[class*="btn"] *)) {
    color: #26384f !important;
}

body.public-theme main :is([class*="card"], [class*="panel"], [class*="box"]):not(:is(
    .home-trust-item, .co-left-col, .co-right-col, .co-radio-group, .co-delivery-tabs,
    .co-radio-row, .co-pay-opt, .co-payment-detail, .co-summary-card, .co-section-card,
    .cart-page-card, .cart-summary, .cart-item, .gass-access-card, .promo-card,
    .medicine-card-details, .product-unit-card, i, [class*="fa-"]
)) :is(h1, h2, h3, h4, h5) {
    color: #172b4d !important;
}

body.public-theme main :is([class*="card"], [class*="panel"], [class*="box"]):not(:is(
    .home-trust-item, .co-left-col, .co-right-col, .co-radio-group, .co-delivery-tabs,
    .co-radio-row, .co-pay-opt, .co-payment-detail, .co-summary-card, .co-section-card,
    .cart-page-card, .cart-summary, .cart-item, .gass-access-card, .promo-card
)) a:not([class*="btn"]) {
    color: #0755c8 !important;
}

body.public-theme main :is(.medicine-card, .prod-card, .product-card, .discounted-product-card) {
    background: #fff !important;
    border-color: #d7e2ee !important;
    box-shadow: 0 8px 22px rgba(15, 35, 65, .09);
}

body.public-theme main :is(.medicine-card-details, .product-unit-card) {
    background: #f2f7ff !important;
}

body.public-theme main :is(.medicine-card-details, .product-unit-card) :is(p, strong, span, small, button) {
    color: #26384f !important;
}

body.public-theme main :is(.medicine-card-details, .product-unit-card) strong,
body.public-theme main :is(.medicine-card-details, .product-unit-card) .product-unit-price {
    color: #0646a5 !important;
}

body.public-theme main .product-unit-quantity {
    background: #fff !important;
}

body.public-theme main table {
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    background: #fff !important;
}

body.public-theme main td {
    color: #26384f !important;
    background: #fff !important;
    border-color: #e2e8f0 !important;
}

body.public-theme main input,
body.public-theme main select,
body.public-theme main textarea {
    color: #172b4d !important;
    background-color: #fff !important;
    border-color: #94a3b8 !important;
}

body.public-theme main input::placeholder,
body.public-theme main textarea::placeholder {
    color: #64748b !important;
    opacity: 1;
}

body.public-theme main :is(input, select, textarea, button, a):focus-visible {
    outline: 3px solid #0870df !important;
    outline-offset: 2px;
}

body.public-theme main a:not([class*="btn"]):not(:where([class*="card"] a, [class*="panel"] a, [class*="box"] a)) {
    color: #fff !important;
    text-decoration-color: rgba(255, 255, 255, .65);
}

body.public-theme main a:not([class*="btn"]):not(:where([class*="card"] a, [class*="panel"] a, [class*="box"] a)):hover {
    color: #a5f3fc !important;
}

body.public-theme main :is(.home-trust-icon, .sec-tag) {
    color: #0646a5 !important;
    background: #eaf4ff !important;
    border-color: #b8d8fa !important;
}

body.public-theme main :is(button[type="submit"], .btn-primary, .btn-submit, .btn-checkout, .btn-verify, .btn-submit-wa, .gass-access-button, .co-submit-btn, .co-disc-btn, .filter-bar button) {
    color: #fff !important;
    background: #047857 !important;
    border-color: #047857 !important;
}

body.public-theme main :is(button[type="submit"], .btn-primary, .btn-submit, .btn-checkout, .btn-verify, .btn-submit-wa, .gass-access-button, .co-submit-btn, .co-disc-btn, .filter-bar button):hover:not(:disabled) {
    color: #fff !important;
    background: #065f46 !important;
    border-color: #065f46 !important;
}

body.public-theme main .cart-item .btn-cart,
body.public-theme main :is(.co-delivery-tab, .co-payment-tab, .co-pay-opt) {
    color: #fff !important;
    background: #0755c8 !important;
    border-color: #0755c8 !important;
}

body.public-theme main :is(.co-delivery-tab.active, .co-payment-tab.active, .co-pay-opt.active) {
    color: #fff !important;
    background: #047857 !important;
    border-color: #047857 !important;
}

body.public-theme main :is(.product-stock.available, .product-stock.stock-available, .stock-ok, .stock-available) {
    color: #14532d !important;
}

body.public-theme main :is(.product-stock.low, .product-stock.stock-low, .stock-low) {
    color: #78350f !important;
}

body.public-theme main :is(.product-stock.empty, .product-stock.stock-out, .stock-out) {
    color: #7f1d1d !important;
}

body.public-theme main .products-pbf .pbf-access-alert-text,
body.public-theme main .products-pbf .pbf-access-alert-text :is(i, span, strong) {
    color: #78350f !important;
}

body.public-theme main .products-pbf .pbf-access-alert-success .pbf-access-alert-text,
body.public-theme main .products-pbf .pbf-access-alert-success .pbf-access-alert-text :is(i, span, strong) {
    color: #065f46 !important;
}

body.public-theme main .products-pbf .pbf-access-alert-text .fa-shield-halved {
    color: #b45309 !important;
}

/* ===== HOMEPAGE HERO BUTTONS, CATEGORY ICONS & 4x5 B2C GRID FIXES ===== */
body.public-theme main .home-brand-hero-actions a {
    color: #0646a5 !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .95) !important;
    box-shadow: 0 6px 18px rgba(0, 24, 72, .2) !important;
    font-weight: 700 !important;
}

body.public-theme main .home-brand-hero-actions a:hover {
    color: #003eaa !important;
    background: #eaf3ff !important;
}

body.public-theme main .home-brand-hero-actions a > span {
    color: #078a68 !important;
    background: #ecfdf5 !important;
}

body.public-theme main .home-brand-hero-actions a > span svg {
    color: #078a68 !important;
    stroke: #078a68 !important;
}

body.public-theme main .home-category-card > span {
    background: #0052cc !important;
    color: #ffffff !important;
}

body.public-theme main .home-category-card > span i {
    color: #ffffff !important;
}

body.public-theme main .home-category-card strong {
    color: #172b4d !important;
}

body.public-theme main .home-category-scroll {
    color: #0052cc !important;
    background: #ffffff !important;
}

body.public-theme main .home-category-scroll i {
    color: inherit !important;
}

body.public-theme main .home-category-scroll:hover {
    color: #ffffff !important;
    background: #0052cc !important;
}

body.public-theme main .home-b2c-grid-4x5,
body.public-theme main .discounted-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: stretch !important;
}

body.public-theme main .home-b2c-grid-4x5 .prod-card,
body.public-theme main .discounted-products-grid .discounted-product-card {
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    padding: .75rem;
}

body.public-theme main .home-b2c-grid-4x5 .prod-img,
body.public-theme main .discounted-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / .92;
    flex: none;
    border-radius: 12px;
}

body.public-theme main .home-b2c-grid-4x5 .prod-img img,
body.public-theme main .discounted-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

body.public-theme main .home-b2c-grid-4x5 .prod-body,
body.public-theme main .discounted-product-body {
    gap: .45rem;
    padding: .8rem .15rem .15rem;
}

body.public-theme main .home-b2c-grid-4x5 .medicine-card-details,
body.public-theme main .discounted-product-body .medicine-card-details {
    display: grid;
    height: 4.8rem;
    min-height: 4.8rem;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-content: stretch;
    gap: .15rem;
    overflow: hidden;
    padding: .5rem .6rem;
    border: 1px solid #d8e8fb;
    border-radius: 11px;
    color: #34445b !important;
    background: #f2f7ff !important;
    font-size: .74rem;
    line-height: 1.25;
}

body.public-theme main .home-b2c-grid-4x5 .medicine-card-details p,
body.public-theme main .discounted-product-body .medicine-card-details p {
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #34445b !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.public-theme main .home-b2c-grid-4x5 .medicine-card-details strong,
body.public-theme main .discounted-product-body .medicine-card-details strong {
    color: #1755a3 !important;
    font-weight: 750;
}

body.public-theme main .discounted-product-prices {
    display: flex !important;
    align-items: baseline;
    gap: .45rem;
    flex-wrap: wrap;
}

body.public-theme main .home-b2c-grid-4x5 .prod-price {
    display: block !important;
}

body.public-theme main .discounted-product-old-price,
body.public-theme main .home-b2c-grid-4x5 .prod-price small {
    color: #94a3b8 !important;
    text-decoration: line-through;
}

body.public-theme main .discounted-product-current-price,
body.public-theme main .home-b2c-grid-4x5 .prod-price span {
    color: #0755c8 !important;
    font-weight: 800;
}

body.public-theme main .discounted-product-badge,
body.public-theme main .prod-badge-label,
body.public-theme main .prod-badge-grade-a {
    color: #ffffff !important;
}

body.public-theme main .home-b2c-grid-4x5 .btn-cart,
body.public-theme main .discounted-product-body .btn-cart {
    display: flex;
    width: 100%;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: auto;
    padding: .65rem .55rem;
    border: 0 !important;
    border-radius: 10px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0755c8, #0870df) !important;
    box-shadow: 0 5px 12px rgba(7, 85, 200, .2);
    font-size: .8rem;
    font-weight: 750;
}

@media (max-width: 992px) {
    body.public-theme main .home-b2c-grid-4x5,
    body.public-theme main .discounted-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    body.public-theme main .home-b2c-grid-4x5,
    body.public-theme main .discounted-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .75rem !important;
    }

}


/* ===== COMPACT PRODUCT CARDS (NO CONTENT REMOVED) ===== */
body.public-theme main :is(.products-main .medicines-grid, .home-b2c-grid-4x5, .discounted-products-grid) {
    gap: 1.35rem !important;
}

body.public-theme main :is(.products-main .medicine-card, .home-b2c-grid-4x5 .prod-card, .discounted-products-grid .discounted-product-card) {
    padding: .75rem !important;
    border-radius: 16px !important;
}

body.public-theme main .medicine-card-brand {
    min-height: 0 !important;
    padding: 0 .1rem .35rem !important;
    font-size: .7rem !important;
    line-height: 1.2 !important;
}

body.public-theme main :is(.products-main .medicine-image, .home-b2c-grid-4x5 .prod-img, .discounted-product-image) {
    height: 140px !important;
    aspect-ratio: auto !important;
    border-radius: 12px !important;
}

body.public-theme main :is(.products-main .medicine-image img, .home-b2c-grid-4x5 .prod-img img, .discounted-product-image img) {
    padding: .45rem !important;
    object-fit: contain !important;
}

body.public-theme main :is(.products-main .medicine-body, .home-b2c-grid-4x5 .prod-body, .discounted-product-body) {
    padding: .55rem .1rem .1rem !important;
    gap: .45rem !important;
}

body.public-theme main :is(.products-main .medicine-card-principal, .home-b2c-grid-4x5 .medicine-card-principal, .discounted-product-body .medicine-card-principal) {
    min-height: 0 !important;
    margin: 0 !important;
    font-size: .72rem !important;
    line-height: 1.25 !important;
}

body.public-theme main :is(.products-main .medicine-name, .home-b2c-grid-4x5 .prod-name, .discounted-product-name) {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin: 0 0 .05rem !important;
    font-size: .92rem !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.public-theme main :is(.products-main .medicine-card-details, .home-b2c-grid-4x5 .medicine-card-details, .discounted-product-body .medicine-card-details, .products-pbf .medicine-card-details) {
    display: grid !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: none !important;
    gap: .22rem !important;
    padding: .45rem .6rem !important;
    border-radius: 10px !important;
    font-size: .72rem !important;
    line-height: 1.35 !important;
}

body.public-theme main :is(.products-main .medicine-card-details p, .home-b2c-grid-4x5 .medicine-card-details p, .discounted-product-body .medicine-card-details p, .products-pbf .medicine-card-details p) {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.public-theme main .discounted-product-prices,
body.public-theme main .home-b2c-grid-4x5 .prod-price,
body.public-theme main .products-main .medicine-price {
    display: none !important;
}

body.public-theme main :is(.products-main .product-unit-section, .home-b2c-grid-4x5 .product-unit-section, .discounted-product-body .product-unit-section) {
    height: auto !important;
    min-height: 0 !important;
    margin: .1rem 0 !important;
}

body.public-theme main :is(.products-main .product-unit-heading, .home-b2c-grid-4x5 .product-unit-heading, .discounted-product-body .product-unit-heading) {
    min-height: 0 !important;
    margin-bottom: .3rem !important;
    font-size: .7rem !important;
}

body.public-theme main :is(.products-main .product-unit-grid, .home-b2c-grid-4x5 .product-unit-grid, .discounted-product-body .product-unit-grid) {
    height: auto !important;
    min-height: 0 !important;
    gap: .38rem !important;
}

body.public-theme main :is(.products-main .product-unit-card, .home-b2c-grid-4x5 .product-unit-card, .discounted-product-body .product-unit-card) {
    height: auto !important;
    min-height: 0 !important;
    padding: .38rem .3rem !important;
    gap: .22rem !important;
    border-radius: 10px !important;
}

body.public-theme main :is(.products-main .product-unit-choice, .home-b2c-grid-4x5 .product-unit-choice, .discounted-product-body .product-unit-choice) {
    min-height: 0 !important;
    gap: .14rem !important;
    padding: .1rem 0 !important;
}

body.public-theme main :is(.product-unit-name, .product-unit-price, .product-unit-stock, .product-unit-old-price) {
    font-size: .68rem !important;
    line-height: 1.25 !important;
}

body.public-theme main :is(.products-main .product-unit-quantity, .home-b2c-grid-4x5 .product-unit-quantity, .discounted-product-body .product-unit-quantity) {
    min-height: 1.45rem !important;
    padding: .08rem .15rem !important;
    margin-top: .08rem !important;
    border-radius: 7px !important;
}

body.public-theme main :is(.products-main .product-unit-quantity button, .home-b2c-grid-4x5 .product-unit-quantity button, .discounted-product-body .product-unit-quantity button) {
    width: 1.15rem !important;
    height: 1.15rem !important;
    font-size: .76rem !important;
}

body.public-theme main :is(.products-main .product-unit-quantity input, .home-b2c-grid-4x5 .product-unit-quantity input, .discounted-product-body .product-unit-quantity input) {
    font-size: .7rem !important;
}

body.public-theme main :is(.products-main .product-stock, .products-main .stock-badge, .home-b2c-grid-4x5 .product-stock, .discounted-product-body .product-stock, .products-pbf .stock-badge) {
    min-height: 1.55rem !important;
    margin: .1rem 0 !important;
    padding: .22rem .55rem !important;
    font-size: .68rem !important;
    line-height: 1.25 !important;
}

body.public-theme main :is(.products-main .medicine-meta, .home-b2c-grid-4x5 .medicine-meta, .discounted-product-body .medicine-meta, .products-pbf .medicine-meta) {
    min-height: 1.15rem !important;
    margin: .05rem 0 .15rem !important;
    font-size: .7rem !important;
    line-height: 1.25 !important;
}

body.public-theme main :is(.products-main .btn-cart, .home-b2c-grid-4x5 .btn-cart, .discounted-product-body .btn-cart) {
    margin-top: auto !important;
    min-height: 2.35rem !important;
    padding: .5rem .6rem !important;
    border-radius: 9px !important;
    font-size: .78rem !important;
}


/* ===== PRODUCT DETAIL PAGE CONTRAST FIX ===== */
body.public-theme main :is(.detail-container, .detail-desc, .detail-info, .detail-meta-list, .detail-purchase-box, .related-section) {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.public-theme main :is(.detail-meta-list, .detail-purchase-box, .stock-item, .related-card) {
    background: #f8fafc !important;
}

body.public-theme main :is(.detail-container, .detail-desc, .detail-info, .detail-meta-list, .detail-purchase-box, .related-section) :is(h1, h2, h3, h4, h5, strong, b):not(:where(.btn-detail-buy *, .btn-detail-cart *)) {
    color: #0f172a !important;
}

body.public-theme main :is(.detail-container, .detail-desc, .detail-info, .detail-meta-list, .detail-purchase-box, .related-section) :is(p, label, small, li, span):not(:where(.btn-detail-buy *, .btn-detail-cart *, .detail-category, .price-label, .detail-total-label, .detail-unit-pill-price, .product-logo-marker, .product-logo-marker *, .medicine-sold-badge, .medicine-sold-badge *)) {
    color: #334155 !important;
}

body.public-theme main .detail-category,
body.public-theme main .price-label,
body.public-theme main .detail-total-label,
body.public-theme main .detail-unit-pill-price,
body.public-theme main .related-price {
    color: #0369a1 !important;
}

body.public-theme main :is(.btn-detail-buy, .btn-detail-cart, .btn-detail-buy *, .btn-detail-cart *) {
    color: #ffffff !important;
}


/* ===== PRODUCT CARD SOLD BADGE (TERJUAL) ===== */
body.public-theme main .medicine-meta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .4rem !important;
    width: 100% !important;
}

body.public-theme main .medicine-meta-sediaan {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b !important;
}

body.public-theme main .medicine-meta-sediaan :is(span, i) {
    color: #64748b !important;
}

body.public-theme main .medicine-sold-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .14rem .5rem;
    border-radius: 999px;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    color: #c2410c !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

body.public-theme main .medicine-sold-badge i {
    color: #ea580c !important;
    font-size: .66rem !important;
}


body.public-theme main .product-logo-marker--red {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #dc2626 !important;
    color: #0f172a !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}


/* ===== LOGO K (RED LOGO) LOCKED GRAY STATE BEFORE B2C CODE ===== */
body.public-theme main .product-unit-card.is-red-logo-locked {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    box-shadow: none !important;
}

body.public-theme main .product-unit-card.is-red-logo-locked :is(.product-unit-name, .product-unit-price, .product-unit-old-price, .product-unit-stock, strong, span, small, button) {
    color: #64748b !important;
}

body.public-theme main .product-unit-card.is-red-logo-locked .product-unit-quantity {
    background: #cbd5e1 !important;
    border-color: #94a3b8 !important;
}

body.public-theme main .product-unit-card.is-red-logo-locked .product-unit-quantity :is(button, input) {
    color: #64748b !important;
}

body.public-theme main .btn-cart.is-red-logo-locked {
    background: #94a3b8 !important;
    border-color: #64748b !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

/* Product cards now show one package price without a selectable price tile. */
body.public-theme main .product-unit-section--single {
    margin: .25rem 0 !important;
    text-align: left !important;
}

body.public-theme main .product-unit-grid--single {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

body.public-theme main .product-unit-card--single {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #172033 !important;
}

body.public-theme main .product-unit-card--single.is-selected {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.public-theme main .product-unit-card--single .product-unit-choice {
    display: flex !important;
    width: 100% !important;
    min-height: 0 !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: .4rem !important;
    padding: 0 !important;
    text-align: left !important;
}

body.public-theme main .product-unit-card--single .product-unit-name {
    max-width: none !important;
    color: #475569 !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
}

body.public-theme main .product-unit-card--single .product-unit-price {
    color: #0755c8 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

body.public-theme main .product-unit-card--single .product-unit-old-price {
    color: #94a3b8 !important;
    font-size: .72rem !important;
}

body.public-theme main .product-unit-card--single .product-unit-stock {
    display: block !important;
    margin-top: .08rem !important;
    color: #64748b !important;
    font-size: .72rem !important;
    text-align: left !important;
}

body.public-theme main .product-unit-card--single .product-unit-quantity {
    width: min(100%, 10rem) !important;
    min-height: 1.9rem !important;
    margin: .35rem 0 0 !important;
    padding: .1rem .25rem !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 8px !important;
}

body.public-theme main .product-unit-card--single.is-red-logo-locked {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.public-theme main .product-unit-card--single.is-red-logo-locked .product-unit-quantity {
    background: #cbd5e1 !important;
    border-color: #94a3b8 !important;
}

body.public-theme main .btn-cart.is-red-logo-locked:hover {
    background: #64748b !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

body.public-theme main .detail-unit-pill.is-red-logo-locked,
body.public-theme main .detail-qty-btn.is-red-logo-locked,
body.public-theme main .detail-qty-input.is-red-logo-locked,
body.public-theme main .detail-total-bar.is-red-logo-locked {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #64748b !important;
    box-shadow: none !important;
}

body.public-theme main .detail-unit-pill.is-red-logo-locked :is(span, strong),
body.public-theme main .detail-total-bar.is-red-logo-locked :is(span, strong) {
    color: #64748b !important;
}

body.public-theme main :is(.btn-detail-buy.is-red-logo-locked, .btn-detail-cart.is-red-logo-locked) {
    background: #94a3b8 !important;
    border-color: #64748b !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

body.public-theme main :is(.btn-detail-buy.is-red-logo-locked:hover, .btn-detail-cart.is-red-logo-locked:hover) {
    background: #64748b !important;
    color: #ffffff !important;
}


/* ===== CHECKOUT PAGE CLEAN WHITE CARD & HIGH CONTRAST THEME ===== */
body.public-theme main .products-header.checkout-banner {
    background:
        radial-gradient(ellipse at 88% 12%, rgba(8, 217, 232, .42), transparent 35%),
        radial-gradient(ellipse at 5% 100%, rgba(19, 220, 130, .2), transparent 42%),
        linear-gradient(125deg, #0643a8 0%, #0757c9 58%, #0875d9 100%) !important;
    border-bottom: 2px solid rgba(8, 217, 232, .55) !important;
}

body.public-theme main .checkout-banner .co-banner-title {
    color: #ffffff !important;
}

body.public-theme main .checkout-banner .co-banner-sub {
    color: rgba(255, 255, 255, .88) !important;
}

body.public-theme main .checkout-banner .breadcrumb-custom a {
    color: rgba(255, 255, 255, .85) !important;
    text-decoration: none !important;
}

body.public-theme main .checkout-banner .breadcrumb-custom a:hover {
    color: #ffffff !important;
}

body.public-theme main .checkout-banner .breadcrumb-custom .current {
    color: #86efac !important;
    font-weight: 700 !important;
}

body.public-theme main .checkout-banner .co-back-cart-btn {
    background: #ffffff !important;
    color: #0755c8 !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 24, 72, .2) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.public-theme main .checkout-banner .co-back-cart-btn i {
    color: #0755c8 !important;
}

body.public-theme main .checkout-banner .co-back-cart-btn:hover {
    background: #eff6ff !important;
    color: #0643a8 !important;
    border-color: #bfdbfe !important;
}

body.public-theme main :is(.co-left-col, .co-right-col) {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #dbe4f0 !important;
    box-shadow: 0 12px 32px rgba(0, 24, 72, .14) !important;
}

body.public-theme main :is(.co-left-col, .co-right-col)::before {
    background: linear-gradient(90deg, #0755c8 0%, #08d9e8 55%, #10b981 100%) !important;
}

body.public-theme main :is(.co-left-col, .co-right-col) :is(h1, h2, h3, h4, .co-sec-title, .co-sub-title, .co-summary-head h3, .co-right-pay-head h3) {
    color: #0f172a !important;
}

body.public-theme main :is(.co-summary-head h3 i, .co-right-pay-head h3 i) {
    color: #0755c8 !important;
}

body.public-theme main .co-summary-head a,
body.public-theme main .co-footer-links a {
    color: #0755c8 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

body.public-theme main .co-summary-head a:hover,
body.public-theme main .co-footer-links a:hover {
    color: #0643a8 !important;
}

body.public-theme main :is(.co-section, .co-summary-head, .co-footer-links) {
    border-color: #e2e8f0 !important;
}

/* Delivery Segmented Tabs */
body.public-theme main .co-delivery-tabs {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 5px !important;
    gap: 6px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.public-theme main .co-delivery-tab {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

body.public-theme main .co-delivery-tab :is(i, span) {
    color: #475569 !important;
}

body.public-theme main .co-delivery-tab:hover:not(.active) {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #0755c8 !important;
}

body.public-theme main .co-delivery-tab:hover:not(.active) :is(i, span) {
    color: #0755c8 !important;
}

body.public-theme main .co-delivery-tab.active {
    background: linear-gradient(135deg, #0755c8 0%, #0870df 100%) !important;
    color: #ffffff !important;
    border-color: #0755c8 !important;
    box-shadow: 0 4px 12px rgba(7, 85, 200, .25) !important;
}

body.public-theme main .co-delivery-tab.active :is(i, span) {
    color: #ffffff !important;
}

/* Form Inputs & Tooltip */
body.public-theme main :is(.co-input, .co-select, .co-disc-inp) {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 10px !important;
}

body.public-theme main :is(.co-input, .co-select, .co-disc-inp):focus {
    background: #ffffff !important;
    border-color: #0755c8 !important;
    box-shadow: 0 0 0 3px rgba(7, 85, 200, .14) !important;
}

body.public-theme main .co-help-wrap,
body.public-theme main .co-help-wrap i {
    color: #64748b !important;
}

body.public-theme main .co-help-tooltip {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* Pickup Location Box */
body.public-theme main #coPickupLocationBox.co-ship-box {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    color: #0f172a !important;
}

/* Billing Address Radio Group */
body.public-theme main .co-radio-group {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body.public-theme main .co-radio-row {
    background: #ffffff !important;
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

body.public-theme main .co-radio-row span {
    color: #1e293b !important;
    font-weight: 600 !important;
}

body.public-theme main .co-radio-row input[type="radio"] {
    accent-color: #0755c8 !important;
}

body.public-theme main .co-radio-row.active {
    background: #eff6ff !important;
    color: #0755c8 !important;
    border-color: #bfdbfe !important;
}

body.public-theme main .co-radio-row.active span {
    color: #0755c8 !important;
    font-weight: 700 !important;
}

body.public-theme main .co-billing-panel {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

/* Order Summary Items & Totals */
body.public-theme main .co-sum-item {
    border-bottom: 1px solid #e2e8f0 !important;
}

body.public-theme main .co-sum-thumb {
    background: #f8fafc !important;
    border: 1.5px solid #dbe4f0 !important;
}

body.public-theme main .co-sum-qty-badge {
    background: #0755c8 !important;
    border: 1.5px solid #ffffff !important;
    color: #ffffff !important;
}

body.public-theme main .co-sum-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.public-theme main .co-sum-meta {
    color: #0369a1 !important;
    font-weight: 600 !important;
}

body.public-theme main .co-sum-price {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.public-theme main .co-disc-row {
    border-top: 1.5px solid #e2e8f0 !important;
}

body.public-theme main .co-disc-btn {
    background: linear-gradient(135deg, #0755c8 0%, #0870df 100%) !important;
    border: 1.5px solid #0755c8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.public-theme main .co-disc-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0643a8 0%, #0755c8 100%) !important;
    color: #ffffff !important;
}

body.public-theme main .co-totals-line,
body.public-theme main .co-totals-line span {
    color: #475569 !important;
}

body.public-theme main #coSubtotalDisplay {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.public-theme main #coDiscountRow,
body.public-theme main #coDiscountRow span {
    color: #059669 !important;
    font-weight: 700 !important;
}

body.public-theme main #coShippingSummaryText {
    color: #64748b !important;
}

body.public-theme main .about-contact-details {
    display: grid;
    gap: .75rem;
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-left: 4px solid #1e88e5;
    border-radius: 12px;
    background: #eff6ff;
    color: #26384f !important;
    font-size: .9rem;
}

body.public-theme main .about-contact-details > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    color: #26384f !important;
}

body.public-theme main .about-contact-details > div > i {
    width: 1.1rem;
    color: #0755c8 !important;
}

body.public-theme main .about-contact-details strong {
    color: #172b4d !important;
}

body.public-theme main .about-contact-details a,
body.public-theme main .about-contact-details a:hover {
    color: #0755c8 !important;
    font-weight: 700;
    text-decoration: none;
}

body.public-theme main .about-contact-details a:not([class*="btn"]),
body.public-theme main .about-contact-details a:not([class*="btn"]):hover {
    color: #0755c8 !important;
}

body.public-theme main .vm-section .vm-card {
    color: #fff !important;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #1e88e5 100%) !important;
    border-color: rgba(255, 255, 255, .18) !important;
}

body.public-theme main .vm-section .vm-card-misi {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 60%, #43a047 100%) !important;
}

body.public-theme main .vm-section .vm-card .vm-icon {
    position: relative;
    z-index: 1;
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .2) !important;
    color: #fff !important;
}

body.public-theme main .vm-section .vm-card .vm-icon i,
body.public-theme main .vm-section .vm-card h3,
body.public-theme main .vm-section .vm-card p {
    color: #fff !important;
}

body.public-theme main .contact-social-card .contact-social-title {
    color: #172b4d !important;
}

body.public-theme main .contact-social-card .contact-social-title i {
    color: #0755c8 !important;
}

body.public-theme main .co-totals-grand {
    border-top: 1.5px solid #e2e8f0 !important;
}

body.public-theme main .co-totals-grand-lbl {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.public-theme main .co-totals-grand-val small {
    color: #64748b !important;
}

body.public-theme main #coGrandTotalDisplay {
    color: #0755c8 !important;
    font-weight: 800 !important;
}

/* Right Column Payment Section */
body.public-theme main #coPaymentRightWrapper.co-right-payment-box {
    background: #f8fafc !important;
    border: 1.5px solid #dbe4f0 !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    margin-top: 1.35rem !important;
    box-shadow: none !important;
}

body.public-theme main .co-right-pay-head > span {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #059669 !important;
    padding: .2rem .55rem !important;
    border-radius: 999px !important;
    font-size: .74rem !important;
    font-weight: 700 !important;
}

body.public-theme main .co-right-pay-head > span i {
    color: #059669 !important;
}

body.public-theme main .co-right-pay-sub {
    color: #475569 !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
}

body.public-theme main .co-pay-opt {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #1e293b !important;
    border-radius: 11px !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .04) !important;
}

body.public-theme main .co-pay-opt span {
    color: #1e293b !important;
    font-weight: 700 !important;
}

body.public-theme main .co-pay-opt i {
    color: #0755c8 !important;
}

body.public-theme main .co-pay-opt:hover:not(:disabled):not(.active) {
    background: #eff6ff !important;
    border-color: #0755c8 !important;
}

body.public-theme main .co-pay-opt.active {
    background: linear-gradient(135deg, #0755c8 0%, #0870df 100%) !important;
    border-color: #0755c8 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(7, 85, 200, .24) !important;
}

body.public-theme main .co-pay-opt.active :is(i, span, small) {
    color: #ffffff !important;
}

body.public-theme main .co-pay-opt:disabled {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
    opacity: .8 !important;
    box-shadow: none !important;
}

body.public-theme main .co-pay-opt:disabled :is(i, span, small) {
    color: #64748b !important;
}

/* Payment Detail Box (QRIS, Transfer, Cash) */
body.public-theme main .co-payment-detail {
    background: #ffffff !important;
    border: 1.5px dashed #93c5fd !important;
    border-radius: 12px !important;
    padding: 1.1rem 1rem !important;
    color: #334155 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04) !important;
}

body.public-theme main .co-payment-detail[hidden] {
    display: none !important;
}

body.public-theme main .co-qris-dummy {
    width: 140px !important;
    height: 140px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: .5rem !important;
}

body.public-theme main .co-payment-detail-title {
    color: #0f172a !important;
    font-size: .92rem !important;
    font-weight: 800 !important;
    margin-bottom: .25rem !important;
}

body.public-theme main .co-payment-detail-note {
    color: #475569 !important;
    font-size: .8rem !important;
    line-height: 1.45 !important;
}

body.public-theme main :is(.co-transfer-number, .co-cash-amount) {
    color: #0755c8 !important;
    font-size: 1.28rem !important;
    font-weight: 800 !important;
}

/* Submit Button */
body.public-theme main #coSubmitBtn.co-submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1.5px solid #059669 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, .28) !important;
}

body.public-theme main #coSubmitBtn.co-submit-btn :is(span, i) {
    color: #ffffff !important;
}

body.public-theme main #coSubmitBtn.co-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #047857 !important;
}

/* Checkout Error Box, Discount Message & Success Panel */
body.public-theme main #coErrorBox.co-error-box {
    background: #fef2f2 !important;
    border: 1.5px solid #fecaca !important;
    color: #991b1b !important;
    box-shadow: none !important;
}

body.public-theme main #coSuccessPanel.co-success-card {
    background: #f8fafc !important;
    border: 1.5px solid #bae6fd !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

body.public-theme main #coInvoiceBtn.co-action-btn {
    background: #0755c8 !important;
    border: 1.5px solid #0755c8 !important;
    color: #ffffff !important;
}

body.public-theme main #coInvoiceBtn.co-action-btn i {
    color: #ffffff !important;
}

body.public-theme main #coWhatsappBtn.co-action-btn {
    background: #10b981 !important;
    border: 1.5px solid #059669 !important;
    color: #ffffff !important;
}

body.public-theme main #coWhatsappBtn.co-action-btn i {
    color: #ffffff !important;
}


/* ===== B2B (PRODUCTS PBF) HEADER & WELCOME MODAL FIXES ===== */
body.public-theme main .pbf-page-header .pbf-verified-pill {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.32) !important;
    box-shadow: 0 10px 28px rgba(0, 20, 65, 0.22) !important;
}

body.public-theme main .pbf-page-header .pbf-verified-eyebrow {
    color: #6ee7b7 !important;
}

body.public-theme main .pbf-page-header .pbf-verified-status {
    color: #ffffff !important;
}

body.public-theme main .pbf-page-header .pbf-verified-shield,
body.public-theme main .pbf-page-header .pbf-verified-shield i {
    color: #6ee7b7 !important;
}

body.public-theme main .pbf-page-header button.pbf-logout-btn {
    background: #ffffff !important;
    color: #be123c !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14) !important;
}

body.public-theme main .pbf-page-header button.pbf-logout-btn i {
    color: #e11d48 !important;
}

body.public-theme main .pbf-page-header button.pbf-logout-btn:hover {
    background: #fff1f2 !important;
    color: #9f1239 !important;
    border-color: #fda4af !important;
}

body.public-theme main .pbf-welcome-dialog {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #d1fae5 !important;
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.35) !important;
}

body.public-theme main .pbf-welcome-dialog .pbf-welcome-title {
    color: #0f172a !important;
}

body.public-theme main .pbf-welcome-dialog .pbf-welcome-text {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #065f46 !important;
}

body.public-theme main .pbf-welcome-dialog .pbf-welcome-sub {
    color: #64748b !important;
}

body.public-theme main .pbf-welcome-dialog .pbf-welcome-badge,
body.public-theme main .pbf-welcome-dialog .pbf-welcome-badge i {
    color: #047857 !important;
}

body.public-theme main .pbf-welcome-dialog .pbf-welcome-icon,
body.public-theme main .pbf-welcome-dialog .pbf-welcome-icon i {
    color: #059669 !important;
}

body.public-theme main .pbf-welcome-dialog .pbf-welcome-btn,
body.public-theme main .pbf-welcome-dialog .pbf-welcome-btn :is(i, span) {
    color: #ffffff !important;
}

body.public-theme main .pbf-welcome-dialog .pbf-welcome-close,
body.public-theme main .pbf-welcome-dialog .pbf-welcome-close i {
    color: #64748b !important;
}

body.public-theme main i[class*="fa-"] {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

body.public-theme main .products-header h1 i {
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

/* Homepage catalog products use horizontal cards in a two-column desktop grid. */
body.public-theme main .home-b2c-grid-4x5,
body.public-theme main .discounted-products-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.public-theme main .home-b2c-grid-4x5 .prod-card,
body.public-theme main .discounted-products-grid .discounted-product-card {
    display: grid !important;
    grid-template-columns: minmax(150px, 18%) minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-items: start !important;
}

body.public-theme main .home-b2c-grid-4x5 .medicine-card-brand,
body.public-theme main .discounted-products-grid .medicine-card-brand {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
}

body.public-theme main .home-b2c-grid-4x5 .prod-img,
body.public-theme main .discounted-products-grid .discounted-product-image {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 190px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    align-self: start !important;
}

body.public-theme main .home-b2c-grid-4x5 .prod-body,
body.public-theme main .discounted-products-grid .discounted-product-body {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 25%) !important;
    align-content: start !important;
    align-items: start !important;
    column-gap: 1rem !important;
    min-width: 0 !important;
}

body.public-theme main .home-b2c-grid-4x5 :is(.medicine-card-principal, .prod-name, .medicine-card-details),
body.public-theme main .discounted-products-grid :is(.medicine-card-principal, .discounted-product-name, .medicine-card-details) {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
}

body.public-theme main .home-b2c-grid-4x5 .prod-name {
    display: block !important;
    min-height: 0 !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
}

body.public-theme main .home-b2c-grid-4x5 .medicine-card-details,
body.public-theme main .discounted-products-grid .medicine-card-details {
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: auto !important;
}

body.public-theme main .home-b2c-grid-4x5 .medicine-card-details p:nth-child(n + 2),
body.public-theme main .discounted-products-grid .medicine-card-details p:nth-child(n + 2) {
    display: none !important;
}

body.public-theme main .home-b2c-grid-4x5 .product-unit-section,
body.public-theme main .discounted-products-grid .product-unit-section {
    grid-column: 1 !important;
}

body.public-theme main .home-b2c-grid-4x5 :is(.product-stock, .medicine-meta-row, .btn-cart),
body.public-theme main .discounted-products-grid :is(.product-stock, .medicine-meta-row, .discounted-product-actions) {
    grid-column: 2 !important;
}

@media (max-width: 600px) {
    body.public-theme main .home-b2c-grid-4x5 .prod-card,
    body.public-theme main .discounted-products-grid .discounted-product-card {
        grid-template-columns: minmax(96px, 30%) minmax(0, 1fr) !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .prod-img,
    body.public-theme main .discounted-products-grid .discounted-product-image {
        height: 150px !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .prod-body,
    body.public-theme main .discounted-products-grid .discounted-product-body {
        grid-template-columns: minmax(0, 1fr) !important;
        column-gap: 0 !important;
    }

    body.public-theme main .home-b2c-grid-4x5 :is(.product-unit-section, .product-stock, .medicine-meta-row, .btn-cart),
    body.public-theme main .discounted-products-grid :is(.product-unit-section, .product-stock, .medicine-meta-row, .discounted-product-actions) {
        grid-column: 1 !important;
    }
}

/* Keep the home catalog at two products per row on desktop and one on mobile. */
body.public-theme main .home-b2c-grid-4x5,
body.public-theme main .discounted-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.public-theme main .home-b2c-grid-4x5 .prod-card[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    body.public-theme main .home-b2c-grid-4x5,
    body.public-theme main .discounted-products-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 600px) {
    body.public-theme main .home-brand-hero {
        margin-top: calc(var(--navbar-height, 66px) - 2rem) !important;
        min-height: 0 !important;
        padding-bottom: 1.3rem !important;
    }

    body.public-theme main .home-brand-hero-mark {
        overflow: hidden;
        border: 2px solid rgba(255, 255, 255, .9);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 4px 14px rgba(0, 24, 89, .28);
    }

    body.public-theme main .home-brand-hero-circle {
        border-color: rgba(7, 85, 200, .15);
        background: transparent;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    body.public-theme main .home-b2c-grid-4x5 .prod-card,
    body.public-theme main .discounted-products-grid .discounted-product-card {
        grid-template-columns: minmax(88px, 28%) minmax(0, 1fr) !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        gap: 0 !important;
        padding: .65rem !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .medicine-card-brand,
    body.public-theme main .discounted-products-grid .medicine-card-brand {
        padding: 0 .1rem .35rem !important;
        text-align: left !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .prod-img,
    body.public-theme main .discounted-products-grid .discounted-product-image {
        height: 132px !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .prod-body,
    body.public-theme main .discounted-products-grid .discounted-product-body {
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-content: start !important;
        align-items: center !important;
        column-gap: .45rem !important;
        row-gap: .35rem !important;
        padding: .1rem 0 0 .55rem !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .medicine-card-principal,
    body.public-theme main .home-b2c-grid-4x5 .prod-name,
    body.public-theme main .discounted-products-grid .medicine-card-principal,
    body.public-theme main .discounted-products-grid .discounted-product-name,
    body.public-theme main .home-b2c-grid-4x5 .medicine-card-details,
    body.public-theme main .discounted-products-grid .medicine-card-details {
        grid-column: 1 / -1 !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .prod-name,
    body.public-theme main .discounted-products-grid .discounted-product-name {
        margin: 0 !important;
        font-size: .9rem !important;
        line-height: 1.25 !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .medicine-card-details,
    body.public-theme main .discounted-products-grid .medicine-card-details {
        display: block !important;
        grid-row: 3 !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #475569 !important;
        font-size: .68rem !important;
        line-height: 1.25 !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .medicine-card-details p,
    body.public-theme main .discounted-products-grid .medicine-card-details p {
        display: block !important;
        margin: 0 !important;
        overflow: hidden !important;
        color: #475569 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .medicine-card-details strong,
    body.public-theme main .discounted-products-grid .medicine-card-details strong {
        color: #1755a3 !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .product-unit-section,
    body.public-theme main .discounted-products-grid .product-unit-section {
        grid-column: 1 !important;
        grid-row: 4 !important;
        width: max-content !important;
        margin: 0 !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .product-unit-card,
    body.public-theme main .discounted-products-grid .product-unit-card {
        padding: .25rem .4rem !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .product-unit-choice,
    body.public-theme main .discounted-products-grid .product-unit-choice {
        min-height: 0 !important;
        padding: .2rem .1rem !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .product-stock,
    body.public-theme main .discounted-products-grid .product-stock {
        grid-column: 1 !important;
        grid-row: 5 !important;
        justify-self: start !important;
        margin: 0 !important;
        padding: .3rem .5rem !important;
        font-size: .62rem !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .medicine-meta-row,
    body.public-theme main .discounted-products-grid .medicine-meta-row {
        display: contents !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .medicine-sold-badge,
    body.public-theme main .discounted-products-grid .medicine-sold-badge {
        grid-column: 2 !important;
        grid-row: 5 !important;
        justify-self: end !important;
        margin: 0 !important;
    }

    body.public-theme main .home-b2c-grid-4x5 .btn-cart,
    body.public-theme main .discounted-products-grid .discounted-product-actions {
        grid-column: 1 / -1 !important;
        grid-row: 6 !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 36px !important;
        margin: .1rem 0 0 !important;
        padding: .5rem !important;
        font-size: .72rem !important;
    }
}

body.public-theme main .home-b2c-catalog-heading .home-b2c-transaction-label,
body.public-theme main .home-b2c-catalog-heading > a.home-b2b-catalog-link,
body.public-theme main .home-b2c-catalog-heading > a.home-b2b-catalog-link:visited {
    color: #0646a5 !important;
    background: #ffffff !important;
    border: 2px solid #0755c8 !important;
    text-decoration: none !important;
}

body.public-theme main .home-b2c-catalog-heading .home-b2c-transaction-label *,
body.public-theme main .home-b2c-catalog-heading > a.home-b2b-catalog-link *,
body.public-theme main .home-b2c-catalog-heading > a.home-b2b-catalog-link > .home-b2b-transaction-text {
    color: #0646a5 !important;
}

body.public-theme main .home-b2c-catalog-heading a.home-b2b-catalog-link:hover {
    color: #0646a5 !important;
    background: #ffffff !important;
    border-color: #0755c8 !important;
}

body.public-theme main .product-discount-badge {
    border: 1px solid #67e8f9 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #123b70 !important;
    box-shadow: 0 4px 12px rgba(7, 45, 99, .32), 0 0 0 2px rgba(255, 255, 255, .9) !important;
    text-shadow: 0 1px 2px #000000 !important;
}

body.public-theme main :is(
    .products-main .medicine-card-details,
    .products-pbf .medicine-card-details,
    .home-b2c-grid-4x5 .medicine-card-details,
    .discounted-products-grid .medicine-card-details
) {
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.public-theme main :is(
    .home-b2c-grid-4x5 .medicine-card-principal,
    .discounted-products-grid .medicine-card-principal
) {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #64748b !important;
    font-size: .78rem !important;
    line-height: 1.4 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

body.public-theme main :is(
    .home-b2c-grid-4x5 .prod-body,
    .discounted-products-grid .discounted-product-body
) {
    padding-left: 1rem !important;
}

@media (min-width: 601px) {
    body.public-theme main :is(
        .home-b2c-grid-4x5 .medicine-meta-row,
        .discounted-products-grid .medicine-meta-row
    ) {
        display: contents !important;
    }

    body.public-theme main :is(
        .home-b2c-grid-4x5 .product-stock,
        .discounted-products-grid .product-stock
    ) {
        grid-column: 1 !important;
        grid-row: 5 !important;
        justify-self: start !important;
        align-self: center !important;
        margin: 0 !important;
    }

    body.public-theme main :is(
        .home-b2c-grid-4x5 .medicine-sold-badge,
        .discounted-products-grid .medicine-sold-badge
    ) {
        grid-column: 2 !important;
        grid-row: 5 !important;
        justify-self: end !important;
        align-self: center !important;
        margin: 0 !important;
    }

    body.public-theme main :is(
        .home-b2c-grid-4x5 .btn-cart,
        .discounted-products-grid .discounted-product-actions
    ) {
        grid-column: 1 / -1 !important;
        grid-row: 6 !important;
        width: 100% !important;
        max-width: none !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 600px) {
    body.public-theme main :is(
        .home-b2c-grid-4x5 .prod-body,
        .discounted-products-grid .discounted-product-body
    ) {
        padding-left: .9rem !important;
    }
}

body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button,
body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button:link,
body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, #0870df, #0755c8) !important;
    border-color: #5cc8ff !important;
}

body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button *,
body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button:visited * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button i,
body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button:visited i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button:hover,
body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button:hover * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, #0755c8, #063583) !important;
}

body.public-theme main .home-brand-hero .home-hero-chat-actions a.home-hero-chat-button:hover i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.public-theme main.consult-page .doctor-grid .doctor-card .doctor-actions a.consult-primary,
body.public-theme main.consult-page .doctor-grid .doctor-card .doctor-actions a.consult-primary:link,
body.public-theme main.consult-page .doctor-grid .doctor-card .doctor-actions a.consult-primary:visited,
body.public-theme main.consult-page .doctor-grid .doctor-card .doctor-actions button.consult-primary {
    background: #0755c8 !important;
    background-color: #0755c8 !important;
    border: 1px solid #0755c8 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.public-theme main.consult-page .doctor-grid .doctor-card .doctor-actions a.consult-primary *,
body.public-theme main.consult-page .doctor-grid .doctor-card .doctor-actions a.consult-primary:visited *,
body.public-theme main.consult-page .doctor-grid .doctor-card .doctor-actions button.consult-primary * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.public-theme main.consult-page .doctor-grid .doctor-card .doctor-actions a.consult-primary:hover,
body.public-theme main.consult-page .doctor-grid .doctor-card .doctor-actions a.consult-primary:focus-visible {
    background: #063583 !important;
    background-color: #063583 !important;
    border-color: #063583 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
