/* ==========================================================================
   Crevvo Digital Products Marketplace - Responsive System
   Precise breakpoints: 320px, 375px, 480px, 768px, 992px, 1200px, 1440px
   ========================================================================== */

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Extra Large Desktops (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  .hero-title {
    font-size: 4.2rem;
  }
}

/* Standard Desktops (1200px to 1439px) */
@media (max-width: 1399px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-visual-wrapper img {
    max-width: 580px;
  }
}

/* Medium Desktops & Tablets Landscape (992px to 1199px) */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .benefit-item {
    gap: 12px;
  }
  .benefit-title {
    font-size: 0.92rem;
  }
  .benefit-desc {
    font-size: 0.8rem;
  }
  .product-hero-title {
    font-size: 2.2rem;
  }
}

/* Tablets Portrait (768px to 991px) */
@media (max-width: 991px) {
  .hero-section {
    padding: 40px 0 50px;
    text-align: center;
  }
  .hero-trust-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
    margin-bottom: 40px;
  }
  .hero-visual-wrapper {
    margin-top: 10px;
  }
  .hero-visual-wrapper img {
    max-width: 480px;
  }

  /* Benefits strip becomes 2x2 grid */
  .benefits-strip-container {
    margin-top: 20px;
  }
  .benefits-strip-card .row > div {
    margin-bottom: 20px;
  }
  .benefits-strip-card .row > div:nth-last-child(-n+2) {
    margin-bottom: 0;
  }

  .product-hero-right {
    padding-left: 0;
    margin-top: 36px;
  }

  .whats-included-card {
    padding: 32px 24px;
  }

  .order-summary-card {
    position: static;
    margin-top: 30px;
  }

  .portal-sidebar {
    margin-bottom: 30px;
  }
}

/* Mobile Devices & Large Phones (576px to 767px) */
@media (max-width: 767px) {
  .top-announcement {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }

  .benefits-strip-card {
    padding: 20px;
  }
  .benefit-item {
    gap: 12px;
  }
  .benefit-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .why-choose-section {
    padding: 60px 0;
  }
  .testimonials-section {
    padding: 60px 0;
  }

  .checkout-steps-bar {
    gap: 10px;
    font-size: 0.78rem;
  }
  .checkout-panel-card {
    padding: 20px;
  }

  .thank-you-card {
    padding: 36px 20px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* Hero Floating Badges Mobile Optimization */
  .hero-float-badge {
    padding: 6px 12px;
    border-radius: 12px;
  }
  .hero-float-badge-top {
    top: -5px;
    right: 5px;
  }
  .hero-float-badge-bottom {
    bottom: -5px;
    left: 5px;
  }
  .hero-float-badge-right {
    display: none;
  }
  .hero-float-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .hero-float-text .fw-bold {
    font-size: 0.76rem;
  }
  .hero-float-text .text-muted-xs {
    font-size: 0.65rem;
  }
}

/* Small Phones (320px to 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-trust-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .product-price-large {
    font-size: 2rem;
  }
  .product-hero-title {
    font-size: 1.85rem;
  }
  .gallery-thumb-item {
    width: 60px;
    height: 44px;
  }
  .checkout-panel-card {
    padding: 18px 14px;
  }
  .order-summary-card {
    padding: 20px 14px;
  }
  .payment-badges-row {
    flex-wrap: wrap;
  }
  .download-product-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .download-product-item .btn {
    width: 100%;
  }
}
