@import url("https://fonts.googleapis.com/css2?family=Poiret+One&display=swap");

:root {
  --ink: #0d1110;
  --forest: #073f39;
  --forest-2: #0b2f2b;
  --moss: #77856e;
  --ivory: #f4efe6;
  --stone: #c7bdaa;
  --line: rgba(244, 239, 230, 0.16);
  --wine: #6b2637;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display-font: "Poiret One", "Segoe UI Light", "Arial", sans-serif;
  --text-font: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--text-font);
  color: var(--ivory);
  background:
    radial-gradient(circle at 14% 4%, rgba(107, 38, 55, 0.22), transparent 30rem),
    radial-gradient(circle at 84% 18%, rgba(7, 63, 57, 0.42), transparent 34rem),
    linear-gradient(135deg, #090b0a 0%, #111b18 52%, #070807 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 239, 230, 0.09), transparent 30rem),
    linear-gradient(180deg, rgba(244, 239, 230, 0.025), transparent 45%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 46px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.42);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  animation: slideDown 680ms var(--ease) both;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}

.brand:hover img {
  box-shadow: 0 0 0 5px rgba(244, 239, 230, 0.08);
  transform: rotate(-4deg) scale(1.04);
}

.main-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.main-nav a,
.cart-button,
.filters button,
.product-bottom button {
  border: 1px solid var(--line);
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.045);
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(244, 239, 230, 0.74);
  transition: color 260ms ease, background 260ms ease, border-color 260ms ease, transform 260ms var(--ease);
}

.main-nav a:hover {
  border-color: rgba(244, 239, 230, 0.34);
  color: var(--ivory);
  background: rgba(244, 239, 230, 0.09);
  transform: translateY(-2px);
}

.cart-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 260ms var(--ease), background 260ms ease, border-color 260ms ease;
}

.cart-button:hover {
  border-color: rgba(244, 239, 230, 0.34);
  background: rgba(244, 239, 230, 0.09);
  transform: translateY(-2px);
}

.cart-count {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--ivory);
  transition: transform 320ms var(--ease), background 320ms ease;
}

.cart-count.bump {
  animation: cartBump 520ms var(--ease);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 150px);
  margin: 0 auto;
  padding: 72px 0 90px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 42%, rgba(244, 239, 230, 0.08), transparent 24rem),
    linear-gradient(135deg, #070908, #101714 48%, #050606);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 38% 42%, rgba(244, 239, 230, 0.07), transparent 22rem),
    radial-gradient(circle at 78% 22%, rgba(7, 63, 57, 0.2), transparent 28rem);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0.9), rgba(8, 10, 9, 0.68) 48%, rgba(8, 10, 9, 0.24)),
    linear-gradient(0deg, rgba(8, 10, 9, 0.84), rgba(8, 10, 9, 0.1) 58%),
    linear-gradient(180deg, rgba(8, 10, 9, 0.38), transparent 32%);
}

.hero-media img,
.hero-media video {
  position: absolute;
  right: -7%;
  bottom: -8%;
  width: 92%;
  height: 104%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.95) contrast(1.06) brightness(0.9);
  mask-image: radial-gradient(ellipse at 55% 52%, #000 0%, #000 34%, rgba(0, 0, 0, 0.76) 44%, rgba(0, 0, 0, 0.28) 57%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 52%, #000 0%, #000 34%, rgba(0, 0, 0, 0.76) 44%, rgba(0, 0, 0, 0.28) 57%, transparent 72%);
  transform: scale(1);
}

.hero-media img {
  animation: heroFloat 16s var(--ease) infinite alternate;
}

.hero-media video {
  display: block;
  opacity: 0.9;
  filter: saturate(1.08) contrast(1.08) brightness(1.08);
  mix-blend-mode: screen;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  padding: 0 0 34px 42px;
  animation: fadeLift 800ms 120ms var(--ease) both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7.6vw, 104px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(244, 239, 230, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions,
.product-bottom,
.section-heading,
.site-footer {
  display: flex;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition: transform 260ms var(--ease), box-shadow 260ms ease, background 260ms ease, border-color 260ms ease;
}

.button::after,
.product-bottom button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%);
  transition: transform 650ms var(--ease);
}

.button:hover,
.product-bottom button:hover,
.filters button:hover {
  transform: translateY(-2px);
}

.button:hover::after,
.product-bottom button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  border: 1px solid var(--ivory);
  color: var(--ink);
  background: var(--ivory);
  box-shadow: 0 12px 34px rgba(244, 239, 230, 0.14);
}

.button.primary:hover {
  box-shadow: 0 18px 42px rgba(244, 239, 230, 0.22);
}

.button.ghost {
  border: 1px solid rgba(244, 239, 230, 0.32);
  color: var(--ivory);
  background: rgba(8, 10, 9, 0.34);
}

.button.ghost:hover {
  border-color: rgba(244, 239, 230, 0.5);
  background: rgba(244, 239, 230, 0.08);
}

.hero-panel {
  display: grid;
  gap: 10px;
  margin-right: 26px;
  margin-bottom: 34px;
}

