/*
  XYLOS STORE — FOLHA DE ESTILOS (CSS)
  ---------------------------------------------------------
  Estrutura de pastas:
  assets/
  ├── banner-hero.jpg
  ├── banner-sobre.jpg
  ├── logo-xylos.jpeg
  └── css/
      └── style.css
*/

/* =========================================================
1. CONFIGURAÇÕES GERAIS
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  background: #f3f3f1;
  color: #111;
  font-family: 'Inter', Arial, sans-serif;
}

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

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

/* =========================================================
2. CABEÇALHO E NAVEGAÇÃO
   ========================================================= */
.header {
  height: 78px;
  padding: 0 6vw;
  background: #0b0b0b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #292929;
}

.brand img {
  width: 200px;
  height: 75px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.header nav {
  display: flex;
  gap: 27px;
}

.header nav a,
.cart-open {
  font-size: 15px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #ccc;
}

.header nav a:hover {
  color: #fff;
}

.cart-open {
  background: transparent;
  border: 1px solid #666;
  color: #fff;
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.cart-open:hover {
  border-color: #fff;
}

.cart-open b {
  background: #fff;
  color: #111;
  padding: 4px 7px;
  margin-left: 7px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

/* =========================================================
3. DESTAQUE INICIAL (HERO BANNER)
   ========================================================= */
.hero {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.78) 45%, rgba(10, 10, 10, 0.15) 100%),
    url('../banner-hero.jpg') right center / cover no-repeat;
  color: #fff;
  padding: 75px 6vw 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: none;
}

.hero-content {
  max-width: 650px;
  padding: 10px 0 45px;
}

.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #aaa;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 23px;
  height: 2px;
  background: #aaa;
  vertical-align: middle;
  margin-right: 10px;
}

.eyebrow.dark {
  color: #777;
}

.eyebrow.dark::before {
  background: #111;
}

.hero h1,
.section h2,
.about h2,
.reviews h2 {
  font: 900 clamp(55px, 7vw, 96px)/0.9 'Barlow Condensed', sans-serif;
  letter-spacing: -1px;
  margin: 26px 0;
}

.hero h1 em,
.section h2 em,
.about h2 em,
.reviews h2 em {
  font-style: normal;
  color: #999;
}

.intro {
  color: #bbb;
  line-height: 1.8;
  font-size: 13px;
  max-width: 470px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border: 0;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.light {
  background: #fff;
  color: #111;
}

.light:hover {
  background: #ccc;
}

.underlink {
  font-size: 11px;
  color: #ddd;
  border-bottom: 1px solid #666;
  padding-bottom: 7px;
  transition: 0.2s;
}

.underlink:hover {
  color: #fff;
  border-color: #fff;
}

.stats {
  display: flex;
  gap: 35px;
  margin-top: 60px;
}

.stats div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats b {
  font: 800 28px 'Barlow Condensed', sans-serif;
}

.stats span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #999;
  line-height: 1.5;
}

.hero-graphic {
  display: none;
}

.hero-foot {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 8px;
  letter-spacing: 1.5px;
}

/* =========================================================
4. CATÁLOGO DE PRODUTOS
   ========================================================= */
.section {
  padding: 95px 7vw;
  max-width: 1500px;
  margin: auto;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
}

.section-title > p {
  max-width: 350px;
  color: #777;
  font-size: 12px;
  line-height: 1.8;
}

.section h2,
.about h2,
.reviews h2 {
  font-size: clamp(50px, 6vw, 78px);
  margin: 18px 0 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d3d3d0;
  padding: 0 0 15px;
  margin: 40px 0 20px;
}

.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.filter {
  background: transparent;
  border: 1px solid #ccc;
  padding: 9px 13px;
  font-size: 9px;
  cursor: pointer;
  color: #555;
  transition: 0.2s;
}

.filter.active,
.filter:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.toolbar > small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #888;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product {
  background: #fff;
  min-width: 0;
}

/* =========================================================
5. FORMAS ILUSTRATIVAS E FOTOS DOS PRODUTOS
   ========================================================= */
.product-art {
  height: 250px;
  background: #e4e4e1;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-art.has-photo {
  padding: 0;
  display: block;
}

.product-art .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #111;
  color: #fff;
  font-size: 8px;
  padding: 7px 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shape {
  width: 125px;
  height: 135px;
  position: relative;
  filter: drop-shadow(12px 16px 10px #0003);
}

.shape::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, #222 0 5px, #666 6px 7px);
  clip-path: polygon(50% 0, 90% 20%, 100% 80%, 50% 100%, 0 80%, 10% 20%);
}

.product-art > small {
  position: absolute;
  bottom: 12px;
  right: 14px;
  color: #999;
  font-size: 8px;
  letter-spacing: 2px;
}

.stand .shape {
  width: 155px;
  height: 95px;
}

.stand .shape::before {
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}

