@import url("https://fonts.googleapis.com/css2?family=Arima:wght@100..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: 'Fifties';
  src: url("../fonts/VVDS-Fifties-SExp-Bold-Italic.otf") format("opentype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

:root {
  --fasto: #ff3158;
  --ink: #0b1320;
  --muted: #6b7280;
  --soft: #fff5f7;
  --primary-font: 'Inter', sans-serif;
  --secondary-font: 'Poppins', sans-serif;
  --display-font: 'Fifties', 'Poppins', sans-serif;
  --heading-font: 'Fifties', 'Poppins', sans-serif;
}

html,
body {
  margin: 0;
  font-family: var(--primary-font), system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--ink);
}

.hero {
  min-height: 80vh;
  overflow: hidden;
  position: relative;
  padding: 0;
  background: #fefefe;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.hero-content {
  padding: 6rem 0;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--secondary-font);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

.title-red {
  color: var(--fasto);
  font-family: var(--heading-font);
  font-size: 2.8rem;
  letter-spacing: 1.3px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-cta .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--fasto);
  border-color: var(--fasto);
}

.btn-primary:hover {
  background-color: #e61e4d;
  border-color: #e61e4d;
}

.btn-outline-secondary {
  color: #374151;
  border-color: #d1d5db;
}

.btn-outline-secondary:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.hero-stats {
  margin-top: 3rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
  /* For Firefox */
  -ms-overflow-style: none;
  /* For Internet Explorer and Edge */
}

.hero-stats::-webkit-scrollbar {
  display: none;
  /* For Chrome, Safari and Opera */
}

.stat-item {
  text-align: left;
  min-width: 100px;
  flex: 0 0 auto;
}

