/* ==========================================================================
   Sportpharm.kz — main stylesheet
   Plain CSS, no build step required
   ========================================================================== */

:root {
    --blue: #2196e0;
    --blue-dark: #1478bd;
    --blue-deep: #0b2a4a;
    --ink: #102a43;
    --muted: #607d95;
    --line: #dbe7f1;
    --bg: #f4f8fc;
    --white: #ffffff;
    --amber: #f59e0b;
    --green: #16a34a;
    --red: #e2483d;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(13, 51, 84, 0.08);
    --shadow-hover: 0 20px 44px rgba(13, 51, 84, 0.14);
    --container: 1240px;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--blue);
}

h1, h2, h3, h4, h5 {
    margin: 0 0 0.6em;
    line-height: 1.22;
    font-weight: 700;
    color: var(--ink);
}

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

svg {
    fill: currentColor;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    min-height: 50vh;
}

/* --------------------------------------------------------------------------
   Buttons & form controls
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(33, 150, 224, 0.28);
}

.btn--primary:hover {
    background: var(--blue-dark);
    color: #fff;
    box-shadow: 0 12px 24px rgba(20, 120, 189, 0.32);
}

.btn--outline {
    border-color: var(--blue);
    color: var(--blue-dark);
    background: transparent;
}

.btn--outline:hover {
    background: var(--blue);
    color: #fff;
}

.btn--outline-light {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: transparent;
}

.btn--outline-light:hover {
    background: #fff;
    color: var(--blue-deep);
}

.btn--light {
    background: #fff;
    color: var(--blue-deep);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.btn--light:hover {
    color: var(--blue-dark);
    background: #eaf6ff;
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn--large {
    min-height: 52px;
    padding: 15px 30px;
    font-size: 15px;
}

.btn--small {
    min-height: 38px;
    padding: 9px 16px;
    font-size: 12.5px;
}

.btn--wide {
    width: 100%;
}

.btn--icon span {
    display: inline;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.field > span em {
    color: var(--red);
    font-style: normal;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(33, 150, 224, 0.12);
}

.field textarea {
    resize: vertical;
}

.field__error {
    color: var(--red);
    font-size: 12px;
    font-weight: 500;
}

.field--full {
    grid-column: 1 / -1;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
    cursor: pointer;
}

.checkbox input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--blue);
    flex: none;
}

.checkbox a {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Top bar / header / navigation
   -------------------------------------------------------------------------- */

.topbar {
    background: var(--blue-deep);
    color: #cfe4f5;
    font-size: 12.5px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 40px;
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topbar__item svg {
    width: 14px;
    height: 14px;
    fill: var(--blue);
}

.topbar a {
    color: #dbeaf7;
}

.topbar a:hover {
    color: #fff;
}

.topbar__right a {
    position: relative;
    padding-bottom: 1px;
}

.topbar__right a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.topbar__right a:hover::after {
    opacity: 0.6;
}

.site-header {
    position: relative;
    z-index: 60;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 92px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
    color: var(--ink);
}

.logo:hover {
    color: var(--ink);
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--blue), #0d6eb6);
    color: #fff;
    box-shadow: 0 10px 22px rgba(33, 150, 224, 0.3);
}

.logo__mark svg {
    width: 30px;
    height: 30px;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo__text strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--blue-deep);
}

.logo__text small {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
}

.header-search {
    display: flex;
    flex: 1;
    max-width: 520px;
    height: 48px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-search:focus-within {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 150, 224, 0.1);
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 20px;
    font-size: 14px;
}

.header-search input:focus {
    outline: none;
}