.hero-panel div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 10, 9, 0.56);
  backdrop-filter: blur(12px);
  transition: transform 360ms var(--ease), background 360ms ease, border-color 360ms ease;
}

.hero-panel div:hover {
  border-color: rgba(244, 239, 230, 0.32);
  background: rgba(8, 10, 9, 0.68);
  transform: translateX(-6px);
}

.hero-panel span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display-font);
  font-size: 32px;
}

.hero-panel p {
  margin: 0;
  color: rgba(244, 239, 230, 0.64);
}

.section,
.custom-order {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.catalog-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 42px;
}

.catalog-hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
}

.catalog-hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(244, 239, 230, 0.7);
  font-size: 18px;
  line-height: 1.6;
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: end;
}

.intro > p,
.custom-copy p,
.service p {
  color: rgba(244, 239, 230, 0.68);
  line-height: 1.65;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 30px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filters button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(244, 239, 230, 0.72);
  cursor: pointer;
  transition: transform 240ms var(--ease), color 240ms ease, background 240ms ease, border-color 240ms ease;
}

.filters .active {
  color: var(--ink);
  background: var(--stone);
}

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

.product-carousel {
  position: relative;
  overflow: hidden;
  padding: 2px 0 22px;
  cursor: grab;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.product-carousel:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.product-carousel .product-card {
  width: min(340px, 78vw);
  flex: 0 0 min(340px, 78vw);
}

.carousel-arrow {
  position: absolute;
  top: 42%;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(244, 239, 230, 0.24);
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(8, 10, 9, 0.76);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 240ms var(--ease), background 240ms ease, border-color 240ms ease;
  backdrop-filter: blur(14px);
}

.carousel-arrow:hover {
  border-color: rgba(244, 239, 230, 0.48);
  background: rgba(244, 239, 230, 0.14);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow-left {
  left: 10px;
}

.carousel-arrow-right {
  right: 10px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  transition: transform 420ms var(--ease), border-color 420ms ease, box-shadow 420ms ease, background 420ms ease;
}

.product-card:hover {
  border-color: rgba(244, 239, 230, 0.34);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  transform: translateY(-8px);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--forest-2);
  transition: transform 700ms var(--ease), filter 700ms ease;
}

.product-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.055);
}

.product-info {
  padding: 18px;
}

.product-info p {
  margin-bottom: 8px;
  color: var(--stone);
  font-size: 13px;
}

.product-info h3 {
  margin-bottom: 18px;
  font-family: var(--display-font);
  font-size: 25px;
  font-weight: 400;
}

.product-bottom {
  justify-content: space-between;
}

.product-bottom span {
  font-size: 18px;
  font-weight: 900;
}

.product-bottom button {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 260ms var(--ease), color 260ms ease, background 260ms ease, border-color 260ms ease;
}

.product-bottom button.added {
  border-color: rgba(244, 239, 230, 0.85);
  color: var(--ink);
  background: var(--ivory);
  animation: addedPulse 760ms var(--ease);
}

.product-bottom button.has-items {
  border-color: rgba(244, 239, 230, 0.72);
  color: var(--ink);
  background: var(--ivory);
}

.product-bottom button.has-items::before {
  content: "+ ";
  font-weight: 900;
}

.product-bottom button .qty {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  place-items: center;
  border-radius: 999px;
  color: var(--ivory);
  background: var(--forest);
  font-size: 12px;
}

.fly-item {
  position: fixed;
  z-index: 80;
  width: 72px;
  height: 90px;
  border: 1px solid rgba(244, 239, 230, 0.34);
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  transition: transform 720ms var(--ease), opacity 720ms ease, border-radius 720ms ease;
}

.custom-order {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
  border-block: 1px solid var(--line);
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.055);
  transition: border-color 360ms ease, box-shadow 360ms ease;
}

.order-form:focus-within {
  border-color: rgba(244, 239, 230, 0.32);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--stone);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.order-form .wide {
  grid-column: 1 / -1;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 4px;
  color: var(--ivory);
  background: rgba(8, 10, 9, 0.54);
  outline: none;
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: rgba(244, 239, 230, 0.46);
  background: rgba(8, 10, 9, 0.72);
  box-shadow: 0 0 0 4px rgba(244, 239, 230, 0.06);
}

.order-form input {
  height: 48px;
  padding: 0 14px;
}

.order-form textarea {
  resize: vertical;
  padding: 14px;
}

.custom-select {
  position: relative;
}

.custom-select-button {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 4px;
  color: var(--ivory);
  background: rgba(8, 10, 9, 0.54);
  cursor: pointer;
  padding: 0 12px 0 14px;
  text-align: left;
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.custom-select.open .custom-select-button,
.custom-select-button:focus-visible {
  border-color: rgba(244, 239, 230, 0.46);
  background: rgba(8, 10, 9, 0.72);
  box-shadow: 0 0 0 4px rgba(244, 239, 230, 0.06);
  outline: none;
}

.select-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--stone);
  background: rgba(244, 239, 230, 0.07);
  font-size: 18px;
  transform: translateY(-1px);
  transition: transform 260ms var(--ease), background 260ms ease;
}

