/*
Theme Name: Shoppi
Theme URI: https://curso.premiundev.com
Author: Shoppi
Description: Marketplace homepage for Shoppi
Version: 1.0.7
Text Domain: shoppi
*/

:root {
  --ink: #1c1c1e;
  --muted: #8d939c;
  --orange: #ff6a00;
  --soft: #f3f4f6;
  --card: #f5f6f8;
  --shadow: 0 24px 70px rgba(150, 166, 196, 0.28);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-bg { min-height: 100vh; }

.shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 28px 40px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.logo {
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.searchwrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.search {
  width: min(540px, 100%);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border-radius: 999px;
  padding: 0 16px;
  color: #9aa1aa;
}

.search svg { width: 18px; height: 18px; flex: 0 0 auto; }

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: 500 15px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
}

.search input::placeholder { color: #a0a6ae; }

.actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.icon-btn, .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: #2a2a2a;
  text-decoration: none;
  position: relative;
  border: 0;
}

.icon-btn svg { width: 20px; height: 20px; }

.avatar { padding: 0; overflow: hidden; background: #f6d7c4; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.layout { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.82fr;
  gap: 16px;
}

.sale, .promo, .camera {
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
}

.sale {
  min-height: 248px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  padding: 28px 12px 28px 32px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3fb 55%, #f7f3ef 100%);
  overflow: hidden;
}

.sale-copy h2 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.sale-copy p {
  margin: 0 0 18px;
  color: #9aa1aa;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.sale img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}

.btn-orange, .btn-dark, .see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  box-shadow: 0 8px 16px rgba(255, 106, 0, 0.25);
}

.hero-side { display: grid; gap: 16px; }

.promo {
  min-height: 116px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  background: linear-gradient(180deg, #fde8df 0%, #f8d5c6 100%);
}

.promo p {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.promo span { color: var(--orange); }

.camera {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 16px 16px 22px;
  background: #f4f7fb;
}

.camera h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -0.02em; }
.camera img { width: 140px; height: 96px; object-fit: cover; border-radius: 12px; }

.btn-dark {
  background: #1c1c1e;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
}

.popular { margin-top: 26px; }

.popular-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.popular-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.see-all {
  background: #f3f4f6;
  color: #6d737c;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  gap: 6px;
}

.popular-clip { overflow: visible; }

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 248px;
  padding: 18px 12px 16px;
  background: var(--card);
  border-radius: 22px;
  text-decoration: none;
  color: #2c2c2e;
}

.pcard img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
}

.pcard-name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.pill {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.pill-sale { background: #3a3a3c; color: #fff; }
.pill-new { background: #d7d9de; color: #333; }

.inner-page, .woocommerce { padding: 8px 4px 28px; }

.inner-page h1,
.woocommerce-products-header__title {
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--card);
  border-radius: 22px;
  padding: 16px;
  text-align: center;
}

.woocommerce ul.products li.product img,
.shoppi-illus {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 8px;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: 280px 1fr;
  column-gap: 32px;
  row-gap: 28px;
  align-items: start;
  padding-bottom: 24px;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
  grid-column: 1 / -1;
}

.shoppi-single-media {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 28px;
}

.shoppi-single-media img { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; }

.woocommerce span.onsale {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  margin: 0;
  background: #3a3a3c;
  color: #fff;
  border-radius: 999px;
  min-height: 0;
  min-width: 0;
  line-height: 1;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.woocommerce div.product .product_title { margin-top: 0; letter-spacing: -0.03em; }

.woocommerce div.product form.cart .button,
.woocommerce a.button,
.woocommerce button.button {
  background: var(--orange) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: 0 !important;
  padding: 12px 18px !important;
  font-weight: 600 !important;
}

.shoppi-results { list-style: none; padding: 0; }
.shoppi-results a { display: block; padding: 12px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid #f0f1f3; }

@media (max-width: 980px) {
  .shell { padding: 18px 16px 28px; }
  .topbar { flex-wrap: wrap; }
  .searchwrap { order: 3; flex-basis: 100%; }
  .hero, .woocommerce div.product, .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .sale { grid-template-columns: 1fr; padding: 22px; }
  .popular-grid { grid-template-columns: 1fr 1fr; }
  .popular-clip { max-height: none; }
  .promo p { font-size: 22px; }
}
