:root {
  --solo: #4a3728;
  --terracotta: #8c6d51;
  --areia: #b2967d;
  --perola: #d7ccc8;
  --paper: #fbf8f4;
  --white: #ffffff;
  --ink: #1f1b18;
  --muted: #75685f;
  --line: rgba(74, 55, 40, 0.14);
  --line-strong: rgba(74, 55, 40, 0.24);
  --tech: #65e8ee;
  --tech-soft: rgba(101, 232, 238, 0.22);
  --ok: #2f8f62;
  --danger: #b45142;
  --shadow: 0 24px 70px rgba(74, 55, 40, 0.12);
  --radius: 4px;
  --content: 1100px;
      --font-body: "Times New Roman", Times, serif;
      --font-display: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf9 0%, #f7f0ea 48%, #fffaf5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 10%, rgba(101, 232, 238, 0.18), transparent 26rem),
    radial-gradient(circle at 10% 32%, rgba(178, 150, 125, 0.25), transparent 28rem);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
label { display: grid; gap: 0.45rem; color: var(--solo); font-size: 0.86rem; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  background: rgba(255,255,255,0.78);
}
textarea { min-height: 116px; resize: vertical; }
:focus-visible { outline: 3px solid var(--tech); outline-offset: 3px; }

.container {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

.topline {
  display: none !important;
  background: var(--solo);
  color: #fff6ef;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.62rem 1rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(74, 55, 40, 0.1);
  background: rgba(251, 248, 244, 0.8);
  backdrop-filter: blur(22px) saturate(150%);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 84px;
}

.brand img { width: min(190px, 42vw); height: auto; }

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  color: var(--solo);
  background: rgba(215, 204, 200, 0.55);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--solo);
  background: rgba(255,255,255,0.66);
}

.count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--solo);
  background: var(--tech);
  font-size: 0.68rem;
  font-weight: 900;
}

.page-hero {
  padding: clamp(2.8rem, 7vw, 6rem) 0 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.breadcrumb a { color: var(--terracotta); }

h1, h2, h3 {
  margin: 0;
  color: var(--solo);
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 14ch;
  margin-top: 0.8rem;
  font-size: 36px;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.12;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  padding: 1rem 0 clamp(3rem, 6vw, 5rem);
}

.panel,
.card,
.summary-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 18px 50px rgba(74,55,40,0.08);
}

