/* ==========================================================================
   MAHALAXMI ENTERPRISES / DHANALAKSHMI PUREIT
   Mobile-First & Fully Responsive Media Queries
   Focus: Flawless Mobile Smartphone (320px - 767px) + Tablet & Laptop
   ========================================================================== */

/* --------------------------------------------------------------------------
   BASE MOBILE ENHANCEMENTS (All Screens, optimized for touch)
   -------------------------------------------------------------------------- */
input, select, textarea {
  font-size: 16px !important; /* Prevents unwanted auto-zoom on iOS Safari */
}

button, a, .nav-action-btn, .btn-tbl, .cart-qty-btn {
  touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   DESKTOP & LARGE LAPTOPS (min-width: 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  .mobile-sticky-action-bar {
    display: none !important;
  }
  .mobile-filter-trigger-btn {
    display: none !important;
  }
  .filter-close-btn {
    display: none !important;
  }
  .filter-mobile-apply-bar {
    display: none !important;
  }
  .filter-drawer-backdrop {
    display: none !important;
  }
  .mobile-swipe-hint {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   LAPTOPS & LARGE TABLETS (max-width: 1199px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .hero-title {
    font-size: clamp(2.2rem, 4vw, 2.9rem);
  }
  .hero-grid {
    gap: 2rem;
  }
  .trust-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   TABLETS (max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .topbar {
    display: none; /* Hide topbar on mobile/tablets for maximum screen real estate */
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border);
  }

  /* Slide-in Mobile Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2005;
    overflow-y: auto;
    gap: 0.5rem;
  }

  .nav-links.show {
    left: 0;
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 1.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-drawer-header img {
    height: 38px;
  }

  .nav-drawer-close {
    background: var(--bg-alt);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-link {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover, .nav-link.active {
    background: #F0F9FF;
    color: var(--secondary);
    padding-left: 0.85rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-drawer-contact-box {
    margin-top: auto;
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  /* Overlay backdrop for mobile drawer */
  .nav-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 25, 44, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  /* Hero Section for Tablets */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-image-wrap {
    margin-top: 1.5rem;
  }

  .hero-image-wrap img {
    max-height: 340px;
  }

  /* Catalogue Layout & Mobile Filter Drawer */
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .toolbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }

  .mobile-filter-trigger-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(11, 25, 44, 0.15);
  }

  .mobile-filter-count-badge {
    background: var(--secondary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
  }

  /* Off-Canvas Mobile Filter Drawer */
  .filter-sidebar {
    position: fixed !important;
    top: 0;
    left: -330px;
    width: 310px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF !important;
    z-index: 1060;
    box-shadow: 5px 0 25px rgba(11, 25, 44, 0.25);
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .filter-sidebar.open {
    left: 0 !important;
  }

  .filter-sidebar .filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #F8FAFC;
    margin-bottom: 0;
  }

  .filter-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
  }

  .filter-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-mobile-apply-bar {
    display: block !important;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #FFFFFF;
  }

  .filter-drawer-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(11, 25, 44, 0.55);
    z-index: 1055;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
  }

  .filter-drawer-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Product Details Grid */
  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }

  .main-image-wrap {
    height: 360px;
  }

  /* Cart Layout */
  .cart-layout {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   MOBILE SMARTPHONES (max-width: 767px) - MAIN TARGET
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Give body safe bottom spacing for mobile bottom navigation bar */
  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
  }

  /* Compact Clean Navbar */
  .navbar-container {
    height: 64px;
  }

  .navbar-logo {
    height: 38px;
  }

  .navbar-logo img {
    height: 100%;
  }

  .btn-login span {
    display: none; /* Icon only to save horizontal space */
  }

  .btn-login {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
  }

  .nav-action-btn {
    width: 38px;
    height: 38px;
  }

  /* Hero Section Mobile Typography & Layout */
  .hero-slider-section {
    min-height: auto;
    padding: 2.75rem 0 3.25rem;
  }

  .hero-slide {
    padding: 0;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 0.85rem;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-actions a, .hero-actions button {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .hero-image-wrap {
    margin-top: 1.75rem;
  }

  .hero-image-wrap img {
    max-height: 250px;
    width: 85%;
  }

  /* Trust Cards Grid */
  .trust-section {
    padding: 2.25rem 0;
    margin-top: -15px;
  }

  .trust-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .trust-card {
    padding: 1.15rem 1rem;
    gap: 1rem;
  }

  .trust-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .trust-content h4 {
    font-size: 0.98rem;
  }

  .trust-content p {
    font-size: 0.85rem;
  }

  /* Section Spacings */
  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  /* Product Cards Grid on Mobile */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-image-container {
    height: 220px;
    padding: 1.25rem 1rem;
  }

  .product-card-body {
    padding: 1.25rem 1.1rem;
  }

  .product-title {
    font-size: 1.1rem;
    height: auto;
    max-height: 2.8rem;
    margin-bottom: 0.5rem;
  }

  .product-short-desc {
    font-size: 0.86rem;
    margin-bottom: 0.75rem;
  }

  .product-actions-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .btn-card-action {
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
  }

  .btn-whatsapp-enq {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  /* Categories Grid Mobile */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .category-card {
    padding: 1.15rem 0.75rem;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
  }

  .category-name {
    font-size: 0.88rem;
  }

  .category-count {
    font-size: 0.75rem;
  }

  /* Services Grid Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .service-img-wrap {
    height: 160px;
  }

  .service-body {
    padding: 1.35rem 1.15rem;
  }

  .service-title {
    font-size: 1.15rem;
  }

  /* Solar Grid Mobile */
  .solar-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .solar-card-img {
    height: 180px;
  }

  .solar-hero {
    padding: 3rem 0;
  }

  /* Catalogue Mobile Filter Toolbar & Slide-Up Sheet */
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .toolbar-search {
    width: 100%;
  }

  .toolbar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .sort-select {
    flex: 1;
    max-width: 50%;
  }

  /* Product Details Page on Mobile */
  .product-details-grid {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .main-image-wrap {
    height: 280px;
  }

  .thumbnail-gallery {
    gap: 0.5rem;
  }

  .thumbnail-item {
    height: 65px;
    padding: 0.25rem;
  }

  .product-info-panel h1 {
    font-size: 1.55rem;
  }

  .detail-highlight-boxes {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .detail-btn-row {
    flex-direction: column;
    gap: 0.65rem;
  }

  .detail-btn-row button, .detail-btn-row a {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  /* Mobile Sticky Bottom Action Bar for Product Details */
  .mobile-sticky-action-bar {
    position: fixed;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    padding: 0.65rem 1rem;
    display: flex;
    gap: 0.6rem;
    z-index: 1002;
  }

  .mobile-sticky-action-bar button, .mobile-sticky-action-bar a {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }

  /* Specifications Table Responsive on Mobile */
  .specs-table th, .specs-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .specs-table td:first-child {
    width: 42%;
  }

  /* Compare Table Mobile Swipe Container & Sticky Headers */
  .mobile-swipe-hint {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--secondary);
    background: rgba(30, 62, 98, 0.08);
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 0.85rem;
    font-weight: 600;
  }

  .compare-container {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .compare-table {
    min-width: 620px;
  }

  .compare-table th {
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    background: #F1F5F9 !important;
    box-shadow: 3px 0 6px rgba(0, 0, 0, 0.08);
    width: 135px;
    min-width: 135px;
    font-size: 0.82rem;
    padding: 0.85rem 0.65rem;
  }

  .compare-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.85rem;
    min-width: 185px;
    scroll-snap-align: start;
  }

  .compare-img-box {
    height: 120px;
  }

  /* Enquiry Cart Mobile - Touch Friendly Grid Layout */
  .cart-items-card, .cart-form-card {
    padding: 1.25rem 1rem;
  }

  .cart-item-row {
    display: grid !important;
    grid-template-columns: 68px 1fr auto !important;
    grid-template-areas:
      "img info remove"
      "img qty qty" !important;
    gap: 0.6rem 0.85rem !important;
    align-items: center !important;
    padding: 1rem 0 !important;
  }

  .cart-item-img {
    grid-area: img;
    width: 68px !important;
    height: 68px !important;
  }

  .cart-item-info {
    grid-area: info;
    min-width: 0 !important;
  }

  .cart-item-name {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.2rem;
  }

  .btn-remove-item {
    grid-area: remove;
    justify-self: end;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0;
  }

  .cart-qty-ctrl {
    grid-area: qty;
    justify-self: start;
    height: 40px;
  }

  .cart-qty-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.15rem !important;
  }

  .cart-qty-val {
    width: 40px !important;
    font-size: 1rem !important;
  }

  .btn-submit-primary, .btn-submit-whatsapp {
    min-height: 48px;
    font-size: 0.95rem;
  }

  /* Footer Mobile */
  .footer {
    padding: 3.5rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Floating Buttons on Mobile - Placed safely above bottom nav */
  .floating-actions {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    gap: 10px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .float-tooltip {
    display: none; /* No hover tooltips on mobile touch */
  }

  /* Toast notification on mobile */
  .toast-container {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    right: 14px;
  }

  .toast {
    max-width: 100%;
    padding: 0.8rem 1.1rem;
    font-size: 0.88rem;
  }
}

/* --------------------------------------------------------------------------
   STICKY MOBILE BOTTOM APP BAR (Native App Feel)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(11, 25, 44, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1001;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748B;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s ease;
  text-align: center;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.bottom-nav-item.active {
  color: var(--secondary);
}

.bottom-nav-item .bottom-badge {
  position: absolute;
  top: 2px;
  right: 25%;
  background: var(--secondary);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.bottom-nav-item .bottom-badge.zero {
  display: none;
}

/* --------------------------------------------------------------------------
   EXTRA COMPACT MOBILE DEVICES (max-width: 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .category-card {
    padding: 0.85rem 0.5rem;
  }
  .category-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
  .category-name {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   RESPONSIVE AUDIT ADDENDUM — fixes found via measured browser sweep at
   375 / 768 / 1024 px. Grouped by breakpoint, original rules above untouched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) SMALL LAPTOPS (992px – 1199px): desktop nav was overflowing by ~194px
      because app.js injects drawer-only chrome (.nav-drawer-header,
      .nav-drawer-contact-box) into .nav-links on every viewport, and the
      desktop nav had no room to breathe between 992–1199px.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
  /* Drawer-only chrome must never render inside the horizontal nav */
  .nav-drawer-header,
  .nav-drawer-contact-box {
    display: none !important;
  }

  /* Let the nav compress gracefully instead of overflowing the header */
  .nav-links {
    gap: 0.9rem;
    min-width: 0;
    flex-wrap: wrap;
  }
  .nav-link {
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .navbar-container {
    gap: 1rem;
  }
  .nav-actions {
    gap: 0.6rem;
  }
}

/* --------------------------------------------------------------------------
   2) TABLETS + PHONES: inline style="display:grid;grid-template-columns:..."
      in about/contact/enquiry/services beats normal media-query rules, so
      those grids never stacked. !important is required to beat inline styles.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* about.html: intro image | text split */
  .why-us-grid {
    grid-template-columns: 1fr !important;
  }

  /* contact.html: business info | form split */
  div.catalog-layout[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  /* about.html: 3-up trust/promise cards */
  .trust-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* enquiry.html / services.html: side-by-side form rows */
  #quickEnquiryForm div[style*="grid-template-columns"],
  #serviceRequestForm div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  /* Touch-target floor for controls that measured < 38px tall */
  .btn-reset-filters,
  .btn-card-action,
  .nav-drawer-close {
    min-height: 44px;
  }
  .btn-reset-filters {
    padding: 0.5rem 1rem;
  }

  /* Drawer nav links + footer/topbar links: comfortable tap targets on touch.
     Drawer links are primary navigation → 44px; dense footer/topbar text links
     get enough padding to clear the WCAG 2.2 AA 24px minimum comfortably. */
  .nav-links .nav-link {
    min-height: 44px;
  }
  .topbar-item a,
  a.topbar-item,
  .footer a {
    display: inline-block;
    padding: 6px 0;
  }
}

/* --------------------------------------------------------------------------
   3) PHONES (max-width: 767px): catalog toolbar overflow (~43px) and
      table scroll affordance + small controls.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Catalogue toolbar: allow full reflow and full-width search field */
  .toolbar-search {
    min-width: 0;
    width: 100%;
  }
  .toolbar-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
  }
  .sort-select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
  }

  /* Scroll affordance for horizontally scrollable admin data tables */
  .table-responsive {
    background:
      linear-gradient(to right, #FFFFFF 30%, rgba(15, 23, 42, 0)) ,
      linear-gradient(to left, #FFFFFF 30%, rgba(15, 23, 42, 0)) right,
      radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, 0.18), transparent) left,
      radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, 0.18), transparent) right;
    background-repeat: no-repeat;
    background-size: 24px 100%, 24px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
    -webkit-overflow-scrolling: touch;
  }

  /* Touch-target floor for small admin controls */
  .admin-modal .modal-close-btn,
  .mobile-filter-trigger-btn,
  .filter-close-btn,
  .nav-drawer-close {
    min-width: 44px;
    min-height: 44px;
  }
  .mobile-filter-trigger-btn {
    padding: 0.65rem 1rem;
  }
  .filter-close-btn {
    font-size: 1.15rem;
  }

  /* Header icon buttons: keep set size (no flex-shrink) and align to the
     site's 40px phone control scale (was 38px, desktop is 42px) */
  .nav-action-btn,
  .mobile-toggle {
    flex-shrink: 0;
  }
  .nav-action-btn {
    width: 40px;
    height: 40px;
  }
  .mobile-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   4) HEADER / FOOTER BUTTON POLISH — measured issues:
      - ≥1200px: drawer chrome (.nav-drawer-header, .nav-drawer-contact-box)
        still rendered inside the desktop nav, wrapping two nav labels onto
        two lines (65px-tall list items) and making link gaps uneven.
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .nav-drawer-header,
  .nav-drawer-contact-box {
    display: none !important;
  }
  .nav-link {
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   5) KEYBOARD FOCUS RING — one consistent visual language for every
      nav/footer control (none of them had any :focus-visible styling).
   -------------------------------------------------------------------------- */
.nav-link:focus-visible,
.nav-action-btn:focus-visible,
.btn-login:focus-visible,
.mobile-toggle:focus-visible,
.nav-drawer-close:focus-visible,
.social-link:focus-visible,
.footer-links a:focus-visible,
.footer-contact-item a:focus-visible,
.footer-bottom a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Footer bottom row (e.g. "Admin Panel" link): icon and label aligned on one
   baseline with a consistent gap instead of loose inline flow */
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 767px) {
  /* Footer bottom link grows to a comfortable tap target on touch screens */
  .footer-bottom a {
    min-height: 40px;
    padding: 8px 0;
  }
}
