/*
 * HealthDial Pharmacy storefront theme
 * Loaded after the compiled storefront CSS, so no frontend rebuild is needed.
 * Primary colour comes from Admin > Appearance > Storefront (default #0B8A7A).
 */

:root {
    --hd-mint: #eaf7f4;
    --hd-mint-2: #f5fbf9;
    --hd-ink: #12322e;
    --hd-muted: #5b726e;
    --hd-accent: #ff7a59;
    --hd-shadow: 0 6px 24px rgba(11, 138, 122, 0.08);
    --hd-shadow-hover: 0 12px 32px rgba(11, 138, 122, 0.16);

    --radius-default: 12px;
    --color-black: var(--hd-ink);
    --color-green: #12a150;
    --border-color: #e2efec;
    --border-color-lite: #e8f2f0;
}

body {
    color: var(--hd-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar & header ---------- */
.top-nav-wrap {
    background: var(--color-primary);
    color: #fff;
}

.top-nav-wrap a,
.top-nav-wrap .btn,
.top-nav-wrap i {
    color: #fff !important;
}

.header-wrap {
    background: #fff;
    box-shadow: 0 2px 12px rgba(18, 50, 46, 0.05);
}

.header-column-right-item .count {
    background: var(--hd-accent);
}

.navigation-wrap {
    background: var(--hd-mint-2);
    border-top: 1px solid var(--border-color-lite);
    border-bottom: 1px solid var(--border-color-lite);
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    transition: transform var(--transition-150), box-shadow var(--transition-200), background var(--transition-200);
}

.btn-primary {
    box-shadow: 0 4px 14px var(--color-primary-alpha-30);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--color-primary-alpha-30);
}

/* ---------- Product cards ---------- */
.product-card {
    background: #fff;
    border: 1px solid var(--border-color-lite);
    border-radius: 16px;
    box-shadow: var(--hd-shadow);
    overflow: hidden;
    transition: transform var(--transition-200), box-shadow var(--transition-200);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hd-shadow-hover);
}

.product-card .product-image {
    background: var(--hd-mint);
}

.product-card .product-name {
    color: var(--hd-ink);
    font-weight: 600;
}

.product-card .product-price,
.product-card .special-price {
    color: var(--color-primary);
    font-weight: 700;
}

.product-card .previous-price {
    color: var(--hd-muted);
}

.product-badge .badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.product-badge .badge-danger {
    background: var(--hd-accent);
}

.product-badge .badge-success {
    background: var(--color-primary);
}

/* ---------- Section titles ---------- */
.section-header h2,
.section-title,
.tab-products-header .title {
    color: var(--hd-ink);
    font-weight: 800;
}

/* ---------- Forms ---------- */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-alpha-15);
}

/* ---------- Footer ---------- */
.footer-wrap {
    background: var(--hd-ink);
    color: rgba(255, 255, 255, 0.82);
}

.footer-wrap .title,
.footer-wrap h4,
.footer-wrap h5 {
    color: #fff;
}

.footer-wrap a {
    color: rgba(255, 255, 255, 0.78);
    transition: color var(--transition-150);
}

.footer-wrap a:hover {
    color: #7fe3d4;
}

/* ---------- HealthDial trust strip (footer include) ---------- */
.hd-trust-strip {
    background: var(--hd-mint);
    border-top: 1px solid var(--border-color-lite);
}

.hd-trust-strip .hd-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 22px 0;
}

.hd-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hd-trust-item i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--color-primary);
    background: #fff;
    box-shadow: var(--hd-shadow);
    flex-shrink: 0;
}

.hd-trust-item strong {
    display: block;
    font-size: 14px;
    color: var(--hd-ink);
}

.hd-trust-item span {
    font-size: 12.5px;
    color: var(--hd-muted);
}

@media (max-width: 991px) {
    .hd-trust-strip .hd-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hd-trust-strip .hd-trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .btn {
        transition: none;
    }

    .product-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}
