/* Vasile — UrbanMint-inspired demo store */
:root {
  --blue: #2b74d8;
  --blue-dark: #1d4ed8;
  --blue-flash: #1b71d6;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f3f6fb;
  --white: #ffffff;
  --red: #ef4444;
  --green: #16a34a;
  --radius: 24px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.35rem;
}

.brand img { width: 42px; height: 42px; }

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

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #374151;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover,
.nav a.active {
  background: #eff6ff;
  color: var(--blue);
}

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(43, 116, 216, 0.25);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

/* Flash banner */
.flash-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #1b71d6 0%, #2563eb 45%, #1d4ed8 100%);
  box-shadow: 0 10px 30px rgba(27, 113, 214, 0.22);
}

.flash-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  animation: flashShine 3.2s linear infinite;
  pointer-events: none;
}

.flash-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  padding: 8px 14px 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.flash-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  animation: pulseDot 0.9s infinite;
}

.marquee {
  width: 100%;
  overflow: hidden;
  padding: 6px 0 12px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  white-space: nowrap;
  color: #fff;
  font-size: clamp(1.02rem, 3vw, 1.55rem);
  font-weight: 900;
  text-transform: uppercase;
  padding-right: 64px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.12);
  animation: textPulse 1.2s infinite;
}

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 10px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: trustPulse 2.4s infinite;
}

.trust-item:nth-child(2) { animation-delay: 0.3s; }
.trust-item:nth-child(3) { animation-delay: 0.6s; }
.trust-item:nth-child(4) { animation-delay: 0.9s; }

@keyframes flashShine {
  0% { left: -25%; }
  100% { left: 120%; }
}
@keyframes pulseDot {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.65); }
  70% { transform: scale(1.12); box-shadow: 0 0 0 12px transparent; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
@keyframes textPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes trustPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.34); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 12px transparent; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
@keyframes newPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.35); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 10px transparent; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

/* Blocks */
.page-wrap { padding: 24px 0 40px; }

.block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.block.center { text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  margin-bottom: 14px;
}

.badge.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.badge.red { background: linear-gradient(135deg, #ef4444, #dc2626); }

.block h1,
.block h2 {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.05;
  font-weight: 900;
}

.block h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.block h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }

.lead {
  margin: 0 auto 26px;
  max-width: 640px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
  font-weight: 800;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(43, 116, 216, 0.22);
  transition: transform 140ms var(--ease-out), background 180ms ease, box-shadow 180ms ease;
}

.btn:hover { transform: translateY(-2px); background: var(--blue-dark); }
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: #eff6ff;
  color: var(--blue);
  box-shadow: none;
}
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-logo {
  width: 160px;
  height: auto;
  animation: floatSoft 4s ease-in-out infinite;
}

.hero-title {
  animation: heroIn 700ms var(--ease-out) both;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.product-card {
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), border-color 220ms ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: #dbeafe;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
  animation: badgePulse 1.7s infinite;
}

.new-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  animation: newPulse 1.6s infinite;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stars {
  color: #facc15;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-size: 16px;
}

.product-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 800;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.price-new {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.price-old {
  font-size: 15px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 700;
}

.product-desc {
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.product-desc ul {
  margin: 0;
  padding-left: 18px;
}

.product-desc li { margin-bottom: 4px; }

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(43, 116, 216, 0.24);
  width: 100%;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: left;
}

.why-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid var(--border);
}

.why-card .icon { font-size: 26px; margin-bottom: 10px; }
.why-card .txt { font-size: 16px; font-weight: 700; color: #1f2937; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.review-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 18px;
}

.review-text {
  margin: 0 0 12px;
  color: #374151;
  font-size: 15px;
}

.review-name {
  font-size: 14px;
  font-weight: 800;
}

/* Product page */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.gallery-main {
  border-radius: 20px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
  aspect-ratio: 1;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms var(--ease-out);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumbs button {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #f8fafc;
  aspect-ratio: 1;
}

.thumbs button.active,
.thumbs button:hover { border-color: var(--blue); }

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

.pdp-info .save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 10px 0 16px;
  font-size: 14px;
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

.benefit span { font-size: 20px; line-height: 1; }

.order-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #eff6ff, #fff);
}

.order-box label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #374151;
}

.order-box input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 14px;
  font-size: 16px;
  margin-bottom: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.meta-pill {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 6px 12px;
}

.section-title {
  margin: 28px 0 14px;
  font-size: 1.4rem;
  font-weight: 900;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

.faq p {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 15px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table th { background: #f8fafc; font-weight: 800; }
.compare-table tr:last-child td { border-bottom: none; }
.ok { color: var(--green); font-weight: 900; }
.no { color: #ef4444; font-weight: 900; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 40px 0 24px;
  margin-top: 20px;
}

.footer-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

/* Forms */
.form-row { margin-bottom: 12px; text-align: left; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #374151;
}
.form-row input,
.form-row select,
.form-row textarea,
.order-box input,
.order-box select,
.order-box textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-row textarea,
.order-box textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.order-box input:focus,
.order-box select:focus,
.order-box textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(43, 116, 216, 0.15);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pay-pill {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: #f3f4f6;
  font-weight: 800;
  font-size: 14px;
}
.order-totals {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 8px 0 16px;
}
.order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}
.order-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px !important;
  font-size: 16px !important;
}
.order-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.order-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.order-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  margin: 14px 0 18px;
  text-align: left;
}
.order-summary img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}
.order-summary-price {
  margin-top: 4px;
  font-weight: 900;
}
.order-summary-price span {
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 700;
  font-size: 13px;
  margin-left: 6px;
}

/* Order modal */
body.modal-open { overflow: hidden; }

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.order-modal.is-open { display: flex; }
.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}
.order-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 22px 20px 28px;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 280ms var(--ease-drawer), opacity 220ms var(--ease-out);
  box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.25);
}
.order-modal.is-animating .order-modal-backdrop { opacity: 1; }
.order-modal.is-animating .order-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.order-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #f3f4f6;
  font-size: 24px;
  line-height: 1;
  color: #111827;
  transition: transform 140ms var(--ease-out), background 160ms ease;
}
.order-modal-close:hover { background: #e5e7eb; transform: scale(1.05); }

.order-success { text-align: center; padding: 12px 4px 4px; }
.success-icon {
  width: 64px;
  height: 64px;
  margin: 8px auto 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
  animation: successPop 420ms var(--ease-out) both;
}
@keyframes successPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card.reveal {
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

@media (min-width: 750px) {
  .order-modal { align-items: center; padding: 24px; }
  .order-modal-panel {
    border-radius: 24px;
    transform: translateY(16px) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track,
  .flash-wrap::before,
  .hero-logo { animation: none !important; }
}

@media (max-width: 989px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 749px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .products-grid,
  .why-grid,
  .reviews-grid,
  .footer-in,
  .form-grid-2 { grid-template-columns: 1fr; }
  .trust-strip { gap: 12px; font-size: 12px; }
  .block { padding: 22px 16px; border-radius: 20px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}