.header-search button {
    width: 54px;
    border: 0;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.header-search button:hover {
    background: var(--blue-dark);
}

.header-search button svg {
    width: 20px;
    height: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-action {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 62px;
    padding: 7px 10px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-action:hover {
    background: var(--bg);
    color: var(--blue-dark);
}

.header-action svg {
    width: 22px;
    height: 22px;
    fill: var(--blue-dark);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--amber);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav {
    background: linear-gradient(90deg, var(--blue-deep), #123e69);
    color: #fff;
}

.main-nav__inner {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 50px;
    flex-wrap: wrap;
}

.main-nav__item {
    position: relative;
}

.main-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 13px;
    color: #d8e9f7;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav__link svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.main-nav__link:hover,
.main-nav__link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.main-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 70;
    min-width: 240px;
    padding: 8px;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(10, 38, 64, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.main-nav__item.has-dropdown:hover .main-nav__dropdown,
.main-nav__item.has-dropdown:focus-within .main-nav__dropdown,
.main-nav__item.has-dropdown.is-open .main-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav__dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
}

.main-nav__dropdown a:hover {
    background: var(--bg);
    color: var(--blue-dark);
}

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */

.flash-wrap {
    margin-top: 18px;
}

.flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: flashIn 0.3s ease;
}

.flash--success {
    background: #e8f8ee;
    border: 1px solid #b9e6c9;
    color: #146c36;
}

.flash--error {
    background: #fff1f0;
    border: 1px solid #f5c2be;
    color: #a62a22;
}

.flash__close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    opacity: 0.6;
}

.flash__close:hover {
    opacity: 1;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #0a2744 0%, #0e4d80 48%, #1478bd 100%);
    color: #fff;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 22%, rgba(33, 150, 224, 0.55), transparent 34%),
        radial-gradient(circle at 8% 85%, rgba(33, 150, 224, 0.22), transparent 34%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero__eyebrow svg {
    width: 15px;
    height: 15px;
    fill: #6fc3ff;
}

.hero h1 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.12;
}

.hero h1 span {
    color: #7cc7ff;
}

.hero__content > p {
    max-width: 560px;
    color: #c9e2f4;
    font-size: 16px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 34px;
}

.hero__stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stats div {
    display: flex;
    flex-direction: column;
}

.hero__stats strong {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.hero__stats span {
    font-size: 12px;
    color: #9dc4df;
}

.hero__visual {
    position: relative;
    min-height: 420px;
}

.hero__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(124, 199, 255, 0.3);
}

.hero__ring--one {
    top: 4%;
    left: 8%;
    width: 360px;
    height: 360px;
}

.hero__ring--two {
    top: 16%;
    left: 20%;
    width: 250px;
    height: 250px;
    border-color: rgba(124, 199, 255, 0.18);
}

.hero__card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(9, 38, 65, 0.68);
    box-shadow: 0 22px 50px rgba(2, 18, 33, 0.25);
    backdrop-filter: blur(10px);
}

.hero__card strong {
    display: block;
    font-size: 14px;
    color: #fff;
}

.hero__card span {
    display: block;
    font-size: 12px;
    color: #a9cce5;
}

.hero__card--main {
    top: 16%;
    left: 30%;
    flex-direction: column;
    align-items: flex-start;
    width: 250px;
    padding: 26px;
    animation: floatCard 6s ease-in-out infinite;
}

.hero__card--main strong {
    margin-top: 10px;
    font-size: 18px;
}

.hero__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--blue), #0b5f9e);
    color: #fff;
}

.hero__card-icon svg {
    width: 27px;
    height: 27px;
}

.hero__card-icon--blue {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, #38a8ee, #1478bd);
}

.hero__card--rx {
    top: 4%;
    right: 0;
    max-width: 260px;
}

.hero__card--delivery {
    bottom: 8%;
    left: 0;
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.18);
    color: #ffc65c;
    font-size: 14px;
    font-weight: 800;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */

.benefits {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f4fd;
    color: var(--blue);
    flex: none;
}

.benefit__icon svg {
    width: 24px;
    height: 24px;
}

.benefit strong {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
}

.benefit span:not(.benefit__icon) {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding: 64px 0;
}

.section--tight {
    padding: 40px 0 56px;
}

