/* ═══════════════════════════════════════════════════════════════════
   TABLET VIEW — SHOP PAGE
   Breakpoint: 769px – 1100px
   Goals:
     1. Navbar identical to mobile (hamburger | centered logo | icons)
     2. Hide the shop-sidebar aside completely
     3. Price-range slider sits inline beside the Categories dropdown
     4. Moderate, comfortable spacing throughout
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. TABLET NAVBAR — mirrors the mobile layout exactly
   hamburger (left) | logo (absolute-centre) | nav-actions (right)
───────────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {

  /* Nav container */
  nav {
    padding: 0 24px;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  /* Hide desktop link list */
  .nav-links {
    display: none !important;
  }

  /* Show hamburger on the left */
  .hamburger {
    display: flex !important;
    order: -1;
    margin: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
  }

  /* Logo — absolutely centred in the nav bar */
  .fariconlogo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    height: 52px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    flex-shrink: 0;
  }

  .fariconlogo img {
    width: auto !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Nav-actions stay on the right */
  .nav-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  /* 44px tap-target on each icon */
  .nav-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Cart badge repositioned for 44px box */
  .open-cart .cart-badge {
    top: 6px;
    right: 4px;
    width: 16px;
    height: 16px;
    font-size: 0.55rem;
  }
}


/* ─────────────────────────────────────────────────────────────────
   2. HIDE SHOP SIDEBAR at tablet (we show filters inline instead)
───────────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {

  .shop-sidebar {
    display: none !important;
  }

  /* Shop layout becomes single-column, full width */
  .shop-layout {
    grid-template-columns: 1fr !important;
    padding-top: var(--nav-h) !important;
  }

  /* Shop main — moderate, balanced padding */
  .shop-main {
    padding: 32px 36px 48px !important;
  }
}


/* ─────────────────────────────────────────────────────────────────
   3. PRICE RANGE INLINE — right beside the Categories dropdown
───────────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {

  /* Filter-bar: horizontal row, no wrapping, aligned centre */
  .filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 20px 0 28px !important;
  }

  /* Show the mobile price-range widget (it is already in the markup) */
  .filter-price-mobile {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    border: 1px solid var(--border) !important;
    background: transparent !important;
    margin: 0 !important;
    white-space: nowrap;
  }

  .filter-price-label {
    font-size: 0.62rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--silver) !important;
    white-space: nowrap;
  }

  .filter-price-mobile input[type="range"] {
    width: 100px !important;
    accent-color: var(--gold) !important;
    cursor: pointer !important;
  }

  /* Categories dropdown toggle — compact but readable */
  .filter-dropdown-toggle {
    min-width: 140px !important;
    padding: 9px 16px !important;
    font-size: 0.68rem !important;
  }

  /* "All" filter button */
  .filter-btn {
    padding: 9px 18px !important;
    font-size: 0.68rem !important;
  }

  /* Dropdown menu position and sizing */
  .filter-dropdown-menu {
    min-width: 220px !important;
    max-height: 55vh !important;
  }
}


/* ─────────────────────────────────────────────────────────────────
   4. PRODUCTS GRID & GENERAL SPACING at tablet
───────────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {

  /* 3-column product grid — comfortable at tablet width */
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2px !important;
  }

  /* Shop header row */
  .shop-header-row {
    align-items: flex-end !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
    flex-wrap: nowrap !important;
  }

  /* Page title scale */
  .shop-header-titles .page-title {
    font-size: clamp(1.6rem, 4vw, 3rem) !important;
    line-height: 1 !important;
  }

  /* Search bar — fill remaining space */
  .shop-search-bar {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 380px !important;
  }

  .shop-search-input {
    padding: 12px 72px 12px 40px !important;
    font-size: 0.7rem !important;
  }

  /* Product info spacing */
  .product-info {
    padding: 16px 16px 20px !important;
  }

  .product-name {
    font-size: 0.92rem !important;
  }

  /* Footer spacing at tablet */
  footer {
    padding: 60px 36px 36px !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }
}


/* ─────────────────────────────────────────────────────────────────
   5. SECTION-LABEL + PAGE-TITLE spacing reset for tablet
───────────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {

  .section-label {
    font-size: 0.66rem !important;
    margin-bottom: 10px !important;
  }

  /* Moderate top padding so content doesn't crowd the fixed nav */
  .shop-main > *:first-child {
    margin-top: 0;
  }
}
