@import url("common.css");
@import url("cart.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css");

.product-low-stock-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 176, 32, 0.12);
  color: #ffc46a;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
}
.product-low-stock-note[hidden] { display: none; }
.product-low-stock-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

/* Page-specific overrides */
html {
  height: 100%;
  overflow-x: clip;
}

body {
  background-size: cover;
  background-repeat: repeat;
  position: relative;
  overflow-x: clip;
}

#content {
  padding-top: 4.5em; /* Same height as your navbar */
  top: 0;
}

.heading-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.heading-container::before {
  content: "●"; /* Bullet */
  font-size: 1.5rem;
  color: #ffba01;
  padding: 0%;
  margin-right: 0.2em;
  margin-top: 0%;
}

h2 {
  margin: 0%;
  text-align: left;
}

/* === HERO START === */

.hero {
  padding: 1.4em 1.5em 0;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 55vh;
  margin: 0 auto;
  overflow: hidden;
  justify-content: center;
  border-radius: 1.6em;
  border: 1px solid rgba(255, 186, 1, 0.22);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center,
      transparent 55%,
      rgba(24, 20, 14, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(24, 20, 14, 0.08) 0%,
      transparent 35%,
      transparent 65%,
      rgba(24, 20, 14, 0.55) 100%
    );
  z-index: 2;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.slide {
  display: none;
  align-items: center; /* Centers .slide-text vertically */
  justify-content: center;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  backdrop-filter: blur(3px);
}

.slide.active {
  display: flex;
  animation: fade 1s ease-in-out;
  justify-content: center;
  align-items: center; /* center text vertically */
}

.slide-text {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Ensures vertical centering */
  width: 20vw;
  padding-left: 35em;
  text-align: left;
}

.slide-text :is(h1, h2) {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  text-transform: none;
  color: #ffba01;
}

.slide-text p {
  font-size: 1rem;
  line-height: 1;
}

.slide-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.slide-image img {
  max-height: 100%; /* or tune it lower if overflowing */
  object-fit: cover;
  margin-right: 35em;
}

/* This only affects the fourth slide's image */
.full-height-image {
  align-items: stretch !important;
}

.full-height-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8em;
  height: 2.8em;
  border: none;
  background: transparent;
  color: #ffba01;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.15);
}

.nav:focus-visible {
  outline: 2px solid #ffba01;
  outline-offset: 3px;
  border-radius: 4px;
}

.prev {
  left: 1.2em;
}

