:root {
  --navy: #3b1719;
  --navy-2: #5b2024;
  --blue: #c62828;
  --blue-soft: #fbecec;
  --orange: #d83a2e;
  --green: #2b8a57;
  --text: #202b35;
  --muted: #667582;
  --line: #dfe5ea;
  --bg: #f6f8fa;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(74, 20, 24, .1);
  --radius: 8px;
  --container: 1200px;
  --font: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--white); font-family: var(--font); line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.section { padding: 64px 0; }
.section.grey { background: var(--bg); }
.section-title { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-title h2 { margin: 0; font-size: 30px; line-height: 1.2; color: var(--navy); }
.section-title p { margin: 6px 0 0; color: var(--muted); }
.text-link { color: var(--blue); font-size: 14px; font-weight: 700; }
.text-link:hover { text-decoration: underline; }

.topbar { background: var(--navy); color: #e9f0f5; font-size: 12px; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a:hover { color: white; }
.main-header { background: white; border-bottom: 1px solid var(--line); }
.header-main { min-height: 78px; display: grid; grid-template-columns: 220px minmax(280px, 1fr) auto; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; color: var(--navy); }
.brand-name { font-size: 26px; font-weight: 800; letter-spacing: -.7px; line-height: 1; }
.main-header .brand-name { color: var(--blue); }
.brand-tag { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 700; }
.search { position: relative; }
.search input { width: 100%; height: 46px; border: 1px solid #cfd8df; border-radius: 6px; padding: 0 48px 0 15px; outline: none; background: #fbfcfd; }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(198,40,40,.12); }
.search button { position: absolute; right: 0; top: 0; width: 46px; height: 46px; border: 0; background: var(--blue); color: white; border-radius: 0 6px 6px 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-action { min-height: 42px; padding: 0 10px; display: flex; align-items: center; gap: 9px; color: var(--navy); font-size: 13px; font-weight: 700; }
.header-action-icon { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: white; position: relative; }
.cart-count { position: absolute; right: -7px; top: -7px; min-width: 19px; height: 19px; border-radius: 20px; display: grid; place-items: center; padding: 0 5px; background: var(--orange); color: white; font-size: 10px; }
.category-nav { border-bottom: 1px solid var(--line); background: white; }
.category-nav-inner { height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 700; }
.nav-links a { padding: 15px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.all-products { color: white !important; background: var(--blue); padding: 9px 16px !important; border-radius: 5px; }
.technical-link { color: var(--blue); font-weight: 700; font-size: 13px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 5px; background: white; }

.btn { min-height: 46px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--blue); border-radius: 5px; background: var(--blue); color: white; font-weight: 700; font-size: 14px; transition: .18s ease; }
.btn:hover { background: #a91f1f; border-color: #a91f1f; }
.btn-orange { background: var(--orange); border-color: var(--orange); }
.btn-orange:hover { background: #d87516; border-color: #d87516; }
.btn-outline { background: white; color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue); }
.btn-dark { background: var(--navy); border-color: var(--navy); }
.btn-dark:hover { background: #071d2e; border-color: #071d2e; }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 12px; }

.hero { background: #e7edf2; }
.hero-wrap { min-height: 490px; position: relative; overflow: hidden; border-radius: 0; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(49,12,15,.92) 0%, rgba(61,17,20,.82) 37%, rgba(61,17,20,.22) 70%, rgba(61,17,20,.05) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 620px; padding: 76px 0; color: white; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 4px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.hero h1 { margin: 18px 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -1.5px; }
.hero p { margin: 0 0 28px; max-width: 560px; color: #e4edf3; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stat { margin-top: 35px; display: flex; gap: 30px; color: #d7e2e9; font-size: 12px; }
.hero-stat strong { color: white; display: block; font-size: 18px; }

.service-strip { border-bottom: 1px solid var(--line); background: white; }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.service-item { min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-right: 1px solid var(--line); }
.service-item:first-child { border-left: 1px solid var(--line); }
.service-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.service-item strong { display: block; color: var(--navy); font-size: 13px; }
.service-item span { color: var(--muted); font-size: 11px; }

.category-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.category-card { min-height: 160px; padding: 20px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .2s ease; }
.category-card:hover { border-color: #9fc8e5; box-shadow: var(--shadow); transform: translateY(-2px); }
.category-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 24px; }
.category-card h3 { margin: 0; color: var(--navy); font-size: 14px; }
.category-card span { color: var(--muted); font-size: 11px; }

.home-page .category-grid { grid-template-columns: repeat(6,1fr); gap: 12px; }
.home-page .category-card { min-height: 185px; position: relative; isolation: isolate; overflow: hidden; align-items: flex-start; justify-content: flex-end; padding: 17px; text-align: left; border: 0; color: white; box-shadow: 0 7px 22px rgba(38,19,21,.14); }
.home-page .category-card::before { content: ""; position: absolute; inset: -7px; z-index: -2; background-position: center; background-repeat: no-repeat; background-size: cover; filter: blur(1.4px); transform: scale(1.035); transition: transform .4s ease, filter .4s ease; }
.home-page .category-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.18) 10%, rgba(0,0,0,.78) 100%); transition: background .3s ease; }
.home-page .category-card:nth-child(1)::before { background-image: url('images/roff-nca.png'); }
.home-page .category-card:nth-child(2)::before { background-image: url('images/dush-epoxy.jpg'); }
.home-page .category-card:nth-child(3)::before { background-image: url('images/lapifix-epoxy.webp'); }
.home-page .category-card:nth-child(4)::before { background-image: url('images/lapifix-grout.webp'); }
.home-page .category-card:nth-child(5)::before { background-image: url('images/lapifix-cleaner.webp'); }
.home-page .category-card:nth-child(6)::before { background-image: url('images/lapifix-admix.webp'); }
.home-page .category-card .category-icon { display: none; }
.home-page .category-card h3 { position: relative; margin: 0; color: white; font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.home-page .category-card span { position: relative; color: rgba(255,255,255,.8); font-size: 12px; }
.home-page .category-card:hover { border-color: transparent; box-shadow: 0 15px 34px rgba(38,19,21,.22); transform: translateY(-5px); }
.home-page .category-card:hover::before { filter: blur(0); transform: scale(1.09); }
.home-page .category-card:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.1) 5%, rgba(49,12,15,.82) 100%); }

.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.product-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .2s ease; }
.product-card:hover { border-color: #bfcbd4; box-shadow: var(--shadow); }
.product-image { height: 260px; padding: 22px; display: flex; align-items: center; justify-content: center; background: #fafbfc; border-bottom: 1px solid #edf0f2; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-badge { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 8px; border-radius: 3px; background: var(--green); color: white; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.wishlist { position: absolute; right: 12px; top: 12px; z-index: 2; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); }
.product-body { padding: 17px; }
.product-brand { color: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.product-body h3 { margin: 7px 0 7px; font-size: 16px; line-height: 1.35; min-height: 43px; color: var(--navy); }
.product-meta { color: var(--muted); font-size: 12px; }
.stars { margin: 10px 0; color: #ed9c16; font-size: 12px; }
.stars span { color: var(--muted); }
.product-price { display: flex; align-items: baseline; gap: 7px; }
.product-price strong { color: var(--navy); font-size: 19px; }
.product-price del { color: #929da6; font-size: 11px; }
.product-actions { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin-top: 14px; }
.product-actions button { min-height: 40px; }
.quick-view { border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--navy); }
.reference-note { margin-top: 18px; padding: 12px 15px; border: 1px solid #f3d5a9; border-radius: 5px; background: #fff8ee; color: #76501e; font-size: 12px; }

.promo-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.promo-card { min-height: 250px; position: relative; overflow: hidden; border-radius: 10px; padding: 34px; background: var(--navy); color: white; }
.promo-card.light { background: var(--blue-soft); color: var(--navy); }
.promo-card h3 { margin: 0 0 10px; max-width: 430px; font-size: 28px; line-height: 1.25; }
.promo-card p { margin: 0 0 24px; max-width: 450px; color: rgba(255,255,255,.72); }
.promo-card.light p { color: var(--muted); }
.promo-number { position: absolute; right: 24px; bottom: -35px; font-size: 160px; font-weight: 900; line-height: 1; opacity: .07; }

.selector { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.selector-copy { padding: 45px; background: var(--navy); color: white; }
.selector-copy h2 { margin: 0 0 12px; font-size: 32px; }
.selector-copy p { color: #c9d7e0; line-height: 1.7; }
.selector-list { margin: 25px 0 0; display: grid; gap: 13px; font-size: 13px; }
.selector-form { padding: 40px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #cfd8df; border-radius: 5px; background: white; outline: none; }
.field textarea { min-height: 120px; padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(198,40,40,.1); }
.finder-result { display: none; margin-top: 14px; padding: 12px; border-radius: 5px; background: var(--blue-soft); color: var(--navy); font-size: 13px; }
.finder-result.show { display: block; }

.page-head { padding: 38px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.breadcrumb { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.page-head h1 { margin: 0; color: var(--navy); font-size: 34px; }
.page-head p { margin: 7px 0 0; color: var(--muted); }
.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 38px 0 70px; }
.filters { align-self: start; border: 1px solid var(--line); border-radius: 7px; background: white; }
.filter-title { padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 800; }
.filter-group { padding: 17px 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border: 0; }
.filter-group h4 { margin: 0 0 12px; color: var(--navy); font-size: 12px; }
.filter-option { display: flex; gap: 9px; align-items: center; margin: 10px 0; color: var(--muted); font-size: 12px; }
.filter-option input { accent-color: var(--blue); }
.shop-toolbar { min-height: 48px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.shop-toolbar select { height: 40px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.shop-products .products-grid { grid-template-columns: repeat(3,1fr); }
.no-results { grid-column: 1/-1; padding: 50px; text-align: center; border: 1px solid var(--line); border-radius: 8px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0,1fr); gap: 55px; padding: 46px 0 70px; }
.detail-gallery { min-height: 560px; padding: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.detail-gallery img { width: 100%; height: 470px; object-fit: contain; }
.detail-info { padding-top: 6px; }
.detail-info h1 { margin: 9px 0 10px; color: var(--navy); font-size: 34px; line-height: 1.2; }
.detail-short { color: var(--muted); line-height: 1.7; }
.detail-rating { margin: 15px 0; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: #ed9c16; font-size: 13px; }
.detail-price { margin: 20px 0; color: var(--navy); font-size: 28px; font-weight: 800; }
.detail-price del { margin-left: 8px; color: #9aa4ac; font-size: 14px; font-weight: 400; }
.detail-tax { color: var(--green); font-size: 12px; }
.spec-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.spec-pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--bg); font-size: 12px; }
.buy-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin: 22px 0; }
.qty { height: 46px; display: flex; align-items: center; justify-content: space-around; border: 1px solid var(--line); border-radius: 5px; }
.qty button { border: 0; background: transparent; color: var(--navy); font-size: 18px; }
.delivery-box { margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 12px; }
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.feature { padding: 12px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 16px 0; cursor: pointer; color: var(--navy); font-weight: 700; }
.accordion p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 38px 0 70px; }
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.cart-thumb { height: 100px; padding: 7px; display: grid; place-items: center; border-radius: 5px; background: var(--bg); }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item h3 { margin: 0 0 5px; color: var(--navy); font-size: 15px; }
.cart-item p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.cart-controls { display: flex; align-items: center; gap: 14px; }
.cart-controls .qty { width: 100px; height: 36px; }
.link-btn { border: 0; padding: 0; background: none; color: var(--blue); font-size: 11px; text-decoration: underline; }
.cart-line-price { color: var(--navy); font-weight: 800; }
.summary-card { align-self: start; position: sticky; top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: var(--shadow); }
.summary-card h2 { margin: 0 0 18px; color: var(--navy); font-size: 20px; }
.summary-row { padding: 8px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.summary-row.total { margin-top: 10px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--navy); font-size: 18px; font-weight: 800; }
.summary-card .btn { width: 100%; margin-top: 18px; }
.empty-state { margin: 40px 0 70px; padding: 60px 20px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.empty-state h2 { margin: 0 0 8px; color: var(--navy); }
.checkout-card, .content-card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.checkout-card h2, .content-card h2 { margin: 0 0 20px; color: var(--navy); font-size: 21px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.full { grid-column: 1/-1; }
.payment-option { margin: 10px 0; padding: 14px; display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 6px; }
.payment-option strong { display: block; color: var(--navy); font-size: 13px; }
.payment-option span span { color: var(--muted); font-size: 11px; }
.success { display: none; text-align: center; padding: 50px 15px; }
.success.show { display: block; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; background: #e6f5ec; color: var(--green); font-size: 28px; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.content-card p { color: var(--muted); line-height: 1.75; }
.content-card.navy { background: var(--navy); color: white; }
.content-card.navy h2 { color: white; }
.content-card.navy p { color: #c9d7e0; }
.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 22px; }
.contact-panel { padding: 30px; border-radius: 8px; background: var(--navy); color: white; }
.contact-panel h2 { margin-top: 0; }
.contact-row { margin-top: 22px; }
.contact-row small { display: block; color: #a9bdca; }
.download-list { display: grid; gap: 10px; }
.download-item { padding: 16px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.doc-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 5px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 800; }
.download-item h3 { margin: 0 0 3px; color: var(--navy); font-size: 14px; }
.download-item p { margin: 0; color: var(--muted); font-size: 11px; }

.footer { background: #261315; color: #e1d4d5; }
.footer-main { padding: 50px 0 35px; display: grid; grid-template-columns: 1.25fr repeat(3,.7fr); gap: 45px; }
.footer .brand { color: white; }
.footer-about { max-width: 340px; color: #9fb1bd; font-size: 12px; line-height: 1.7; }
.footer-col h4 { margin: 0 0 15px; color: white; font-size: 13px; }
.footer-col a { display: block; margin: 9px 0; color: #aebdc7; font-size: 12px; }
.footer-col a:hover { color: white; }
.footer-bottom { padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #8499a7; font-size: 11px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; padding: 13px 17px; border-radius: 5px; background: var(--navy); color: white; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(40px); transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .header-main { grid-template-columns: 190px 1fr auto; gap: 16px; }
  .header-action span:last-child { display: none; }
  .nav-links { gap: 18px; }
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .home-page .category-grid { grid-template-columns: repeat(3,1fr); }
  .shop-products .products-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 760px) {
  .topbar-links { display: none; }
  .topbar-inner { justify-content: center; }
  .header-main { min-height: 68px; grid-template-columns: 1fr auto; }
  .header-main .search { grid-column: 1/-1; grid-row: 2; margin-bottom: 12px; }
  .brand-name { font-size: 20px; }
  .header-actions .header-action:first-child { display: none; }
  .menu-btn { display: block; }
  .category-nav { position: relative; }
  .category-nav-inner { height: auto; min-height: 48px; }
  .nav-links { display: none; position: absolute; z-index: 20; top: 48px; left: 0; right: 0; padding: 12px 16px 20px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; gap: 0; }
  .nav-links a { padding: 11px 0; }
  .all-products { margin-top: 5px; text-align: center; }
  .technical-link { padding: 14px 0; }
  .hero-wrap { min-height: 540px; }
  .hero-overlay { background: rgba(55,13,17,.8); }
  .hero-content { padding: 55px 0; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 15px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-item:nth-child(odd) { border-left: 1px solid var(--line); }
  .section { padding: 48px 0; }
  .section-title { align-items: start; }
  .category-grid { grid-template-columns: repeat(2,1fr) !important; }
  .home-page .category-grid { grid-template-columns: repeat(2,1fr) !important; }
  .products-grid, .shop-products .products-grid { grid-template-columns: repeat(2,1fr); }
  .product-image { height: 220px; }
  .promo-grid, .selector, .detail-layout, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .selector-copy, .selector-form { padding: 28px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-gallery { min-height: 420px; }
  .detail-gallery img { height: 350px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
}

@media (max-width: 520px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .header-action { padding: 0 2px; }
  .hero-actions .btn { width: 100%; }
  .hero-stat { gap: 17px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-item { border-left: 1px solid var(--line); }
  .category-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .home-page .category-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .home-page .category-card { min-height: 190px; }
  .category-card { min-height: 140px; }
  .products-grid, .shop-products .products-grid { grid-template-columns: 1fr; }
  .product-image { height: 300px; }
  .section-title { display: block; }
  .section-title .text-link { display: inline-block; margin-top: 10px; }
  .shop-toolbar { align-items: start; flex-direction: column; }
  .detail-info h1 { font-size: 28px; }
  .buy-row { grid-template-columns: 95px 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-line-price { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .download-item { grid-template-columns: 42px 1fr; }
  .download-item .btn { grid-column: 2; justify-self: start; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; line-height: 1.7; }
}
