/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.text-green { color: #16a34a; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #ef4444;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --radius: 8px;
}

body { font-family: 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-align: center;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); width: 100%; margin-top: .75rem; }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--white { background: var(--white); color: var(--text); }
.btn--white:hover { background: var(--bg); }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: .8rem;
  padding: .4rem 0;
}
.top-bar__inner {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.top-bar__inner span { display: flex; align-items: center; gap: .4rem; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.header__logo { flex-shrink: 0; }
.logo-text { font-size: 1.6rem; color: var(--text); letter-spacing: -1px; }
.logo-text strong { color: var(--primary); }

.header__search {
  flex: 1;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 520px;
}
.header__search input {
  flex: 1;
  padding: .55rem .9rem;
  border: none;
  outline: none;
  font-size: .95rem;
}
.header__search button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 1.1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.header__search button:hover { background: var(--primary-dark); }

.header__actions {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
}
.header__actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .75rem;
  color: var(--text-light);
  gap: .2rem;
  transition: color .2s;
}
.header__actions a:hover { color: var(--primary); }
.header__actions a i { font-size: 1.3rem; }

.cart-icon { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--accent);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  margin-left: auto;
}

/* ===== NAV CATEGORIES ===== */
.nav-categories {
  background: #1e293b;
  color: var(--white);
}
.nav-categories ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-categories li a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1rem;
  font-size: .88rem;
  color: #cbd5e1;
  transition: background .2s, color .2s;
}
.nav-categories li a:hover { background: var(--primary); color: var(--white); }

