/* ==========================================================================
   NICO Pharma — Responsive layer
   Breakpoints follow Bootstrap 5: 1399 / 1199 / 991 / 767 / 575
   ========================================================================== */

/* --------------------------------------------------------------- ≤ 1399px */
@media (max-width: 1399.98px) {
  .main-nav a { padding: 10px 12px; font-size: 15px; }
  .brand-logo img { width: 175px; }
  .slider-arrow.prev { left: -8px; }
  .slider-arrow.next { right: -8px; }
}

/* --------------------------------------------------------------- ≤ 1199px */
@media (max-width: 1199.98px) {
  :root { --header-h: 82px; }

  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .section-head h2 { font-size: 30px; }
  .split-content h2 { font-size: 28px; }

  .section { padding: 64px 0; }
  .main-nav a { padding: 10px 9px; font-size: 14px; }
  .brand-logo img { width: 160px; }
  .header-tools .tool-btn { width: 40px; height: 40px; font-size: 17px; }

  .video-block .video-overlay h2 { font-size: 32px; }
  .stat-band .stat-number { font-size: 60px; }
  .stat-band .stat-label { font-size: 25px; }
  .form-panel { padding: 38px 32px; }
  .cert-row { gap: 24px; }
  .cert-row img { width: 66px; }
}

/* ---------------------------------------------------------------- ≤ 991px */
@media (max-width: 991.98px) {
  :root { --header-h: 74px; }

  h1 { font-size: 31px; }
  h2 { font-size: 26px; }
  h3 { font-size: 21px; }

  .section { padding: 52px 0; }
  .section-tight { padding: 40px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 26px; }

  /* nav switches to drawer */
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-tools { margin-left: auto; }
  .brand-logo img { width: 150px; }
  /* the floating pill would sit on top of the cart icon once the header
     compresses — the same control lives inside the drawer at this size */

  .announcement-bar .announcement-inner { font-size: 13px; gap: 10px; padding-right: 40px; }

  /* home */

  .split-media { margin-bottom: 30px; }
  .split-content { text-align: left; }
  .split-order-first { order: -1; }

  /* timeline collapses to a single rail */
  .timeline::before { left: 9px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 30px 38px;
  }
  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { left: 0; right: auto; top: 20px; }

  .why-cell,
  .choose-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .why-grid .col-6:nth-child(odd) .why-cell { border-right: 1px solid var(--line); }

  .video-block .video-overlay h2 { font-size: 26px; }
  .play-btn { width: 62px; height: 62px; font-size: 20px; }

  /* product detail */
  .pdp-summary { margin-top: 34px; }
  .stat-trio { gap: 46px; }

  /* cart collapses its column headers into a stacked card */
  .cart-line {
    grid-template-columns: 120px 1fr 46px;
    grid-template-areas:
      "thumb title remove"
      "thumb price price"
      "thumb qty qty"
      "thumb total total";
    row-gap: 10px;
  }
  .cart-line .c-thumb { grid-area: thumb; }
  .cart-line .c-title { grid-area: title; }
  .cart-line .c-price { grid-area: price; }
  .cart-line .c-qty { grid-area: qty; }
  .cart-line .c-total { grid-area: total; font-weight: 600; }
  .cart-line .c-remove { grid-area: remove; justify-self: end; }
  .cart-cell-label {
    display: inline;
    color: var(--muted);
    font-size: 13px;
    margin-right: 6px;
  }
  .cart-actions .btn { min-width: 0; flex: 1; padding: 16px 22px; }

  /* shop */
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -340px;
    bottom: 0;
    width: 320px;
    max-width: 88vw;
    background: #fff;
    z-index: 1060;
    padding: 24px 20px;
    overflow-y: auto;
    transition: left .4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .shop-sidebar.is-open { left: 0; }
  .filter-drawer-btn { display: inline-flex; align-items: center; gap: 9px; }
  .sidebar-close { display: inline-flex !important; }

  .form-panel { padding: 32px 24px; }
  .map-embed { height: 420px; }
  .site-footer { padding: 52px 0 28px; }
  .site-footer h5 { margin-bottom: 16px; margin-top: 26px; }
  .site-footer .footer-col-brand h5 { margin-top: 0; }
  .newsletter-form { max-width: 100%; }
}

