:root {
    --accent: #ff5a4f;
    --accent-dark: #e54a42;
    --ink: #2a2b31;
    --muted: #777b86;
    --soft: #f4f5f7;
    --line: #e8e9ee;
    --dark: #242526;
    --blue: #2f90d8;
    --green: #2fbf71;
    --amber: #f3bc32;
    --shadow: 0 18px 50px rgba(31, 34, 40, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

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

.topbar {
    border-bottom: 1px solid var(--line);
    color: #6f737c;
    font-size: 12px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 36px;
}

.topbar__spacer,
.nav__spacer {
    flex: 1;
}

.mainbar {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto auto auto;
    gap: 22px;
    align-items: center;
    min-height: 78px;
}

.brand {
    color: var(--ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.brand span {
    color: var(--accent);
}

.brand--footer {
    color: #fff;
}

.search {
    display: grid;
    grid-template-columns: 150px 1fr 84px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.search select,
.search input,
.search button {
    border: 0;
    background: #fff;
    color: var(--ink);
    min-width: 0;
}

.search select {
    padding: 0 14px;
    border-right: 1px solid var(--line);
    color: #555965;
}

.search input {
    padding: 0 16px;
}

.search button {
    background: var(--dark);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.mini-link {
    display: grid;
    gap: 2px;
    min-width: 70px;
    color: #535762;
    font-size: 12px;
}

.mini-link strong {
    color: var(--ink);
    font-size: 13px;
}

.mini-link__icon {
    color: var(--muted);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.nav {
    background: var(--accent);
    color: #fff;
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 46px;
    font-size: 13px;
    font-weight: 700;
}

.nav__inner a {
    opacity: 0.92;
}

.nav__inner a:hover,
.nav__inner a.is-active {
    opacity: 1;
}

.nav__category {
    padding-left: 22px;
    position: relative;
}

.nav__category::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
    box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
    transform: translateY(-50%);
}

.hero {
    background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
}

.hero__inner,
.hero-alt__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.35fr);
    gap: 42px;
    align-items: center;
}

.hero__inner {
    min-height: 460px;
    padding: 48px 0;
}

.hero__copy h1,
.page-hero h1,
.blog-hero h1,
.auth-card h1,
.detail-info h1,
.contact-page h1 {
    margin: 0;
    color: var(--ink);
    font-size: 44px;
    line-height: 1.08;
    font-weight: 800;
}

.hero__copy p {
    max-width: 430px;
    color: var(--muted);
}

.hero__media {
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f3;
    border-radius: 8px;
    overflow: hidden;
}

.hero__media img {
    width: 100%;
    min-height: 340px;
    object-fit: cover;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-dark);
}

.btn--ghost {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.btn--icon {
    width: 42px;
    padding: 0;
    border-color: var(--accent);
    color: var(--accent);
    background: #fff;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: #7d818b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.service-strip {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.service-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-strip__grid div {
    position: relative;
    padding-left: 38px;
}

.service-strip__grid div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.service-strip__grid strong {
    display: block;
    font-size: 14px;
}

.service-strip__grid span {
    color: var(--muted);
    font-size: 12px;
}

.section {
    padding: 64px 0;
}

.section--tight {
    padding-top: 24px;
}

.section--soft {
    background: var(--soft);
}

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

.section__heading h2,
.promo-card h2,
.sale-panel h2,
.faq h2,
.order-summary h2,
.form-panel h2,
.blog-widget h2,
.contact-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.compact-heading {
    margin-top: 28px;
}

.text-link {
    color: var(--accent);
    font-weight: 800;
    font-size: 13px;
}

.sort-pill {
    color: var(--muted);
    font-size: 13px;
}

.sort-pill strong {
    color: var(--accent);
}

.product-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 14px;
}

.product-grid {
    display: grid;
    gap: 18px;
}

.product-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-card {
    position: relative;
    min-width: 0;
    min-height: 330px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

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

.product-card[hidden] {
    display: none;
}

.badge {
    position: absolute;
    right: 16px;
    top: 14px;
    z-index: 2;
    border-radius: 4px;
    padding: 5px 8px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.product-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    margin-bottom: 14px;
}

.product-card__media img {
    max-height: 125px;
    width: 100%;
    object-fit: contain;
}

.product-card__actions {
    position: absolute;
    left: 50%;
    top: 112px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.product-card__actions button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(31, 34, 40, 0.08);
}

.product-card h3,
.post-card h3,
.post-card h2 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.product-card h3 {
    min-height: 44px;
}

.product-card h3 a:hover,
.post-card a:hover {
    color: var(--accent);
}

.stars {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--amber);
    font-size: 13px;
}

.stars small {
    color: var(--muted);
}

.price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.price strong,
.detail-price strong {
    color: var(--ink);
    font-size: 19px;
}

.price del,
.detail-price del {
    color: #a5a8af;
    font-size: 13px;
}

.product-card--sale .price strong {
    color: var(--accent);
}

.promo-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 18px;
}

.promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 20px;
    align-items: center;
    min-height: 190px;
    padding: 30px;
    border-radius: 8px;
    background: #f3f4f6;
    overflow: hidden;
}

.promo-card--wide {
    grid-row: span 2;
    grid-template-columns: minmax(0, 0.85fr) minmax(220px, 1fr);
}

.promo-card p,
.sale-panel p,
.faq p,
.post-card p,
.contact-card p,
.article p,
.blog-hero p,
.form-panel p,
.newsletter p,
.footer p {
    color: var(--muted);
}

.promo-card img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: stretch;
}

