/* ==========================================================================
   Bubo Agro — Responsive overrides
   ========================================================================== */

@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

/* Laptop */
@media (max-width: 1199.98px) {
  .pp-cat-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .pp-cat-img { width: 96px; height: 96px; }
  .pp-hero-visual { height: 420px; }
}

/* Tablet */
@media (max-width: 991.98px) {
  :root { --pp-header-h: 64px; }
  .pp-section { padding: 52px 0; }
  .pp-header-main { gap: .75rem; }
  .pp-hero { padding: 48px 0 110px; text-align: center; }
  .pp-hero-lead { border-left: 0; padding-left: 0; }
  .pp-hero-text { margin-left: auto; margin-right: auto; }
  .pp-hero-actions { justify-content: center; }
  .pp-hero-visual { margin: 40px auto 0; height: 400px; max-width: 480px; }
  .pp-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pp-promo-img { width: 100%; opacity: .35; }
  .pp-promo::after { background: linear-gradient(90deg, rgba(238, 246, 232, .95) 0%, rgba(238, 246, 232, .8) 100%); }
  .pp-sticky { position: static; }
  .pp-prose { padding: 28px; }

  /* Shop filters become an offcanvas (Bootstrap .offcanvas-lg) */
  .pp-shop-sidebar.offcanvas-lg .offcanvas-body { padding: 16px; background: var(--pp-bg); }
}

/* Mobile */
@media (max-width: 767.98px) {
  body { font-size: .97rem; padding-bottom: 64px; }
  .pp-section { padding: 40px 0; }
  .pp-section-title { font-size: 1.3rem; }
  .pp-section-head { margin-bottom: 20px; }
  .pp-logo img { width: 38px; height: 38px; }
  .pp-logo-name { font-size: 1.1rem; }
  .pp-icon-btn { width: 42px; height: 42px; font-size: 1rem; }

  .pp-hero { padding: 36px 0 96px; }
  .pp-hero-visual { height: 330px; }
  .pp-hero-card-cap span { font-size: .75rem; }
  .pp-hero-card-cap strong { font-size: .75rem; }
  .pp-hero-leaf { width: 40px; }
  .pp-hero-card.c1 { width: 44%; left: 28%; }
  .pp-hero-card.c2 { top: 34%; }
  .pp-hero-card.c3 { top: 38%; }
  .pp-hero-leaf.l2 { display: none; }

  .pp-features { margin-top: -60px; }
  .pp-feature { flex-direction: column; text-align: center; padding: 14px 8px; gap: .5rem; }
  .pp-feature-ic { width: 44px; height: 44px; font-size: 1.1rem; }
  .pp-feature h3 { font-size: .9rem; }
  .pp-feature p { font-size: .78rem; }

  .pp-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pp-cat-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pp-cat-card { padding: 18px 10px 16px; }
  .pp-cat-img { width: 84px; height: 84px; }
  .pp-cat-name { font-size: 1rem; }
  .pp-cat-sub { font-size: .78rem; }

  .pp-grid { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
  .pp-card-media { padding: 6px 6px 0; }
  .pp-card-cat { left: 12px; top: 12px; font-size: .65rem; padding: 2px 8px; }
  .pp-quickview-btn { opacity: 1; transform: none; right: 12px; top: 12px; width: 32px; height: 32px; font-size: .85rem; }
  .pp-card-body { padding: 10px 10px 12px; }
  .pp-card-title { font-size: .9rem; }
  .pp-price { font-size: 1.05rem; }
  .pp-unit { font-size: .75rem; }
  .pp-chip { padding: 2px 7px; font-size: .74rem; }
  .pp-card-price { margin: 8px 0 10px; }
  .pp-card-actions { gap: 6px; }
  .pp-btn-icon { width: 38px; height: 38px; }
  .pp-card-actions .btn { padding: .45rem .4rem; font-size: .85rem; }
  .pp-card:hover { transform: none; }

  .pp-promo { min-height: 300px; }
  .pp-promo-body { padding: 30px 22px; }
  .pp-cta { padding: 24px 20px; text-align: center; justify-content: center; }
  .pp-cta-actions { justify-content: center; width: 100%; }
  .pp-cta-actions .btn { flex: 1 1 140px; }

  .pp-panel { padding: 18px; }
  .pp-modal .modal-body { padding: 18px; }
  .pp-toolbar .form-select { min-width: 0; flex: 1; }
  .pp-detail-actions .btn { flex: 1 1 100%; }
  .pp-cart-thumb { width: 70px; height: 70px; }
  .pp-prose { padding: 22px 18px; }
  .pp-footer { padding-top: 48px; margin-top: 40px; }

  .pp-to-top { bottom: 78px; right: 14px; width: 42px; height: 42px; }

  /* Bottom navigation (app-like) */
  .pp-bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    background: #fff; border-top: 1px solid var(--pp-border); box-shadow: 0 -4px 20px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom);
  }
  .pp-bottom-nav a, .pp-bottom-nav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; border: 0; background: none;
    font-size: .72rem; font-weight: 600; color: var(--pp-text); position: relative;
  }
  .pp-bottom-nav i { font-size: 1.15rem; }
  .pp-bottom-nav a.active, .pp-bottom-nav a:hover, .pp-bottom-nav button:hover { color: var(--pp-green); }
  .pp-bottom-nav .pp-badge { top: 6px; right: calc(50% - 22px); }
}

@media (max-width: 380px) {
  .pp-logo-tag { display: none; }
  .pp-card-actions .pp-btn-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .pp-header, .pp-footer, .pp-bottom-nav, .pp-to-top, .pp-topbar { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* Track order — mobile */
@media (max-width: 575.98px) {
  .pp-track-panel { padding: 26px 18px; }
  .pp-track-field .btn { flex: 1 1 100%; }
  .pp-track-order-head { flex-direction: column; gap: .6rem; }
  .pp-track-steps { flex-direction: column; gap: 14px; margin-left: 4px; }
  .pp-track-step { display: flex; align-items: center; gap: 12px; text-align: left; }
  .pp-track-dot { margin: 0; flex: 0 0 36px; width: 36px; height: 36px; font-size: .85rem; }
  .pp-track-step:not(:last-child)::after { top: 36px; left: 16.5px; right: auto; width: 3px; height: 14px; }
}
