/* Sylius shop pages — Medica layout helpers (catalog, cart, checkout) */

.medica-shop-layout {
    margin-top: 1.5rem;
}

.medica-shop-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.25rem;
}

.medica-shop-sidebar a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 0.35rem 0;
}

.medica-shop-sidebar a:hover {
    color: var(--theme-color, #102888);
}

.medica-products-grid .product-item,
.product-area .product-item {
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.medica-products-grid .product-item:hover,
.product-area .product-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.medica-products-grid .product-img,
.product-area .product-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
}

.medica-products-grid .product-img img,
.product-area .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.medica-products-grid .product-content,
.product-area .product-content {
    padding: 0.85rem 1rem 1.1rem;
}

.medica-products-grid .product-title,
.product-area .product-title {
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    min-height: 2.6em;
}

.medica-products-grid .product-title a {
    color: inherit;
    text-decoration: none;
}

.medica-products-grid .product-price {
    font-weight: 700;
    color: var(--theme-color, #102888);
}

.medica-home-products .product-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.medica-home-products .product-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.medica-home-products .product-img {
    aspect-ratio: 1 / 1;
    max-height: 140px;
    overflow: hidden;
    background: #f7f7f7;
}

.medica-home-products .product-img img {
    width: 100%;
    height: 100%;
    max-height: 140px;
    object-fit: cover;
    display: block;
}

.medica-home-products .product-content {
    padding: 0.65rem 0.7rem 0.5rem;
    flex: 1 1 auto;
}

.medica-home-products .product-title {
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 0;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.medica-home-products .product-title a {
    color: inherit;
    text-decoration: none;
}

.medica-home-products .product-price-bar {
    margin-top: auto;
    padding: 0.55rem 0.7rem;
    border-top: 1px solid #eef0f3;
    background: #f7fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.medica-home-products .product-price {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--theme-color, #102888);
    margin: 0;
}

.medica-home-products-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.65rem;
}

.medica-home-sidebar-col {
    flex: 0 0 auto;
}

.medica-home-products .product-img {
    max-height: 110px;
}

.medica-home-products .product-img img {
    max-height: 110px;
}

.medica-home-products .product-title {
    font-size: 0.72rem;
}

.medica-home-products .product-price {
    font-size: 0.8rem;
}

.medica-home-products .product-content {
    padding: 0.45rem 0.5rem 0.35rem;
}

.medica-home-products .product-price-bar {
    padding: 0.4rem 0.5rem;
}

@media (max-width: 1399.98px) {
    .medica-home-products-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .medica-home-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .medica-home-products .product-img,
    .medica-home-products .product-img img {
        max-height: 120px;
    }
}

@media (max-width: 575.98px) {
    .medica-home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
}

/* Kill leftover template preloader if any */
.preloader {
    display: none !important;
}

/* Full-viewport medical hero (desktop) */
.medica-hero {
    --medica-hero-bg: none;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 70vh;
    margin: 0;
    padding: 3rem 0;
    background-color: #0A0C12;
    background-image: var(--medica-hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.medica-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        105deg,
        rgba(10, 12, 18, 0.90) 0%,
        rgba(16, 40, 136, 0.72) 48%,
        rgba(16, 208, 200, 0.28) 100%
    );
}

.medica-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.medica-hero-content {
    max-width: 36rem;
    color: #fff;
}

.medica-hero-brand {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #fff;
}

.medica-hero-title {
    margin: 0 0 1rem;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
}

.medica-hero-text {
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 32rem;
}

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

.medica-hero-actions .theme-btn2 {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.medica-hero-actions .theme-btn2:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (min-width: 992px) {
    .medica-hero {
        min-height: calc(100dvh - 1px);
        padding: 0;
    }

    .medica-hero-inner {
        min-height: calc(100dvh - 1px);
        display: flex;
        align-items: center;
        padding-top: 4.5rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 991.98px) {
    .medica-hero {
        min-height: 60vh;
        background-position: 70% center;
    }
}

/* Compact header: top + middle merged */
.medica-header .header-top,
.medica-header .header-middle {
    display: none !important;
}

.medica-header-bar {
    background: #fff;
    border-top: 3px solid var(--theme-color, #10D0C8);
    border-bottom: 1px solid #eef0f3;
    padding: 0.55rem 0;
}

.medica-header-bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 52px;
}

.medica-header-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.medica-header-logo img {
    height: 44px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.medica-header-search {
    flex: 1 1 auto;
    max-width: 420px;
}

.medica-header-search .search-content {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dbe1e8;
    border-radius: 999px;
    padding: 2px 4px 2px 12px;
    min-height: 40px;
    transition: border-color 0.15s ease;
}

.medica-header-search .search-content:focus-within {
    border-color: var(--theme-color, #10D0C8);
}

.medica-header-search .form-control {
    border: 0;
    box-shadow: none;
    min-height: 34px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    background: transparent;
}

.medica-header-search .search-btn {
    border: 0;
    background: transparent;
    color: #4b5563;
    padding: 0.35rem 0.75rem;
    font-size: 1rem;
}

.medica-header-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.medica-header-contacts,
.medica-header-switches,
.medica-header-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.medica-header-contacts a,
.medica-header-switches a,
.medica-header-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
}

.medica-header-contacts a:hover,
.medica-header-switches a:hover,
.medica-header-action:hover {
    color: var(--theme-color, #10D0C8);
    background: rgba(16, 208, 200, 0.08);
}

.medica-header-contacts i,
.medica-header-action i {
    font-size: 1.05rem;
    color: var(--theme-color, #10D0C8);
}

.medica-header-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.medica-header-cart-count {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--theme-color, #10D0C8);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.medica-header .main-navigation .navbar {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    min-height: 48px;
}

.medica-header .category-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
}

.medica-header .nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
    padding-left: 1rem;
}

.medica-header .nav-right-link {
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.medica-header .nav-right-link i {
    font-size: 0.95rem;
}

.medica-header .medica-navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.medica-header .medica-navbar-nav .nav-link i {
    font-size: 0.9rem;
    line-height: 1;
    width: 1rem;
    text-align: center;
}

.medica-header-actions {
    gap: 0.85rem !important;
}

.medica-header-cart {
    margin-left: 0.15rem;
}

@media (max-width: 1199.98px) {
    .medica-header-bar-inner {
        gap: 0.75rem;
    }

    .medica-header-search {
        max-width: 280px;
    }
}

@media (max-width: 991.98px) {
    .medica-header-bar-inner {
        min-height: 48px;
    }

    .medica-header-meta {
        gap: 0.35rem;
    }
}

.medica-home-products .product-action-wrap {
    opacity: 0;
}

.medica-home-products .product-item:hover .product-action-wrap {
    opacity: 1;
}

/* Category sidebar */
.medica-home-categories-inner {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 0.85rem 0.55rem;
    position: sticky;
    top: 1.25rem;
}

.medica-home-categories-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-color2, #102888);
    margin: 0 0 0.65rem;
    padding: 0 0.35rem 0.55rem;
    border-bottom: 2px solid var(--theme-color, #10D0C8);
}

.medica-home-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.medica-home-categories-list li + li {
    margin-top: 0.1rem;
}

.medica-home-categories-list a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.35rem;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: background 0.15s ease, color 0.15s ease;
}

.medica-home-categories-list a:hover {
    background: var(--theme-color-light, rgba(16, 208, 200, 0.1));
    color: var(--theme-color2, #102888);
}

.medica-home-categories-list .cat-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.medica-home-categories-list .cat-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.medica-home-categories-list .cat-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

.medica-home-categories-list .cat-count {
    font-size: 0.7rem;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 999px;
    min-width: 1.35rem;
    text-align: center;
    padding: 0.1rem 0.3rem;
}

@media (max-width: 991.98px) {
    .medica-home-categories-inner {
        position: static;
    }
}

.medica-shop-main .site-title {
    font-size: 1.75rem;
}

/* Cart */
.medica-cart-page table,
.medica-checkout-page table {
    width: 100%;
    background: #fff;
}

.medica-cart-items,
.medica-checkout-main {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.25rem;
}

.medica-summary-box,
.medica-cart-summary .medica-summary-box,
.medica-checkout-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
}

.medica-summary-inner h3,
.medica-checkout-sidebar h2,
.medica-checkout-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.medica-cart-page .btn,
.medica-checkout-page .btn {
    border-radius: 4px;
}

.medica-cart-page .btn-primary,
.medica-checkout-page .btn-primary,
.medica-cart-page .theme-btn,
.medica-checkout-page .theme-btn {
    background: var(--theme-color, #102888);
    border-color: var(--theme-color, #102888);
    color: #fff;
}

.medica-cart-page img,
.medica-checkout-page img {
    max-width: 80px;
    height: auto;
}

.medica-cart-page .form-control,
.medica-checkout-page .form-control,
.medica-cart-page .form-select,
.medica-checkout-page .form-select,
.medica-checkout-page select.form-control,
.medica-checkout-page input.form-control,
.medica-checkout-page textarea.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: none;
}

.medica-checkout-page .form-control:focus,
.medica-checkout-page .form-select:focus,
.medica-checkout-page select.form-control:focus {
    border-color: var(--theme-color, #10D0C8);
    box-shadow: 0 0 0 3px var(--theme-color-light, rgba(16, 208, 200, 0.15));
    outline: none;
}

.medica-checkout-page label,
.medica-checkout-page .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    color: #1f2937;
}

.medica-checkout-page .field {
    margin-bottom: 1rem;
}

.medica-checkout-page .field.required > label::after,
.medica-checkout-page .required > label::after {
    content: " *";
    color: #dc2626;
}

.medica-checkout-page .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
}

.medica-checkout-page .form-check-input {
    margin: 0;
    width: 1.1rem;
    height: 1.1rem;
}

.medica-checkout-page .form-check-label {
    margin: 0;
    font-weight: 500;
}

.medica-checkout-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--theme-color, #10D0C8);
    color: var(--theme-color2, #102888);
}

.medica-checkout-main {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.75rem;
}

.medica-checkout-sidebar {
    position: sticky;
    top: 1.5rem;
}

.medica-checkout-steps-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    margin: 0 0 1.5rem;
}

.medica-checkout-steps-item {
    flex: 1 1 140px;
}

.medica-checkout-steps-item a,
.medica-checkout-steps-item > span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    background: #f9fafb;
    min-height: 56px;
}

.medica-checkout-steps-item .step-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #374151;
    flex-shrink: 0;
}

.medica-checkout-steps-item .step-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.medica-checkout-steps-item.is-active a,
.medica-checkout-steps-item.is-active > span {
    border-color: var(--theme-color, #10D0C8);
    background: var(--theme-color-light, rgba(16, 208, 200, 0.08));
    color: var(--theme-color2, #102888);
}

.medica-checkout-steps-item.is-active .step-index {
    background: var(--theme-color, #10D0C8);
    color: #fff;
}

.medica-checkout-steps-item.is-completed a {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.medica-checkout-steps-item.is-completed .step-index {
    background: #16a34a;
    color: #fff;
}

.medica-checkout-navigation {
    border-top: 1px solid #eee;
}

.medica-checkout-navigation .theme-btn,
.medica-checkout-navigation .theme-btn2 {
    min-width: 160px;
    justify-content: center;
    text-align: center;
}

.medica-checkout-navigation .theme-btn.disabled,
.medica-checkout-navigation .theme-btn:disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* Choice cards (shipping/payment) */
.medica-checkout-page .form-check,
.medica-checkout-page [class*="choice"] {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.medica-checkout-page input[type="radio"] {
    accent-color: var(--theme-color, #10D0C8);
}

.medica-checkout-page .invalid-feedback {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.medica-checkout-page .alert {
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

@media (max-width: 991.98px) {
    .medica-checkout-sidebar {
        position: static;
    }

    .medica-checkout-main {
        padding: 1.25rem;
    }
}

/* Order summary — plain block on desktop, collapsible <details> on phones */
.medica-checkout-summary-toggle summary {
    display: none;
}

.medica-checkout-summary-toggle summary::-webkit-details-marker {
    display: none;
}

@media (max-width: 575.98px) {
    .medica-checkout-page {
        font-size: 0.95rem;
    }

    .medica-checkout-main {
        padding: 1rem;
    }

    .medica-checkout-section-title {
        font-size: 1.05rem;
        margin: 1.1rem 0 0.75rem;
    }

    .medica-checkout-steps-list {
        gap: 0.5rem;
        margin-bottom: 1.1rem;
    }

    .medica-checkout-steps-item {
        flex: 1 1 auto;
    }

    .medica-checkout-steps-item a,
    .medica-checkout-steps-item > span {
        justify-content: center;
        padding: 0.6rem;
        min-height: 44px;
    }

    .medica-checkout-steps-item .step-label {
        display: none;
    }

    .medica-summary-box,
    .medica-checkout-sidebar {
        padding: 1rem;
    }

    .medica-checkout-summary-toggle summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-weight: 700;
        font-size: 1rem;
        list-style: none;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid #eee;
    }

    .medica-checkout-summary-toggle summary::after {
        content: "\25BC";
        font-size: 0.7rem;
        color: #6b7280;
        transition: transform 0.2s ease;
    }

    .medica-checkout-summary-toggle[open] summary::after {
        transform: rotate(180deg);
    }
}

/* Product detail — recent / related products (horizontal cards) */
.medica-recent-products {
    width: 100%;
}

.medica-recent-products .site-title {
    font-size: 1.35rem;
    margin: 0;
}

.medica-recent-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.medica-recent-products-grid .product-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    transition: box-shadow 0.2s ease;
}

.medica-recent-products-grid .product-item::before {
    content: none;
    display: none;
}

.medica-recent-products-grid .product-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.medica-recent-products-grid .product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 200px;
    overflow: hidden;
    background: #f7f7f7;
}

.medica-recent-products-grid .product-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.medica-recent-products-grid .product-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    display: block;
    margin: 0;
}

.medica-recent-products-grid .product-action-wrap {
    display: none;
}

.medica-recent-products-grid .product-content {
    padding: 0.75rem 0.9rem 0.35rem;
    flex: 1 1 auto;
}

.medica-recent-products-grid .product-title {
    font-size: 0.9rem;
    line-height: 1.35;
    margin: 0;
    min-height: 2.5em;
}

.medica-recent-products-grid .product-title a {
    color: inherit;
    text-decoration: none;
}

.medica-recent-products-grid .product-price-bar {
    padding: 0.55rem 0.9rem 0.9rem;
}

.medica-recent-products-grid .product-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--theme-color, #102888);
}

@media (max-width: 991.98px) {
    .medica-recent-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    .medica-recent-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .medica-recent-products-grid .product-img,
    .medica-recent-products-grid .product-img img {
        max-height: 150px;
    }
}

/* Product detail */
.medica-product-page {
    background: #fff;
}

.medica-product-page .breadcrumb,
.medica-account-page .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.25rem;
}

.medica-product-page h1,
.medica-product-page .product-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-color2, #102888);
}

.medica-product-page .btn-primary,
.medica-product-page .theme-btn,
.medica-auth-page .btn-primary,
.medica-auth-page .theme-btn,
.medica-account-page .btn-primary,
.medica-account-page .theme-btn {
    background: var(--theme-color, #102888);
    border-color: var(--theme-color, #102888);
    color: #fff;
    border-radius: 4px;
}

.medica-product-page .form-control,
.medica-product-page .form-select,
.medica-auth-page .form-control,
.medica-auth-page .form-select,
.medica-account-page .form-control,
.medica-account-page .form-select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
}

/* Auth */
.medica-auth-page .card,
.medica-auth-page [class*="login"],
.medica-auth-page [class*="register"] {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.75rem;
}

.medica-auth-page h1,
.medica-auth-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-color2, #102888);
    margin-bottom: 1rem;
}

.medica-auth-page a {
    color: var(--theme-color, #102888);
}

/* Register page */
.medica-register-page {
    position: relative;
    isolation: isolate;
    padding: 2.5rem 0 4.5rem;
    overflow: hidden;
}

.medica-register-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(16, 208, 200, 0.16), transparent 42%),
        radial-gradient(circle at 85% 10%, rgba(31, 62, 106, 0.12), transparent 40%),
        linear-gradient(180deg, #f4f8fa 0%, #ffffff 55%, #f7fafb 100%);
}

.medica-register-wrap {
    position: relative;
    z-index: 1;
}

.medica-register-aside {
    height: 100%;
    background: linear-gradient(160deg, #102888 0%, #163250 55%, #0f2a3d 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.medica-register-aside-brand {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.medica-register-aside-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.medica-register-aside-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.medica-register-benefits {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.medica-register-benefits li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.medica-register-benefits .benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 208, 200, 0.2);
    color: #7ff0ec;
    flex-shrink: 0;
}

.medica-register-benefits strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.medica-register-benefits span {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.medica-register-aside-login {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.medica-register-aside-login .theme-btn2 {
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.medica-register-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 12px 40px rgba(15, 42, 61, 0.06);
    height: 100%;
}

.medica-register-header {
    margin-bottom: 1.25rem;
}

.medica-register-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 800;
    color: var(--theme-color2, #102888);
}

.medica-register-subtitle {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.medica-register-section {
    margin-bottom: 1.25rem;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.medica-register-section-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    background: #f7fafb;
    border-bottom: 1px solid #eef2f6;
}

.medica-register-section-head .section-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-color, #10D0C8);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.medica-register-section-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-color2, #102888);
}

.medica-register-section-head p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.medica-register-section-body {
    padding: 1rem;
}

.medica-register-section-body .mb-5 {
    margin-bottom: 0 !important;
}

.medica-register-section-body .h4 {
    display: none;
}

.medica-register-page .form-control,
.medica-register-page input.form-control,
.medica-register-page .form-select {
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
}

.medica-register-page .form-control:focus {
    border-color: var(--theme-color, #10D0C8);
    box-shadow: 0 0 0 3px rgba(16, 208, 200, 0.15);
}

.medica-register-page label,
.medica-register-page .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    margin-bottom: 0.35rem;
}

.medica-register-page .field {
    margin-bottom: 0.9rem;
}

.medica-register-submit {
    margin-top: 0.5rem;
}

.medica-register-submit .theme-btn {
    min-height: 52px;
    justify-content: center;
    font-weight: 700;
}

.medica-register-legal {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.45;
}

.medica-register-page .medica-social-auth {
    margin: 0 0 1.25rem;
}

@media (max-width: 991.98px) {
    .medica-register-page {
        padding-top: 1.5rem;
    }

    .medica-register-aside {
        padding: 1.5rem;
    }

    .medica-register-card {
        padding: 1.25rem;
    }
}

/* Account */
.medica-account-page .list-group {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
}

.medica-account-page .list-group-item {
    border: 0;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}

.medica-account-page .list-group-item.active {
    background: var(--theme-color-light, rgba(16, 208, 200, 0.1));
    color: var(--theme-color2, #102888);
    font-weight: 600;
}

.medica-account-page main,
.medica-account-page .col-lg-9,
.medica-account-page .col-md-9,
.medica-account-page .col-md-8 {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(16, 40, 136, 0.04);
}

/* UX Icons (Sylius Tabler) — Medica does not load Sylius shop CSS */
.icon {
    display: inline-block;
    flex-shrink: 0;
    width: 1.125rem !important;
    height: 1.125rem !important;
    max-width: 1.125rem !important;
    max-height: 1.125rem !important;
    vertical-align: middle;
}

.icon > * {
    stroke-width: 1.75;
}

.icon-xs { width: 0.875rem !important; height: 0.875rem !important; }
.icon-sm { width: 1rem !important; height: 1rem !important; }
.icon-md { width: 1.25rem !important; height: 1.25rem !important; }
.icon-lg { width: 1.5rem !important; height: 1.5rem !important; }
.icon-xl { width: 2rem !important; height: 2rem !important; }

.icon-xs > *,
.icon-sm > *,
.icon-md > * {
    stroke-width: 2;
}

/* Force tiny icons in account sidebar (SVG Tabler OR Font Awesome) */
.medica-account-page .col-md-3 svg,
.medica-account-page .col-md-4 svg,
.medica-account-page .col-lg-3 svg,
.medica-account-page aside svg,
.medica-account-page .d-inline-flex svg,
.medica-account-page a.svg-icon,
.medica-account-page svg.icon,
.medica-account-sidebar svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    flex: 0 0 16px !important;
}

.medica-account-page .col-md-3 a.d-flex,
.medica-account-page .col-md-4 a.d-flex,
.medica-account-page .col-lg-3 a.d-flex,
.medica-account-page .d-inline-flex > a {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.7rem !important;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.25;
    color: #374151 !important;
    text-decoration: none !important;
}

.medica-account-page .col-md-3 .h3,
.medica-account-page .col-md-4 .h3,
.medica-account-page .col-lg-3 .h3 {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-slate, #7898B0) !important;
    margin: 0 0 0.75rem !important;
    padding: 0 0.65rem;
}

/* Account sidebar navigation */
.medica-account-sidebar {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 1rem 0.85rem;
    box-shadow: 0 8px 24px rgba(16, 40, 136, 0.04);
}

.medica-account-page .medica-account-sidebar nav,
.medica-account-page .medica-account-sidebar aside {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.medica-account-nav-title {
    margin: 0 0 0.75rem;
    padding: 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-slate, #7898B0);
}

.medica-account-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.medica-account-nav-list--logout {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.medica-account-nav-link--logout {
    color: #b42318;
}

.medica-account-nav-link--logout:hover {
    background: rgba(180, 35, 24, 0.08);
    color: #912018;
}

.medica-account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.25;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.medica-account-nav-link:hover {
    background: rgba(16, 208, 200, 0.08);
    color: var(--theme-color2, #102888);
}

.medica-account-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 7px;
    background: #f3f6f9;
    color: var(--theme-color, #10D0C8);
    flex-shrink: 0;
    line-height: 1;
}

.medica-account-nav-icon i,
.medica-account-nav-icon .fa,
.medica-account-nav-icon .far,
.medica-account-nav-icon .fas,
.medica-account-nav-icon .fal {
    font-size: 0.875rem !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.medica-account-nav-icon .icon,
.medica-account-nav-icon svg,
.medica-account-page .medica-account-nav svg,
.medica-account-page .medica-account-nav .icon {
    width: 0.95rem !important;
    height: 0.95rem !important;
    max-width: 0.95rem !important;
    max-height: 0.95rem !important;
    display: block;
}

.medica-account-nav-label {
    flex: 1 1 auto;
    min-width: 0;
}

.medica-account-nav-item.is-active .medica-account-nav-link {
    background: linear-gradient(90deg, rgba(16, 208, 200, 0.16), rgba(16, 40, 136, 0.06));
    color: var(--theme-color2, #102888);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--theme-color, #10D0C8);
}

.medica-account-nav-item.is-active .medica-account-nav-icon {
    background: rgba(16, 208, 200, 0.18);
    color: var(--theme-color2, #102888);
}

@media (min-width: 768px) {
    .medica-account-sidebar {
        position: sticky;
        top: 1rem;
    }

    .medica-account-nav-link {
        font-size: 0.9rem;
    }
}

/* Thank you */
.medica-thankyou-page {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 3rem 1.5rem;
    margin-top: 2rem;
}

.medica-thankyou-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-color2, #102888);
}

/* Social auth (Google / Meta) */
.medica-social-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 1.25rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.medica-social-auth-divider::before,
.medica-social-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.medica-social-auth-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .medica-social-auth-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

.medica-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.65rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.medica-social-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: #111827;
}

.medica-social-btn-google i {
    color: #ea4335;
}

.medica-social-btn-meta i {
    color: #1877f2;
}

/* Footer company address / legal lines */
.footer-contact li span {
    display: inline-block;
    max-width: 18rem;
    line-height: 1.45;
}

.footer-list li > span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer logo — white plate so dark/light marks stay readable on dark footer */
.footer-area .footer-logo {
    display: inline-block;
    background: #fff;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
    line-height: 0;
}

.footer-area .footer-logo img {
    margin-bottom: 0;
    display: block;
}

/* Breadcrumb — pharmacy background for all site-breadcrumb pages */
.site-breadcrumb-bg {
    background-image: url("../img/breadcrumb/pharmacy.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

/* dLocal Go transparent checkout */
.dlocal-transparent-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.dlocal-transparent-summary {
    color: #475569;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.dlocal-checkout-fields {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.dlocal-checkout-fields .form-label {
    font-weight: 600;
    color: #334155;
}

.dlocal-card-mount,
.DlocalField {
    background-color: #fff;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#dlocal-pay-button.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hero carousel (Conteúdo → Hero no admin) */
.medica-hero-carousel .hero-slider .owl-stage-outer,
.medica-hero-carousel .hero-slider .owl-stage,
.medica-hero-carousel .hero-slider .owl-item {
    height: 100%;
}

.medica-hero-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #10D0C8;
}

.medica-hero-carousel .hero-slider .owl-dots {
    bottom: 40px;
}

.medica-hero-carousel .hero-slider .owl-nav {
    right: 40px;
    bottom: 32px;
}

/* Notícias */
.medica-article-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.medica-article-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.medica-article-card-img {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.medica-article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.medica-article-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.medica-article-card-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.medica-article-card-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
}

.medica-article-card-title a {
    color: #0f172a;
}

.medica-article-card-title a:hover {
    color: #102888;
}

.medica-article-card-excerpt {
    color: #475569;
    margin: 0;
}

.medica-article-card-link {
    margin-top: auto;
    font-weight: 600;
}

.medica-article-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.medica-article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.medica-article-body {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.75;
}

.medica-article-body h1,
.medica-article-body h2,
.medica-article-body h3 {
    margin: 2rem 0 0.75rem;
    color: #0f172a;
}

.medica-article-body p {
    margin-bottom: 1.1rem;
}

.medica-article-body ul,
.medica-article-body ol {
    margin: 0 0 1.1rem 1.25rem;
    list-style: revert;
}

.medica-article-body blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid #10D0C8;
    background: #f8fafc;
    color: #334155;
}

.medica-article-body img,
.medica-article-body figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.medica-article-body figure {
    margin: 1.5rem 0;
}

.medica-article-body figcaption {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
}

