* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #10161f;
  color: #d8dee9;
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(135deg, #121826 0%, #1f2938 100%);
  border-bottom: 3px solid #394a5c;
  padding: 20px 0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

@media screen and (max-width: 1180px) {
  .header-container {
    padding: 0 1em;
  }
}
header h1 {
  font-size: 2.4rem;
  color: #d8dee9;
  text-align: center;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

header > p {
  text-align: center;
  color: #b0bac8;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.8em;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

header nav a {
  color: #d8dee9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

header nav a:hover {
  color: #8ea8bf;
  border-bottom: 2px solid #8ea8bf;
}

.header-container {
  max-width: calc(112.5em - 40px);
  margin: auto;
  text-align: center;
  position: relative;
}

.theme-toggle {
  position: absolute;
  right: 0px;
  top: 24px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: #41526a;
  color: #e9eff5;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
  padding: 0;
  letter-spacing: -2px;
}

.theme-toggle:hover {
  background: #5c7189;
  transform: translateY(-1px);
}

/* #icon-toggle {
  position: relative;
  top: -2px;
} */

.cart-widget {
  position: relative;
  display: inline-flex;
  margin-left: auto;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #41526a;
  color: #e9eff5;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 0 auto;
  transition: all 0.3s ease;
}

.cart-button:hover {
  background: #5c7189;
  transform: scale(1.02);
}

.cart-card {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 280px;
  background: #17212b;
  border: 1px solid rgba(142, 168, 191, 0.18);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 20;
}

.cart-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-card__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(142, 168, 191, 0.12);
}

.cart-card__title {
  font-weight: 700;
  color: #e5ecf4;
  margin-bottom: 6px;
}

.cart-card__meta {
  font-size: 0.95rem;
  color: #9ab0c8;
}

.cart-card__remove {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #2f3c4e;
  color: #f5f8fb;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease;
  padding: 1em;
}

.cart-card__remove:hover {
  background: #46586f;
}

.cart-card__link {
  display: inline-block;
  width: 100%;
  margin-top: 14px;
  text-align: center;
  color: #d8e8ff;
  text-decoration: none;
  background: #1f2a3a;
  padding: 12px 0;
  border-radius: 10px;
  border: 1px solid rgba(142, 168, 191, 0.14);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cart-card__link:hover {
  background: #2f3d52;
}

.cart-card__empty {
  margin-top: 14px;
  color: #9ab0c8;
  font-size: 0.95rem;
  text-align: center;
}

.cart-button i {
  font-size: 1rem;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #0d1117;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
}

body.light-theme {
  background-color: #f8fafc;
  color: #1f2937;
}

body.light-theme header {
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
  border-bottom-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.25);
}

body.light-theme header h1,
body.light-theme header nav a,
body.light-theme .cart-card__title,
body.light-theme .category-card h4,
body.light-theme .product-card h3,
body.light-theme article h3 {
  color: #0f172a;
}

body.light-theme header > p,
body.light-theme .cart-card__meta,
body.light-theme .category-card p,
body.light-theme .product-card p,
body.light-theme article p,
body.light-theme article li {
  color: #475569;
}

body.light-theme header nav a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

body.light-theme .cart-button {
  background: #81b7ff;
  color: #0f172a;
}

body.light-theme .cart-button:hover {
  background: #6ba1e9;
}

body.light-theme .cart-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

body.light-theme .cart-card__remove {
  background: #e2e8f0;
  color: #0f172a;
}

body.light-theme .cart-card__link {
  background: #e2e8f0;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.35);
}

body.light-theme #home,
body.light-theme .category-card,
body.light-theme .product-card,
body.light-theme article {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

body.light-theme #home p {
  color: #475569;
}

body.light-theme .category-card__icon {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

body.light-theme .category-card__badge {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

body.light-theme .product-card a {
  background: #e2e8f0;
  color: #1d4ed8;
}

body.light-theme .product-card a:hover {
  background: #dbeafe;
}

body.light-theme article {
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.18);
}

body.light-theme article:hover {
  box-shadow: 0 14px 35px rgba(148, 163, 184, 0.22);
}

body.light-theme .theme-toggle {
  background: #81b7ff;
  color: #0f172a;
  border: 1px solid #81b7ff;
}

body.light-theme .theme-toggle:hover {
  background: #6ba1e9;
}

/* Form adjustments for light theme */
body.light-theme form {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

body.light-theme label {
  color: #0f172a;
}

body.light-theme input,
body.light-theme textarea {
  background-color: #ffffff;
  color: #0f172a;
  border: 2px solid rgba(148, 163, 184, 0.6);
}

body.light-theme input:focus,
body.light-theme textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: none;
}

body.light-theme form button {
  background: #1d4ed8;
  color: #ffffff;
}

body.light-theme form button:hover {
  background: #2563eb;
}

/* Accessibility: improve contrast for key sections in light theme */
body.light-theme #home {
  background: #ffffff;
  color: #0f172a;
}

body.light-theme #home h2,
body.light-theme #produtos h2,
body.light-theme #hardware h2,
body.light-theme #computadores h2,
body.light-theme #perifericos h2,
body.light-theme #escritorio h2 {
  color: #0f172a;
  border-left-color: #cbd5e1;
}

body.light-theme #produtos .product-categories h3 {
  color: #0f172a;
}

body.light-theme #diferenciais,
body.light-theme #diferenciais * {
  color: #0f172a;
}