.custom-select.open .select-chevron {
  background: rgba(244, 239, 230, 0.14);
  transform: translateY(1px) rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 8px;
  background: rgba(8, 10, 9, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top;
  transition: opacity 220ms ease, transform 220ms var(--ease);
  backdrop-filter: blur(16px);
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-menu button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: rgba(244, 239, 230, 0.78);
  background: transparent;
  cursor: pointer;
  padding: 0 10px;
  text-align: left;
  transition: color 200ms ease, background 200ms ease, transform 200ms var(--ease);
}

.custom-select-menu button:hover,
.custom-select-menu button:focus-visible {
  color: var(--ivory);
  background: rgba(244, 239, 230, 0.09);
  outline: none;
  transform: translateX(2px);
}

.custom-select-menu .selected {
  color: var(--ink);
  background: var(--stone);
}

.service {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(244, 239, 230, 0.08), rgba(244, 239, 230, 0.025));
  transition: transform 380ms var(--ease), border-color 380ms ease, background 380ms ease;
}

.service article:hover {
  border-color: rgba(244, 239, 230, 0.3);
  background: linear-gradient(145deg, rgba(244, 239, 230, 0.115), rgba(244, 239, 230, 0.04));
  transform: translateY(-6px);
}

.service span {
  display: block;
  margin-bottom: 70px;
  color: var(--stone);
  font-weight: 900;
}

.service h3 {
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 400;
}

.site-footer {
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
  color: rgba(244, 239, 230, 0.74);
}

.site-footer div {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ivory);
  font-weight: 800;
}

.site-footer img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer address {
  font-style: normal;
  line-height: 1.6;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.cart-drawer.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.cart-card {
  position: relative;
  width: min(440px, 100%);
  padding: 34px;
  color: var(--ivory);
  background: var(--ink);
  border-left: 1px solid var(--line);
  transform: translateX(24px);
  transition: transform 420ms var(--ease);
}

.cart-drawer.open .cart-card {
  transform: translateX(0);
}

.cart-card h2 {
  margin-bottom: 18px;
}

.cart-empty {
  margin-bottom: 22px;
  color: rgba(244, 239, 230, 0.66);
  line-height: 1.55;
}

.cart-list {
  display: grid;
  gap: 14px;
  max-height: min(52svh, 520px);
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(244, 239, 230, 0.055);
}

.cart-item img {
  width: 72px;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--forest-2);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: start;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 400;
}

.cart-item-price {
  margin: 0 0 14px;
  color: var(--stone);
  font-weight: 800;
}

.cart-remove,
.qty-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 239, 230, 0.22);
  color: var(--ivory);
  background: rgba(8, 10, 9, 0.4);
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms ease, border-color 220ms ease;
}

.cart-remove {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.cart-remove:hover,
.qty-button:hover {
  border-color: rgba(244, 239, 230, 0.48);
  background: rgba(244, 239, 230, 0.1);
  transform: translateY(-1px);
}

.cart-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qty-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.cart-qty {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: rgba(244, 239, 230, 0.76);
}

.cart-summary strong {
  color: var(--ivory);
  font-size: 24px;
}

.cart-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ivory);
  background: transparent;
  cursor: pointer;
  transition: transform 240ms var(--ease), background 240ms ease;
}

.cart-close:hover {
  background: rgba(244, 239, 230, 0.08);
  transform: rotate(90deg);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: min(360px, calc(100% - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(244, 239, 230, 0.22);
  border-radius: 8px;
  color: var(--ivory);
  background: rgba(8, 10, 9, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transition: opacity 320ms ease, transform 320ms var(--ease);
  backdrop-filter: blur(18px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease, transform 760ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-18px, -10px, 0);
  }
}

@keyframes cartBump {
  0%,
  100% {
    transform: scale(1);
  }
  38% {
    transform: scale(1.28);
  }
}

@keyframes addedPulse {
  0% {
    transform: scale(1);
  }
  36% {
    transform: scale(0.96);
  }
  72% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 28px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 760px;
  }

  .hero-content {
    padding: 0 22px 0;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 22px 22px;
  }

  .intro,
  .custom-order,
  .service {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-carousel {
    overflow: hidden;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    gap: 14px;
    margin-top: 10px;
    border-radius: 22px;
  }

  .brand span {
    display: none;
  }

  .cart-button {
    padding: 0 12px;
  }

  .hero,
  .section,
  .custom-order,
  .catalog-hero,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 720px;
    padding-top: 30px;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(8, 10, 9, 0.92), rgba(8, 10, 9, 0.3) 72%),
      linear-gradient(90deg, rgba(8, 10, 9, 0.64), rgba(8, 10, 9, 0.16));
  }

  .hero-media {
    border-radius: 20px;
  }

  .hero-media img {
    right: -16%;
    bottom: -1%;
    width: 118%;
    height: 92%;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .section-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .order-form {
    grid-template-columns: 1fr;
  }

  .product-carousel {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