.panel { padding: 1rem; align-self: start; position: sticky; top: 108px; }
.panel-title {
  margin: 0 0 0.85rem;
  color: var(--solo);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-group {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.check input { width: auto; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
}

.toolbar strong { color: var(--solo); }

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(74,55,40,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 14px 42px rgba(74, 55, 40, 0.08);
}

.product-card:hover { border-color: rgba(101,232,238,0.55); box-shadow: var(--shadow); }

.product-media {
  position: relative;
  min-height: 286px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 70%, rgba(101,232,238,0.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(215,204,200,0.48));
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shoe-render {
  position: relative;
  width: min(78%, 280px);
  aspect-ratio: 1.65 / 1;
  transform: rotate(-7deg);
  filter: drop-shadow(0 24px 24px rgba(74, 55, 40, 0.2));
}

.shoe-render::before,
.shoe-render::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.shoe-render::before {
  inset: 42% 2% 8% 0;
  background: linear-gradient(135deg, var(--sole-a), var(--sole-b));
  box-shadow: inset 0 -8px 12px rgba(0,0,0,0.17);
}

.shoe-render::after {
  left: 18%;
  top: 22%;
  width: 56%;
  height: 32%;
  border: 18px solid var(--strap);
  border-bottom: 0;
  border-radius: 70% 70% 0 0;
  box-shadow: 0 8px 12px rgba(74, 55, 40, 0.14);
}

.badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  border-radius: 999px;
  padding: 0.44rem 0.66rem;
  color: var(--solo);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info { padding: 1rem; }
.category {
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-title {
  display: block;
  margin-top: 0.35rem;
  color: var(--solo);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.stars {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.55rem;
  color: var(--terracotta);
  font-size: 0.82rem;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.price strong { color: var(--ink); font-size: 1.18rem; }
.price del { color: var(--muted); font-size: 0.82rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fffaf6 !important;
  background: linear-gradient(135deg, var(--solo), #24170f);
  box-shadow: 0 18px 32px rgba(74, 55, 40, 0.2);
}
.btn-secondary {
  color: var(--solo);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.7);
}
.btn-full { width: 100%; }

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.quick {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--solo);
  background: rgba(255,255,255,0.72);
}

.pagination {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.pagination a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.72);
  font-weight: 900;
}
.pagination a.active { color: var(--solo); background: var(--tech-soft); border-color: rgba(101,232,238,0.65); }

.product-page {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 2rem 0 clamp(3rem, 6vw, 5rem);
}

.gallery {
  display: grid;
  gap: 1rem;
}

.gallery .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.gallery .woocommerce-product-gallery__image:first-child {
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.gallery .woocommerce-product-gallery__image:first-child img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 0.65rem 0 0 !important;
  padding: 0 !important;
  list-style: none;
}

.gallery .flex-control-thumbs li {
  width: auto !important;
  float: none !important;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  overflow: hidden;
}

.gallery .flex-control-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main {
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}
.gallery-main img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
.thumb {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-summary {
  align-self: start;
  padding: 1.2rem;
  position: sticky;
  top: 108px;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 0;
  color: var(--ok);
  font-size: 0.86rem;
  font-weight: 900;
}

.options {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.size-grid, .color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.size-grid button,
.color-grid button {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--solo);
  background: rgba(255,255,255,0.7);
  font-weight: 900;
}
.size-grid button.active,
.color-grid button.active { border-color: var(--tech); box-shadow: 0 0 0 4px var(--tech-soft); }
.color-grid button { font-size: 0; }

.quantity {
  display: inline-grid;
  grid-template-columns: 42px 54px 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
}
.quantity button { background: transparent; color: var(--solo); font-weight: 900; }
.quantity input { border: 0; padding: 0; text-align: center; background: transparent; }

.summary-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}
.summary-list strong { color: var(--solo); }

.tabs {
  display: grid;
  gap: 1rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.tabbar { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tabbar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  background: rgba(255,255,255,0.72);
  font-weight: 900;
}
.tabbar button.active { color: var(--solo); background: var(--tech-soft); border-color: rgba(101,232,238,0.65); }
.tab-content { padding: 1.2rem; line-height: 1.75; color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1rem;
  padding: 1rem 0 clamp(3rem, 6vw, 5rem);
}

.cart-table {
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid var(--line);
}
.cart-row:first-child { border-top: 0; }
.cart-thumb {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(215,204,200,0.45);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-title { color: var(--solo); font-weight: 900; }
.cart-meta { margin-top: 0.28rem; color: var(--muted); font-size: 0.88rem; }
.cart-price { text-align: right; color: var(--solo); font-weight: 900; }
.remove { margin-top: 0.45rem; color: var(--danger); font-size: 0.82rem; font-weight: 800; background: transparent; }

.summary-box { padding: 1rem; align-self: start; position: sticky; top: 108px; }
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.summary-line:first-of-type { border-top: 0; }
.summary-line.total { color: var(--solo); font-size: 1.2rem; font-weight: 900; }

.coupon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-top: 1rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1rem;
  padding: 1rem 0 clamp(3rem, 6vw, 5rem);
}
.form-card { padding: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.form-grid .full { grid-column: 1 / -1; }
.payment-method {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.payment-method label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.58);
}
.payment-method input { width: auto; margin-top: 0.2rem; }
.payment-method span { color: var(--muted); font-size: 0.88rem; font-weight: 500; line-height: 1.55; }

.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  padding: 1rem 0 clamp(3rem, 6vw, 5rem);
}
.account-nav {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem;
}
.account-nav a {
  padding: 0.78rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}
.account-nav a.active,
.account-nav a:hover {
  color: var(--solo);
  background: var(--tech-soft);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat {
  padding: 1rem;
}
.stat span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stat strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--solo);
  font-size: 1.8rem;
}
.order-list { margin-top: 1rem; overflow: hidden; }
.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--line);
}
.order-row:first-child { border-top: 0; }
.status {
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  color: var(--ok);
  background: rgba(47,143,98,0.1);
  font-size: 0.78rem;
  font-weight: 900;
}

.footer {
  padding: 3rem 0 1.4rem;
  color: #fff8f2;
  background: #211713;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1.4rem;
}
.footer img { width: 190px; filter: brightness(1.35); }
.footer p, .footer li { color: rgba(255,248,242,0.68); line-height: 1.7; }
.footer h3 {
  color: #fff8f2;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer ul {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,248,242,0.55);
  font-size: 0.86rem;
}

.wa-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.28);
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    border-radius: var(--radius);
  }
  .nav-menu {
    width: max-content;
  }
  .layout,
  .product-page,
  .two-col,
  .checkout-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .panel,
  .product-summary,
  .summary-box {
    position: static;
  }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .topline { font-size: 0.68rem; }
  .header-inner { min-height: 72px; }
  .toolbar,
  .cart-row,
  .order-row,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .products,
  .form-grid,
  .dashboard-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-media { min-height: 280px; }
  .gallery-main,
  .gallery-main img,
  .gallery .woocommerce-product-gallery__image:first-child,
  .gallery .woocommerce-product-gallery__image:first-child img {
    min-height: 360px;
  }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .cart-price { text-align: left; }
  .coupon { grid-template-columns: 1fr; }
}