body.light-theme #diferenciais li {
  background: #ffffff;
  border-left-color: #cbd5e1;
  color: #0f172a;
}

body.light-theme #contato,
body.light-theme #contato * {
  color: #0f172a;
}

body.light-theme #contato p {
  color: #475569;
}

/* Main */
main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Sections */
section {
  margin: 40px auto 60px;
  scroll-margin-top: 100px;
}

section h2 {
  font-size: 2rem;
  color: #8ea8bf;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 5px solid #4a6075;
  padding-left: 15px;
}

/* Home Section */
#home {
  background: #171f2a;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(142, 168, 191, 0.18);
}

#home h2 {
  border-left: none;
}

#home p {
  font-size: 1.05rem;
  margin-bottom: 15px;
  color: #c1cad7;
}

/* Produtos Section */
#produtos {
  margin: -10px 20px;
}

#produtos h2 {
  margin-bottom: 30px;
}

#produtos .product-categories {
  margin-top: 40px;
}

#produtos .product-categories h3 {
  font-size: 1.5rem;
  color: #d8dee9;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: #0f1720;
  border: 1px solid rgba(142, 168, 191, 0.12);
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  border-color: rgba(142, 168, 191, 0.25);
}

.category-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d355f 0%, #18496f 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e9eff5;
  font-size: 1.2rem;
}

.category-card h4 {
  font-size: 1rem;
  color: #e5ecf4;
  margin: 0;
  text-decoration: none;
  border-bottom: none;
}

.category-card p {
  color: #9ab0c8;
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: none;
}

.category-card__badge {
  margin-top: auto;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  color: #8ad4ff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: #15202a;
  border: 1px solid rgba(142, 168, 191, 0.12);
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  border-color: rgba(142, 168, 191, 0.25);
}

.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
}

.product-card h3 {
  font-size: 1.05rem;
  color: #e5ecf4;
  margin: 0;
}

.product-card p {
  color: #9ab0c8;
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.5;
}

.product-card a {
  display: inline-block;
  margin-top: auto;
  padding: 10px 14px;
  background: #1e2c3e;
  color: #8ad4ff;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(142, 168, 191, 0.14);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.product-card a:hover {
  background: #283b52;
  transform: translateY(-1px);
}

li.splide__slide {
  display: flex;
  flex: 0 0 20% !important;
  max-width: 20% !important;
  width: 20% !important;
}

.splide__slide article {
  width: 100%;
}

/* .splide__arrow--prev {
  left: -2.5em!important;
}

.splide__arrow--next {
  right: -3.5em!important;
} */

/* Responsividade para o carrossel */
@media (max-width: 1800px) {
  li.splide__slide {
    flex: 0 0 20% !important;
    max-width: 50% !important;
    width: 20% !important;
  }
}

