@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-bg: #dedede;
  --gray-card: #f0f0f0;
  --gray-light: #f5f5f7;
  --gray-mid: #d2d2d7;
  --gray-dark: #6e6e73;
  --accent: #1d1d1f;
  --radius: 20px;
  --font: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--gray-bg);
  color: var(--accent);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 58px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.header-logo {
  position: absolute; left: 15%; transform: translateX(-50%);
  font-size: 18px; font-weight: 700; color: var(--white);
  letter-spacing: -0.5px; text-decoration: none; white-space: nowrap;
  z-index: 1;
}
.header-left { flex: 1; }
.header-right {
  flex: 1; display: flex; justify-content: flex-end;
  align-items: center; gap: 16px;
}
.header-right a {
  color: var(--white); text-decoration: none;
  font-size: 12px; font-weight: 500; opacity: 0.85;
  transition: opacity 0.2s; white-space: nowrap;
}
.header-right a:hover { opacity: 1; }

/* Fav header icon */
.fav-btn {
  background: none; border: none; cursor: pointer;
  color: var(--white); display: flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 12px; font-weight: 500;
  opacity: 0.85; transition: opacity 0.2s; padding: 0; white-space: nowrap;
}
.fav-btn:hover { opacity: 1; }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.fav-count {
  background: #e53935; color: white;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== SWIPER BANNER ===== */
.banner-section { padding: 20px 16px; max-width: 1300px; margin: 0 auto; }
.swiper { width: 100%; border-radius: var(--radius); }
.swiper-slide {
  background: var(--black); border-radius: var(--radius);
  position: relative; height: 400px; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 36px 40px; cursor: pointer;
}
.swiper-slide .slide-text { position: relative; z-index: 2; max-width: 44%; }
.swiper-slide .slide-text p:first-child {
  font-size: 28px; font-weight: 700; color: var(--white);
  margin-bottom: 8px; letter-spacing: -0.5px;
}
.swiper-slide .slide-text p:nth-child(2) {
  font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 400; margin-bottom: 20px;
}
.swiper-slide .btn {
  display: inline-block; background: var(--white); color: var(--black);
  padding: 10px 22px; border-radius: 30px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background 0.2s; width: fit-content;
}
.swiper-slide .btn:hover { background: #e0e0e0; }
.swiper-slide picture {
  position: absolute; bottom: 0; right: 0; width: 56%; height: 100%;
  display: flex; align-items: flex-end; justify-content: flex-end;
  pointer-events: none;
}
.swiper-slide picture img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom right;
}

/* Fav on slide */
.slide-fav {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); transition: background 0.2s;
}
.slide-fav:hover { background: rgba(255,255,255,0.28); }
.slide-fav svg { width: 17px; height: 17px; fill: none; stroke: white; stroke-width: 2; }
.slide-fav.active svg { fill: #e53935; stroke: #e53935; }

.swiper-pagination-bullet { background: rgba(255,255,255,0.5) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--white) !important; }
.swiper-button-next, .swiper-button-prev {
  color: var(--white) !important; background: rgba(255,255,255,0.15);
  width: 38px !important; height: 38px !important; border-radius: 50%;
  backdrop-filter: blur(10px);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 14px !important; }

