/* ====================================
   BUDDHA-STORE — Original Tilda Design
   Font: HelveticaNeue | Light theme
   ==================================== */

@font-face {
  font-family: 'HelveticaNeue';
  src: url('/fonts/helveticaneuecyr-lig.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaNeue';
  src: url('/fonts/helveticaneuecyr-rom.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaNeue';
  src: url('/fonts/helveticaneuecyr-med.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaNeue';
  src: url('/fonts/helveticaneuecyr-med-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaNeue';
  src: url('/fonts/helveticaneuecyr-bol.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #ffffff;
  --color-text: #292929;
  --color-text-light: #666666;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --color-border-dark: #000000;
  --color-accent: #1F5BFF;
  --color-error: #ff4a4a;
  --font: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --container-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-black);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ====================================
   Buttons
   ==================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 40px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
  border: none;
}

.btn--primary:hover {
  background: var(--color-text);
  color: var(--color-black);
}

.btn--outline {
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.btn--outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-black);
  color: var(--color-black);
}

.btn--small {
  padding: 8px 24px;
  font-size: 12px;
}

.btn--full {
  width: 100%;
}

/* ====================================
   Header (matches Tilda t454)
   ==================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header--scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__left {
  flex-shrink: 0;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo__text {
  display: inline-block;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  color: var(--color-black);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  transform: skewX(-8deg);
  transition: opacity var(--transition);
}

.logo:hover .logo__text {
  opacity: 0.7;
}

.nav {
  display: flex;
  gap: 40px;
  margin-left: auto;
  margin-right: 40px;
}

.nav__link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  font-family: var(--font);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color-black);
  opacity: 0;
  transition: opacity var(--transition);
}

.nav__link:hover::after {
  opacity: 1;
}

.nav__link:hover {
  opacity: 1;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-toggle {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
  transition: opacity var(--transition);
  position: relative;
}

.cart-toggle:hover {
  opacity: 0.6;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--color-error);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: all var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu__link {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* ====================================
   Hero (image block like Tilda t3)
   ==================================== */

.hero {
  margin-top: var(--header-height);
  background: var(--color-bg);
  padding: 12px 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  overflow: hidden;          /* clip any italic/skew overhang */
}

.hero__inner {
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.hero__title {
  font-family: var(--font);
  /* "Будда" — 5 букв, крупная надпись */
  font-size: clamp(72px, 15vw, 190px);
  font-weight: 900;
  font-style: italic;
  color: var(--color-black);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
  display: inline-block;
  /* Compensate for italic+skew lean so the visual centre matches the text centre */
  padding-right: 0.12em;
  /* Initial state: invisible, slightly below and skewed */
  opacity: 0;
  transform: translateY(60px) skewX(-8deg) scale(0.92);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hero__title.is-visible {
  opacity: 1;
  transform: translateY(0) skewX(-8deg) scale(1);
}

@media (max-width: 768px) {
  .hero {
    padding: 8px 0 20px;
    min-height: auto;
  }

  .hero__inner {
    padding: 0 20px;
  }

  .hero__title {
    /* "Будда" — 5 букв, планшет */
    font-size: clamp(56px, 13vw, 120px);
    letter-spacing: 0;
  }
}

@media (max-width: 480px) {
  .hero__title {
    /* "Будда" — 5 букв, мобилка */
    font-size: clamp(48px, 11vw, 96px);
  }
}

/* ====================================
   Catalog (matches Tilda store t754)
   ==================================== */

.catalog {
  padding: 12px 0 60px;
}

.catalog__tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.catalog__tab {
  padding: 10px 28px;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  background: transparent;
  color: var(--color-text);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

@media (max-width: 900px) {
  .catalog__tab {
    font-size: 20px;
    padding: 8px 18px;
  }
}

.catalog__tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-black);
  transition: width var(--transition);
}

.catalog__tab.active::after,
.catalog__tab:hover::after {
  width: 100%;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.catalog__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--color-text-light);
}

.catalog__empty {
  text-align: center;
  padding: 80px 0;
  color: var(--color-text-light);
  font-size: 16px;
}

.catalog__more {
  display: block;
  margin: 40px auto 0;
}

/* Product card (matches Tilda store cards) */
.product-card {
  text-align: center;
  cursor: pointer;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  opacity: 0.85;
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-bg-secondary);
  overflow: hidden;
  margin-bottom: 25px;
  flex-shrink: 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
}

.product-card__body {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  flex: 1;                  /* fill remaining space → footer sticks to bottom */
}

.product-card__category {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 6px;
  min-height: 1.2em;        /* reserve space even if no category */
}

.product-card__name {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font);
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--color-black);
  /* Limit to 3 lines so cards have consistent name area */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 3);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: auto;         /* push footer to the bottom of the card */
  padding-top: 12px;
  min-height: 44px;
}

.product-card__price {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
  font-family: var(--font);
}

.product-card__price-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
  margin-left: 4px;
}

.product-card__stock {
  font-size: 12px;
  color: var(--color-text-light);
  margin: 6px 0 10px;
  min-height: 1.4em;
}

.product-card__stock--low {
  color: #d68000;
  font-weight: 500;
}

.product-card__stock--out {
  color: #b94a4a;
  font-weight: 500;
}

.product-card--out {
  opacity: 0.55;
}

.product-card--out .product-card__image img {
  filter: grayscale(0.5);
}

.product-card__in-cart {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-black);
  background: #f3efe7;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
}

.product-card__in-cart span {
  font-weight: 700;
}