@media (max-width: 1400px) {
  li.splide__slide {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

@media (max-width: 1024px) {
  li.splide__slide {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    width: 33.333% !important;
  }

  .splide__arrow--prev {
    left: -1.8em!important;
  }

  .splide__arrow--next {
    right: -2.2em!important;
  }
}

@media (max-width: 768px) {
  li.splide__slide {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  .splide__arrow--prev {
    left: -1.2em!important;
  }

  .splide__arrow--next {
    right: -1.6em!important;
  }
}

@media (max-width: 480px) {
  li.splide__slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  article {
    max-width: 100%;
  }

  .splide__arrow--prev {
    left: 0em!important;
  }

  .splide__arrow--next {
    right: 0em!important;
  }
}

article {
  background: #15202a;
  border: 1px solid rgba(142, 168, 191, 0.12);
  border-radius: 14px;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(8, 16, 28, 0.22);
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

article:hover {
  transform: translateY(-6px);
  border-color: rgba(142, 168, 191, 0.4);
  box-shadow: 0 14px 35px rgba(10, 20, 36, 0.32);
}

article:hover img {
  transform: scale(1.03);
}

article h3 {
  font-size: 1.35rem;
  color: #e5ecf4;
  margin-bottom: 12px;
  margin-left: 22px;
  margin-right: 22px;
  line-height: 1.0;
  margin-top: 1.6em;
}

article p {
  color: #b8c5d6;
  margin-bottom: 14px;
  font-size: 0.95rem;
  margin-left: 22px;
  margin-right: 22px;
}

article ul {
  list-style: none;
  margin-bottom: 20px;
  margin-left: 22px;
  margin-right: 22px;
}

article li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: #9ab0c8;
  font-size: 0.92rem;
}

article li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #7c95ae;
  font-weight: bold;
}

article button {
  margin-left: 22px;
  margin-right: 22px;
  margin-bottom: 16px;
}

#produto article {
  display: grid;
  grid-template-columns: minmax(320px, 1.3fr) minmax(320px, 1fr);
  gap: 30px;
  align-items: start;
  max-width: none;
  width: 100%;
}

#produto article img {
  width: 800px;
  max-width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: cover;
  border-radius: inherit;
  margin: 2.1em;
}

#produto .produto-detalhes {
  padding: 0 1.5em 3em;
}

#produto .produto-detalhes ul {
  margin-top: 15px;
}

#produto .produto-detalhes p.price {
  font-size: 1.2rem;
  margin-top: 25px;
  color: #ffffff;
}

#produto .voltar-link {
  display: inline-block;
  margin: 1em 1.5em;
  color: #00d4ff;
  text-decoration: none;
  border: 1px solid #00d4ff;
  padding: 12px 22px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#produto .voltar-link:hover {
  background-color: rgba(0, 212, 255, 0.1);
}

/* Diferenciais Section */
#diferenciais ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

#diferenciais li {
  background: rgba(102, 120, 140, 0.14);
  padding: 20px;
  border-left: 4px solid #5a7086;
  border-radius: 8px;
  font-size: 1rem;
  color: #c0cad7;
}

/* Contato Section */
#contato p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #b8c5d6;
}

/* Formulário */
form {
  background: #17212b;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid rgba(142, 168, 191, 0.2);
  margin-top: 20px;
  max-width: 600px;
}

form div {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #8ea8bf;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  background-color: #131b24;
  color: #d8dee9;
  border: 2px solid rgba(142, 168, 191, 0.22);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #00d4ff;
}

/* Botões */
button {
  background: #4e657a;
  color: #f1f5f9;
  border: none;
  padding: 12px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  margin-top: 10px;
}

button:hover {
  background: #6b8299;
  /* transform: translateY(-1px); */
  box-shadow: 0 6px 18px rgba(16, 32, 52, 0.18);
}

.button-gap {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

form button {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Footer */
footer {
  background-color: #0a0a0f;
  color: #666;
  text-align: center;
  padding: 30px 20px;
  border-top: 2px solid #00d4ff;
  margin-top: 60px;
  font-size: 0.9rem;
}

.nav-link--disable {
  color: #6b6b6b;
  cursor: default;
  border-bottom: none;
}

.nav-link--disable:hover {
  color: #6b6b6b;
  border-bottom: none;
}

/* Breadcrumb */
.breadcrumb-container {
  background: #0f1419;
  border-bottom: 1px solid rgba(142, 168, 191, 0.12);
  padding: 16px 0;
}

.breadcrumb {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb li {
  font-size: 0.95rem;
  color: #8ea8bf;
}

.breadcrumb a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.25s ease;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #4dd9ff;
  border-bottom: 1px solid #00d4ff;
}

.breadcrumb li.active {
  color: #d8dee9;
  font-weight: 600;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 12px;
  color: #5a7086;
}
@media (max-width: 1160px) {
  #diferenciais {
    display: none;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header nav ul {
    gap: 15px;
  }

  header nav a {
    font-size: 0.85rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .product-carousel {
    gap: 18px;
  }

  #diferenciais ul {
    grid-template-columns: 1fr;
  }
}