/* ---------------------------------------------------------------- ≤ 767px */
@media (max-width: 767.98px) {
  body { font-size: 14.5px; }

  h1 { font-size: 27px; }
  h2 { font-size: 23px; }
  .section-head h2 { font-size: 23px; }
  .split-content h2 { font-size: 24px; }

  .section { padding: 44px 0; }

  .announcement-bar .announcement-inner { flex-direction: column; gap: 8px; padding: 10px 36px; }

  .hero-figure { aspect-ratio: 4 / 3; }

  .cat-icon { width: 68px; height: 68px; font-size: 26px; border-radius: 16px; }
  .cat-tile span { font-size: 12.5px; }

  .split-content p { text-align: left; }

  .pill-grid a { font-size: 11.5px; padding: 7px 13px; }
  .problem-heading { font-size: 16px; }

  .testimonial-card { flex-direction: column; text-align: center; padding: 26px 22px; }
  .testimonial-avatar { width: 68px; height: 68px; font-size: 32px; }

  .blog-card { padding: 24px 22px; }
  .blog-card h3 { font-size: 19px; }
  .blog-meta { flex-direction: row; }

  .why-cell, .choose-cell { border-right: 0 !important; }

  .product-actions button { opacity: 1; transform: none; }
  .product-cart-btn { opacity: 1; transform: none; position: static; margin-top: 12px; }
  .product-media { aspect-ratio: 1 / 1; }

  .pagination-nico button,
  .pagination-nico a { width: 40px; height: 40px; font-size: 13px; }

  .pdp-summary h1 { font-size: 22px; }
  .pdp-price { font-size: 28px; }
  .pdp-buy { width: 100%; }
  .pdp-buy .btn-nico { flex: 1; }
  .pdp-links { gap: 18px; }
  .info-panel { padding: 20px 18px; }
  .info-panel h3 { font-size: 17px; }
  .stat-trio { gap: 30px; width: 100%; }
  .stat-trio .stat-item { flex: 1 1 40%; }
  .stat-trio .stat-value { font-size: 28px; }
  .reviews-panel { padding: 22px 18px; }
  .totals-table th, .totals-table td { padding: 15px 16px; font-size: 14px; }
  .checkout-stack .btn { padding: 16px; font-size: 15px; }
  .cart-actions { gap: 12px; }

  .contact-card { padding: 34px 22px 30px; }
  .form-panel { padding: 26px 20px; }
  .form-panel .panel-title { font-size: 21px; margin-bottom: 24px; }
  .map-embed { height: 340px; }

  .stat-band { text-align: center; }
  .stat-band .stat-number { font-size: 52px; }
  .stat-band .stat-label { font-size: 22px; }
  .cert-row { gap: 18px; }
  .cert-row img { width: 56px; }

  .faq-cta { padding: 32px 22px; }
  .float-actions { right: 14px; bottom: 16px; }
  .float-btn { width: 46px; height: 46px; font-size: 19px; }
  .float-top { height: 0; }
  .float-top.is-visible { height: 46px; }
  .nico-toast { right: 14px; left: 14px; bottom: 84px; text-align: center; }
}

/* ---------------------------------------------------------------- ≤ 575px */
@media (max-width: 575.98px) {
  .brand-logo img { width: 132px; }
  .header-tools .tool-btn { width: 36px; height: 36px; font-size: 16px; }
  .header-tools .tool-btn.hide-xs { display: none; }

  .search-overlay input { font-size: 19px; }
  .search-close { top: 18px; right: 18px; width: 40px; height: 40px; }


  .video-block .video-overlay h2 { font-size: 20px; }
  .timeline-card { padding: 18px; }
  .price-fields { flex-direction: column; gap: 10px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .btn { padding: 12px 24px; }
  .cart-line { grid-template-columns: 84px 1fr 40px; }
  .cart-actions { flex-direction: column; }
  .cart-actions .btn { width: 100%; }
  .pay-badges img { height: 27px; }
}