.stat-number {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art {
  position: absolute;
  top: 160px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: calc(100% - 80px);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-art svg {
  width: 100vw;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero {
    text-align: center;
    padding: 60px 0;
  }

  .hero-content {
    padding-top: 0;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: flex-start;
    margin-top: 2.5rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .stat-item {
    flex: 0 0 auto;
    margin-bottom: 0;
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem !important;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    gap: .75rem;
  }

  .stat-item {
    flex: 0 0 calc((100% - 2 * .75rem) / 3);
    /* 3 visible */
    min-width: 110px;
    text-align: center;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .hero-art {
    margin-top: 50px;
    /* keep this small space above art */
    transform: scale(1.4);
    transform-origin: right;
  }

  .hero-stats {
    /* the section with 10K+ Happy Customers etc */
    margin-top: 70px;
    /* push it further down from hero header */
  }

  /* tighten the section and header (overrides Bootstrap py-5) */
  .why-fasto.py-5 {
    padding-top: 20px !important;
    padding-bottom: 24px !important;
  }

  .why-fasto-header {
    margin-bottom: 12px !important;
  }

  .app-sub {
    font-size: .7rem !important;
  }

  /* slimmer page gutters so cards look wider */
  .why-fasto-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* stack layout & remove inter-group gap */
  .why-fasto-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    /* no extra gap between the two groups */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* phone mockup above cards with exact 24px gap below */
  .why-fasto-phone {
    order: -1;
    width: 100%;
    text-align: center;
    margin: 0 0 24px !important;
  }

  .phone-mockup {
    max-width: 280px;
    width: 100%;
    height: auto;
  }

  /* flatten the two feature columns so all cards become one list */
  .left-features,
  .right-features {
    display: contents !important;
    margin: 16px !important;
    padding: 0 !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  /* cards: full width, balanced padding, uniform spacing */
  .why-fasto-content .feature-item {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px !important;
    /* balanced L/R padding */
    margin: 8px 0 !important;
    /* 16px between every card */
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .06);
  }


  /* ✅ ensure a gap between the 2nd (last of left) and 3rd (first of right) */
  .right-features .feature-item:first-child {
    margin-top: 16px !important;
  }

  .why-fasto-content .feature-item:last-of-type {
    margin-bottom: 0 !important;
  }

  /* icon + text */
  .feature-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .feature-text {
    flex: 1;
  }

  .feature-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fasto);
  }

  .feature-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
  }

  /* Media Query 500 finished for why fasto*/

  /* App Strip */
  /* Stack and reverse order so image comes first */
  /* kill the big desktop side margins */


  .app-promo {
    margin: 32px 16px !important;
    padding: 16px 0 !important;
    border-radius: 0;
    /* optional */
  }

  /* make the inner wrapper use the full viewport width with small gutters */
  .app-promo .app-wrap {
    max-width: 100% !important;
    margin: 0 !important;
    /* remove 48px desktop margins */
    padding: 0 12px !important;
    /* small, even side padding */
    flex-direction: column-reverse !important;
    /* image first, then text */
    align-items: center !important;
    gap: 24px !important;
    text-align: center;
  }

  /* center the image block and neutralize .ms-auto from HTML */
  .app-promo .app-visual {
    margin: 0 auto !important;
    /* center the whole block */
    width: 100%;
    max-width: 320px;
    /* feel free to tweak (280–360px) */
    text-align: center;
  }

  /* center the phone itself */
  .app-promo .app-visual .phone {
    display: block;
    margin: 0 auto;
    /* centers the img */
    max-width: 100%;
    height: auto;
  }

  /* keep the oval centered under the phone */
  .app-promo .app-visual .oval {
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;
    width: 360px;
    height: 90px;
    opacity: .25;
  }

  /* text block */
  .app-promo .app-copy {
    max-width: 100% !important;
    text-align: center;
  }

  .app-promo .app-title {
    font-size: 20px;
    margin-bottom: 12px !important;
  }

  .app-promo .app-sub {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px !important;
  }

  /* checklist + badges */
  .app-promo .checks {
    margin: 0 0 16px !important;
    padding: 0;
    text-align: left;
  }

  .app-promo .checks li {
    display: flex;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .app-promo .store-badges {
    justify-content: center;
    gap: 12px !important;
    flex-wrap: wrap;
  }

  .app-promo .store-badges img {
    height: 40px;
  }

  /* App Strip End */
  .vendor-cta {
    margin: 0 !important;
    padding: 40px 0 !important;
  }

  /* Make container full width */
  .vendor-cta .vendor-container {
    max-width: 100% !important;
    padding: 0 16px !important;
  }

  /* Keep original order but make them stack */
  .vendor-cta .row {
    flex-direction: column !important;
    gap: 24px;
  }

  /* Text block */
  .vendor-cta .vendor-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 12px !important;
    text-align: left;
  }

  .vendor-cta .vendor-sub {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px !important;
    text-align: left;
  }

  /* Vendor points */
  .vendor-cta .vendor-point {
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
  }

  .vendor-cta .vendor-point-title {
    font-size: 14px;
    font-weight: 600;
  }

  .vendor-cta .vendor-point-desc {
    font-size: 13px;
    color: #6c757d;
  }

  .vendor-cta .vendor-icon {
    font-size: 20px;
    color: var(--fasto-pink, #ff2d55);
    flex-shrink: 0;
  }

  /* Button */
  .vendor-cta .vendor-btn {
    font-size: 14px;
    padding: 10px 20px !important;
  }

  .vendor-cta .vendor-ill {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* centers the image */
  }
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

.store-badges .btn {
  padding: .9rem 1.15rem;
  border-radius: .6rem;
}


.text-primary {
  color: var(--fasto) !important;
  font-size: .9rem;
}

.head-text {
  margin-bottom: .2rem;
}

.text-secondary {
  font-size: .9rem;
}

.why-fast {
  background: #fff;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

/* Why Fasto Section - Flexbox Layout */
.why-fasto {
  background: #fff;
  padding: 5rem 0;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.why-fasto-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.why-fasto-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.why-fasto-content {
  display: flex;
  justify-content: center;
  align-items: center !important;
  gap: 2rem;
  position: relative;
}

.why-fasto-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 300px;
}

/* Left features container */
.left-features {
  padding-top: 2rem;
  margin-right: -20px;
}

.left-features .feature-item:first-child {
  margin-bottom: 2rem;
  margin-left: 0;
}

.left-features .feature-item:last-child {
  margin-left: 40px;
}

/* Right features container */
.right-features {
  padding-top: 1rem;
  display: flex;
  align-items: end;
}

.right-features .feature-item:first-child {
  margin-bottom: 2rem;
  margin-right: 40px;
}

.right-features .feature-item:last-child {
  margin-left: -60px;
}

.why-fasto-phone {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

.phone-mockup {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

.feature-item {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  transition: opacity 0.2s ease;
}

.feature-item:hover {
  opacity: 0.9;
}

.feature-item img {
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
}

.feature-title {
  color: var(--fasto);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.why-fast h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #0b1320;
  text-align: center;
}

.why-fast .subtitle {
  color: #6b7280;
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 4rem;
  text-align: center;
  line-height: 1.6;
}

.why-fast .text-fast {
  color: var(--fasto);
  position: relative;
  display: inline-block;
}

.why-fast .text-fast:after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(240, 16, 69, 0.2);
  z-index: -1;
}

.phone-mockup {
  max-height: 500px;
  width: auto;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: block;
}

/* Feature Cards */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  max-width: 300px;
  position: relative;
}

.left-feature {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.right-feature {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #fff5f7;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(240, 16, 69, 0.1);
}

.left-feature .feature-icon {
  float: right;
  margin-left: 1rem;
}

.right-feature .feature-icon {
  float: left;
  margin-right: 1rem;
}

.feature-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #0b1320;
  clear: both;
  line-height: 1.3;
}

.feature-card p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  clear: both;
}



.phones {
  width: 100%;
  height: auto;
  max-width: 900px;
  filter: drop-shadow(0 20px 40px rgba(16, 24, 40, .22));
}

.feature-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--fasto);
  font-size: 1.1rem;
}

.feature-title {
  color: var(--fasto);
  font-weight: 600;
}

.feature-copy {
  color: var(--muted);
  font-size: .9rem;
}

.feature {
  margin-bottom: 2rem;
}

.shop-categories {
  background-color: #f9fafb;
  padding: 5rem 0;
}

.shop-categories .subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.btn-outline-fast {
  color: #f01045;
  border: 2px solid #f01045;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-fast:hover {
  background-color: #f01045;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 16, 69, 0.2);
}


.text-fast {
  color: var(--fasto);
}

/* --- Fasto App section: Figma-matched sizing & spacing --- */


/* ===== App Promo (matches your figma spacing) ===== */
.app-promo {
  margin: 0 5rem;
  background: #ffe6eb;
  border-radius: 12px;
  padding: 36px 0 40px;
  /* outer breathing room */
}

/* container width like figma (a bit tighter than full) */
.app-wrap {
  max-width: 1260px;
  /* <= tighten compared to before */
  margin: 0 48px;
  padding: 0 24px;
  /* safe side padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  /* space between columns */
}

/* LEFT column */
.app-copy {
  max-width: 660px;
  /* roomy but not too wide */
}

.app-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 1.2px;
  line-height: 1.18;
  font-size: 1.5rem;
  /* smaller than before to match figma */
}