.sale-panel,
.faq,
.post-feature {
    border-radius: 8px;
    background: #fff;
    padding: 30px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.countdown span {
    border-radius: 6px;
    background: #fff2f0;
    color: var(--muted);
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
}

.countdown strong {
    display: block;
    color: var(--accent);
    font-size: 20px;
}

.faq details {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.faq summary {
    cursor: pointer;
    padding: 14px 16px;
    color: var(--ink);
    font-weight: 800;
}

.faq details p {
    margin: 0;
    padding: 0 16px 16px;
}

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

.blog-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.post-card img {
    width: 100%;
    height: 170px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--soft);
}

.post-card span {
    display: inline-flex;
    margin-top: 14px;
    border-radius: 4px;
    padding: 4px 8px;
    background: #fff1ef;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    padding: 54px 0 38px;
    background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
}

.breadcrumb {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.product-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.shop-sidebar {
    display: grid;
    gap: 18px;
}

.filter-box,
.blog-widget,
.blog-search,
.contact-card {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 22px;
}

.filter-box h2,
.blog-widget h2 {
    margin-bottom: 14px;
    font-size: 17px;
}

.filter-box a,
.filter-box label,
.blog-widget a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    color: var(--muted);
    font-size: 14px;
}

.filter-box a.is-active,
.filter-box a:hover,
.blog-widget a:hover {
    color: var(--accent);
}

.sale-mini {
    background: #fff4f2;
}

.toolbar,
.horizontal-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.toolbar {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.toolbar__switch,
.horizontal-filter button,
.toolbar select {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 9px 12px;
    font-weight: 700;
}

.toolbar__switch.is-active,
.horizontal-filter button.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.horizontal-filter {
    flex-wrap: wrap;
    justify-content: flex-start;
}

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

.pagination a {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.pagination a.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
    gap: 48px;
    align-items: start;
}

.detail-gallery {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 34px;
    background: #fff;
}

.gallery-zoom {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
}

.detail-gallery__main {
    width: 100%;
    height: 330px;
    object-fit: contain;
}

.thumb-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.thumb-row button {
    width: 64px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

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

.detail-info h1 {
    margin: 10px 0 14px;
    font-size: 32px;
}

.detail-price {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin: 12px 0;
}

.detail-price strong {
    color: var(--accent);
    font-size: 34px;
}

.spec-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.spec-list div,
.spec-table div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
}

.spec-list dt,
.spec-table strong {
    color: var(--ink);
    font-weight: 800;
}

.spec-list dd,
.spec-table span {
    margin: 0;
    color: var(--muted);
}

.variant-row,
.buy-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.variant-row button {
    min-width: 96px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 10px 14px;
    color: var(--ink);
    font-weight: 800;
}

.variant-row button.is-active {
    color: var(--accent);
    border-color: var(--accent);
}

.buy-row {
    margin-top: 26px;
}

.qty {
    display: inline-grid;
    grid-template-columns: 38px 48px 38px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.qty button,
.qty input {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: center;
    font-weight: 800;
}

.qty--small {
    grid-template-columns: 28px 36px 28px;
    height: 34px;
}

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

.tabs__nav {
    display: flex;
    gap: 28px;
    overflow-x: auto;
}

.tabs__nav button {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted);
    padding: 18px 0;
    font-weight: 800;
}

.tabs__nav button.is-active {
    color: var(--ink);
    border-color: var(--accent);
}

.tab-panel {
    display: none;
    padding: 22px 0 0;
}

.tab-panel.is-active {
    display: block;
}

.cart-table {
    display: grid;
    gap: 0;
}

.cart-table__head,
.cart-row {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 140px 120px 140px;
    gap: 18px;
    align-items: center;
}

.cart-table__head {
    min-height: 50px;
    padding: 0 22px;
    background: var(--soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-row {
    padding: 24px 22px;
    border-bottom: 1px solid var(--line);
}

.cart-row__product {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 18px;
    align-items: center;
}

.cart-row__product img {
    height: 74px;
    width: 86px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.cart-row h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.cart-row span {
    color: var(--muted);
    font-size: 12px;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.coupon-form {
    display: grid;
    grid-template-columns: 220px 110px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    margin-right: auto;
}

.coupon-form input,
.coupon-form button {
    border: 0;
    background: #fff;
    padding: 0 12px;
}

.coupon-form button {
    border-left: 1px solid var(--line);
    font-weight: 800;
}

.cart-total {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 12px;
    align-items: baseline;
    min-height: 48px;
    padding: 0 24px;
    background: var(--soft);
    border-radius: 6px;
}

.cart-total strong {
    color: var(--accent);
}

.cart-total small {
    color: var(--muted);
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 46px;
    margin-top: 26px;
    color: var(--muted);
    font-weight: 800;
}

.checkout-steps span.is-active {
    color: var(--accent);
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.form-panel,
.order-summary {
    border-radius: 8px;
    background: #fff;
    padding: 28px;
    border: 1px solid var(--line);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.form-grid label,
.auth-form label,
.blog-search label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.span-2 {
    grid-column: span 2;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.auth-form input,
.blog-search input,
.newsletter__form input,
.comment-box input,
.comment-box textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 12px 14px;
}

textarea {
    min-height: 128px;
    resize: vertical;
}

.order-summary {
    background: #f5f5f6;
}

.order-summary > div,
.order-summary footer {
    display: grid;
    grid-template-columns: 1fr 32px auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #dedfe4;
    font-size: 13px;
}

.order-summary footer {
    border-bottom: 0;
    font-weight: 900;
}

.update-banner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(240px, 1fr);
    align-items: center;
    gap: 30px;
    min-height: 260px;
    border-radius: 8px;
    background: #f3f4f6;
    padding: 36px;
    overflow: hidden;
}

.update-banner img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

.auth-section {
    display: grid;
    place-items: center;
    min-height: 760px;
    padding: 64px 16px;
    background: radial-gradient(circle at 10% 100%, #ffffff 0 22%, transparent 23%), var(--accent);
}

.auth-card {
    width: min(420px, 100%);
    border-radius: 8px;
    background: #f5f5f6;
    padding: 34px;
    box-shadow: var(--shadow);
}

.auth-card--wide {
    width: min(470px, 100%);
}

.auth-card h1 {
    font-size: 32px;
    margin-bottom: 18px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.password-field {
    display: grid;
    grid-template-columns: 1fr 62px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.password-field input,
.password-field button {
    border: 0;
    background: #fff;
}

.password-field button {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.form-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.captcha {
    min-height: 70px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 0 16px;
}

.captcha input,
.switch-line input {
    width: auto;
}

.switch-line {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
}

.switch-line span {
    grid-column: 2;
    color: var(--muted);
    font-weight: 400;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 26px 0 18px;
    color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: #dadce2;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.social-buttons button {
    height: 54px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
}

.auth-switch {
    text-align: center;
    color: var(--muted);
}

.auth-switch a {
    color: var(--ink);
    font-weight: 900;
}

.notice {
    margin: 0 0 18px;
    border-radius: 6px;
    background: #fff2f0;
    color: var(--accent-dark);
    padding: 12px 14px;
    font-weight: 800;
}

.account-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
}

.profile-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 28px;
    text-align: center;
}

.profile-card img {
    width: 132px;
    height: 132px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f2f4;
}

.profile-card h1 {
    margin: 0;
    font-size: 20px;
}

.profile-card p {
    margin: 4px 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.profile-card nav {
    display: grid;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    text-align: left;
}

.profile-card nav a {
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 800;
}

.profile-card nav a.is-active,
.profile-card nav a:hover {
    color: var(--accent);
    background: #fff2f0;
}

.account-main {
    display: grid;
    gap: 24px;
}

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

.account-banners a {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    min-height: 150px;
    border-radius: 8px;
    background: #f3f4f6;
    padding: 24px;
    overflow: hidden;
}

.account-banners strong {
    grid-column: 1;
    font-size: 28px;
    line-height: 1.05;
}

.account-banners span {
    grid-column: 1;
    color: var(--muted);
}

.account-banners img {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 150px;
    max-height: 140px;
    object-fit: contain;
}

.blog-hero {
    background: #f4f5f7;
}

.blog-hero__inner {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 460px);
    gap: 30px;
    align-items: center;
    min-height: 310px;
}

.blog-hero img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.blog-sidebar {
    display: grid;
    gap: 18px;
}

.blog-search {
    background: var(--accent);
}

.blog-search label {
    color: #fff;
}

.blog-widget--dark {
    background: var(--dark);
    border-color: var(--dark);
}

.blog-widget--dark h2,
.blog-widget--dark a {
    color: #fff;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list a {
    border-radius: 4px;
    background: #f4f5f7;
    padding: 7px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.mini-post {
    display: grid !important;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
}

.mini-post img {
    width: 70px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
}

.blog-layout--detail {
    grid-template-columns: 260px minmax(0, 820px);
}

.article h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
}

.article__meta {
    display: flex;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.article > img {
    width: 100%;
    height: 360px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
    margin-bottom: 24px;
}

.article-points {
    display: grid;
    gap: 16px;
    margin: 26px 0;
}

.article-points div {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
}

.article-points strong {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
}

.article-points span {
    color: var(--ink);
    font-weight: 900;
}

.article-points p {
    grid-column: 2;
    margin: -8px 0 0;
}

.article-tags {
    margin-bottom: 28px;
}

.comment-box {
    display: grid;
    gap: 14px;
    border-radius: 8px;
    background: #f4f5f7;
    padding: 24px;
}

.comment-box h2 {
    margin: 0;
}

.contact-page {
    background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}

.map-panel {
    height: 330px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #dbe8ef;
}

.map-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    margin: 34px 0;
}

.contact-card {
    background: #f0f0f2;
}

.contact-card strong,
.contact-card span {
    display: block;
    margin-top: 10px;
}

.contact-card h3 {
    margin: 26px 0 6px;
}

.update-banner--contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.8fr);
}

.hero-alt {
    background: #f7f8fa;
}

.deal-sidebar {
    position: sticky;
    top: 150px;
    border-radius: 8px;
    background: #fff;
    padding: 30px;
    box-shadow: var(--shadow);
}

.deal-sidebar h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
}

.deal-sidebar p {
    color: var(--muted);
}

.deal-sidebar img {
    width: 100%;
    margin-top: 22px;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.category-strip a {
    display: grid;
    place-items: center;
    min-height: 70px;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.post-feature {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: center;
}

.post-feature img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
}

.newsletter {
    background: var(--dark);
    color: #fff;
    padding: 44px 0;
}

.newsletter__inner {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 520px);
    gap: 32px;
    align-items: center;
}

.newsletter h2 {
    margin: 0 0 8px;
}

.newsletter__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.newsletter__form input {
    min-height: 44px;
}

.footer {
    background: var(--dark);
    color: #fff;
    padding: 46px 0 22px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 34px;
}

.footer h3 {
    margin: 0 0 14px;
    font-size: 15px;
}

.footer a {
    display: block;
    color: #c8cbd2;
    margin-top: 8px;
    font-size: 13px;
}

.footer__social {
    display: flex;
    gap: 8px;
}

.footer__social a,
.payment-row span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 24px;
    border-radius: 4px;
    background: #fff;
    color: var(--dark);
    font-weight: 900;
    font-size: 11px;
}

.payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #aeb2bb;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .mainbar {
        grid-template-columns: auto 1fr auto;
    }

    .mini-link {
        display: none;
    }

    .product-grid--five {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .category-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .mainbar {
        grid-template-columns: auto auto;
        gap: 14px;
        min-height: auto;
        padding: 18px 0;
    }

    .search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .nav-toggle {
        display: inline-flex;
        justify-content: center;
        margin-left: auto;
    }

    .nav__inner {
        display: none;
        padding: 14px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav__inner.is-open {
        display: flex;
    }

    .hero__inner,
    .hero-alt__grid,
    .detail-grid,
    .checkout-grid,
    .account-layout,
    .blog-hero__inner,
    .blog-layout,
    .blog-layout--detail,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero__copy h1,
    .page-hero h1,
    .blog-hero h1 {
        font-size: 36px;
    }

    .product-layout,
    .split-layout,
    .promo-grid,
    .footer__grid,
    .newsletter__inner {
        grid-template-columns: 1fr;
    }

    .promo-card,
    .promo-card--wide,
    .update-banner,
    .account-banners a,
    .post-feature {
        grid-template-columns: 1fr;
    }

    .account-banners img {
        grid-column: 1;
        grid-row: auto;
    }

    .shop-sidebar,
    .deal-sidebar {
        position: static;
    }

    .product-grid--four,
    .product-grid--five,
    .blog-grid,
    .blog-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-table__head {
        display: none;
    }

    .cart-row {
        grid-template-columns: 1fr;
        border: 1px solid var(--line);
        border-radius: 8px;
        margin-bottom: 14px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(1120px, calc(100% - 22px));
    }

    .search {
        grid-template-columns: 1fr;
        height: auto;
    }

    .search select,
    .search input,
    .search button {
        min-height: 42px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hero__inner {
        min-height: auto;
    }

    .hero__copy h1,
    .page-hero h1,
    .blog-hero h1,
    .detail-info h1,
    .contact-page h1 {
        font-size: 30px;
    }

    .section {
        padding: 44px 0;
    }

    .section__heading,
    .toolbar,
    .cart-actions,
    .checkout-steps,
    .footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-strip__grid,
    .product-grid--four,
    .product-grid--five,
    .blog-grid,
    .blog-grid--three,
    .form-grid,
    .account-banners,
    .category-strip {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .cart-row__product {
        grid-template-columns: 72px 1fr;
    }

    .coupon-form,
    .newsletter__form {
        grid-template-columns: 1fr;
        height: auto;
    }

    .coupon-form input,
    .coupon-form button {
        min-height: 42px;
    }

    .detail-gallery__main {
        height: 240px;
    }

    .auth-card {
        padding: 24px;
    }
}
