:root {
  --ink: #2f3137;
  --muted: #66717c;
  --line: #e2e7eb;
  --soft: #f6f9fb;
  --brand: #1d789b;
  --brand-dark: #13546e;
  --accent: #050505;
  --gold: #c99734;
  --green: #1f8a5a;
  --cyan: #2794b5;
  --shadow: 0 18px 45px rgba(28, 53, 65, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  max-width: 1220px;
}

.newsletter-strip {
  background: #050505;
  color: #ffffff;
  font-size: 0.92rem;
}

.newsletter-strip__content {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.newsletter-strip strong {
  margin-right: 12px;
}

.newsletter-strip span {
  color: #d4dde2;
}

.mini-form,
.footer-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-form input,
.footer-form input {
  min-width: 190px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 12px;
}

.mini-form button,
.footer-form button {
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  padding: 0 14px;
  font-weight: 700;
}

.announcement-bar {
  background: var(--brand);
  color: #ffffff;
  font-size: 0.94rem;
}

.announcement-bar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announcement-bar a {
  font-weight: 700;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(23, 32, 51, 0.06);
}

.header-main {
  min-height: 88px;
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 62px;
  height: auto;
  flex: 0 0 62px;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  color: #050505;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-search {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 48px;
  height: 48px;
  border: 2px solid var(--brand);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.store-search select,
.store-search input {
  border: 0;
  min-width: 0;
  outline: 0;
  color: var(--ink);
}

.store-search select {
  border-right: 1px solid var(--line);
  padding: 0 12px;
  background: #f8fafc;
}

.store-search input {
  padding: 0 14px;
}

.store-search button {
  border: 0;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.header-action i {
  color: var(--brand);
  font-size: 1.1rem;
}

.cart-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  position: relative;
}

.cart-action span {
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #ffffff;
  display: grid;
  place-items: center;
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.75rem;
  font-weight: 700;
}

.category-nav {
  border-top: 1px solid var(--line);
}

.category-nav .navbar-toggler {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  font-weight: 700;
}

.category-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.category-nav > .collapse > ul,
.category-nav > .collapsing > ul {
  min-height: 48px;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #27344b;
  font-size: 0.93rem;
  font-weight: 700;
}

.category-nav a:hover {
  color: var(--accent);
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.dropdown-menu a {
  min-height: 34px;
  font-weight: 600;
}

.hero {
  padding: 28px 0 10px;
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}

.hero-shell {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.84) 0%, rgba(5, 5, 5, 0.5) 42%, rgba(5, 5, 5, 0.08) 78%),
    url("assets/microlaptops-hero-banner.jpg") center / cover no-repeat;
  border: 1px solid rgba(29, 120, 155, 0.18);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 46px;
}

.hero-copy {
  width: min(520px, calc(100% - 40px));
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.feature-banner h2 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.hero p,
.feature-banner p {
  margin: 0;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary-store,
.btn-secondary-store,
.btn-outline-store {
  min-height: 44px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  font-weight: 800;
  border: 1px solid transparent;
}

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

.btn-secondary-store {
  background: #ffffff;
  color: var(--brand-dark);
}

.btn-outline-store {
  border-color: var(--brand);
  color: var(--brand);
  background: #ffffff;
}

.promo-grid-section {
  padding: 22px 0 6px;
}

.featured-products-strip {
  padding: 38px 0 12px;
}

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

.promo-card {
  min-height: 178px;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  isolation: isolate;
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 16, 35, 0.76), rgba(8, 16, 35, 0.12));
}

.promo-card--laptops::before {
  background: linear-gradient(135deg, #050505 0%, #1d789b 100%);
}

.promo-card--printers::before {
  background: linear-gradient(135deg, #20242a 0%, #2794b5 100%);
}

.promo-card--accessories::before {
  background: linear-gradient(135deg, #2f3137 0%, #13546e 100%);
}

.promo-card span {
  color: #d6edf5;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-card strong {
  width: min(260px, 70%);
  margin-top: 6px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.promo-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.promo-card em {
  margin-top: 18px;
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
  border-bottom: 2px solid #ffffff;
}

.section-pad {
  padding: 54px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.view-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.category-tile {
  min-height: 124px;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-weight: 800;
}

.category-tile:last-child {
  border-right: 0;
}

.category-tile i {
  color: var(--brand);
  font-size: 2rem;
}

.category-tile span {
  max-width: 130px;
  font-size: 0.92rem;
  line-height: 1.25;
}

.category-tile:hover {
  background: #f8fbff;
  color: var(--brand);
}

.product-section {
  background: #ffffff;
}

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

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

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

.product-card {
  min-height: 100%;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 120, 155, 0.35);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: contain;
  background: #ffffff;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.stock-badge,
.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 25px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  font-size: 0.75rem;
  font-weight: 900;
  color: #ffffff;
}

.stock-badge {
  background: var(--green);
}

.stock-badge--sold {
  background: #6f7785;
}

.sale-badge {
  background: var(--accent);
}

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

.product-card h3 {
  min-height: 57px;
  margin: 0;
  color: #1d2738;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 900;
}

.product-card p {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card strong {
  margin-top: auto;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
}

.product-card button {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 4px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card button:hover:not(:disabled) {
  background: var(--brand-dark);
}

.product-card button:disabled {
  cursor: not-allowed;
  background: #9aa3b2;
}

.feature-banner {
  padding: 28px 0;
  background: #ffffff;
}

.feature-banner__inner {
  min-height: 260px;
  border-radius: 8px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.94), rgba(29, 120, 155, 0.74)),
    #050505;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.feature-banner span {
  color: #d6edf5;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-banner h2 {
  max-width: 620px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.feature-banner p {
  color: rgba(255, 255, 255, 0.86);
}

.store-section {
  background: #ffffff;
}

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

.store-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: #ffffff;
}

.store-card > i {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef8fb;
  color: var(--brand);
  font-size: 1.35rem;
}

.store-card h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.store-card p {
  color: var(--muted);
  margin: 0;
}

.store-card ul {
  margin: 18px 0;
  padding-left: 18px;
  color: #3c485b;
}

.store-card a {
  color: var(--brand);
  font-weight: 900;
}

.service-strip {
  background: #f8fafc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

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

.service-item {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-item i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--brand);
}

.service-item strong,
.service-item span {
  display: block;
}

.service-item strong {
  font-size: 0.94rem;
  color: var(--ink);
}

.service-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer {
  background: #111827;
  color: #c9d2df;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.15fr 0.75fr;
  gap: 34px;
}

.footer-logo {
  width: 112px;
  margin-bottom: 18px;
  background: #ffffff;
  border-radius: 50%;
  padding: 4px;
}

.footer p {
  color: #b9c3d2;
  margin: 0 0 12px;
}

.footer h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 9px;
}

.footer a:hover {
  color: #ffffff;
}

.footer-form {
  align-items: stretch;
}

.footer-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  background: #ffffff;
}

.footer-form button {
  height: 42px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #273244;
  color: #ffffff;
}

.language-select {
  margin-top: 24px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: #aab5c5;
}

.language-select strong {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #9aa6b7;
  font-size: 0.9rem;
}

.toast-message {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(340px, calc(100vw - 36px));
  min-height: 42px;
  border-radius: 6px;
  background: #101828;
  color: #ffffff;
  padding: 11px 14px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.toast-message.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: 240px minmax(240px, 1fr);
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-bottom: 14px;
  }

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

  .category-tile {
    border-bottom: 1px solid var(--line);
  }

  .category-tile:nth-child(4n) {
    border-right: 0;
  }

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

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

@media (max-width: 991.98px) {
  .hero-copy {
    width: 100%;
  }

  .category-nav ul {
    padding: 10px 0 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .category-nav a {
    min-height: 38px;
  }

  .promo-grid,
  .product-grid--compact,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-banner__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .newsletter-strip__content,
  .announcement-bar .container,
  .section-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter-strip__content {
    padding: 10px 0;
  }

  .mini-form {
    width: 100%;
  }

  .mini-form input {
    min-width: 0;
    flex: 1;
  }

  .announcement-bar .container {
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 4px;
  }

  .header-main {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px 0;
    gap: 14px;
  }

  .brand img {
    width: 58px;
    flex-basis: 58px;
  }

  .store-search {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .store-search select {
    display: none;
  }

  .header-actions {
    grid-column: auto;
    justify-content: space-between;
    padding-bottom: 0;
    gap: 12px;
  }

  .header-action span {
    display: none;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-shell {
    min-height: 500px;
    padding: 28px 20px;
    background-position: center right;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .promo-grid,
  .category-grid,
  .product-grid,
  .product-grid--compact,
  .store-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    border-bottom: 0;
  }

  .category-tile,
  .category-tile:nth-child(4n) {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 16px;
  }

  .category-tile span {
    max-width: none;
  }

  .section-pad {
    padding: 40px 0;
  }

  .feature-banner__inner {
    padding: 28px 22px;
  }

  .footer-form {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .header-actions {
    align-items: center;
  }

  .category-nav ul {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary-store,
  .btn-secondary-store,
  .btn-outline-store {
    width: 100%;
  }

  .promo-card {
    padding: 20px;
  }

  .promo-card strong {
    width: 85%;
  }
}