.app-title .brand-fast {
  color: var(--fasto) !important;
  font-family: var(--heading-font);
  font-size: 2.5rem;
  letter-spacing: 1.3px;
}

.app-sub {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
}

.checks li span {
  color: #22c55e;
  font-weight: 700;
}

/* Store badges + meta line */
.store-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.store-badges img {
  height: 48px;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7b8492;
  font-size: 15px;
}

.meta-line .star {
  color: #f6b300;
  margin-right: 6px;
}

.meta-line .dot {
  opacity: .6;
}

/* RIGHT column – tilted phone + oval shadow */
.app-visual {
  position: relative;
  flex: 0 0 auto;
}

.app-visual .phone {
  width: 420px;
  /* matches figma feel; not oversized */
  height: auto;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 18px 36px rgba(16, 24, 40, .18));
}

.app-visual .oval {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-40%);
  width: 520px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: .25;
  pointer-events: none;
}

/* Section + container width (same feel as app-promo’s 1140px) */
.vendor-cta {
  background: #fff;
  padding: 28px 0;
}

.vendor-cta .container-xl {
  max-width: 1360px;
}

/* Title: smaller weight/size + tracking like your new app-title */

.vendor-point {
  margin: 24px 0;
}

/* Bullet rows */
.vendor-point .fw-semibold {
  font-size: 18px;
  line-height: 1.4;
}

