* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  background: #f6f7f9;
  color: #17191c;
}

button,
input,
select {
  font: inherit;
}


/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid #e5e7eb;
}

.nav {
  max-width: 1200px;
  height: 70px;

  margin: auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  text-decoration: none;

  font-size: 24px;
  font-weight: 900;

  color: #111827;
}

.logo span {
  color: #2563eb;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#languageSelect {
  border: 1px solid #d8dce1;
  background: white;

  padding: 9px 10px;

  border-radius: 8px;

  cursor: pointer;
}

.cart-button {
  border: 0;

  background: #111827;
  color: white;

  padding: 10px 15px;

  border-radius: 8px;

  cursor: pointer;

  font-weight: 700;
}

.cart-button b {
  margin-left: 4px;
}


/* HERO */

.hero {
  background: white;

  border-bottom: 1px solid #e5e7eb;

  padding: 90px 20px;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
}

.badge {
  display: inline-block;

  background: #eff6ff;
  color: #2563eb;

  padding: 7px 12px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;

  margin-bottom: 20px;
}

.hero h1 {
  max-width: 800px;

  font-size: clamp(40px, 7vw, 72px);

  line-height: 1.02;

  margin-bottom: 25px;
}

.hero p {
  max-width: 650px;

  color: #626872;

  font-size: 19px;

  line-height: 1.6;

  margin-bottom: 30px;
}

.hero-button {
  display: inline-block;

  background: #2563eb;
  color: white;

  text-decoration: none;

  padding: 14px 20px;

  border-radius: 9px;

  font-weight: 700;
}


/* SHOP */

.shop {
  max-width: 1200px;

  margin: auto;

  padding: 55px 20px 90px;
}

.shop-top {
  display: flex;

  align-items: end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 25px;
}

.shop h2 {
  font-size: 34px;

  margin-bottom: 5px;
}

.muted {
  color: #737982;
}

#searchInput {
  width: 330px;
  max-width: 100%;

  padding: 12px 14px;

  border: 1px solid #d8dce1;

  border-radius: 9px;

  background: white;

  outline: none;
}

#searchInput:focus {
  border-color: #2563eb;
}


/* CATEGORIES */

.categories {
  display: flex;

  gap: 9px;

  overflow-x: auto;

  padding-bottom: 10px;

  margin-bottom: 25px;
}

.category {
  white-space: nowrap;

  border: 1px solid #d8dce1;

  background: white;

  padding: 9px 15px;

  border-radius: 999px;

  cursor: pointer;
}

.category.active {
  background: #111827;
  color: white;

  border-color: #111827;
}


/* PRODUCTS */

.products {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 20px;
}

.product {
  background: white;

  border: 1px solid #e1e4e8;

  border-radius: 13px;

  overflow: hidden;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.product:hover {
  transform: translateY(-3px);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.07);
}

.product-image {
  height: 190px;

  background: #eef1f5;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #747b85;

  font-size: 14px;
}

.product-content {
  padding: 18px;
}

.product h3 {
  font-size: 19px;

  margin-bottom: 8px;
}

.product-description {
  min-height: 42px;

  color: #6d737c;

  font-size: 14px;

  line-height: 1.5;
}

.stock {
  margin-top: 12px;

  font-size: 14px;

  font-weight: 700;
}

.stock.available {
  color: #15803d;
}

.stock.low {
  color: #c2410c;
}

.stock.none {
  color: #dc2626;
}

.product-bottom {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-top: 17px;
}

.price {
  font-size: 19px;

  font-weight: 900;
}

.add {
  border: 0;

  background: #2563eb;
  color: white;

  padding: 9px 12px;

  border-radius: 7px;

  cursor: pointer;

  font-weight: 700;
}

.add:disabled {
  background: #c7cbd1;

  cursor: not-allowed;
}


/* LOADING */

.loading {
  padding: 50px;

  text-align: center;

  color: #6b7280;
}


/* FOOTER */

footer {
  background: #111827;

  color: white;

  padding: 40px 20px;
}

.footer-inner {
  max-width: 1200px;

  margin: auto;

  display: flex;

  justify-content: space-between;

  gap: 20px;

  flex-wrap: wrap;
}

.footer-inner p {
  margin-top: 7px;

  color: #aeb5c0;
}


/* CART */

.overlay {
  display: none;

  position: fixed;

  inset: 0;

  z-index: 500;

  background: rgba(0, 0, 0, 0.45);
}

.overlay.open {
  display: block;
}

.cart {
  position: absolute;

  top: 0;
  right: 0;

  width: min(450px, 100%);

  height: 100%;

  background: white;

  padding: 25px;

  overflow-y: auto;
}

.cart-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 25px;
}

.close {
  border: 0;

  background: transparent;

  font-size: 30px;

  cursor: pointer;
}

.cart-item {
  display: grid;

  grid-template-columns: 1fr auto;

  gap: 15px;

  padding: 17px 0;

  border-bottom: 1px solid #e5e7eb;
}

.cart-item-name {
  font-weight: 800;
}

.cart-item-price {
  margin-top: 5px;

  color: #626872;
}

.quantity {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 10px;
}

.quantity button {
  width: 29px;
  height: 29px;

  border: 1px solid #d8dce1;

  background: white;

  border-radius: 6px;

  cursor: pointer;
}

.remove {
  border: 0;

  background: transparent;

  color: #dc2626;

  cursor: pointer;
}

.cart-footer {
  margin-top: 25px;
}

.cart-total {
  display: flex;

  justify-content: space-between;

  font-size: 21px;

  font-weight: 800;
}

.checkout {
  width: 100%;

  margin-top: 17px;

  border: 0;

  background: #2563eb;
  color: white;

  padding: 14px;

  border-radius: 9px;

  cursor: pointer;

  font-weight: 800;
}

.checkout:disabled {
  background: #aeb4bc;

  cursor: not-allowed;
}

.empty {
  padding: 30px 0;

  color: #6b7280;

  text-align: center;
}


/* MOBILE */

@media (max-width: 900px) {

  .products {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 650px) {

  .nav {
    height: auto;

    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-actions {
    gap: 5px;
  }

  #languageSelect {
    max-width: 45px;
  }

  .hero {
    padding: 60px 20px;
  }

  .shop-top {
    align-items: stretch;

    flex-direction: column;
  }

  #searchInput {
    width: 100%;
  }

  .products {
    grid-template-columns: 1fr;
  }
#cssStatusIndicator {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: none;

  align-items: center;
  justify-content: center;

  background: white;

  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;

  pointer-events: none;
}

#cssStatusIndicator.green {
  display: flex;
  background: #16a34a;
  color: white;
}

#cssStatusIndicator.red {
  display: flex;
  background: #dc2626;
  color: white;
}

#cssStatusIndicator.white {
  display: flex;
  background: white;
  color: #111827;
}
}
}