.section--muted {
    background: var(--bg);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-head h2 {
    margin-bottom: 0;
    font-size: 32px;
    letter-spacing: -0.6px;
}

.section-head p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.section-head--spaced {
    margin-top: 64px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.section-eyebrow--light {
    color: #7cc7ff;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-dark);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
}

.link-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.link-arrow:hover svg {
    transform: translateX(3px);
}

.link-arrow--small {
    font-size: 12.5px;
}

.empty-state {
    padding: 56px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
    text-align: center;
    color: var(--muted);
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.empty-state .btn {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Category cards
   -------------------------------------------------------------------------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-grid--compact {
    grid-template-columns: repeat(3, 1fr);
}

.category-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 0 rgba(13, 51, 84, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
    border-color: #b9dcf5;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--ink);
}

.category-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(145deg, #e6f4fe, #d1eafb);
    color: var(--blue-dark);
    flex: none;
}

.category-card__icon svg {
    width: 26px;
    height: 26px;
}

.category-card__icon--letter {
    font-size: 21px;
    font-weight: 800;
    color: var(--blue-dark);
}

.category-card__body {
    min-width: 0;
}

.category-card__body strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.category-card__body span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11.5px;
}

.category-card__arrow {
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: #a9c4d8;
    flex: none;
}

.category-card:hover .category-card__arrow {
    color: var(--blue);
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
    border-color: #b9dcf5;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.product-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.82;
    padding: 16px;
    background: #f7fafe;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 17px 17px;
}

.product-card__brand {
    display: block;
    margin-bottom: 5px;
    color: var(--blue-dark);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.product-card__title {
    margin: 0 0 7px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.38;
}

.product-card__title a {
    color: var(--ink);
}

.product-card__title a:hover {
    color: var(--blue-dark);
}

.product-card__desc {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.product-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf3f8;
}

.product-card__price strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.product-card__price small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.product-card--rx .product-card__price strong {
    color: var(--blue-dark);
    font-size: 14px;
}

.product-card__bottom form {
    flex: none;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge--rx {
    background: #fff4dc;
    color: #9a6200;
}

.badge--stock {
    background: #e7f8ee;
    color: #16733a;
}

.badge--out {
    background: #f1f4f7;
    color: #6b7f90;
}

/* --------------------------------------------------------------------------
   Page hero / breadcrumbs
   -------------------------------------------------------------------------- */

.page-hero {
    position: relative;
    padding: 34px 0 42px;
    background:
        radial-gradient(circle at 88% 15%, rgba(33, 150, 224, 0.14), transparent 32%),
        linear-gradient(180deg, #f2f9ff, #eaf5fe);
    border-bottom: 1px solid #dcecf8;
}

.page-hero--small {
    padding: 26px 0 30px;
}

.page-hero h1 {
    margin: 0 0 8px;
    font-size: 36px;
    letter-spacing: -0.8px;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #436a87;
    font-size: 14px;
}

.page-hero__desc {
    max-width: 900px;
    margin-top: 6px;
    color: #436a87;
    font-size: 13.5px;
}

.page-hero__desc p:last-child {
    margin-bottom: 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #7a94a8;
    font-size: 11.5px;
}

.breadcrumbs a {
    color: #5d819b;
}

.breadcrumbs a:hover {
    color: var(--blue-dark);
}

.breadcrumbs--inner {
    margin: 22px 0 0;
}

/* --------------------------------------------------------------------------
   Subcategories / toolbar
   -------------------------------------------------------------------------- */

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px
}

.category-nav-band {
    width: 100%;
    background: #f4f7fb;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    margin-bottom: 28px;
}

.category-nav-band .container {
    max-width: 1280px;
}

.category-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-dark);
    text-decoration: none;
}

.category-nav__back:hover { color: var(--blue); }

.category-nav__group { margin-bottom: 18px; }

.category-nav__label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 10px;
}

.category-nav__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.category-nav__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.category-nav__chip:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
};
}

.subcategory-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.subcategory-card:hover {
    border-color: #b9dcf5;
    box-shadow: 0 8px 20px rgba(13, 51, 84, 0.07);
    transform: translateY(-2px);
    color: var(--ink);
}

.subcategory-card__icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--blue-dark);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    overflow: hidden;
}

.subcategory-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.subcategory-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.subcategory-card__body strong {
    font-size: 13px;
}

.subcategory-card__body span {
    color: var(--muted);
    font-size: 11px;
}

.catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.catalog-tab {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #42647e;
    font-size: 12.5px;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.catalog-tab:hover,
.catalog-tab.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
}

.toolbar__count {
    color: var(--muted);
    font-size: 12.5px;
}

.toolbar__count strong {
    color: var(--ink);
}

.toolbar__sort {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--muted);
}

.toolbar__sort select {
    padding: 7px 30px 7px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}