.vendor-point .text-secondary.small {
  font-size: 14px;
  line-height: 1.45;
}

/* Icon tile size matches smaller scale */
.vendor-icon {
  width: 40px;
  height: 40px;
  /* was 42 */
  border-radius: 10px;
  background: #ffe7ee;
  color: var(--fasto);
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  font-size: 18px;
}

/* CTA button (kept as-is, brand color) */
.btn-fast {
  background: var(--fasto);
  color: #fff;
  border: none;
}

.btn-fast:hover {
  background: #e12b4e;
  color: #fff;
}

/* Illustration scaled down to pair with smaller type */


.vendor-container {
  max-width: 1360px;
  margin: 40px auto;
}

.vendor-title {
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1A202C;
}

.vendor-sub {
  font-size: .9rem;
  line-height: 1.5;
  color: #6B7280;
}

.vendor-point-title {
  font-size: 1rem;
  font-weight: 500;
  color: #1A202C;
}

.vendor-point-desc {
  font-size: .8rem;
  color: #718096;
}

.vendor-ill {
  max-width: 360px;
}

/* Footer polish */
.site-footer {
  background: #F7F7F7;
  border-top: 1px solid #eef1f5;
}

.footer-title {
  font-weight: 600;
  color: #0b1320;
  letter-spacing: .2px;
}

.footer-links li {
  margin: .35rem 0;
}

.footer-links a {
  color: #4d5461;
  font-size: .8rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #0b1320;
  text-decoration: underline;
}

.site-footer .fs-5 a {
  color: #4d5461;
}

.site-footer .fs-5 a:hover {
  color: #0b1320;
}

.footer-bottom {
  background: #0c1222;
  color: #c8cfda;
}

/* Make 550–768px behave like MOBILE */
@media (min-width: 550px) and (max-width: 768px) {

  /* --- HERO --- */
  .hero {
    text-align: center;
    padding: 60px 0;
  }

  .hero-content {
    padding-top: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }

  .title-red {
    font-size: 2.2rem;
    letter-spacing: 1.1px;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem !important;
    justify-content: center;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* art behaves like mobile (zoom + small gap) */
  .hero-art {
    margin-top: 50px;
    transform: scale(1.25);
    transform-origin: center;
  }

  /* stats behave like mobile: horizontal scroll with 3-ish visible */
  .hero-stats {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: nowrap;
    gap: .75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }

  .hero-stats::-webkit-scrollbar {
    display: none;
  }

  .hero-stats .stat-item {
    flex: 0 0 120px;
    min-width: 120px;
    text-align: center;
    margin-bottom: 0;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  /* --- WHY FASTO (mobile layout) --- */
  .why-fasto.py-5 {
    padding-top: 20px !important;
    padding-bottom: 24px !important;
  }

  .why-fasto-header {
    margin-bottom: 12px !important;
  }

  .why-fasto-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .why-fasto-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0;
  }

  .why-fasto-phone {
    order: -1;
    text-align: center;
    margin: 0 0 24px !important;
  }

  .phone-mockup {
    max-width: 280px;
    width: 100%;
    height: auto;
  }

  /* flatten groups so all four cards stack with equal gaps */
  .left-features,
  .right-features {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .feature-item {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .06);
  }

  .feature-item:last-of-type {
    margin-bottom: 0;
  }

  .feature-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .feature-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fasto);
  }

  .feature-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
  }
}