.vase .shape {
  width: 100px;
  height: 160px;
}

.vase .shape::before {
  clip-path: polygon(25% 0, 75% 0, 90% 25%, 75% 100%, 25% 100%, 10% 25%);
}

.organizer .shape {
  width: 155px;
  height: 95px;
}

.organizer .shape::before {
  clip-path: polygon(0 15%, 100% 15%, 90% 100%, 10% 100%);
}

.keychain .shape {
  width: 100px;
  height: 100px;
  transform: rotate(35deg);
}

.keychain .shape::before {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.phone .shape {
  width: 95px;
  height: 145px;
}

.phone .shape::before {
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.product-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
6. INFORMAÇÕES DO PRODUTO E BOTÃO DE COMPRA
   ========================================================= */
.product-body {
  padding: 18px;
}

.category {
  font-size: 8px;
  letter-spacing: 1px;
  color: #999;
  text-transform: uppercase;
}

.product h3 {
  font: 700 24px 'Barlow Condensed', sans-serif;
  margin: 12px 0 6px;
}

.product p {
  font-size: 10px;
  line-height: 1.7;
  color: #777;
  min-height: 36px;
}

.buy {
  border-top: 1px solid #eee;
  padding-top: 14px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buy > b {
  font-size: 16px;
}

.add {
  border: 1px solid #bbb;
  background: #fff;
  padding: 9px 11px;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.add:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.add strong {
  font-size: 15px;
  margin-left: 6px;
}

.note {
  font-size: 9px;
  color: #888;
  line-height: 1.7;
  margin-top: 22px;
}

/* =========================================================
7. SOBRE A XYLOS STORE (COM BANNER FOTOGRÁFICO)
   ========================================================= */
.about {
  background-color: #0b0b0b;
  background-image:
    linear-gradient(
      90deg,
      rgba(11, 11, 11, 0) 0%,
      rgba(11, 11, 11, 0) 46%,
      rgba(11, 11, 11, 0.88) 62%,
      #0b0b0b 100%
    ),
    url('../banner-sobre.jpg');
  background-position: center, left center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: 75px 6vw;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  min-height: 480px;
  max-height: 600px;
  max-width: none;
}

.big-x {
  visibility: hidden;
  pointer-events: none;
}

.about > div:not(.big-x) {
  justify-self: end;
  max-width: 480px;
}

.about h2 {
  font-size: clamp(55px, 6.5vw, 84px);
}

.about > div > p:not(.eyebrow) {
  color: #ccc;
  font-size: 12px;
  line-height: 1.9;
  margin: 24px 0;
}

.outline {
  border: 1px solid #777;
  color: #fff;
  background: transparent;
}

.outline:hover {
  background: #fff;
  color: #111;
}

/* =========================================================
8. GALERIA
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  background: #e5e5e2;
  padding: 11px;
}

.gallery-image {
  height: 230px;
  background: radial-gradient(circle at 50% 45%, #777, #d1d1ce 65%);
  position: relative;
  overflow: hidden;
}

.wide .gallery-image {
  height: 285px;
}

.gallery-image::before {
  content: "";
  position: absolute;
  width: 125px;
  height: 145px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: repeating-linear-gradient(0deg, #222 0 5px, #666 6px 7px);
  clip-path: polygon(50% 0, 95% 20%, 100% 80%, 50% 100%, 0 80%, 5% 20%);
  filter: drop-shadow(12px 12px 10px #0004);
}

.gi2::before {
  width: 165px;
  height: 90px;
  clip-path: polygon(0 20%, 100% 20%, 85% 100%, 15% 100%);
}

.gi3::before {
  width: 100px;
  height: 165px;
  clip-path: polygon(20% 0, 80% 0, 100% 25%, 75% 100%, 25% 100%, 0 25%);
}

.gallery-item > small {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: #777;
  padding: 13px 2px 4px;
}

/* =========================================================
9. AVALIAÇÕES DE CLIENTES
   ========================================================= */
.reviews {
  background: #dededb;
  text-align: center;
  padding: 85px 7vw;
}

.reviews .eyebrow {
  color: #777;
}

.reviews h2 {
  font-size: clamp(55px, 7vw, 85px);
}

.reviews > p:not(.eyebrow) {
  font-size: 12px;
  color: #777;
  margin: 25px;
}

.reviews > span {
  display: block;
  width: 45px;
  height: 2px;
  background: #111;
  margin: 25px auto;
}

.reviews > small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #888;
}

/* =========================================================
10. ORÇAMENTO E CONTATO
   ========================================================= */
.quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.quote > div > p:not(.eyebrow) {
  max-width: 470px;
  color: #777;
  font-size: 12px;
  line-height: 1.9;
  margin-top: 25px;
}

.points {
  display: grid;
  gap: 13px;
  margin-top: 30px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #555;
}

.quote form {
  background: #fff;
  padding: 30px;
  display: grid;
  gap: 18px;
}

.quote label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #777;
  display: grid;
  gap: 8px;
}

.quote input,
.quote textarea,
.quote select {
  border: 0;
  border-bottom: 1px solid #ddd;
  padding: 11px 0;
  outline: none;
  font-size: 11px;
  background: #fff;
  color: #111;
  resize: vertical;
}

.quote input:focus,
.quote textarea:focus {
  border-color: #111;
}

.dark {
  background: #111;
  color: #fff;
  width: 100%;
}

.dark:hover {
  background: #444;
}

.quote form > small,
.drawer-foot > small {
  font-size: 9px;
  color: #999;
  line-height: 1.5;
}

/* =========================================================
11. RODAPÉ
   ========================================================= */
footer {
  background: #0b0b0b;
  color: #fff;
  padding: 45px 7vw 22px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  font: 900 34px 'Barlow Condensed', sans-serif;
  letter-spacing: 2px;
}

.footer-logo small {
  display: block;
  font: 700 9px 'Inter', sans-serif;
  letter-spacing: 4px;
}

.footer-logo + span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #888;
}

footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

footer > div a,
footer .copyright {
  font-size: 8px;
  letter-spacing: 1px;
  color: #888;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid #292929;
  padding-top: 18px;
}

/* =========================================================
12. CARRINHO LATERAL (DRAWER)
   ========================================================= */
.shade {
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.drawer {
  position: fixed;
  z-index: 21;
  right: 0;
  top: 0;
  width: min(430px, 100%);
  height: 100dvh;
  background: #f4f4f1;
  transform: translateX(105%);
  transition: 0.25s;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.cart-visible .shade {
  opacity: 1;
  visibility: visible;
}

.cart-visible .drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 17px;
}

.drawer-head small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #777;
}

.drawer-head h2 {
  font: 800 34px 'Barlow Condensed', sans-serif;
  margin: 5px 0;
}

.drawer-head button {
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 12px 0;
}

.empty {
  text-align: center;
  color: #888;
  font-size: 12px;
  margin-top: 45px;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.cart-row strong {
  font-size: 12px;
}

.cart-row small {
  display: block;
  color: #888;
  font-size: 9px;
  margin-top: 5px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qty button {
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.drawer-foot {
  border-top: 1px solid #ddd;
  padding-top: 17px;
  display: grid;
  gap: 10px;
}

.total {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.total b {
  font-size: 19px;
}

.pay {
  background: #dededb;
  color: #111;
  width: 100%;
}

/* =========================================================
13. MENSAGEM TEMPORÁRIA (TOAST)
   ========================================================= */
.toast {
  position: fixed;
  z-index: 40;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  background: #111;
  color: #fff;
  padding: 13px 18px;
  font-size: 10px;
  transition: 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
14. RESPONSIVIDADE — TABLETS (até 850px)
   ========================================================= */
@media (max-width: 850px) {
  .header nav {
    gap: 13px;
  }

  .header nav a {
    font-size: 8px;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .quote {
    gap: 30px;
  }
}

/* =========================================================
15. RESPONSIVIDADE — CELULARES (até 620px)
   ========================================================= */
@media (max-width: 620px) {
  .header {
    height: 68px;
    padding: 0 5vw;
  }

  .brand img {
    width: 88px;
    height: 55px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 15px;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #111;
    padding: 20px 6vw;
    flex-direction: column;
    gap: 18px;
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    font-size: 10px;
  }

  .cart-open {
    font-size: 8px;
    padding: 9px;
  }

  .hero {
    display: block;
    padding: 48px 6vw 0;
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.90) 0%, rgba(10, 10, 10, 0.75) 100%),
      url('../banner-hero.jpg') 75% center / cover no-repeat;
  }

  .hero h1 {
    font-size: 62px;
  }

  .stats {
    gap: 15px;
    margin-top: 42px;
  }

  .hero-foot {
    font-size: 6px;
    letter-spacing: 0.5px;
    gap: 8px;
  }

  .section {
    padding: 65px 6vw;
  }

  .section-title {
    display: block;
  }

  .section-title > p {
    margin-top: 20px;
  }

  .section h2 {
    font-size: 57px;
  }

  .toolbar {
    display: block;
  }

  .filters {
    margin-bottom: 14px;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product-art {
    height: 230px;
  }

  .about {
    display: block;
    max-height: none;
    padding: 65px 7vw;
    background-image:
      linear-gradient(180deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.80) 100%),
      url('../banner-sobre.jpg');
    background-position: center, 25% center;
  }

  .big-x {
    display: none;
  }

  .about h2 {
    font-size: 63px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-image,
  .wide .gallery-image {
    height: 220px;
  }

  .quote {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .quote form {
    padding: 22px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer > span {
    display: none;
  }

  footer > div {
    gap: 12px;
  }

  .copyright {
    font-size: 7px;
  }

  .drawer {
    padding: 20px;
  }
}