
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0d1210;
  --surface: #17201b;
  --surface-2: #202b24;
  --green: #277a5d;
  --green-light: #86e8b3;
  --silver: #c0c5c3;
  --white: #f8faf8;
  --muted: #aab8ad;
  --line: rgba(255,255,255,.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.shop-shell {
  width: min(1320px, calc(100% - 48px));
  margin: auto;
}

/* HEADER */
.shop-header {
  min-height: 90px;
  padding: 14px max(24px, calc((100vw - 1320px)/2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #111a15;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--silver);
}

.shop-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
}

.shop-header nav a:hover,
.shop-header nav .selected {
  color: var(--green-light);
}

.cart-link {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
}

[data-cart-count] {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 50px;
  background: var(--green);
  color: white;
}

/* BANNER */
.shop-banner {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.collect-banner {
  background:
    radial-gradient(ellipse at 80% 50%,
      rgba(39,122,93,.3), transparent 60%),
    linear-gradient(120deg,#0c1510,#17291e);
}

.print-banner {
  background:
    radial-gradient(ellipse at 80% 50%,
      rgba(192,197,195,.18), transparent 60%),
    linear-gradient(120deg,#111615,#29312f);
}

.eyebrow {
  color: var(--green-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.shop-banner h1 {
  max-width: 720px;
  font-size: clamp(34px,5vw,64px);
  letter-spacing: -2px;
  margin: 15px 0;
  line-height: 1.1;
}

.shop-banner p,
.shop-heading p,
.cart-intro {
  color: var(--muted);
}

/* CATÁLOGO */
.shop-main { padding: 60px 0 100px; }

.shop-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 35px;
}

.shop-heading h2 {
  font-size: 36px;
  margin: 10px 0 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 30px;
  align-items: start;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.filters h3 { margin: 0 0 10px; }

.filters label {
  font-size: 12px;
  font-weight: 700;
  color: var(--silver);
}

.filters input:not([type="checkbox"]),
.filters select,
.catalog-toolbar select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  background: #101813;
  color: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}

.filters input:focus,
.filters select:focus {
  border-color: var(--green-light);
}

.check-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.check-line input { accent-color: var(--green); }

.btn-secondary {
  padding: 13px;
  color: white;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.catalog-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-toolbar select { width: 190px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  transition: transform .2s, border-color .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(134,232,179,.5);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.product-card.print .product-image {
  background: linear-gradient(135deg,#434d49,#171e1b);
}

.product-placeholder {
  font-size: 64px;
  opacity: .9;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(5,12,8,.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 700;
}

.product-info { padding: 20px; }

.product-category {
  color: var(--green-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-info h3 {
  min-height: 46px;
  font-size: 16px;
  line-height: 1.4;
  margin: 10px 0;
}

.product-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  min-height: 38px;
}

.product-price {
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin: 18px 0 8px;
}

.product-status {
  color: var(--silver);
  font-size: 11px;
  min-height: 18px;
  margin-bottom: 15px;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.btn-primary:not(:disabled):hover {
  background: #32946d;
}

.empty-state {
  grid-column: 1/-1;
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--muted);
}

/* CARRITO */
.cart-page {
  min-height: 65vh;
  padding: 70px 0 100px;
}

.cart-page h1 {
  font-size: 48px;
  margin: 10px 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  align-items: start;
  gap: 30px;
  margin-top: 40px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.cart-item-image {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 35px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { margin: 0 0 8px; }
.cart-item-info p { color: var(--muted); font-size: 12px; }

.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.quantity-control button,
.remove-item {
  padding: 6px 11px;
  background: #29362d;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: white;
}

.remove-item { color: #ffc6c6; }

.cart-summary {
  position: sticky;
  top: 20px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.cart-summary h2 { margin-top: 0; }

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.summary-line.total {
  font-size: 17px;
  color: var(--green-light);
}

.summary-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 22px 0;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--green-light);
}

/* NOTIFICACIONES */
#shop-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  max-width: min(350px,90vw);
  padding: 15px 22px;
  background: #277a5d;
  color: white;
  border-radius: 12px;
  box-shadow: 0 10px 35px #0008;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: .25s;
}

#shop-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.shop-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 30px 5%;
  background: #111a15;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.shop-footer a { color: var(--green-light); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 800px) {
  .shop-header { flex-direction: column; }
  .shop-header nav { justify-content: center; gap: 15px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters h3 { grid-column: 1/-1; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 560px) {
  .shop-shell { width: calc(100% - 30px); }
  .shop-banner { padding: 65px 0; }
  .shop-main { padding: 40px 0 70px; }
  .shop-heading { align-items: start; flex-direction: column; }
  .filters { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 260px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-info { flex-basis: calc(100% - 115px); }
  .cart-item > strong { margin-left: auto; }
}