.next {
  right: 1.2em;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* === HERO END === */

/* === DISPLAY BAR === */
.display-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.4em auto 0.6em;
  padding: 0 2em;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.3em;
  border-radius: 999px;
  border: 1px solid rgba(255, 186, 1, 0.35);
  background: rgba(24, 20, 14, 0.55);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.1em;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.view-toggle-btn svg {
  display: block;
  flex-shrink: 0;
}

.view-toggle-btn:hover:not(.is-active) {
  color: #fff;
  background: rgba(255, 186, 1, 0.12);
}

.view-toggle-btn.is-active {
  color: #1f1b15;
  background: linear-gradient(90deg, #ffba01 0%, #eab233 49%, #ce8600 100%);
  box-shadow: 0 4px 12px rgba(206, 134, 0, 0.45);
}

.view-toggle-btn:focus-visible {
  outline: 2px solid #ffba01;
  outline-offset: 2px;
}

/* === FLOATING FILTER FAB (lives inside .cart-row) === */
.filter-fab-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-fab {
  position: relative;
  height: 4em;
  width: 4em;
  margin-top: 2em;
  background: linear-gradient(135deg, #ffba0180 0%, #ce8600 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 11;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.filter-fab:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.filter-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.filter-fab img {
  width: 1.7em;
  height: 1.7em;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.filter-fab-badge {
  position: absolute;
  top: -0.35em;
  right: -0.35em;
  width: 1.5em;
  height: 1.5em;
  padding: 0;
  background: #1f1b15;
  color: #ffba01;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.filter-fab.has-active .filter-fab-badge {
  display: flex;
}

/* === FILTER PANEL === */
.filter-panel {
  position: absolute;
  top: calc(100% + 0.7em);
  left: 0;
  width: 22em;
  max-width: calc(100vw - 4em);
  max-height: calc(100vh - 14em);
  overflow-y: auto;
  padding: 1.4em 1.5em 0;
  border-radius: 1.2em;
  border: 1px solid rgba(255, 186, 1, 0.18);
  background: linear-gradient(
      180deg,
      rgba(255, 186, 1, 0.18) 0%,
      rgba(60, 45, 15, 0.55) 60%,
      rgba(30, 24, 10, 0.85) 100%
    ),
    rgba(24, 20, 14, 0.92);
  background-clip: padding-box;
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: #fff;
  z-index: 12;
  text-align: left;
  transform-origin: top left;
  animation: filter-panel-in 0.22s ease-out;
}

.filter-panel.hidden {
  display: none;
}

@keyframes filter-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.filter-panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffba01;
}

.filter-panel-close {
  background: transparent;
  border: none;
  width: 1.6em;
  height: 1.6em;
  padding: 0;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.filter-panel-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.filter-panel-close img {
  width: 100%;
  height: 100%;
}

.filter-section {
  margin-bottom: 1.1em;
}

.filter-section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.55em;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.filter-chip {
  padding: 0.4em 0.85em;
  border-radius: 999px;
  border: 1px solid rgba(255, 186, 1, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.15s ease;
}

.filter-chip:hover {
  background: rgba(255, 186, 1, 0.15);
  border-color: rgba(255, 186, 1, 0.6);
}

.filter-chip:focus-visible {
  outline: 2px solid #ffba01;
  outline-offset: 2px;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, #ffba01 0%, #ce8600 100%);
  border-color: #ffba01;
  color: #1f1b15;
  box-shadow: 0 4px 12px rgba(206, 134, 0, 0.4);
}

.filter-panel-footer {
  position: sticky;
  bottom: 0;
  margin: 1.2em -1.5em 0;
  padding: 1em 1.5em 1.4em;
  border-top: 1px solid rgba(255, 186, 1, 0.22);
  background: linear-gradient(
    180deg,
    rgba(24, 20, 14, 0.6) 0%,
    rgba(24, 20, 14, 0.92) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.6em;
}

/* === FILTER SEARCH INPUT === */
.filter-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.85em;
  border-radius: 0.7em;
  border: 1px solid rgba(255, 186, 1, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-search-wrap:focus-within {
  border-color: #ffba01;
  background: rgba(255, 186, 1, 0.08);
}

.filter-search-icon {
  flex-shrink: 0;
  color: rgba(255, 186, 1, 0.85);
}

.filter-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
}

.filter-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.filter-search-input::-webkit-search-cancel-button {
  display: none;
}

.filter-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border: none;
  border-radius: 50%;
  background: rgba(255, 186, 1, 0.2);
  color: #ffba01;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.filter-search-clear:hover {
  background: rgba(255, 186, 1, 0.4);
  transform: scale(1.1);
}

/* === RESULTS BAR === */
.results-bar {
  max-width: 1100px;
  margin: 0.6em auto 0.4em;
  padding: 0 2em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8em 1em;
}

.results-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.results-count strong {
  color: #ffba01;
  font-weight: 800;
}

.results-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  flex: 1;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.4em 0.35em 0.85em;
  border-radius: 999px;
  border: 1px solid rgba(255, 186, 1, 0.5);
  background: rgba(255, 186, 1, 0.12);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.active-filter-pill span:first-child {
  opacity: 0.7;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.active-filter-pill .pill-value {
  opacity: 1;
  text-transform: none;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.active-filter-pill button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  margin-left: 0.1em;
  border: none;
  border-radius: 50%;
  background: rgba(255, 186, 1, 0.25);
  color: #ffba01;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.active-filter-pill button:hover {
  background: rgba(255, 186, 1, 0.5);
  transform: scale(1.1);
}

/* === EMPTY STATE === */
.empty-state {
  max-width: 480px;
  margin: 1em auto 4em;
  padding: 2.5em 2em;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 1.4em;
  border: 1px dashed rgba(255, 186, 1, 0.35);
  background: rgba(24, 20, 14, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.empty-state.hidden {
  display: none;
}

.empty-state svg {
  color: #ffba01;
  opacity: 0.65;
  margin-bottom: 0.6em;
}

.empty-state h3 {
  margin: 0 0 0.4em;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.04em;
}

.empty-state p {
  margin: 0 0 1.4em;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.empty-state-clear {
  padding: 0.75em 1.6em;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffba01 0%, #eab233 49%, #ce8600 100%);
  color: #1f1b15;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(206, 134, 0, 0.35);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.empty-state-clear:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* === SKELETON CARDS === */
.product-card.is-skeleton {
  pointer-events: none;
  background: rgba(24, 20, 14, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}

.product-card.is-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

.product-card.is-skeleton .product-bg-vector,
.product-card.is-skeleton .add-to-cart {
  opacity: 0;
}

.product-card.is-skeleton .skeleton-block {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.4em;
}

.product-card.is-skeleton .skeleton-name {
  height: 2.4em;
  margin: 1.2em 1.1em 1em;
}

.product-card.is-skeleton .skeleton-select {
  height: 2.6em;
  margin: 0 1.1em 1em;
  border-radius: 22px;
}

.product-card.is-skeleton .skeleton-row {
  height: 1.2em;
  margin: 0.6em 1.6em;
}

.product-card.is-skeleton .skeleton-price {
  height: 2.2em;
  width: 6em;
  margin: 0.8em auto;
}

@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card.is-skeleton::after {
    animation: none;
  }
}

/* === RECENTLY VIEWED === */
.recently-viewed {
  max-width: 1200px;
  margin: 2em auto 3em;
  padding: 1.6em 2em 2em;
  border-radius: 1.4em;
  border: 1px solid rgba(255, 186, 1, 0.18);
  background: linear-gradient(
      180deg,
      rgba(255, 186, 1, 0.08) 0%,
      rgba(24, 20, 14, 0.5) 100%
    ),
    rgba(24, 20, 14, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.recently-viewed.hidden {
  display: none;
}

.recently-viewed-title {
  margin: 0 0 1em;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  border-left: 3px solid #ffba01;
  padding-left: 0.7em;
}

.recently-viewed-track {
  display: flex;
  gap: 1em;
  overflow-x: auto;
  overflow-y: visible;
  padding: 1em 0.2em 1.4em;
  margin: -1em -0.2em -0.6em;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 186, 1, 0.4) transparent;
}

.recently-viewed-track::-webkit-scrollbar {
  height: 6px;
}

.recently-viewed-track::-webkit-scrollbar-thumb {
  background: rgba(255, 186, 1, 0.4);
  border-radius: 999px;
}

.recently-viewed-card {
  position: relative;
  flex: 0 0 auto;
  width: 13em;
  height: 10em;
  scroll-snap-align: start;
  padding: 0;
  border-radius: 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(35, 29, 20, 0.85);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.recently-viewed-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 186, 1, 0.45);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 186, 1, 0.15);
}

.recently-viewed-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.recently-viewed-thumb img {
  position: absolute;
  top: 38%;
  left: 70%;
  width: auto;
  height: 280%;
  transform: translate(-50%, -50%) rotate(-22deg);
  opacity: 0.45;
  filter: none;
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.recently-viewed-card:hover .recently-viewed-thumb img {
  opacity: 0.6;
  transform: translate(-50%, -50%) rotate(-22deg) scale(1.05);
}

.recently-viewed-name {
  position: absolute;
  left: 1.1em;
  right: 1.1em;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 55%;
}

@media (max-width: 720px) {
  .results-bar {
    padding: 0 1em;
  }
  .recently-viewed {
    margin: 1.5em 1em 2em;
    padding: 1.2em 1em 1.5em;
  }
}

.filter-clear-btn {
  flex-shrink: 0;
  padding: 0.75em 1.1em;
  border-radius: 0.7em;
  border: 1px solid rgba(255, 186, 1, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
}

.filter-clear-btn:hover:not(:disabled) {
  background: rgba(255, 186, 1, 0.15);
  border-color: rgba(255, 186, 1, 0.65);
  color: #ffba01;
}

.filter-clear-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.filter-apply-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.1em;
  border: none;
  border-radius: 0.7em;
  background: linear-gradient(90deg, #ffba01 0%, #eab233 49%, #ce8600 100%);
  color: #1f1b15;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(206, 134, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-apply-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(206, 134, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.filter-apply-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.filter-apply-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.5em;
  border-radius: 999px;
  background: #1f1b15;
  color: #ffba01;
  font-weight: 900;
  font-size: 0.82rem;
  box-shadow: inset 0 0 0 1px rgba(255, 186, 1, 0.4);
}

@media (max-width: 600px) {
  .filter-fab {
    height: 3.4em;
    width: 3.4em;
  }

  .filter-panel {
    left: 0;
    right: auto;
    width: calc(100vw - 2em);
    max-width: calc(100vw - 2em);
  }
}

.products-container {
  max-width: 1300px;
  margin: 2em auto 4em;
  padding: 0 2em;
  z-index: 7;
}

.products-container.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4em;
  justify-content: center;
}

.products-container.list-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
}

.list-view .product-card {
  width: 100%;
  max-width: 720px;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1.25fr;
  gap: 1.8em;
  align-items: stretch;
  padding: 1.8em 1.8em 1.6em;
  overflow: hidden;
}

.list-view .product-card > .product-bg-vector {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 1 / span 5;
  min-height: 0;
  overflow: visible;
}

.list-view .product-card > .product-bg-vector img {
  top: 38%;
  left: 50%;
  height: 200%;
  transform: translate(-42%, -50%) rotate(16deg);
  opacity: 0.6;
  filter: drop-shadow(0 0 24px rgba(255, 186, 1, 0.25));
}

.list-view .product-card > .product-option-description {
  grid-column: 2;
  margin: 0 0 0.2em;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
  min-height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-view .product-card > .product-name-bar {
  position: static;
  transform: none;
  grid-column: 2;
  display: block;
  margin: 0 0 0.3em;
  padding: 0 0 0.35em;
  border: none;
  border-bottom: 2px solid #f6b717;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
  font-size: 1.8em;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.list-view .product-card > a.product-name-bar:hover {
  background: transparent;
  color: #ffba01;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.list-view .product-card > .product-option-wrap {
  position: static;
  grid-column: 2;
  margin: 0.2em 0 0;
}

.list-view .product-card > .product-info {
  position: static;
  grid-column: 2;
  margin: 0.3em 0 0;
  gap: 0.35em;
}

.list-view .product-card .qty-price-wrap {
  margin-top: 0.2em;
}

.list-view .product-card .product-row {
  font-size: 1rem;
}

.list-view .product-card .row-label {
  font-size: 0.78rem;
}

.list-view .product-card .qty-price {
  font-size: 2rem;
}

.list-view .product-card > .add-to-cart {
  position: static;
  grid-column: 2;
  margin-top: 0.2em;
  border-radius: 0.9em;
  padding: 0.85em 1em;
  background: linear-gradient(90deg, #c48d00 0%, #a56f00 49%, #7a4f00 100%);
  box-shadow: none;
  font-size: 0.85em;
}

.list-view .product-card > .add-to-cart img {
  filter: brightness(0) invert(1);
}

@media (max-width: 620px) {
  .list-view .product-card {
    grid-template-columns: minmax(90px, 0.7fr) 1.5fr;
    gap: 1em;
    padding: 1.3em 1.1em;
  }
  .list-view .product-card > .product-name-bar {
    font-size: 1.15em;
  }
  .list-view .product-card .qty-price {
    font-size: 1.4rem;
  }
  .list-view .product-card .product-row {
    font-size: 0.85rem;
  }
  .list-view .product-card > .product-option-description {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .list-view .product-card {
    grid-template-columns: minmax(60px, 0.5fr) 1.8fr;
    gap: 0.75em;
    padding: 1.1em 0.9em;
  }
  .list-view .product-card > .product-name-bar {
    font-size: 1rem;
  }
  .list-view .product-card .qty-price {
    font-size: 1.2rem;
  }
}

@media (max-width: 380px) {
  .list-view .product-card {
    grid-template-columns: minmax(40px, 0.35fr) 2fr;
    gap: 0.6em;
    padding: 1em 0.8em;
  }
  .list-view .product-card > .product-name-bar {
    font-size: 0.95rem;
  }
  .list-view .product-card .qty-price {
    font-size: 1.1rem;
  }
  .list-view .product-card .product-row {
    font-size: 0.78rem;
  }
}

.grid-view .product-card > .product-option-description {
  display: none;
}

/* === GLASS PRODUCT CARD === */
.product-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  min-height: 30.6em;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid rgba(255, 186, 1, 0.18);
  background: linear-gradient(
      180deg,
      rgba(255, 186, 1, 0.12) 0%,
      rgba(24, 20, 14, 0.6) 100%
    ),
    rgba(24, 20, 14, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: #fff;
  overflow: hidden;
  z-index: 7;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 186, 1, 0.45);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 186, 1, 0.2);
}

.product-card > *:not(.product-bg-vector) {
  z-index: 2;
}

.product-bg-vector {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.product-bg-vector img {
  position: absolute;
  top: 50%;
  left: 55%;
  width: auto;
  height: 125%;
  transform: translate(-22%, -88%) rotate(29deg);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-bg-vector img {
  opacity: 0.42;
}

.product-name-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 10.3em;
  transform: translateY(-100%);
  border: none;
  border-radius: 0;
  background: rgba(18, 15, 10, 0.45);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  color: #fff;
  padding: 0.75em 0.8em;
  font-weight: 800;
  font-size: 1.6em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  hyphens: auto;
  text-decoration: none;
  cursor: pointer;
  transition:
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

a.product-name-bar,
a.product-name-bar:hover,
a.product-name-bar:focus,
a.product-name-bar:visited {
  text-decoration: none;
  color: #fff;
}

a.product-name-bar:hover {
  background: rgba(18, 15, 10, 0.6);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

.basšeskant,
.basdvoglasni {
  font-size: 1.6em;
}

.product-option-wrap {
  position: absolute;
  top: 17.2em;
  left: 1.1em;
  right: 1.1em;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.product-card:hover .product-option-wrap {
  border-color: rgba(255, 186, 1, 0.35);
}

.product-option-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffb601' d='M6 8 0 0h12z'/></svg>")
    no-repeat right 1.1em center;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.92em;
  letter-spacing: 0.02em;
  text-align: center;
  text-align-last: center;
  padding: 0.85em 2.2em;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.product-option-select option {
  background: #2a2121;
  color: #fff;
  font-weight: 700;
}

.product-info {
  position: absolute;
  top: 21.3em;
  left: 1.3em;
  right: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 0;
}

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
}

.row-label {
  opacity: 0.7;
  text-transform: uppercase;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25em;
  padding: 0;
  width: 4.2em;
}

.qty-btn {
  background: transparent no-repeat center / contain;
  color: transparent;
  border: none;
  padding: 0;
  width: 0.7em;
  height: 0.7em;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.qty-btn.minus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><polygon points='12,3 12,13 3.5,8' fill='%23ffb601' stroke='%23ffb601' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/></svg>");
}
.qty-btn.plus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><polygon points='4,3 4,13 12.5,8' fill='%23ffb601' stroke='%23ffb601' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/></svg>");
}
.qty-btn:hover {
  filter: brightness(1.2) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  transform: scale(1.1);
}

.qty {
  min-width: 1.4em;
  padding: 0.15em 0.6em;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.qty-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  margin-top: 0.4em;
  padding-bottom: 0.3em;
}

.qty-price {
  text-align: center;
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
}

.qty-price-unit {
  font-size: 0.7em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.qty-price-unit[hidden] {
  display: none;
}

.add-to-cart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: 100%;
  padding: 1.05em 1em;
  border: none;
  border-radius: 0 0 19px 19px;
  background: linear-gradient(90deg, #c48d00 0%, #a56f00 49%, #7a4f00 100%);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.85em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(206, 134, 0, 0.35);
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.add-to-cart:hover {
  filter: brightness(1.08);
}

.add-to-cart img {
  width: 1.6em;
  height: auto;
}

.add-to-cart span {
  display: inline-block;
}

.qty-price {
  font-weight: bold;
  font-size: 1.7em;
}

.slide-dots {
  position: absolute;
  bottom: 1.4em;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.5em;
  z-index: 5;
}

.slide-dots .dot {
  position: relative;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.3s ease, background 0.3s ease;
}

.slide-dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.slide-dots .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffba01 0%, #eab233 60%, #ce8600 100%);
  transform: translateX(-100%);
  border-radius: inherit;
}

.slide-dots .dot.active {
  width: 48px;
  background-color: rgba(255, 255, 255, 0.18);
}

.slide-dots .dot.active::after {
  animation: dot-progress 7s linear forwards;
}

@keyframes dot-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide-dots .dot.active::after {
    animation: none;
    transform: translateX(0);
  }
}

/* === RESPONSIVE — HERO === */
@media (max-width: 1024px) {
  .hero-slideshow .slide-text {
    width: 40vw;
    max-height: 300px;
    padding-left: 15vw;
  }

  .slide-image img {
    margin-right: 10vw;
  }
}

@media (max-width: 820px) {
  .hero-slideshow {
    height: 60vh;
    min-height: 420px;
    max-height: 560px;
  }

  .slide {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1.6em 3em 3.5em;
    gap: 0.9em;
    box-sizing: border-box;
  }

  .slide > .text-align {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
  }

  .hero-slideshow .slide-text {
    width: 100%;
    max-width: 26em;
    max-height: none;
    padding: 0;
    text-align: center;
    align-items: center;
    flex: 0 0 auto;
  }

  .hero-slideshow .slide-text :is(h1, h2) {
    font-size: 1.25rem;
    line-height: 1.22;
    margin: 0 0 0.35em;
  }

  .hero-slideshow .slide-text p {
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-image {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .slide-image img {
    max-height: 100%;
    max-width: 70%;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  /* First slide: image bleeds to the bottom edge */
  .hero-slideshow .slide:first-child {
    padding-bottom: 0;
  }

  .hero-slideshow .slide:first-child .slide-image {
    align-self: stretch;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 0;
  }

  .hero-slideshow .slide:first-child .slide-image img {
    max-height: 100%;
    max-width: 88%;
    object-fit: contain;
    object-position: center bottom;
  }

  /* Last slide: image fills the entire container as a background, text overlays it */
  .hero-slideshow .slide:last-child .full-height-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    align-items: stretch !important;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
  }

  .hero-slideshow .slide:last-child .full-height-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .hero-slideshow .slide:last-child .full-height-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(24, 20, 14, 0.8) 0%,
      rgba(24, 20, 14, 0.55) 35%,
      rgba(24, 20, 14, 0.35) 65%,
      rgba(24, 20, 14, 0.8) 100%
    );
    pointer-events: none;
  }

  .hero-slideshow .slide:last-child .slide-text {
    position: relative;
    z-index: 2;
  }

  .nav {
    width: 2.4em;
    height: 2.4em;
  }
  .prev {
    left: 0.6em;
  }
  .next {
    right: 0.6em;
  }
}

@media (max-width: 550px) {
  .hero-slideshow {
    height: 62vh;
    min-height: 400px;
    max-height: 520px;
  }

  .slide {
    padding: 1.3em 2.6em 3.2em;
  }

  .hero-slideshow .slide-text :is(h1, h2) {
    font-size: 1.1rem;
  }

  .hero-slideshow .slide-text p {
    font-size: 0.76rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .slide-image img {
    max-width: 65%;
  }

  .hero-slideshow .slide:first-child .slide-image img {
    max-width: 92%;
  }

  .full-height-image img {
    max-width: 68%;
  }
}

@media (max-width: 425px) {
  .hero {
    padding: 0.8em 0.8em 0;
  }

  .hero-slideshow {
    height: 64vh;
    min-height: 380px;
    max-height: 500px;
    border-radius: 1.2em;
  }

  .slide {
    padding: 1.1em 2.4em 3em;
    gap: 0.7em;
  }

  .hero-slideshow .slide-text :is(h1, h2) {
    font-size: 1rem;
  }

  .hero-slideshow .slide-text p {
    font-size: 0.72rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .slide-image img {
    max-width: 62%;
  }

  .hero-slideshow .slide:first-child .slide-image img {
    max-width: 94%;
  }

  .full-height-image img {
    max-width: 70%;
  }

  .nav {
    width: 2.1em;
    height: 2.1em;
  }
}

/* === RESPONSIVE — PRODUCT GRID + CARDS === */
@media (max-width: 1024px) {
  .products-container.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2em;
  }
}

@media (max-width: 768px) {
  .products-container {
    padding: 0 1.2em;
    margin: 1.5em auto 3em;
  }
  .products-container.grid-view {
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }
  .product-card {
    font-size: 14px;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .products-container {
    padding: 0 0.8em;
  }
  .products-container.grid-view {
    gap: 0.7em;
  }
  .product-card {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .products-container {
    padding: 0 0.5em;
  }
  .products-container.grid-view {
    gap: 0.55em;
  }
  .product-card {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .product-card {
    font-size: 11px;
  }
}

/* === RESPONSIVE — LIST VIEW === */
@media (max-width: 600px) {
  .products-container.list-view {
    gap: 0.8em;
  }
  .list-view .product-card {
    font-size: 14px;
  }
}

/* === RESPONSIVE — STICKY ROW + FABs === */
@media (max-width: 768px) {
  .display-bar {
    padding: 0 1.2em;
    margin-top: 1em;
  }
}

@media (max-width: 480px) {
  .filter-fab {
    height: 3.2em;
    width: 3.2em;
    margin-top: 1em;
  }
  .filter-fab img {
    width: 1.4em;
    height: 1.4em;
  }
  .view-toggle-btn {
    padding: 0.45em 0.85em;
    font-size: 0.78rem;
  }
  .view-toggle-btn span {
    display: none;
  }
}

/* === RESPONSIVE — FILTER PANEL + CART OVERLAY (mobile) === */
@media (max-width: 600px) {
  .filter-panel {
    position: fixed;
    top: calc(4.5em + 0.8em);
    bottom: 0.8em;
    left: 0.8em;
    right: 0.8em;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    border-radius: 1em;
    border: 1px solid rgba(255, 186, 1, 0.18);
    margin: 0;
    padding: 1.4em 1.5em 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform-origin: center;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6),
      0 18px 50px rgba(0, 0, 0, 0.55);
  }

  .filter-panel-footer {
    margin: 1.2em -1.5em 0;
    margin-top: auto;
    padding: 0.9em 1.1em 1.2em;
    gap: 0.5em;
    position: sticky;
    bottom: 0;
  }

  .filter-clear-btn {
    padding: 0.7em 0.85em;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  .filter-apply-btn {
    padding: 0.8em 0.8em;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    gap: 0.4em;
    min-width: 0;
  }

  .filter-apply-suffix {
    display: none;
  }

}

