homework/wwwroot/css/site.css

1379 lines
25 KiB
CSS

:root {
--bg-body: #f3f5f8;
--bg-surface: #ffffff;
--bg-soft: #edf0f6;
--text-primary: #1d232b;
--text-secondary: #6b7684;
--border: #e2e7ed;
--accent: #f05a2b;
--accent-hover: #d84922;
--accent-soft: rgba(240, 90, 43, 0.08);
--danger: #d3322b;
--badge-hit: #e31e24;
--badge-new: #1fa356;
--badge-hot: #f05a2b;
--ink: #1b1f27;
--ink-text: #aab3be;
--ink-muted: #7e8895;
--icon-muted: #5b6b7c;
--icon-bg: #eef1f5;
--radius: 10px;
--radius-sm: 8px;
--transition: 0.15s ease;
}
body {
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
line-height: 1.6;
background-color: var(--bg-body);
color: var(--text-primary);
}
h1, h2, h3, h4, h5 {
font-weight: 700;
line-height: 1.3;
color: var(--text-primary);
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
color: var(--accent-hover);
text-decoration: underline;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
img, .bi {
display: inline-block;
vertical-align: middle;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
overflow-x: hidden;
padding: 0 clamp(0.5rem, 1.6vw, 1.75rem);
}
.container {
padding-right: max(var(--bs-gutter-x, 1.5rem) * 0.5, 0.75rem);
padding-left: max(var(--bs-gutter-x, 1.5rem) * 0.5, 0.75rem);
}
.site-main {
flex: 1;
padding: 2rem 0 3rem;
}
.topbar {
background: var(--ink);
color: var(--ink-text);
font-size: 0.82rem;
margin-top: clamp(0.5rem, 1.2vw, 1.25rem);
border-radius: var(--radius);
box-shadow: 0 2px 10px rgba(20, 30, 55, 0.06);
}
.topbar__inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
padding: 0.45rem 1rem;
}
.topbar__item {
display: inline-flex;
align-items: center;
gap: 0.4rem;
white-space: nowrap;
}
.topbar__nav {
display: inline-flex;
align-items: center;
gap: 1.1rem;
}
.topbar__nav a {
color: var(--ink-text);
font-size: 0.82rem;
white-space: nowrap;
}
.topbar__nav a:hover {
color: #ffffff;
text-decoration: none;
}
.site-header {
background: var(--bg-surface);
border-bottom: 1px solid var(--border);
box-shadow: 0 2px 10px rgba(20, 30, 55, 0.05);
border-radius: var(--radius);
margin-top: 0.5rem;
}
.header-main {
display: flex;
align-items: center;
gap: 1.25rem;
padding: 0.75rem 1rem;
}
.navbar-brand {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-weight: 800;
font-size: 1.12rem;
color: var(--text-primary);
white-space: nowrap;
text-decoration: none;
}
.navbar-brand:hover {
color: var(--accent);
text-decoration: none;
}
.brand-badge {
width: 34px;
height: 34px;
border-radius: 9px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1rem;
color: #ffffff;
background: var(--accent);
}
.header-search {
display: flex;
flex: 1;
max-width: 540px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
overflow: hidden;
transition: border-color var(--transition);
}
.header-search:focus-within {
border-color: var(--accent);
}
.header-search__input {
flex: 1;
border: none;
outline: none;
padding: 0.55rem 0.85rem;
font-size: 0.92rem;
color: var(--text-primary);
background: var(--bg-surface);
}
.header-search__input::placeholder {
color: var(--text-secondary);
opacity: 0.8;
}
.header-search__btn {
border: none;
background: var(--accent);
color: #ffffff;
padding: 0 0.85rem;
cursor: pointer;
font-size: 1.05rem;
transition: background-color var(--transition);
}
.header-search__btn:hover {
background: var(--accent-hover);
}
.header-actions {
display: flex;
align-items: center;
gap: 0.15rem;
}
.theme-toggle {
width: 36px;
height: 36px;
flex-shrink: 0;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-surface);
color: var(--text-primary);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.05rem;
line-height: 1;
cursor: pointer;
transition: border-color var(--transition), color var(--transition);
}
.theme-toggle:hover {
border-color: var(--accent);
color: var(--accent);
}
.header-action {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.05rem;
padding: 0.3rem 0.55rem;
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: 0.7rem;
white-space: nowrap;
text-decoration: none;
transition: color var(--transition);
}
.header-action:hover {
color: var(--accent);
text-decoration: none;
}
.header-action__icon {
font-size: 1.15rem;
line-height: 1;
}
.header-action__label {
font-weight: 600;
line-height: 1;
}
.category-nav {
background: var(--bg-surface);
border-bottom: 1px solid var(--border);
font-size: 0.92rem;
font-weight: 600;
border-radius: var(--radius);
margin-top: 0.5rem;
}
.category-nav__inner {
display: flex;
align-items: center;
gap: 0.05rem;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
padding: 0 0.75rem;
}
.category-nav__inner::-webkit-scrollbar {
display: none;
}
.category-nav__all {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.6rem 0.85rem;
color: #ffffff;
background: var(--accent);
border-radius: var(--radius-sm);
white-space: nowrap;
font-weight: 700;
font-size: 0.88rem;
text-decoration: none;
transition: background-color var(--transition);
}
.category-nav__all:hover {
background: var(--accent-hover);
color: #ffffff;
text-decoration: none;
}
.category-nav__link {
display: inline-block;
padding: 0.6rem 0.75rem;
color: var(--text-secondary);
white-space: nowrap;
font-weight: 600;
font-size: 0.88rem;
border-bottom: 2px solid transparent;
transition: color var(--transition), border-color var(--transition);
}
.category-nav__link.nav-link--active {
color: var(--accent);
border-bottom-color: var(--accent);
}
.category-nav__link:hover {
color: var(--accent);
text-decoration: none;
}
.btn {
border-radius: var(--radius-sm);
font-weight: 600;
padding: 0.55rem 1.1rem;
transition: background-color var(--transition), border-color var(--transition),
box-shadow var(--transition), transform var(--transition);
}
.btn-primary {
--bs-btn-bg: var(--accent);
--bs-btn-border-color: var(--accent);
--bs-btn-hover-bg: var(--accent-hover);
--bs-btn-hover-border-color: var(--accent-hover);
--bs-btn-active-bg: var(--accent-hover);
--bs-btn-active-border-color: var(--accent-hover);
}
.btn-primary:hover {
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(240, 90, 43, 0.25);
}
.btn-outline-primary {
--bs-btn-color: var(--accent);
--bs-btn-border-color: var(--accent);
--bs-btn-hover-bg: var(--accent);
--bs-btn-hover-border-color: var(--accent);
}
.promo-banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
background: var(--ink);
color: #ffffff;
border-radius: var(--radius);
padding: 2rem 2.5rem;
margin-bottom: 0.5rem;
}
.promo-banner__title {
font-size: 1.65rem;
font-weight: 800;
margin-bottom: 0.5rem;
color: #ffffff;
}
.promo-banner__text {
color: #aab3be;
font-size: 0.95rem;
max-width: 460px;
margin-bottom: 1.25rem;
}
.promo-banner__icon {
font-size: 4.5rem;
color: var(--accent);
opacity: 0.9;
}
.advantages {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.75rem;
margin-bottom: 0.5rem;
}
.advantage {
display: flex;
align-items: center;
gap: 0.75rem;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 0.9rem 1rem;
}
.advantage__icon {
width: 42px;
height: 42px;
flex-shrink: 0;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.15rem;
}
.tint-blue {
background: #e5ecfb;
color: #2b5ce6;
}
.tint-green {
background: #e1f5e9;
color: #178a50;
}
.tint-amber {
background: #faf0da;
color: #a86a12;
}
.tint-violet {
background: #eee7fb;
color: #6d4fd0;
}
.advantage__title {
font-size: 0.9rem;
font-weight: 700;
margin-bottom: 0;
line-height: 1.25;
}
.advantage__text {
font-size: 0.78rem;
color: var(--text-secondary);
margin-bottom: 0;
line-height: 1.35;
}
.home-section {
margin-top: 2rem;
}
.section-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.25rem;
}
.section-overline {
display: block;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 0.3rem;
}
.section-title {
font-size: 1.4rem;
margin-bottom: 0;
}
.section-link {
color: var(--accent);
font-weight: 600;
font-size: 0.88rem;
white-space: nowrap;
}
.page-head {
margin-bottom: 1.5rem;
}
.page-title {
font-size: 1.75rem;
margin-bottom: 0.3rem;
}
.page-subtitle {
color: var(--text-secondary);
font-size: 0.98rem;
margin-bottom: 0;
}
.product-card {
height: 100%;
display: flex;
flex-direction: column;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
position: relative;
transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.product-card:hover {
transform: translateY(-3px);
border-color: #c8cdd5;
box-shadow: 0 6px 18px rgba(20, 30, 55, 0.1);
}
.product-card__media {
height: 165px;
background: var(--icon-bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 3.2rem;
color: var(--icon-muted);
border-bottom: 1px solid var(--border);
}
.product-card__badge {
position: absolute;
top: 10px;
left: 10px;
padding: 0.25rem 0.6rem;
border-radius: 6px;
font-size: 0.72rem;
font-weight: 700;
color: #ffffff;
letter-spacing: 0.02em;
z-index: 2;
}
.badge-hit { background: var(--badge-hit); }
.badge-new { background: var(--badge-new); }
.badge-hot { background: var(--badge-hot); }
.product-card__body {
padding: 1rem 1.1rem 1.15rem;
display: flex;
flex-direction: column;
flex: 1;
}
.product-card__name {
font-size: 0.98rem;
font-weight: 600;
margin-bottom: 0.4rem;
line-height: 1.3;
}
.product-card__specs {
margin-bottom: 0.9rem;
display: flex;
flex-direction: column;
gap: 0.2rem;
font-size: 0.8rem;
color: var(--text-secondary);
}
.product-card__footer {
margin-top: auto;
border-top: 1px solid var(--border);
padding-top: 0.85rem;
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.product-card__price {
font-weight: 800;
font-size: 1.05rem;
color: var(--text-primary);
}
.product-card__btn {
width: 100%;
}
.cta {
background: var(--accent-soft);
border: 1px solid var(--border);
border-radius: var(--radius);
text-align: center;
padding: 2.25rem 1.5rem;
}
.cta__title {
font-size: 1.35rem;
margin-bottom: 0.45rem;
}
.cta__text {
color: var(--text-secondary);
max-width: 500px;
margin: 0 auto 1.25rem;
}
.about-panel {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.5rem;
}
.about-text {
color: var(--text-secondary);
max-width: 680px;
margin-bottom: 0;
}
.block-title {
font-size: 1.3rem;
margin-bottom: 1.1rem;
}
.role {
height: 100%;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.4rem;
transition: box-shadow var(--transition), transform var(--transition);
}
.role:hover {
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(20, 30, 55, 0.1);
}
.role__icon {
width: 44px;
height: 44px;
border-radius: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
color: var(--accent);
background: var(--accent-soft);
margin-bottom: 0.8rem;
}
.role__title {
font-size: 1.05rem;
margin-bottom: 0.3rem;
}
.role__text {
color: var(--text-secondary);
font-size: 0.92rem;
margin-bottom: 0;
}
.steps {
list-style: none;
margin: 0;
padding: 0;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.steps__item {
display: flex;
align-items: center;
gap: 0.9rem;
padding: 0.85rem 1.15rem;
}
.steps__item + .steps__item {
border-top: 1px solid var(--border);
}
.steps__num {
width: 38px;
height: 38px;
flex-shrink: 0;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 0.82rem;
color: var(--accent);
background: var(--accent-soft);
}
.steps__name {
font-weight: 700;
font-size: 0.95rem;
}
.steps__desc {
color: var(--text-secondary);
font-size: 0.86rem;
}
.contacts-panel {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.6rem;
}
.form-heading {
font-size: 1.15rem;
margin-bottom: 1.1rem;
}
.contact-row {
display: flex;
gap: 0.8rem;
align-items: flex-start;
margin-bottom: 1.1rem;
}
.contact-row:last-child {
margin-bottom: 0;
}
.contact-row__icon {
width: 38px;
height: 38px;
flex-shrink: 0;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
color: var(--accent);
background: var(--accent-soft);
}
.contact-row__label {
font-weight: 700;
font-size: 0.88rem;
margin-bottom: 0.05rem;
}
.contact-row__value {
color: var(--text-secondary);
font-size: 0.93rem;
margin-bottom: 0;
overflow-wrap: anywhere;
}
.contact-row__value a {
color: var(--text-primary);
text-decoration: none;
}
.contact-row__value a:hover {
color: var(--accent);
}
.form-control {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-primary);
padding: 0.55rem 0.8rem;
}
.form-control:focus {
background: var(--bg-surface);
color: var(--text-primary);
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(240, 90, 43, 0.12);
}
.form-label {
font-weight: 600;
font-size: 0.88rem;
margin-bottom: 0.3rem;
}
.form-control::placeholder {
color: var(--text-secondary);
opacity: 0.7;
}
.field-validation-error {
display: block;
color: var(--danger);
font-size: 0.84rem;
font-weight: 600;
margin-top: 0.3rem;
}
.input-validation-error {
border-color: var(--danger);
}
.input-validation-error:focus {
border-color: var(--danger);
box-shadow: 0 0 0 3px rgba(211, 50, 43, 0.12);
}
.alert {
border-radius: var(--radius-sm);
margin-bottom: 1.1rem;
}
.alert-success {
--bs-alert-bg: #ecfdf5;
--bs-alert-border-color: #a7f3d0;
--bs-alert-color: #065f46;
}
.site-footer {
background: var(--ink);
color: var(--ink-text);
padding: 2.25rem 0 0;
margin-top: 1rem;
margin-bottom: clamp(0.5rem, 1.2vw, 1.25rem);
border-radius: var(--radius);
overflow: hidden;
}
.footer-logo {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-weight: 800;
font-size: 1.1rem;
color: #ffffff;
margin-bottom: 0.65rem;
}
.footer-logo .brand-badge {
background: var(--accent);
}
.footer-desc {
color: var(--ink-muted);
font-size: 0.9rem;
max-width: 320px;
margin-bottom: 0;
}
.footer-heading {
color: #ffffff;
font-size: 0.82rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.07em;
margin-bottom: 0.85rem;
}
.footer-links {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.4rem;
font-size: 0.9rem;
}
.footer-links a {
color: var(--ink-muted);
text-decoration: none;
}
.footer-links a:hover {
color: #ffffff;
text-decoration: none;
}
.footer-bottom {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
flex-wrap: wrap;
border-top: 1px solid rgba(255, 255, 255, 0.1);
margin-top: 1.7rem;
padding: 1rem 0;
font-size: 0.82rem;
color: var(--ink-muted);
}
.error-page {
text-align: center;
padding: 3rem 0 2rem;
}
.error-code {
font-size: 4.5rem;
font-weight: 800;
line-height: 1;
letter-spacing: -0.03em;
background: linear-gradient(135deg, var(--accent), var(--badge-hit));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
margin-bottom: 0.7rem;
}
.error-title {
font-size: 1.35rem;
margin-bottom: 0.45rem;
}
.error-text {
color: var(--text-secondary);
max-width: 420px;
margin: 0 auto 1.5rem;
}
.error-request-id {
color: var(--text-secondary);
font-size: 0.85rem;
margin-top: 1.2rem;
}
.error-request-id code {
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.1rem 0.45rem;
overflow-wrap: anywhere;
}
html[data-theme="dark"] {
--bg-body: #11151a;
--bg-surface: #1a1f28;
--bg-soft: #222b38;
--text-primary: #e8ecf2;
--text-secondary: #98a3b2;
--border: #2a323f;
--accent: #ff7a45;
--accent-hover: #ff9a6e;
--accent-soft: rgba(255, 122, 69, 0.12);
--danger: #ff6b5e;
--badge-hit: #ff5252;
--badge-new: #4caf70;
--badge-hot: #ff7a45;
--icon-bg: #222b38;
--icon-muted: #98a3b2;
}
html[data-theme="dark"] .tint-blue {
background: #1a2745;
color: #8fb0ff;
}
html[data-theme="dark"] .tint-green {
background: #142f24;
color: #5fce96;
}
html[data-theme="dark"] .tint-amber {
background: #33270f;
color: #e8b45a;
}
html[data-theme="dark"] .tint-violet {
background: #271e42;
color: #b39dff;
}
html[data-theme="dark"] .navbar-toggler-icon {
filter: invert(1) grayscale(1);
}
html[data-theme="dark"] .alert-success {
--bs-alert-bg: rgba(6, 95, 70, 0.25);
--bs-alert-border-color: rgba(6, 95, 70, 0.5);
--bs-alert-color: #6ee7b7;
}
html[data-theme="dark"] .promo-banner {
background: #0d1117;
}
html[data-theme="dark"] .site-footer {
background: #0d1016;
}
html[data-theme="dark"] .form-control:focus {
box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.18);
}
html[data-theme="dark"] .btn-primary:hover {
box-shadow: 0 4px 10px rgba(255, 122, 69, 0.25);
}
.catalog-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 0.75rem 1rem;
margin-bottom: 1.5rem;
}
.catalog-filter {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.catalog-filter__link {
display: inline-block;
padding: 0.4rem 0.8rem;
border-radius: 999px;
font-size: 0.875rem;
font-weight: 600;
color: var(--text-secondary);
background: var(--bg-soft);
transition: background var(--transition), color var(--transition);
}
.catalog-filter__link:hover {
color: var(--accent);
text-decoration: none;
}
.catalog-filter__link.is-active {
color: #fff;
background: var(--accent);
}
.catalog-search {
display: flex;
min-width: 240px;
max-width: 340px;
flex: 1 1 240px;
}
.catalog-search__input {
flex: 1;
border: 1px solid var(--border);
border-right: 0;
border-radius: var(--radius-sm) 0 0 var(--radius-sm);
padding: 0.45rem 0.8rem;
font-size: 0.9rem;
background: var(--bg-body);
color: var(--text-primary);
}
.catalog-search__input:focus {
outline: none;
border-color: var(--accent);
}
.catalog-search__btn {
border: 1px solid var(--accent);
background: var(--accent);
color: #fff;
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
padding: 0 0.9rem;
cursor: pointer;
}
.catalog-search__btn:hover {
background: var(--accent-hover);
}
.catalog-empty {
text-align: center;
padding: 3rem 1rem;
}
.catalog-empty__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
border-radius: 50%;
background: var(--bg-soft);
color: var(--text-secondary);
font-size: 1.6rem;
margin-bottom: 1rem;
}
.catalog-empty__title {
font-size: 1.15rem;
margin-bottom: 0.4rem;
}
.catalog-empty__text {
color: var(--text-secondary);
margin-bottom: 1.2rem;
}
.header-action__badge-wrap {
position: relative;
display: inline-flex;
}
.header-action__count {
position: absolute;
top: -6px;
right: -10px;
min-width: 18px;
height: 18px;
padding: 0 4px;
border-radius: 999px;
background: var(--accent);
color: #fff;
font-size: 0.7rem;
font-weight: 700;
line-height: 18px;
text-align: center;
}
.header-logout {
margin: 0;
}
.header-logout button {
background: none;
border: 0;
cursor: pointer;
}
.auth-panel {
max-width: 460px;
margin: 0 auto;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.75rem;
}
.auth-switch {
margin: 1rem 0 0;
text-align: center;
color: var(--text-secondary);
font-size: 0.9rem;
}
.profile-row {
display: flex;
justify-content: space-between;
gap: 1rem;
padding: 0.75rem 0;
border-bottom: 1px solid var(--border);
}
.profile-row:last-of-type {
border-bottom: 0;
}
.profile-row__label {
color: var(--text-secondary);
}
.profile-row__value {
font-weight: 600;
color: var(--text-primary);
}
.cart-table {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
margin-bottom: 1rem;
}
.cart-row {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--border);
}
.cart-row:last-child {
border-bottom: 0;
}
.cart-row__media {
width: 52px;
height: 52px;
flex: 0 0 52px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
background: var(--bg-soft);
color: var(--accent);
font-size: 1.5rem;
}
.cart-row__info {
flex: 1 1 auto;
min-width: 0;
}
.cart-row__name {
margin: 0;
font-size: 1rem;
}
.cart-row__specs {
margin: 0.15rem 0 0;
color: var(--text-secondary);
font-size: 0.85rem;
}
.cart-row__price {
margin-top: 0.25rem;
font-weight: 700;
}
.cart-row__subtotal {
color: var(--text-secondary);
font-weight: 400;
}
.cart-row__qty {
display: flex;
align-items: center;
gap: 0.4rem;
}
.cart-row__qty input {
width: 72px;
}
.btn-remove {
background: none;
border: 0;
color: var(--text-secondary);
font-size: 1.1rem;
cursor: pointer;
padding: 0.35rem;
}
.btn-remove:hover {
color: var(--danger);
}
.cart-summary {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1rem 1.25rem;
}
.cart-summary__total {
font-size: 1.1rem;
}
.cart-summary__actions {
display: flex;
gap: 0.6rem;
}
@media (max-width: 992px) {
.header-main {
flex-wrap: wrap;
}
.header-search {
order: 3;
max-width: none;
flex-basis: 100%;
}
.promo-banner__icon {
display: none;
}
.advantages {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.site-main {
padding: 1.5rem 0 2rem;
}
.topbar__item--hide-mobile {
display: none;
}
.topbar__inner {
flex-wrap: wrap;
gap: 0.6rem;
}
.category-nav__inner {
gap: 0;
}
.promo-banner {
padding: 1.5rem;
}
.promo-banner__title {
font-size: 1.3rem;
}
.theme-toggle {
margin-top: 0;
}
.header-action__label {
display: none;
}
}
@media (max-width: 576px) {
.hero__title {
font-size: 1.4rem;
}
.advantages {
grid-template-columns: 1fr;
}
.footer-bottom {
flex-direction: column;
align-items: flex-start;
}
.error-code {
font-size: 3.5rem;
}
}