/* Tablet view — from 750px up to desktop (~1024px) */
@media (min-width: 750px) and (max-width: 1024px) {

  /* --- HERO --- */
  .hero {
    text-align: left;
    padding: 80px 0;
  }
  .hero-content {
    max-width: 540px;
    margin: 0;
  }
  .hero-title {
    font-size: 2.4rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 1.05rem;
    max-width: 480px;
  }
  .hero-cta {
    flex-direction: row;
    gap: 1rem !important;
  }
  .hero-cta .btn {
    width: auto;
  }

  .hero-art {
    margin-top: 0;
    transform: scale(1);
    transform-origin: center right;
    text-align: right;
  }

  .hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    margin-top: 2rem;
  }
  .hero-stats .stat-item {
    min-width: unset;
    flex: 0 0 auto;
    text-align: left;
  }

  .hero-content {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .hero-title,
  .hero-subtitle {
    text-align: left !important;
    margin-left: 0 !important;
  }

  .hero-cta {
    justify-content: flex-start !important;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  /* Container gutters a touch wider on tablet */
  .why-fasto-container { padding: 0 16px; }

  /* 2-col grid with the phone on its own row */
  .why-fasto-content {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
    align-items: start;                 /* prevent tall stretch */
    grid-auto-flow: row;                /* place items row by row */
    max-width: 980px;
    margin: 0 auto;
  }

  /* Strongly pin the phone to row 1 spanning both columns */
  .why-fasto .why-fasto-content .why-fasto-phone {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    display: flex;
    justify-content: center;
    margin: 0 0 20px !important;        /* image → cards spacing */
  }

  /* Make sure EVERY other child starts after the phone (row ≥ 2) */
  .why-fasto .why-fasto-content > *:not(.why-fasto-phone) {
    grid-row: auto;                     /* allow auto-placement */
  }

  /* Keep wrappers from breaking grid placement */
  .left-features,
  .right-features {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Bigger centered phone image on tablet */
  .why-fasto-phone .phone-mockup {
    max-width: 680px;
    width: 100%;
    height: auto;
  }

  /* Compact, even cards (two per row) */
  .why-fasto-content .feature-item {
    margin: 0 !important;               /* grid gap handles spacing */
    padding: 12px 14px !important;      /* tighter height */
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(16,24,40,.05);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 0 !important;           /* no forced tall cards */
    height: auto !important;
  }

  /* Icon + text sizes just right for tablet */
  .why-fasto-content .feature-item img { width: 26px; height: 26px; flex-shrink: 0; }
  .feature-title { font-size: 17px; margin: 0 0 4px; font-weight: 700; color: var(--fasto); }
  .feature-desc  { font-size: 15px; margin: 0; line-height: 1.4; color: var(--muted); }



  .app-promo {
    margin: 32px 16px !important;
    padding: 16px 0 !important;
    border-radius: 0;
    /* optional */
  }

  /* make the inner wrapper use the full viewport width with small gutters */
  .app-promo .app-wrap {
    max-width: 100% !important;
    margin: 0 !important;
    /* remove 48px desktop margins */
    padding: 0 12px !important;
    /* small, even side padding */
    flex-direction: column-reverse !important;
    /* image first, then text */
    align-items: center !important;
    gap: 24px !important;
    text-align: center;
  }

  /* center the image block and neutralize .ms-auto from HTML */
  .app-promo .app-visual {
    margin: 0 auto !important;
    /* center the whole block */
    width: 100%;
    max-width: 320px;
    /* feel free to tweak (280–360px) */
    text-align: center;
  }

  /* center the phone itself */
  .app-promo .app-visual .phone {
    display: block;
    margin: 0 auto;
    /* centers the img */
    max-width: 100%;
    height: auto;
  }

  /* keep the oval centered under the phone */
  .app-promo .app-visual .oval {
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;
    width: 360px;
    height: 90px;
    opacity: .25;
  }

  /* text block */
  .app-promo .app-copy {
    max-width: 100% !important;
    text-align: center;
  }

  .app-promo .app-title {
    font-size: 20px;
    margin-bottom: 12px !important;
  }

  .app-promo .app-sub {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px !important;
  }

  /* checklist + badges */
  .app-promo .checks {
    margin: 0 0 16px !important;
    padding: 0;
    text-align: left;
  }

  .app-promo .checks li {
    display: flex;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .app-promo .store-badges {
    justify-content: center;
    gap: 12px !important;
    flex-wrap: wrap;
  }

  .app-promo .store-badges img {
    height: 40px;
  }
  
  .vendor-container .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  .vendor-container .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .vendor-container .vendor-title,
  .vendor-container .vendor-sub,
  .vendor-container .vendor-point {
    text-align: left;
  }

  .vendor-container .text-end {
    text-align: right !important;
  }

  .vendor-container .vendor-ill {
    max-width: 90%;
    height: auto;
  }
}

/* ≥1024px — give the App Promo proper side margins again */
@media (min-width: 1024px) {
  .app-promo {
    margin: 0 48px !important;            /* room on both sides */
    padding: 24px 0 24px !important;
    overflow: hidden;
  }

  .app-promo .app-wrap {
    max-width: 1140px !important;         /* centered content width */
    margin: 0 auto !important;
    padding: 0 32px !important;            /* inner gutters */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .app-promo .app-visual {
    margin-right: 16px !important;         /* nudge off the edge */
  }

  .app-promo .app-visual .phone {
    max-width: 420px;                      /* keep a sane size */
    height: auto;
    display: block;
  }

  .app-promo .app-visual .oval {
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
  }

  
}

/* Categories */
/* ===== Horizontal Categories (Django loop) ===== */
.shop-categories {
  background: #f9fafb;
  padding: 3rem 0;
}

/* scroll row */
.cat-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 38vw, 260px); /* responsive card width */
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px; /* small bottom pad so shadows aren’t clipped */
  scroll-snap-type: x mandatory;
}

/* hide scrollbars cross-browser */
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll { scrollbar-width: none; }

/* card */
.category-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #FFF;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,.1);
  border-color: #e6e6e6;
}

/* image area */
.category-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid #f5f5f5;
  background: #F6F6F6;
}
.category-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .25s ease;
}
.category-card:hover .category-img img { transform: scale(1.05); }