/* ===== SECTION COMMON ===== */
.section { padding: 2.5rem 0; }
.section__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .5rem;
}
.section__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.section__header .section__title { margin-bottom: 0; }
.section__link { color: var(--primary); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: .3rem; }
.section__link:hover { text-decoration: underline; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__carousel { display: flex; }
.hero__slide {
  min-width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 3.5rem 2rem;
  color: var(--white);
  min-height: 360px;
}
.hero__slide.active { display: flex; }
.hero__content { max-width: 480px; }
.hero__tag {
  display: inline-block;
  background: var(--primary);
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.hero__content h2 { font-size: 2.2rem; line-height: 1.2; margin-bottom: .75rem; }
.hero__desc { color: #cbd5e1; margin-bottom: 1.5rem; }
.hero__image { opacity: .9; display: flex; align-items: center; justify-content: center; padding: 1rem; }

.hero__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.hero__arrow:hover { background: rgba(255,255,255,.3); }
.hero__arrow--prev { left: 1rem; }
.hero__arrow--next { right: 1rem; }

.hero__dots {
  position: absolute;
  bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s;
}
.dot.active { background: var(--white); }

/* ===== CATEGORIES GRID ===== */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .75rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.1rem .5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  transition: all .2s;
  text-align: center;
}
.category-card i { font-size: 1.6rem; color: var(--primary); }
.category-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(37,99,235,.15); transform: translateY(-2px); }

/* ===== PRODUCT CARDS ===== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-3px); }

.product-card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 4px;
}
.product-card__badge--new { background: #16a34a; }

.product-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  font-size: 64px;
  color: var(--primary);
}

.product-card__info { flex: 1; display: flex; flex-direction: column; }
.product-card__name { font-size: .9rem; font-weight: 600; margin-bottom: .4rem; line-height: 1.3; }
.product-card__old { font-size: .8rem; color: var(--text-light); text-decoration: line-through; }
.product-card__price { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.product-card__info small { font-size: .75rem; color: var(--text-light); margin-bottom: auto; }

/* ===== BANNER INTERMEDIÁRIO ===== */
.banner-mid { padding: 1.5rem 0; }
.banner-mid__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.banner-mid__item {
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.banner-mid__item p { font-size: .85rem; opacity: .85; margin-bottom: .25rem; }
.banner-mid__item h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.banner-mid__item > i { font-size: 80px; opacity: .25; }

/* ===== BRANDS ===== */
.brands { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brands__strip { overflow: hidden; }
.brands__track {
  display: flex;
  gap: 3rem;
  animation: scrollBrands 18s linear infinite;
  white-space: nowrap;
}
.brands__track span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  transition: color .2s;
}
.brands__track span:hover { color: var(--primary); }

@keyframes scrollBrands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== NEWSLETTER ===== */
.newsletter { background: #1e293b; padding: 2.5rem 0; }
.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter__inner h3 { font-size: 1.3rem; color: var(--white); margin-bottom: .3rem; }
.newsletter__inner p { color: #94a3b8; font-size: .9rem; }
.newsletter__form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter__form input {
  padding: .6rem 1rem;
  border-radius: var(--radius);
  border: none;
  outline: none;
  min-width: 260px;
  font-size: .95rem;
}

/* ===== FOOTER ===== */
.footer { background: #111827; color: #9ca3af; padding-top: 2.5rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer__logo { display: block; margin-bottom: .75rem; font-size: 1.4rem; }
.footer__col p { font-size: .88rem; line-height: 1.6; }
.footer__col h4 { color: var(--white); font-size: .95rem; margin-bottom: .75rem; }
.footer__col ul li { margin-bottom: .4rem; }
.footer__col ul li a { font-size: .87rem; color: #9ca3af; transition: color .2s; }
.footer__col ul li a:hover { color: var(--white); }

.footer__social { display: flex; gap: .75rem; margin-top: .75rem; }
.footer__social a { font-size: 1.3rem; color: #9ca3af; transition: color .2s; }
.footer__social a:hover { color: var(--white); }

.footer__payments { display: flex; gap: .75rem; font-size: 2rem; flex-wrap: wrap; }
.footer__payments i { color: #9ca3af; transition: color .2s; }
.footer__payments i:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid #1f2937;
  padding: 1rem 0;
  text-align: center;
  font-size: .82rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories__grid { grid-template-columns: repeat(4, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .header__actions span { display: none; }
  .header__search { display: none; }
  .hamburger { display: block; }

  .nav-categories { display: none; }
  .nav-categories.open { display: block; }
  .nav-categories ul { flex-direction: column; }

  .hero__slide { flex-direction: column; text-align: center; padding: 2rem 1rem; min-height: auto; }
  .hero__image { display: none; }
  .hero__content h2 { font-size: 1.5rem; }

  .categories__grid { grid-template-columns: repeat(4, 1fr); }
  .products__grid { grid-template-columns: 1fr 1fr; }
  .banner-mid__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .newsletter__inner { flex-direction: column; text-align: center; }
  .newsletter__form { justify-content: center; }
  .newsletter__form input { min-width: 220px; }
}

@media (max-width: 480px) {
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .top-bar__inner { gap: .75rem; font-size: .72rem; }
}

/* ===== LOGO IMG ===== */
.logo-img { height: 44px; object-fit: contain; }

/* ===== HERO (imagem real) ===== */
.hero__slide { position: relative; min-height: 360px; display: none; }
.hero__slide.active { display: block; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 460px; }
.hero__link-overlay { position: absolute; inset: 0; z-index: 1; }

/* ===== CATEGORY CARD COM IMAGEM ===== */
.category-card img { width: 80px; height: 80px; object-fit: contain; }

/* ===== PRODUCT CARD IMG ===== */
.product-card__img-link { display: block; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; }
.product-card__info a { color: inherit; }
.product-card__info a:hover .product-card__name { color: var(--primary); }
.installment { display: block; color: var(--text-light); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: #1f2937; color: white;
  padding: .85rem 1.5rem; border-radius: 50px;
  font-size: .9rem; font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .3s, opacity .3s;
  opacity: 0; z-index: 9999;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== SEARCH DROPDOWN ===== */
.header__search { position: relative; }
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
}
.search-result {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem;
  transition: background .15s;
  border-bottom: 1px solid var(--border);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--bg); }
.search-result img { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; }
.search-result p { font-size: .88rem; font-weight: 600; margin-bottom: .15rem; }
.search-result span { font-size: .82rem; color: var(--accent); font-weight: 700; }

/* ===== BRANDS IMG ===== */
.brands__track img { height: 48px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: all .2s; }
.brands__track img:hover { filter: none; opacity: 1; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: white; border-bottom: 1px solid var(--border); padding: .6rem 0; font-size: .85rem; color: var(--text-light); }
.breadcrumb .container { display: flex; align-items: center; gap: .5rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: .7rem; }

/* ===== CATALOG LAYOUT ===== */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; }
.catalog-sidebar { }
.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.catalog-header h1 { font-size: 1.3rem; }
.catalog-header span { font-size: .85rem; color: var(--text-light); }
.products__grid--catalog { grid-template-columns: repeat(3, 1fr); }

.filter-group { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.filter-group h3 { font-size: .95rem; margin-bottom: .75rem; }
.filter-list li { margin-bottom: .3rem; }
.filter-list a { font-size: .88rem; color: var(--text-light); display: block; padding: .2rem .4rem; border-radius: 4px; transition: all .15s; }
.filter-list a:hover, .filter-list a.active { color: var(--primary); background: #eff6ff; font-weight: 600; }

.price-range input { width: 100%; accent-color: var(--primary); }
.price-range__labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-light); margin-top: .4rem; }
.filter-select { width: 100%; padding: .5rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; }

/* ===== PRODUCT DETAIL ===== */
.product-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.product-detail__gallery { }
.product-detail__main-img { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: white; display: flex; align-items: center; justify-content: center; min-height: 380px; padding: 1rem; }
.product-detail__main-img img { max-height: 360px; object-fit: contain; }
.product-detail__thumbs { display: flex; gap: .5rem; margin-top: .5rem; }
.product-detail__thumbs img { width: 64px; height: 64px; object-fit: contain; border: 2px solid var(--border); border-radius: 6px; cursor: pointer; }
.product-detail__thumbs img.active, .product-detail__thumbs img:hover { border-color: var(--primary); }

.product-detail__cat { font-size: .82rem; color: var(--primary); text-transform: capitalize; margin-bottom: .4rem; }
.product-detail__cat a { color: var(--primary); }
.product-detail__title { font-size: 1.5rem; margin-bottom: .6rem; line-height: 1.3; }
.product-detail__rating { display: flex; align-items: center; gap: .4rem; color: #f59e0b; font-size: .9rem; margin-bottom: .75rem; }
.product-detail__rating span { color: var(--text-light); font-size: .82rem; }

.product-detail__prices { background: #f8fafc; border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.product-detail__old { color: var(--text-light); text-decoration: line-through; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.discount-tag { background: var(--accent); color: white; font-size: .72rem; padding: .15rem .4rem; border-radius: 4px; text-decoration: none; }
.product-detail__price { font-size: 1.8rem; font-weight: 700; color: var(--text); margin: .25rem 0; }
.product-detail__pix { color: #16a34a; font-size: .95rem; font-weight: 600; }
.pix-badge { background: #dcfce7; color: #16a34a; font-size: .72rem; padding: .15rem .4rem; border-radius: 4px; margin-left: .3rem; }
.product-detail__installment { font-size: .88rem; color: var(--text-light); margin-top: .25rem; }

.product-detail__desc { font-size: .93rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1rem; }

.product-detail__qty { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-control button { padding: .5rem .9rem; background: var(--bg); border: none; font-size: 1.1rem; cursor: pointer; }
.qty-control button:hover { background: var(--border); }
.qty-control span { padding: .5rem 1rem; font-weight: 600; min-width: 40px; text-align: center; }

.product-detail__actions { display: flex; gap: .75rem; margin-bottom: 1rem; }
.btn--lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn--checkout { background: #16a34a; color: white; border-color: #16a34a; }
.btn--checkout:hover { background: #15803d; }

.product-detail__features { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.product-detail__features div { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-light); }
.product-detail__features i { color: var(--primary); width: 16px; }

/* ===== CHECKOUT STEPS ===== */
.checkout-steps { background: white; border-bottom: 1px solid var(--border); padding: 1rem 0; }
.checkout-steps .container { display: flex; align-items: center; justify-content: center; gap: 0; }
.step { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--text-light); }
.step span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.step.active { color: var(--primary); }
.step.active span { border-color: var(--primary); background: var(--primary); color: white; }
.step.done { color: #16a34a; }
.step.done span { border-color: #16a34a; background: #16a34a; color: white; }
.step-line { flex: 1; height: 2px; background: var(--border); max-width: 80px; margin: 0 .5rem; }
.step-line.active { background: #16a34a; }

/* ===== CHECKOUT LAYOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }

/* ===== FORM ===== */
.form-section-title { font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.form-section-title i { color: var(--primary); }
.checkout-form { }
.form-row { display: flex; gap: 1rem; }
.form-group { flex: 1; margin-bottom: .85rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; color: var(--text); }
.form-group input, .form-group select { width: 100%; padding: .6rem .85rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .92rem; outline: none; transition: border .2s; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ===== PAYMENT ===== */
.payment-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.pay-tab { flex: 1; padding: .75rem; border: 2px solid var(--border); border-radius: var(--radius); background: white; font-size: .9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: all .2s; }
.pay-tab:hover { border-color: var(--primary); color: var(--primary); }
.pay-tab.active { border-color: var(--primary); background: #eff6ff; color: var(--primary); }

.pix-box { display: flex; gap: 1.5rem; align-items: flex-start; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 1.25rem; }
.pix-qr { flex-shrink: 0; }
.pix-discount { color: #16a34a; font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.pix-total { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.pix-key-box { display: flex; align-items: center; gap: .5rem; background: white; border: 1px solid #bbf7d0; border-radius: 6px; padding: .4rem .75rem; font-size: .85rem; word-break: break-all; }

.card-preview { background: linear-gradient(135deg, #1e3a5f, #2563eb); border-radius: 16px; padding: 1.5rem; color: white; max-width: 340px; }
.card-chip { font-size: 1.5rem; margin-bottom: 1rem; opacity: .8; }
.card-number { font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 1rem; font-family: monospace; }
.card-bottom { display: flex; justify-content: space-between; }
.card-bottom small { font-size: .7rem; opacity: .7; display: block; margin-bottom: .15rem; }
.card-bottom p { font-size: .88rem; font-weight: 600; }

.boleto-box { display: flex; gap: 1.25rem; align-items: flex-start; background: #f9fafb; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }

/* ===== CART LAYOUT ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; align-items: center; gap: 1rem; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; }
.cart-item img { width: 80px; height: 80px; object-fit: contain; border-radius: 6px; }
.cart-item__name { font-size: .92rem; font-weight: 600; }
.cart-item__name a:hover { color: var(--primary); }
.cart-item__price { font-size: .85rem; color: var(--text-light); margin-top: .25rem; }
.cart-item__qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-item__qty button { padding: .35rem .7rem; background: var(--bg); border: none; cursor: pointer; font-size: 1rem; }
.cart-item__qty span { padding: .35rem .75rem; font-weight: 600; }
.cart-item__subtotal { font-weight: 700; min-width: 80px; text-align: right; }
.cart-item__remove { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 1.1rem; padding: .3rem; border-radius: 4px; }
.cart-item__remove:hover { color: var(--accent); background: #fee2e2; }

.cart-summary { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 80px; }
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .6rem; }
.summary-row--pix { color: #16a34a; }
.summary-row--total { font-size: 1.1rem; font-weight: 700; padding-top: .6rem; border-top: 2px solid var(--border); margin-top: .4rem; }
.coupon-row { display: flex; gap: .5rem; margin-top: 1rem; }
.coupon-row input { flex: 1; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .88rem; }
.summary-secure { text-align: center; margin-top: 1rem; font-size: .82rem; color: var(--text-light); display: flex; align-items: center; justify-content: center; gap: .4rem; }

/* ===== CONFIRM ===== */
.confirm-box { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; text-align: center; }
.confirm-icon i { font-size: 4.5rem; color: #16a34a; }
.confirm-box h1 { font-size: 1.8rem; margin: .75rem 0 .5rem; }
.confirm-sub { color: var(--text-light); margin-bottom: 1.5rem; }
.confirm-details { background: var(--bg); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; text-align: left; }
.confirm-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.confirm-row:last-child { border-bottom: none; }
.status-badge { background: #fef9c3; color: #854d0e; font-size: .8rem; padding: .2rem .6rem; border-radius: 50px; font-weight: 600; }

.confirm-track { display: flex; align-items: center; margin: 1.5rem 0; }
.track-step { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex-shrink: 0; }
.track-step i { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--text-light); }
.track-step span { font-size: .72rem; color: var(--text-light); max-width: 60px; text-align: center; line-height: 1.2; }
.track-step.done i { border-color: #16a34a; background: #16a34a; color: white; }
.track-step.active i { border-color: var(--primary); background: var(--primary); color: white; }
.track-line { flex: 1; height: 2px; background: var(--border); }
.track-line.done { background: #16a34a; }

/* ===== VARIANTES (COR / ARMAZENAMENTO) ===== */
.variant-group { margin-bottom: 1rem; }
.variant-group label { font-size: .88rem; font-weight: 600; display: block; margin-bottom: .5rem; }
.variant-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.variant-btn {
  padding: .35rem .85rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: white;
  font-size: .85rem;
  cursor: pointer;
  transition: all .15s;
  color: var(--text);
}
.variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.variant-btn.active { border-color: var(--primary); background: var(--primary); color: white; font-weight: 600; }
.variant-btn--storage { font-family: monospace; font-size: .82rem; }

/* ===== RESPONSIVE NOVAS PÁGINAS ===== */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { display: flex; gap: 1rem; flex-wrap: wrap; }
  .filter-group { flex: 1; min-width: 180px; }
  .products__grid--catalog { grid-template-columns: repeat(2, 1fr); }
  .product-detail__grid { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .cart-item__qty { grid-column: 1; }
  .cart-item__subtotal { grid-column: 2; text-align: left; }
  .cart-item__remove { grid-column: 2; justify-self: end; }
  .form-row { flex-direction: column; gap: 0; }
  .product-detail__actions { flex-direction: column; }
  .confirm-track { overflow-x: auto; }
  .checkout-steps .container { gap: 0; }
  .step span { width: 24px; height: 24px; font-size: .72rem; }
  .step { font-size: .75rem; }
  .step-line { max-width: 30px; }
}
