/**
 * Frontend marketing shortcodes — buttons, carousel, shared shop-style product cards.
 */

/* ── Shared buttons ───────────────────────────────────────── */

.pharma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.pharma-btn--sign-in {
    background: #0e99db;
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 153, 219, 0.25);
}

.pharma-btn--sign-in:hover {
    background: #0b7eb8;
    color: #fff;
}

/* Provider Access — glass outline (hero / dark backgrounds) */
.pharma-btn--provider-access {
    border-radius: 10px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
}

.pharma-btn--provider-access:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.pharma-btn--provider-access:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* ── Shop-style product card (carousel + marketing) ───────── */

.pharma-shop-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(14, 30, 57, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pharma-shop-card:hover {
    transform: translateY(-2px);
    border-color: #d8e4f0;
    box-shadow: 0 6px 18px rgba(14, 30, 57, 0.08);
}

.pharma-shop-card__media {
    display: block;
    text-decoration: none;
    background: #fff;
}

.pharma-shop-card__media-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.pharma-shop-card__img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
}

.pharma-shop-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.pharma-shop-badge {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 2px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    background: #f2f7fd;
    color: #2563eb;
    font-family: Inter, system-ui, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pharma-shop-card__name {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pharma-shop-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pharma-shop-card:hover .pharma-shop-card__name a {
    color: #2563eb;
}

.pharma-shop-card__cta.pharma-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    align-self: flex-start;
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid #3182ce;
    border-radius: 9999px;
    background: #3182ce;
    color: #fff !important;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pharma-shop-card__cta.pharma-add-to-cart-btn:hover {
    background: #2b6cb0;
    border-color: #2b6cb0;
    color: #fff !important;
}

/* ── Product carousel ─────────────────────────────────────── */

.pharma-products-carousel {
    position: relative;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    margin: 1.5rem 0;
}

.pharma-products-carousel__viewport {
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.pharma-products-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.pharma-products-carousel__track::-webkit-scrollbar {
    display: none;
}

.pharma-products-carousel__card {
    flex: 0 0 min(300px, 85vw);
    scroll-snap-align: start;
    max-width: 300px;
}

.pharma-products-carousel__nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pharma-products-carousel__btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pharma-products-carousel__btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pharma-products-carousel__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .pharma-products-carousel__nav {
        justify-content: center;
    }
}

/* ── Single product summary (right column) ─────────────────── */

.pharma-product-summary {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

.pharma-product-summary__category {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: #dc2626;
}

.pharma-product-summary__title {
    margin: 0 0 1.25rem;
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0b1f3a;
}

.pharma-product-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pharma-btn--apply-account {
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    background: #0b1f3a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 31, 58, 0.18);
}

.pharma-btn--apply-account:hover {
    background: #132d52;
    color: #fff;
}

.pharma-btn--provider-login {
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    background: #fff;
    color: #0b1f3a;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.pharma-btn--provider-login:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0b1f3a;
}

.pharma-product-summary__sign-in {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.pharma-product-summary__sign-in a {
    color: #0b1f3a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pharma-product-summary__commerce {
    margin-bottom: 1.25rem;
}

.pharma-product-summary__price {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b1f3a;
}

.pharma-product-summary__price .woocommerce-Price-amount {
    font-weight: 700;
}

.pharma-product-summary__add-to-cart .cart {
    margin: 0;
}

.pharma-product-summary__add-to-cart .quantity {
    margin-bottom: 0.75rem;
}

.pharma-product-summary__add-to-cart .single_add_to_cart_button {
    border-radius: 10px !important;
    background: #0b1f3a !important;
    font-weight: 600;
}

.pharma-product-summary__coa {
    margin-bottom: 1.5rem;
}

.pharma-product-summary__coa-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.pharma-product-summary__coa-icon {
    display: inline-flex;
    color: #2563eb;
    flex-shrink: 0;
}

.pharma-product-summary__coa-text {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
}

.pharma-product-summary__coa-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

.pharma-product-summary__coa-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.pharma-product-summary__about-heading {
    margin: 0 0 0.75rem;
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0b1f3a;
}

.pharma-product-summary__description {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #475569;
}

.pharma-product-summary__description p {
    margin: 0 0 0.75rem;
}

.pharma-product-summary__description p:last-child {
    margin-bottom: 0;
}
