/* MedNova Shared Design System — brand: navy #11208B + lime #98D017 */

/* ── Page hero banner ── */
.page-hero {
    background: linear-gradient(135deg, #11208B 0%, #0d1a6e 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

/* ── Section layout ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
@media (min-width: 768px) {
    .section-title { font-size: 1.25rem; }
}
.section-viewall {
    color: #11208B;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: color 0.15s;
}
.section-viewall:hover { color: #0d1a6e; text-decoration: underline; }

/* ── Product card (horizontal scroll) ── */
.prod-card {
    width: 150px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    display: block;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.prod-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); }

/* ── Buttons ── */
.btn-cta {
    background: #98D017;
    color: #111827;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: inline-block;
    text-decoration: none;
}
.btn-cta:hover { background: #86bb14; }
.btn-cta:active { transform: scale(0.98); }

.btn-brand {
    background: #11208B;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: inline-block;
    text-decoration: none;
}
.btn-brand:hover { background: #0d1a6e; color: white; }
.btn-brand:active { transform: scale(0.98); }

/* ── Form inputs ── */
.form-input {
    width: 100%;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-size: 14px;
    background: white;
}
.form-input:focus {
    border-color: #11208B;
    box-shadow: 0 0 0 3px rgba(17,32,139,0.1);
}

/* ── Alert boxes ── */
.alert-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 14px;
}
.alert-success {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #15803d;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 14px;
}
.alert-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 14px;
}

/* ── Product badges ── */
.badge-sold {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #1f2937;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.badge-discount {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #f97316;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.badge-popular {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #98D017;
    color: #111827;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.badge-new {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #11208B;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Star rating row ── */
.star-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}
.star-row .fa-star { color: #facc15; font-size: 10px; }
.star-row .count { color: #9ca3af; font-size: 9px; margin-left: 2px; }

/* ── Horizontal scroll container ── */
.scroll-row {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row-inner {
    display: flex;
    gap: 12px;
    padding: 0 1rem;
    min-width: max-content;
}

/* ── Promo banner ── */
.promo-banner {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #11208B 0%, #0d1a6e 100%);
    display: flex;
    align-items: center;
    min-height: 110px;
    padding: 1rem 1.25rem;
}
@media (min-width: 768px) {
    .promo-banner { min-height: 160px; padding: 1.5rem 2rem; }
}
.promo-banner::after {
    content: '';
    position: absolute;
    top: -30%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: rgba(152,208,23,0.08);
    border-radius: 50%;
}

/* ── Sticky header helper ── */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: white;
}

/* ── Customer sidebar active state ── */
.sidebar-link-active {
    background: #11208B;
    color: white;
}
.sidebar-link-active i { color: white; }
