/* =========================
         Font: Druk (titles)
         ========================= */
@font-face {
  font-family: "Druk";
  src: url("./fonts/Druk-Font-Family/Druk%20Family/Druk-Bold-Trial.otf")
    format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #6a6a6a;
  --line: rgba(0, 0, 0, 0.1);
  --radius: 14px;
  --maxw: 1280px;

  --gap: clamp(16px, 2.2vw, 28px);
  --padX: clamp(18px, 3.2vw, 40px);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.page {
  padding: 22px var(--padX) 60px;
  padding-top: 100px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* =========================
         Breadcrumb
         ========================= */
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb .sep {
  opacity: 0.6;
}

/* =========================
         Top Bar (VIEW | title centered | SORT)
         ========================= */
.topbar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__right {
  justify-content: flex-end;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 8px;
  cursor: pointer;
}
.chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: 0.9;
}

.topbar__title {
  margin: 0;
  text-align: center;
  font-family:
    "Druk",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}
.topbar__title small {
  font-family: inherit;
  font-size: 0.55em;
  opacity: 0.8;
  vertical-align: super;
}

.divider {
  margin: 18px 0 26px;
  height: 1px;
  background: var(--line);
}

/* =========================
         Product grid
         (Desktop: 4 columns like screenshot)
         (Tablet: 2 columns)
         (Small: 1 column)
         ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
         Card + entry animation
         ========================= */
.Pcard {
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(14px);
  animation: enter 700ms var(--ease) forwards;
}
.Pcard:nth-child(1) {
  animation-delay: 80ms;
}
.Pcard:nth-child(2) {
  animation-delay: 160ms;
}
.Pcard:nth-child(3) {
  animation-delay: 240ms;
}
.Pcard:nth-child(4) {
  animation-delay: 320ms;
}
.Pcard:nth-child(5) {
  animation-delay: 400ms;
}
.Pcard:nth-child(6) {
  animation-delay: 480ms;
}
.Pcard:nth-child(7) {
  animation-delay: 560ms;
}
.Pcard:nth-child(8) {
  animation-delay: 640ms;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f3f3f3;
  /* similar to your screenshot (tall) */
  aspect-ratio: 4 / 5;
  transform: translateZ(0);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 20% 10%,
    rgba(255, 255, 255, 0.08),
    rgba(0, 0, 0, 0.09)
  );
  opacity: 0;
  transition: opacity 450ms var(--ease);
  pointer-events: none;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0001);
  transition:
    transform 650ms var(--ease),
    filter 650ms var(--ease);
  will-change: transform;
}

.meta {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.01em;
}

.price {
  margin: 0;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text);
  white-space: nowrap;
}

.name,
.price {
  position: relative;
}

/* premium underline animation */
.name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--ease);
  opacity: 0.9;
}

/* hover */
.Pcard:hover .media {
  box-shadow: var(--shadow);
}
.Pcard:hover .media img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.03);
}
.Pcard:hover .media::after {
  opacity: 1;
}
.Pcard:hover .name::after {
  transform: scaleX(1);
}

/* focus */
.Pcard:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.55);
  outline-offset: 6px;
  border-radius: 10px;
}

.floating-btn-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  height: 50px;
  background: linear-gradient(135deg, #444444, #111111, #000000);

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(85, 85, 85, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
  outline: none;
}

.floating-btn-whatsapp:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(85, 85, 85, 0.4);
}

.floating-btn-whatsapp:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 5px 15px rgba(85, 85, 85, 0.4);
}
.floating-btn-whatsapp i {
  color: white;
  font-size: 24px;
  padding: 10px;
}

.floating-btn-whatsapp:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

.tooltip {
  position: absolute;
  bottom: 55px;
  right: 10px;
  background: linear-gradient(135deg, #444444, #111111, #000000);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
@media (max-width: 767px) {
  .floating-btn-whatsapp {
    bottom: 20px;
    right: 20px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .Pcard {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .media img,
  .media::after,
  .name::after {
    transition: none;
  }
}