/* ===== CATALOG SECTION ===== */
.catalog-section { max-width: 1300px; margin: 0 auto; padding: 16px 16px 32px; }
.catalog-section h2 { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.5px; }
.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.catalog-card {
  border-radius: var(--radius); overflow: hidden; display: block;
  height: 440px; background-size: cover; background-position: center;
  background-color: #fff; text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }

/* ===== BENEFITS ===== */
.benefits-section { max-width: 1300px; margin: 0 auto 32px; padding: 0 16px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit-card {
  background: var(--white); border-radius: var(--radius); padding: 24px 20px;
  display: flex; flex-direction: row; align-items: flex-start; gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.benefit-icon img { width: 44px; height: 44px; flex-shrink: 0; }
.benefit-text b { font-size: 13px; font-weight: 700; display: block; margin-bottom: 5px; }
.benefit-text span { font-size: 12px; color: var(--gray-dark); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-section { max-width: 1300px; margin: 0 auto 32px; padding: 0 16px; }
.faq-section h2 { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.5px; }
.faq-item {
  background: var(--white); border-radius: 14px; margin-bottom: 8px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-trigger {
  width: 100%; background: none; border: none; padding: 18px 20px;
  text-align: left; font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 10px; color: var(--accent);
}
.faq-trigger .faq-icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  flex-shrink: 0; transition: transform 0.3s; font-weight: 400;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease; font-size: 13px; color: var(--gray-dark); line-height: 1.7;
}
.faq-content-inner { padding: 0 20px 18px; }

/* ===== FOOTER ===== */
footer {
  background: var(--black); color: var(--white); padding: 32px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 18px; font-weight: 700; color: var(--white); text-decoration: none; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 12px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ===== PRODUCT PAGE ===== */
.product-page { max-width: 1300px; margin: 0 auto; padding: 28px 16px; }
.product-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  background: var(--white); border-radius: 24px; padding: 40px;
  margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.product-hero img { width: 100%; border-radius: 14px; object-fit: contain; max-height: 380px; background: var(--gray-card); }
.product-info h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.8px; margin-bottom: 12px; }
.product-info .product-tag {
  display: inline-block; background: #e8f5e9; color: #2e7d32;
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 14px;
}
.product-info .product-price { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.product-info p { font-size: 13px; color: var(--gray-dark); line-height: 1.7; margin-bottom: 20px; }
.product-info .btn-buy {
  display: inline-block; background: var(--black); color: var(--white);
  padding: 13px 32px; border-radius: 30px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background 0.2s; margin-right: 10px;
  margin-bottom: 10px;
}
.product-info .btn-buy:hover { background: #333; }
.btn-fav-product {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 2px solid var(--gray-mid); color: var(--accent);
  padding: 11px 18px; border-radius: 30px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: all 0.2s; margin-bottom: 10px;
}
.btn-fav-product:hover { border-color: #e53935; color: #e53935; }
.btn-fav-product.active { background: #fce4ec; border-color: #e53935; color: #e53935; }
.btn-fav-product svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-fav-product.active svg { fill: #e53935; }

.variants-section {
  background: var(--white); border-radius: 24px; padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.variants-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.variant-card {
  border: 2px solid var(--gray-mid); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.variant-card:hover, .variant-card.active { border-color: var(--black); background: #f8f8f8; }
.v-name { font-weight: 600; font-size: 13px; }
.v-price { color: var(--gray-dark); font-size: 12px; margin-top: 3px; }

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  text-decoration: none; color: inherit; display: block; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.12); }

/* Image wrap — white bg, no bleed */
.product-card .img-wrap {
  width: 100%; height: 210px;
  background: var(--gray-card); /* slightly grey so image doesn't bleed into bg */
  position: relative; overflow: hidden;
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: contain; padding: 14px;
  position: absolute; top: 0; left: 0; transition: opacity 0.3s ease;
  /* Force both visible by default so no flash */
}
.product-card .img-wrap .img-hover { opacity: 0; }
.product-card:hover .img-wrap .img-main { opacity: 0; }
.product-card:hover .img-wrap .img-hover { opacity: 1; }

/* Cards with no hover image — watches etc. — just one image */
.product-card .img-wrap img:only-child { opacity: 1 !important; position: relative !important; }

/* Fav icon on card */
.card-fav {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  background: white; border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13); transition: transform 0.2s;
}
.card-fav:hover { transform: scale(1.15); }
.card-fav svg { width: 15px; height: 15px; fill: none; stroke: #888; stroke-width: 2; }
.card-fav.active svg { fill: #e53935; stroke: #e53935; }

.product-card-info { padding: 16px 16px 18px; }
.product-card-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.pc-avail { font-size: 11px; color: #2e7d32; font-weight: 500; margin-bottom: 7px; }
.pc-price { font-size: 17px; font-weight: 700; }
.pc-btn {
  display: block; margin-top: 10px; background: var(--black); color: var(--white);
  text-align: center; padding: 9px; border-radius: 10px;
  font-size: 12px; font-weight: 600; text-decoration: none;
}

/* ===== FAVOURITES PAGE ===== */
.favs-page { max-width: 1300px; margin: 0 auto; padding: 32px 16px; }
.favs-page h1 { font-size: 30px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.5px; }
.favs-empty { text-align: center; padding: 60px 20px; color: var(--gray-dark); font-size: 15px; }
.favs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* ===== O-NAS ===== */
.page-content { max-width: 960px; margin: 0 auto; padding: 48px 16px; }
.page-content h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.8px; margin-bottom: 24px; }
.page-content p { font-size: 14px; color: var(--gray-dark); line-height: 1.8; margin-bottom: 16px; }
.page-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.info-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.info-card .ic-num { font-size: 28px; font-weight: 800; margin-bottom: 5px; }
.info-card .ic-label { font-size: 12px; color: var(--gray-dark); }
.store-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.store-gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* ===== CATEGORY PAGE ===== */
.category-page { max-width: 1300px; margin: 0 auto; padding: 28px 16px; }
.category-page h1 { font-size: 34px; font-weight: 700; margin-bottom: 22px; letter-spacing: -0.8px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

/* ===== POLICY / VOZVRAT ===== */
.policy-content { max-width: 900px; margin: 0 auto; padding: 48px 16px; }
.policy-content h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.policy-date { color: var(--gray-dark); font-size: 12px; margin-bottom: 32px; display: block; }
.policy-content h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.policy-content p, .policy-content li { font-size: 13px; color: #444; line-height: 1.8; margin-bottom: 10px; }
.policy-content ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }

/* ===== CHAT WIDGET ===== */
.chat-bubble { position: fixed; bottom: 22px; right: 22px; z-index: 999; }
.chat-toggle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--black); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); transition: transform 0.2s;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-toggle svg { width: 24px; height: 24px; fill: white; }
.chat-window {
  position: absolute; bottom: 66px; right: 0;
  width: 310px; background: white; border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden; display: none; flex-direction: column;
}
.chat-window.open { display: flex; }
.chat-header { background: var(--black); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.chat-header .chat-avatar {
  width: 34px; height: 34px; background: #222; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: white; font-weight: 700;
}
.chat-header-text .ch-name { color: white; font-size: 13px; font-weight: 600; }
.chat-header-text .ch-status { color: rgba(255,255,255,0.5); font-size: 11px; }
.chat-messages { padding: 14px; display: flex; flex-direction: column; gap: 9px; min-height: 130px; }
.chat-msg {
  max-width: 82%; padding: 9px 13px; border-radius: 14px;
  font-size: 12px; line-height: 1.5;
}
.chat-msg.bot { background: #f0f0f0; color: #333; align-self: flex-start; border-bottom-left-radius: 3px; }
.chat-msg.user { background: var(--black); color: white; align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-form { padding: 12px 14px; border-top: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 7px; }
.chat-form input, .chat-form textarea {
  width: 100%; border: 1.5px solid #e0e0e0; border-radius: 9px;
  padding: 8px 11px; font-family: var(--font); font-size: 12px;
  resize: none; outline: none; transition: border-color 0.2s;
}
.chat-form input:focus, .chat-form textarea:focus { border-color: #999; }
.chat-form textarea { height: 64px; }
.chat-send {
  background: var(--black); color: white; border: none;
  padding: 10px; border-radius: 9px; font-family: var(--font);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.chat-send:hover { background: #333; }

/* ===== COLOUR PICKER (product pages) ===== */
.color-picker { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.color-swatch {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s; background: #eee;
}
.color-swatch img { width: 100%; height: 100%; object-fit: cover; }
.color-swatch.active { border-color: #000; transform: scale(1.1); }
.color-label { font-size: 12px; color: var(--gray-dark); margin-bottom: 12px; }
.color-label b { color: var(--accent); }
.config-tabs { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.config-tab {
  padding: 7px 16px; border-radius: 20px; border: 2px solid var(--gray-mid);
  font-size: 12px; font-weight: 600; cursor: pointer; background: none;
  font-family: var(--font); transition: all 0.2s;
}
.config-tab.active { background: var(--black); color: white; border-color: var(--black); }
.product-main-img { width: 100%; max-height: 380px; object-fit: contain; background: var(--gray-card); border-radius: 14px; transition: opacity 0.3s; }
.esim-note {
  display: inline-block; background: #f0f0f0; border-radius: 7px;
  padding: 5px 11px; font-size: 11px; color: #555; margin-bottom: 14px;
}
/* Gallery (watch page) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.gallery-thumb {
  border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.2s; aspect-ratio: 1;
  background: var(--gray-card);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: #000; }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 680px) {
  /* Header */
  header { padding: 0 14px; height: 52px; }
  .header-logo { font-size: 15px; }
  .header-right { gap: 10px; }
  .header-right a { font-size: 11px; }
  .fav-btn { font-size: 11px; }
  .fav-btn svg { width: 16px; height: 16px; }

  /* Banner */
  .banner-section { padding: 12px 12px 16px; }
  .swiper-slide { height: 260px; padding: 22px 18px; }
  .swiper-slide .slide-text { max-width: 58%; }
  .swiper-slide .slide-text p:first-child { font-size: 18px; }
  .swiper-slide .slide-text p:nth-child(2) { font-size: 11px; margin-bottom: 14px; }
  .swiper-slide .btn { padding: 8px 16px; font-size: 12px; }
  .swiper-slide picture { width: 52%; }
  .swiper-button-next, .swiper-button-prev { display: none; }

  /* Catalog cards */
  .catalog-section { padding: 10px 12px 24px; }
  .catalog-section h2 { font-size: 22px; margin-bottom: 14px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 10px; }
  .catalog-card { height: 220px; }

  /* Benefits */
  .benefits-section { padding: 0 12px; margin-bottom: 20px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 10px; }
  .benefit-card { padding: 16px; gap: 12px; }

  /* FAQ */
  .faq-section { padding: 0 12px; margin-bottom: 20px; }
  .faq-section h2 { font-size: 22px; }
  .faq-trigger { font-size: 13px; padding: 14px 16px; }

  /* Footer */
  footer { padding: 24px 16px; flex-direction: column; text-align: center; gap: 12px; }
  .footer-links { justify-content: center; gap: 14px; }

  /* Product page */
  .product-page { padding: 16px 12px; }
  .product-hero { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .product-info h1 { font-size: 22px; }
  .product-info .product-price { font-size: 24px; }
  .variants-section { padding: 20px 16px; }
  .variant-grid { grid-template-columns: repeat(2, 1fr); }

  /* Category page */
  .category-page { padding: 16px 12px; }
  .category-page h1 { font-size: 24px; margin-bottom: 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card .img-wrap { height: 160px; }
  .product-card-info { padding: 12px 12px 14px; }
  .product-card-info h3 { font-size: 13px; }
  .pc-price { font-size: 15px; }

  /* O-nas */
  .page-content { padding: 28px 12px; }
  .page-content h1 { font-size: 26px; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .store-gallery { grid-template-columns: 1fr; }

  /* Chat */
  .chat-bubble { bottom: 16px; right: 16px; }
  .chat-window { width: 284px; right: -4px; }

  /* Colour picker */
  .color-swatch { width: 42px; height: 42px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ===== ORDER MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff; border-radius: 24px;
  padding: 36px 32px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  animation: modalIn .25s cubic-bezier(.34,1.4,.64,1);
  position: relative;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #aaa; line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: #333; }

.modal-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.4px; }
.modal-box .modal-sub { font-size: 13px; color: var(--gray-dark); margin-bottom: 24px; }

.modal-field { margin-bottom: 14px; }
.modal-field label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--gray-dark); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 6px;
}
.modal-field input {
  width: 100%; border: 2px solid #e8e8e8; border-radius: 12px;
  padding: 12px 14px; font-family: var(--font); font-size: 14px;
  outline: none; transition: border-color .2s, background .2s;
  background: #fafafa;
}
.modal-field input:focus { border-color: #000; background: #fff; }
.modal-field input.valid { border-color: #4caf50; }
.modal-field input.error { border-color: #e53935; }

.modal-order-btn {
  width: 100%; margin-top: 8px;
  background: #ccc; color: #fff; border: none;
  padding: 14px; border-radius: 14px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: not-allowed; transition: background .25s, transform .15s;
  letter-spacing: -.2px;
}
.modal-order-btn.ready {
  background: var(--black); cursor: pointer;
}
.modal-order-btn.ready:hover { background: #222; transform: translateY(-1px); }
.modal-order-btn.ready:active { transform: translateY(0); }

/* Success screen */
.modal-success { text-align: center; padding: 12px 0 4px; }
.modal-success .success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #f0faf0; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.modal-success .success-icon svg { width: 28px; height: 28px; }
.modal-success h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px; }
.modal-success .order-num {
  font-size: 28px; font-weight: 800; letter-spacing: -1px;
  margin-bottom: 14px; color: var(--black);
}
.modal-success p { font-size: 14px; color: var(--gray-dark); line-height: 1.6; margin-bottom: 24px; }
.modal-success .btn-close-success {
  display: inline-block; background: var(--black); color: #fff;
  padding: 12px 36px; border-radius: 30px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; font-family: var(--font); transition: background .2s;
}
.modal-success .btn-close-success:hover { background: #333; }

@media (max-width: 480px) {
  .modal-box { padding: 28px 20px; border-radius: 20px; }
  .modal-box h2 { font-size: 19px; }
}
/* btn-buy as button element */
button.btn-buy {
  font-family: var(--font);
  font-size: 14px; cursor: pointer;
  display: inline-block;
}