/* Catalog filters (details/summary) */
.catalog-filters {
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.catalog-filters summary {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.catalog-filters summary::-webkit-details-marker {
    display: none;
}

.catalog-filters[open] summary {
    border-bottom: 1px solid #edf3f8;
}

.catalog-filters__form {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.catalog-filters__row {
    display: grid;
    gap: 6px;
}

.catalog-filters__row label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.catalog-filters__row--inline {
    display: flex;
    align-items: center;
    gap: 16px;
}

.catalog-filters input[type="text"],
.catalog-filters input[type="number"],
.catalog-filters select {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 12.5px;
    color: var(--ink);
}

.catalog-filters__actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 640px) {
    .catalog-filters__row--inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.pagination__item:hover {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.pagination__item.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.pagination__item.is-disabled {
    opacity: 0.45;
}

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */

.product-detail {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 48px;
    align-items: start;
}

.gallery__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 0.9;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f7fafe;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.gallery__main .badge {
    top: 16px;
    left: 16px;
}

.gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.gallery__thumbs button {
    width: 72px;
    height: 72px;
    padding: 6px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.gallery__thumbs button.is-active,
.gallery__thumbs button:hover {
    border-color: var(--blue);
}

.gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail__brand {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-detail h1 {
    margin-bottom: 8px;
    font-size: 30px;
    letter-spacing: -0.6px;
}

.product-detail__sku {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 11.5px;
}

.product-detail__status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.status-pill svg {
    width: 14px;
    height: 14px;
}

.status-pill--rx {
    background: #fff4dc;
    color: #9a6200;
}

.status-pill--stock {
    background: #e7f8ee;
    color: #16733a;
}

.product-detail__stock {
    color: var(--muted);
    font-size: 11.5px;
}

.product-detail__excerpt {
    color: #4c6d86;
    font-size: 13.5px;
    line-height: 1.65;
}

.buy-box {
    margin: 20px 0 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.buy-box--rx {
    border-color: #f2ddb2;
    background: linear-gradient(180deg, #fffaf0, #fffdf8);
}

.buy-box__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.buy-box__price strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.buy-box--rx .buy-box__price strong {
    color: #9a6200;
    font-size: 23px;
}

.buy-box__price span {
    color: var(--muted);
    font-size: 11.5px;
}

.buy-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.buy-form .btn {
    flex: 1;
    white-space: normal;
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    flex: none;
}

.qty button {
    width: 40px;
    height: 46px;
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    font-size: 18px;
    font-weight: 700;
}

.qty button:hover {
    background: var(--bg);
}

.qty input {
    width: 44px;
    height: 46px;
    border: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty input:focus {
    outline: none;
}

.qty--small button {
    width: 32px;
    height: 38px;
    font-size: 16px;
}

.qty--small input {
    width: 36px;
    height: 38px;
    font-size: 13px;
}

.buy-box__note {
    margin: 12px 0 0;
    color: #8a6a2a;
    font-size: 11.5px;
    line-height: 1.5;
}

.buy-box__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 18px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #e6eef5;
    list-style: none;
    color: var(--muted);
    font-size: 11px;
}

.buy-box__benefits li {
    position: relative;
    padding-left: 14px;
}

.buy-box__benefits li::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.product-detail__props {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.prop-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 16px;
    padding: 10px 16px;
    font-size: 12.5px;
}

.prop-row:nth-child(odd) {
    background: #f8fbfe;
}

.prop-row span {
    color: var(--muted);
}

.prop-row strong {
    font-weight: 600;
}

.product-tabs {
    margin-top: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: #f7fafe;
}

.product-tabs__nav button {
    padding: 15px 24px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.product-tabs__nav button:hover {
    color: var(--ink);
}

.product-tabs__nav button.is-active {
    border-bottom-color: var(--blue);
    color: var(--blue-dark);
    background: #fff;
}

.product-tabs__panel {
    display: none;
    padding: 26px 28px;
}

.product-tabs__panel.is-active {
    display: block;
}

/* Rich text */
.rich-text {
    color: #35546c;
    font-size: 14px;
    line-height: 1.75;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin-top: 1.4em;
    margin-bottom: 0.55em;
    color: var(--ink);
}

.rich-text h2 { font-size: 23px; }
.rich-text h3 { font-size: 19px; }
.rich-text h4 { font-size: 16px; }

.rich-text p {
    margin-bottom: 1em;
}

.rich-text img {
    height: auto;
    margin: 18px 0;
    border-radius: 12px;
}

.rich-text ul,
.rich-text ol {
    margin-bottom: 1.1em;
}

.rich-text li {
    margin-bottom: 0.35em;
}

.rich-text blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    border-left: 3px solid var(--blue);
    background: var(--bg);
    border-radius: 0 10px 10px 0;
    color: #35546c;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 13px;
}

.rich-text th,
.rich-text td {
    padding: 9px 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.rich-text th {
    background: var(--bg);
    font-weight: 700;
}

.rich-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Request block */
.detail-request {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: start;
    margin-top: 50px;
    padding: 34px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 10%, rgba(33, 150, 224, 0.12), transparent 36%),
        #f4faff;
    border: 1px solid #d9ecf9;
}

.detail-request h2 {
    font-size: 28px;
    letter-spacing: -0.5px;
}

.detail-request__aside > p {
    color: #4c6d86;
    font-size: 13.5px;
}

.detail-request__contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #d9e8f3;
}

.detail-request__contact span {
    color: var(--muted);
    font-size: 11.5px;
}

.detail-request__contact a {
    color: var(--blue-deep);
    font-size: 21px;
    font-weight: 800;
}

.detail-request__contact small {
    color: var(--muted);
    font-size: 11px;
}

.request-form {
    padding: 24px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.request-form--plain {
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.request-form__head {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.request-form__head h3 {
    margin-bottom: 3px;
    font-size: 16px;
}

.request-form__head p {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.request-form__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #e8f4fd;
    color: var(--blue);
    flex: none;
}

.request-form__icon svg {
    width: 21px;
    height: 21px;
}

.request-form .btn {
    width: 100%;
}

.request-form__note {
    margin: 10px 0 0;
    color: #8a9baa;
    font-size: 10.5px;
    line-height: 1.45;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Articles
   -------------------------------------------------------------------------- */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-grid--blog {
    grid-template-columns: repeat(2, 1fr);
}

.article-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.article-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef6fd;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.04);
}

.article-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.article-card__category {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 9px;
    padding: 4px 9px;
    border-radius: 6px;
    background: #e8f4fd;
    color: var(--blue-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.article-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.35;
}

.article-card h3 a {
    color: var(--ink);
}

.article-card h3 a:hover {
    color: var(--blue-dark);
}

.article-card p {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.article-card__date {
    color: #8ba0b2;
    font-size: 10.5px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 34px;
    align-items: start;
}

.blog-sidebar {
    position: sticky;
    top: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.blog-sidebar h3 {
    margin-bottom: 12px;
    font-size: 15px;
}

.blog-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #42647e;
    font-size: 12.5px;
    font-weight: 500;
}

.blog-category span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.blog-category:hover,
.blog-category.is-active {
    background: #eaf5fe;
    color: var(--blue-dark);
}

.blog-category.is-active span {
    background: var(--blue);
    color: #fff;
}

.article-page {
    padding: 0 0 60px;
}

.article-page__container {
    max-width: 880px;
}

.article-page__head {
    padding: 32px 0 22px;
}

.article-page__head h1 {
    margin: 10px 0 12px;
    font-size: 36px;
    letter-spacing: -0.8px;
}

.article-page__meta {
    display: flex;
    gap: 18px;
    color: #8ba0b2;
    font-size: 11.5px;
}

.article-page__excerpt {
    margin: 16px 0 0;
    padding-left: 18px;
    border-left: 3px solid var(--blue);
    color: #436a87;
    font-size: 15px;
    line-height: 1.65;
}

.article-page__cover {
    margin: 8px 0 28px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #eef6fd;
}

.article-page__cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.rich-text--article {
    font-size: 15px;
    line-height: 1.8;
}

.rich-text--article h2 { font-size: 25px; }
.rich-text--article h3 { font-size: 20px; }

.article-page__footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Brands
   -------------------------------------------------------------------------- */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
    border-color: #b9dcf5;
    box-shadow: 0 10px 24px rgba(13, 51, 84, 0.08);
    color: var(--ink);
}

.brand-card__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(145deg, #e6f4fe, #d1eafb);
    color: var(--blue-dark);
    font-size: 18px;
    font-weight: 800;
    flex: none;
}

.brand-card strong {
    display: block;
    font-size: 12.5px;
    line-height: 1.3;
}

.brand-card span:not(.brand-card__letter) {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10.5px;
}

.brand-card > svg {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: #a9c4d8;
    flex: none;
}

/* --------------------------------------------------------------------------
   Static pages / contacts
   -------------------------------------------------------------------------- */

.page-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.page-content__aside {
    position: sticky;
    top: 20px;
}

.aside-card {
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, #0c3458, #1478bd);
    color: #d5e9f8;
}

.aside-card h3 {
    color: #fff;
    font-size: 18px;
}

.aside-card p {
    font-size: 12.5px;
    line-height: 1.6;
}

.aside-card__phone {
    display: block;
    margin: 14px 0 2px;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.aside-card > span {
    display: block;
    margin-bottom: 16px;
    font-size: 11px;
    color: #9dc4df;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    border-color: #b9dcf5;
    box-shadow: 0 10px 24px rgba(13, 51, 84, 0.07);
    color: var(--ink);
}

.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 11px;
    background: #e8f4fd;
    color: var(--blue);
}

.contact-card__icon svg {
    width: 22px;
    height: 22px;
}

.contact-card > span:not(.contact-card__icon) {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-card strong {
    font-size: 13.5px;
    line-height: 1.4;
}

.contact-card small {
    color: var(--muted);
    font-size: 10.5px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 38px;
    align-items: start;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.contact-form-wrap h2,
.contact-info h2 {
    font-size: 26px;
    letter-spacing: -0.4px;
}

.contact-form-wrap > p,
.contact-info > p {
    color: var(--muted);
    font-size: 13px;
}

.contact-form-wrap > p {
    margin-bottom: 22px;
}

.contact-info ul {
    margin: 20px 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.contact-info li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
}

.contact-info li strong {
    color: var(--muted);
    font-weight: 600;
}

.contact-info__note {
    padding: 16px;
    border-radius: 12px;
    background: #fff8e9;
    border: 1px solid #f4dfb6;
}

.contact-info__note strong {
    display: block;
    margin-bottom: 4px;
    color: #8a5a00;
    font-size: 12.5px;
}

.contact-info__note p {
    margin: 0;
    color: #8a6a2a;
    font-size: 11.5px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search-page-form {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin-top: 18px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
}

.search-page-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(33, 150, 224, 0.12);
}

.search-summary {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 13px;
}

.search-heading {
    margin: 34px 0 18px;
    font-size: 24px;
}

/* --------------------------------------------------------------------------
   Cart / checkout
   -------------------------------------------------------------------------- */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    align-items: start;
}

.cart-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 84px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item__image {
    width: 84px;
    height: 84px;
    padding: 7px;
    border-radius: 10px;
    background: #f7fafe;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item__info {
    min-width: 0;
}

.cart-item__brand {
    display: block;
    color: var(--blue-dark);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cart-item__name {
    display: block;
    margin: 2px 0 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.cart-item__name:hover {
    color: var(--blue-dark);
}

.cart-item__price {
    color: var(--muted);
    font-size: 11px;
}

.cart-item__qty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.cart-item__update {
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    font-size: 9.5px;
    font-weight: 600;
    text-decoration: underline;
}

.cart-item__total {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.cart-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: #f6f9fc;
    color: #8ba0b2;
}

.cart-item__remove:hover {
    background: #fff0ef;
    color: var(--red);
}

.cart-item__remove svg {
    width: 17px;
    height: 17px;
}

.cart-summary {
    position: sticky;
    top: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.cart-summary h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    color: var(--muted);
    font-size: 12.5px;
}

.cart-summary__row strong {
    color: var(--ink);
}

.cart-summary__row--total {
    margin: 8px 0 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
}

.cart-summary__row--total strong {
    color: var(--blue-deep);
    font-size: 20px;
}

.cart-summary .btn + .btn {
    margin-top: 9px;
}

.cart-summary__note {
    margin: 14px 0 0;
    color: #8ba0b2;
    font-size: 10.5px;
    line-height: 1.5;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 32px;
    align-items: start;
}

.checkout-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.checkout-form h2 {
    margin: 0 0 16px;
    font-size: 19px;
}

.checkout-form h2:not(:first-child) {
    margin-top: 26px;
}

.payment-note {
    padding: 16px;
    border: 1px solid #cfe8fb;
    border-radius: 12px;
    background: #f2faff;
}

.payment-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.payment-note p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.checkout-summary {
    position: sticky;
    top: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.checkout-summary h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.checkout-summary__item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.checkout-summary__item strong {
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.checkout-summary__item span {
    color: var(--muted);
}

.checkout-summary__item > span {
    white-space: nowrap;
    font-weight: 600;
    color: var(--ink);
}

.checkout-summary__total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 16px;
    font-size: 14px;
    font-weight: 700;
}

.checkout-summary__total strong {
    color: var(--blue-deep);
    font-size: 20px;
}

.success-box {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
    text-align: center;
}

.success-box__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #e7f8ee;
    color: var(--green);
}

.success-box__icon svg {
    width: 34px;
    height: 34px;
}

.success-box h1 {
    font-size: 28px;
}

.success-box > p {
    color: var(--muted);
    font-size: 13px;
}

.success-box__summary {
    margin: 22px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-align: left;
}

.success-box__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    font-size: 12.5px;
}

.success-box__row--total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.success-box__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Rx banner / prescription note
   -------------------------------------------------------------------------- */

.rx-banner {
    background:
        radial-gradient(circle at 85% 20%, rgba(33, 150, 224, 0.3), transparent 34%),
        linear-gradient(115deg, #092540, #0d4a7a);
    color: #d6eaf8;
}

.rx-banner__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding-top: 58px;
    padding-bottom: 58px;
}

.rx-banner h2 {
    color: #fff;
    font-size: 32px;
    letter-spacing: -0.6px;
}

.rx-banner p {
    color: #a9cce5;
    font-size: 14px;
    line-height: 1.7;
}

.rx-banner .btn {
    margin-top: 8px;
}

.rx-banner__steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rx-step {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.rx-step > span {
    color: #6fc3ff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.rx-step strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.rx-step p {
    margin: 2px 0 0;
    color: #9dc4df;
    font-size: 11.5px;
}

.prescription-note {
    background: #fff8e9;
    border-top: 1px solid #f4dfb6;
}

.prescription-note__inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
}

.prescription-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #ffe9b8;
    color: #9a6200;
    flex: none;
}

.prescription-note__icon svg {
    width: 23px;
    height: 23px;
}

.prescription-note strong {
    display: block;
    margin-bottom: 3px;
    color: #7a4f00;
    font-size: 13.5px;
}

.prescription-note p {
    max-width: 1000px;
    margin: 0;
    color: #8a6a2a;
    font-size: 12px;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: #081f36;
    color: #a9c4d8;
    font-size: 12.5px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-top: 50px;
    padding-bottom: 40px;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.site-footer__col h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.site-footer__col a {
    color: #a9c4d8;
}

.site-footer__col a:hover {
    color: #fff;
}

.logo--footer .logo__text strong {
    color: #fff;
}

.logo--footer .logo__text small {
    color: #7fa3bf;
}

.site-footer__about p {
    max-width: 320px;
    margin: 14px 0 0;
    color: #8fb0c9;
    font-size: 11.5px;
    line-height: 1.6;
}

.site-footer__socials {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #cfe4f5;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.site-footer__socials a:hover {
    border-color: var(--blue);
    background: rgba(33, 150, 224, 0.18);
    color: #fff;
}

.site-footer__phone {
    color: #fff !important;
    font-size: 19px;
    font-weight: 800;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
    color: #6f92ad;
    font-size: 10.5px;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(33, 150, 224, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits__grid,
    .contact-grid,
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__inner {
        gap: 28px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .main-nav__link {
        padding: 13px 10px;
        font-size: 12px;
    }

    .product-detail {
        gap: 30px;
    }

    .site-footer__grid {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .topbar__right,
    .topbar__hours {
        display: none;
    }

    .site-header__inner {
        gap: 14px;
        min-height: 78px;
    }

    .logo__mark {
        width: 44px;
        height: 44px;
    }

    .logo__text strong {
        font-size: 20px;
    }

    .logo__text small {
        font-size: 9px;
    }

    .header-search {
        display: none;
    }

    .header-actions .header-action span {
        display: none;
    }

    .header-action {
        min-width: auto;
        padding: 6px 8px;
    }

    .menu-toggle {
        display: flex;
        margin-left: 4px;
    }

    .main-nav {
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav__inner {
        flex-direction: column;
        align-items: stretch;
        padding-top: 6px;
        padding-bottom: 12px;
    }

    .main-nav__link {
        padding: 11px 12px;
        border-radius: 8px;
    }

    .main-nav__item.has-dropdown .main-nav__dropdown {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 8px;
        margin-bottom: 4px;
        padding: 4px;
    }

    .main-nav__dropdown a {
        color: #cfe4f5;
        font-size: 12px;
    }

    .main-nav__dropdown a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .hero__visual {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail__gallery {
        max-width: 520px;
    }

    .detail-request {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary,
    .checkout-summary {
        position: static;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .page-content {
        grid-template-columns: 1fr;
    }

    .page-content__aside {
        position: static;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .rx-banner__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-page__head h1 {
        font-size: 29px;
    }
}

@media (max-width: 680px) {
    .container {
        padding: 0 16px;
    }

    .topbar__left {
        gap: 12px;
    }

    .topbar__item:not(:first-child) {
        display: none;
    }

    .section {
        padding: 44px 0;
    }

    .section--tight {
        padding: 28px 0 40px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-head h2 {
        font-size: 25px;
    }

    .section-head--spaced {
        margin-top: 40px;
    }

    .hero h1 {
        font-size: 30px;
        letter-spacing: -0.6px;
    }

    .hero__content > p {
        font-size: 14px;
    }

    .hero__stats {
        gap: 22px;
    }

    .hero__stats strong {
        font-size: 21px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .category-grid,
    .category-grid--compact,
    .product-grid,
    .article-grid,
    .article-grid--blog,
    .brand-grid,
    .subcategory-grid,
    .benefits__grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card__image {
        aspect-ratio: 1 / 1;
        padding: 10px;
    }

    .product-card__body {
        padding: 12px;
    }

    .product-card__title {
        font-size: 12px;
    }

    .product-card__desc {
        display: none;
    }

    .product-card__bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .product-card__bottom .btn {
        width: 100%;
    }

    .badge {
        top: 8px;
        left: 8px;
        font-size: 8px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero {
        padding: 26px 0 30px;
    }

    .toolbar {
        padding: 10px 12px;
    }

    .product-detail h1 {
        font-size: 24px;
    }

    .buy-box {
        padding: 16px;
    }

    .buy-form {
        flex-wrap: wrap;
    }

    .buy-form .qty {
        flex: 1;
        justify-content: center;
    }

    .buy-form .btn {
        flex-basis: 100%;
    }

    .product-tabs__nav button {
        padding: 12px 14px;
        font-size: 12px;
    }

    .product-tabs__panel {
        padding: 18px;
    }

    .detail-request {
        padding: 20px;
    }

    .request-form {
        padding: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 64px 1fr auto;
        gap: 10px;
        padding: 12px;
    }

    .cart-item__image {
        width: 64px;
        height: 64px;
        grid-row: span 2;
    }

    .cart-item__qty {
        grid-column: 2;
        align-items: flex-start;
    }

    .cart-item__total {
        grid-column: 3;
        grid-row: 2;
    }

    .cart-item > form:last-child {
        grid-column: 3;
        grid-row: 1;
    }

    .contact-layout,
    .checkout-form,
    .cart-summary,
    .checkout-summary {
        padding: 18px;
    }

    .article-page__head h1 {
        font-size: 24px;
    }

    .article-page__footer .btn {
        width: 100%;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding-top: 36px;
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        gap: 5px;
    }

    .success-box {
        padding: 26px 18px;
    }

    .prescription-note__inner {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .search-page-form {
        flex-wrap: wrap;
    }

    .search-page-form .btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .logo__text small {
        display: none;
    }
}
.main-nav__dropdown--wide {
    min-width: 460px;
    max-width: 640px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 12px;
    padding: 10px 12px;
    max-height: 70vh;
    overflow-y: auto;
}
.main-nav__dropdown-group { padding: 2px 0; }
.main-nav__dropdown-title {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--blue-dark, #1565c0);
    padding: 4px 8px;
    border-radius: 6px;
}
.main-nav__dropdown-title:hover { background: #f0f6fc; }
.main-nav__dropdown--wide a:not(.main-nav__dropdown-title) {
    font-size: 12px;
    padding: 3px 8px 3px 18px;
    border-radius: 6px;
}
.site-footer__sub {
    padding-left: 14px !important;
    font-size: 12.5px;
    opacity: 0.85;
}