.product-card__add {
  padding: 8px 20px;
  background: var(--color-black);
  border: none;
  border-radius: 5px;
  color: var(--color-white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-card__add:hover {
  background: var(--color-text);
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====================================
   Dragon section
   ==================================== */

.dragon-section {
  padding: 60px 0 80px;
  text-align: center;
}

.dragon-image {
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  opacity: 0.95;
}

/* ====================================
   Order form (inside cart)
   ==================================== */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border-dark);
  border-radius: 0;
  color: var(--color-black);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--color-accent);
}

.form-input::placeholder {
  color: var(--color-black);
  opacity: 0.5;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font);
}

.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px;
}

.form-group--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--color-black);
  cursor: pointer;
  margin-top: 2px;
}

.form-group--checkbox label {
  font-size: 12px;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1.5;
}

.form-group--checkbox label a {
  color: var(--color-text);
  text-decoration: underline;
}

/* Cart checkout */
.cart-checkout {
  position: absolute;
  inset: 0;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  z-index: 5;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(20%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.cart-checkout__header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}

.cart-checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  padding: 4px 0;
  text-transform: none;
}

.cart-checkout__back:hover {
  opacity: 0.6;
}

.cart-checkout__form {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-checkout__title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.cart-checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 20px 0;
  font-size: 16px;
  font-weight: 700;
}

/* ====================================
   Footer (matches Tilda t389)
   ==================================== */

.footer {
  padding: 30px 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}

.footer__link {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--color-black);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  color: var(--color-text);
  transition: opacity var(--transition);
}

.footer__social-link:hover {
  opacity: 0.6;
}

.footer__copy {
  text-align: center;
}

.footer__copy p {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ====================================
   Cart sidebar
   ==================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background: var(--color-white);
  border-left: 1px solid var(--color-border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
}

.cart-sidebar__header h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font);
  text-transform: uppercase;
}

.cart-sidebar__close {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px;
}

.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-light);
  gap: 16px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
}

.cart-item__image {
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: var(--color-bg-secondary);
  flex-shrink: 0;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 400;
  margin-bottom: 4px;
}

.cart-item__subtotal {
  font-size: 14px;
  color: var(--color-black);
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__qty-btn:hover {
  border-color: var(--color-black);
}

.cart-item__qty {
  font-size: 14px;
  min-width: 24px;
  text-align: center;
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  font-size: 18px;
}

.cart-item__remove:hover {
  color: var(--color-error);
}

.cart-sidebar__footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ====================================
   Product modal
   ==================================== */

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.product-modal.active {
  opacity: 1;
  pointer-events: all;
}

.product-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.product-modal__content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  background: var(--color-white);
  overflow: hidden;
}

.product-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
}

.product-modal__image {
  background: var(--color-bg-secondary);
  aspect-ratio: 1;
}

.product-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal__info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.product-modal__info h2 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font);
  margin-bottom: 8px;
}

.product-modal__article {
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.product-modal__description {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.product-modal__price {
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font);
  margin-bottom: 12px;
  color: var(--color-black);
}

.product-modal__price-unit {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-light);
  margin-left: 6px;
}

.product-modal__subtotal {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 12px;
  font-weight: 500;
}

.product-modal__subtotal strong {
  color: var(--color-black);
  font-weight: 700;
  font-size: 18px;
}

.product-modal__in-cart {
  margin-bottom: 24px;
  padding: 10px 14px;
  background: #f3efe7;
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-text);
}

.product-modal__in-cart strong {
  color: var(--color-black);
  font-weight: 700;
}

.product-modal__qty-unit {
  font-size: 12px;
  color: var(--color-text-light);
  margin-left: 8px;
  align-self: center;
}

.product-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: auto;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.quantity-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
}

.quantity-btn:hover {
  background: var(--color-bg-secondary);
}

.quantity-input {
  width: 48px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 15px;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* ====================================
   Info modal
   ==================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: 24px;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal__content {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  background: var(--color-white);
  padding: 48px;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px;
}

.modal__close:hover {
  opacity: 0.6;
}

.modal__title {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.modal__body {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
}

.modal__body p {
  margin-bottom: 16px;
}

/* ====================================
   Cookie banner
   ==================================== */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 420px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
  z-index: 5000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(200%);
  transition: transform 0.5s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
}

.cookie-banner p a {
  color: var(--color-black);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ====================================
   Notification
   ==================================== */

.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  padding: 16px 24px;
  z-index: 6000;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  transform: translateY(200%);
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification.active {
  transform: translateY(0);
  opacity: 1;
}

/* ====================================
   Responsive
   ==================================== */

@media (max-width: 980px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .logo__img {
    max-width: 120px;
    width: 120px;
  }

  .hero {
    padding: 30px 0 15px;
  }

  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card__name {
    font-size: 16px;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cart-sidebar {
    width: 100%;
  }

  .product-modal__content {
    grid-template-columns: 1fr;
    width: 95%;
    max-height: 95vh;
  }

  .product-modal__image {
    aspect-ratio: 4/3;
  }

  .product-modal__info {
    padding: 24px;
  }

  .product-modal__actions {
    flex-direction: column;
  }

  .modal__content {
    padding: 32px 24px;
    margin: 16px;
  }

  .dragon-image {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card__name {
    font-size: 14px;
  }

  .product-card__footer {
    flex-direction: column;
    gap: 8px;
  }

  .product-card__add {
    width: 100%;
  }

  .order-form {
    max-width: 100%;
  }
}

/* ====================================
   Animations
   ==================================== */

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

.product-card {
  animation: fadeInUp 0.4s ease backwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