/* text */
.category-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.category-content h5 {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-content p {
  margin: 0;
  color: #6b7280;
  font-size: .85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2em; /* keeps card heights consistent */
}

/* Tablet tweak: slightly wider cards */
@media (min-width: 750px) and (max-width: 1024px) {
  .shop-categories { padding: 3.5rem 0; }
  .cat-scroll { grid-auto-columns: clamp(220px, 28vw, 300px); gap: 18px; }
  .category-img { height: 160px; }
}

/* Desktop: wider, still horizontal */
@media (min-width: 1024px) {
  .shop-categories { padding: 4rem 0; }
  .cat-scroll { grid-auto-columns: clamp(240px, 22vw, 280px); gap: 20px; }
  .category-img { height: 170px; }
}

/* Keep header height stable so title stays centered */
.category-header {
  display: grid;
  grid-template-columns: 38px 1fr 38px; /* reserve space for arrows */
  align-items: center;
  gap: 10px;
  min-height: 48px; /* gives a little breathing room */
}

/* Arrow buttons: fixed size so they act as containers */
.cat-prev-btn,
.cat-next-btn {
  border: none;
  background: #fff;
  color: #111;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.25rem;
  display: flex;              /* always keep space */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

/* Hover for active arrows */
.cat-prev-btn:hover:not(.is-hidden),
.cat-next-btn:hover:not(.is-hidden) {
  background: #f4f4f4;
  transform: translateY(-1px);
}

/* Hidden state: keep size, hide icon & remove interactivity */
.cat-prev-btn.is-hidden,
.cat-next-btn.is-hidden {
  opacity: 0;                 /* visually gone */
  visibility: hidden;         /* hide icon but keep space */
  pointer-events: none;       /* not clickable */
}

/* Title block centered */
.category-title { text-align: center; }

/* Scroll row (unchanged, here for completeness) */
.cat-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 38vw, 260px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 5px;
}
.cat-scroll::-webkit-scrollbar { display: none; }
