:root {
  --text: #ffeddf;
  --muted: #d0b39d;
  --primary: #ff8f33;
  --primary-strong: #e24b1a;
  --gold: #ffd18f;
  --border: rgba(232, 136, 84, 0.34);
  --hero-bg-image: url("../img/hero-bg.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Rajdhani", sans-serif;
  color: var(--text);
  background: #080505;
}

.theme-mu {
  position: relative;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(8, 5, 5, 0.22) 0%, rgba(8, 5, 5, 0.78) 65%, rgba(8, 5, 5, 0.93) 100%),
    var(--hero-bg-image) center/cover no-repeat fixed;
}

.glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: -2;
}

.glow-1 {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 80px;
  background: rgba(255, 123, 54, 0.28);
}

.glow-2 {
  width: 320px;
  height: 320px;
  right: -100px;
  top: 320px;
  background: rgba(255, 181, 97, 0.18);
}

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

.hero {
  min-height: 44vh;
  display: grid;
  align-items: end;
  padding: 18px 0 42px;
}

.hero-content {
  border: 1px solid rgba(255, 171, 113, 0.2);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(23, 13, 11, 0.38), rgba(15, 9, 8, 0.58));
  backdrop-filter: blur(3px);
  text-align: center;
}

.hero-badge {
  margin: 0 auto 12px;
  width: fit-content;
  border: 1px solid rgba(255, 215, 163, 0.9);
  border-radius: 999px;
  padding: 7px 16px;
  color: #2a1306;
  background: linear-gradient(180deg, #ffdba4, #ffab49);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 4.7rem);
  letter-spacing: 1.2px;
  font-family: "Cinzel", serif;
  color: transparent;
  background: linear-gradient(120deg, #ff4f92, #ffc14d, #61e3ff, #b48dff, #ff4f92);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.42), 0 0 24px rgba(178, 114, 255, 0.25);
  animation: titleShift 6s ease infinite;
}

@keyframes titleShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-subtitle {
  margin: 10px auto 16px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: #e8c9af;
  max-width: 780px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.hero-stat {
  border-radius: 14px;
  border: 1px solid rgba(255, 166, 107, 0.24);
  background: rgba(22, 13, 11, 0.62);
  padding: 10px 8px;
  text-align: center;
}

.stat-label {
  display: block;
  color: #d6ae90;
  font-size: 0.88rem;
}

.stat-value {
  display: block;
  margin-top: 3px;
  font-size: 1.08rem;
}

.shop-layout {
  display: grid;
  gap: 20px;
  padding-bottom: 36px;
}

.weekly-offer {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  border: 1px solid rgba(255, 132, 81, 0.42);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(130deg, rgba(59, 21, 13, 0.92), rgba(25, 12, 9, 0.92));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 154, 99, 0.18) inset;
}

.weekly-tag {
  margin: 0 0 8px;
  width: fit-content;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #250d02;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe09e, #ff9e3e);
}

.weekly-left h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
}

.weekly-left p {
  margin: 8px 0 0;
  color: #f2d8c1;
}

.weekly-ends {
  margin-top: 14px;
  font-weight: 700;
  color: #ffd293;
}

.weekly-product {
  border: 1px solid rgba(255, 169, 112, 0.45);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 15, 12, 0.86), rgba(18, 10, 9, 0.9));
}

.weekly-image-btn {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  background: transparent;
}

.weekly-image-btn img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.weekly-body {
  padding: 14px;
}

.weekly-body strong {
  display: block;
  font-size: 1.34rem;
  font-family: "Cinzel", serif;
}

.weekly-body p {
  margin: 7px 0 0;
  color: var(--muted);
}

.weekly-prices {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.weekly-prices span {
  color: #ffdeae;
  font-size: 1.34rem;
  font-weight: 700;
}

.weekly-prices small {
  color: #c9a083;
  text-decoration: line-through;
  font-size: 1rem;
}

.catalog {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 18px 8px;
  background: linear-gradient(180deg, rgba(23, 13, 11, 0.66), rgba(13, 8, 8, 0.8));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.catalog-top {
  text-align: center;
}

.catalog-top h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
}

.catalog-top p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.filters {
  margin: 18px 0 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(255, 171, 112, 0.38);
  border-radius: 999px;
  background: rgba(36, 21, 18, 0.82);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 8px 15px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 205, 157, 0.65);
}

.chip.active {
  color: #2a1208;
  border-color: #ffd7a7;
  background: linear-gradient(180deg, #ffdbab, #ff9f3d);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  padding-bottom: 26px;
}

.card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(206, 123, 84, 0.5);
  background: linear-gradient(180deg, rgba(35, 21, 18, 0.78), rgba(16, 10, 9, 0.84));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 189, 139, 0.62);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

.image-btn {
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: pointer;
}

.card-image-wrap {
  position: relative;
  height: 206px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-btn:hover .card-image {
  transform: scale(1.08);
}

.shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 45%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.image-btn:hover .shine {
  transform: translateX(120%);
}

.type-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  border: 1px solid rgba(255, 223, 184, 0.7);
  border-radius: 999px;
  background: rgba(18, 11, 9, 0.84);
  color: #ffdcb6;
  font-size: 0.77rem;
  letter-spacing: 0.3px;
  padding: 5px 10px;
  font-weight: 700;
}

.card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 212px;
}

.product-name {
  margin: 0 0 6px;
  font-size: 1.28rem;
  font-family: "Cinzel", serif;
}

.product-desc {
  margin: 0 0 12px;
  color: var(--muted);
  min-height: 47px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.final-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffd9a9;
}

.old-price {
  color: #bd9476;
  text-decoration: line-through;
}

.discount-pill {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ffbe67;
  color: #381300;
  font-size: 0.77rem;
  font-weight: 700;
}

.btn {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
}

.btn-buy {
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.empty {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  padding: 24px;
  background: rgba(25, 15, 13, 0.72);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 5, 0.88);
  backdrop-filter: blur(5px);
  z-index: 30;
  padding: 20px;
  gap: 10px;
}

.lightbox.open {
  display: flex;
}

.lightbox-panel {
  width: min(900px, calc(100% - 120px));
  border: 1px solid rgba(255, 170, 113, 0.52);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #271714, #130c0b);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: lightboxIn 0.35s ease;
  position: relative;
}

.lightbox img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  padding: 14px 16px 16px;
}

.lightbox-meta strong {
  display: block;
  font-size: 1.3rem;
  margin: 0;
}

#lightboxDesc {
  margin: 6px 0 0;
  color: var(--muted);
}

.lightbox-side {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 6px;
}

#lightboxType {
  border: 1px solid rgba(255, 190, 134, 0.75);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.82rem;
  font-weight: 700;
}

#lightboxCounter {
  color: #e4c4ab;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 176, 120, 0.7);
  border-radius: 999px;
  color: #ffe2c4;
  background: rgba(24, 12, 9, 0.75);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 173, 116, 0.65);
  border-radius: 999px;
  color: #ffe3c3;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(24, 13, 10, 0.78);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.lightbox-nav:hover {
  transform: scale(1.05);
  filter: brightness(1.09);
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .weekly-offer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 42vh;
    padding: 12px 0 24px;
  }
  .hero-content {
    padding: 14px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .catalog {
    padding: 14px 12px 4px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .card-image-wrap {
    height: 194px;
  }
  .lightbox {
    padding: 12px;
    gap: 6px;
  }
  .lightbox-panel {
    width: calc(100% - 84px);
  }
  .lightbox-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .lightbox-side {
    text-align: left;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }
}
