/* NEPAPEX E-commerce Modern Style */
:root {
    --nepapex-blue: #174a7c;
    --nepapex-orange: #f15a29;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
}
/* Mobile-friendly baseline */
html { -webkit-text-size-adjust: 100%; }
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
/* Prevent long words from breaking layout */
.section-title, .card-title, .card-body, .navbar, .footer, .alert {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.07);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container .row.align-items-center { display: flex; flex-wrap: nowrap; }
.header .container .row .col-md-6 { flex: 1 1 auto; min-width: 0; }
.header .container .row .col-md-3 { flex: 0 0 auto; }
.logo h1, .logo h5 {
    color: var(--nepapex-blue);
    font-weight: bold;
    margin: 0;
}
.logo img {
    height: 48px;
    width: auto;
}
/* ===============================
   SEARCH CONTAINER
=================================*/
.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    flex: 1 1 0%;
    min-width: 0;
}

.search-form {
    width: 100%;
}

.search-form .input-group {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
}

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--nepapex-orange);
    padding: 12px 18px;
    font-size: 16px;
}

.search-btn {
    flex: 0 0 auto;
    border-radius: 0 25px 25px 0;
    background: var(--nepapex-orange);
    border: 2px solid var(--nepapex-orange);
    color: #fff;
    font-weight: 600;
    padding: 0 20px;
}

.search-btn:hover {
    background: #d94a1a;
    border-color: #d94a1a;
}

/* ===============================
   HEADER ACTIONS (Cart, NP, Bell, Seller)
=================================*/
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
=================================*/

/* Large devices */
@media (max-width: 1200px) {
    .search-input {
        padding: 11px 16px;
    }
}

/* Medium devices */
@media (max-width: 992px) {
    .search-input {
        padding: 10px 14px;
        font-size: 15px;
    }
    .search-btn {
        padding: 0 16px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {

    .header .row {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .header-actions {
        order: 2;
        justify-content: flex-end;
        width: 100%;
    }

    .search-input {
        font-size: 15px;
        padding: 10px 14px;
    }
}
.cart-count {
    background: var(--nepapex-orange);
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}
.navbar {
    background: linear-gradient(135deg, var(--nepapex-blue) 0%, var(--nepapex-orange) 100%) !important;
    padding: 10px 0;
}
.btn-outline-orange {
    border: 2px solid #FF6A00 !important;
    color: #FF6A00 !important;
    background: #fff !important;
    border-radius: 999px;
}
.btn-outline-orange:hover {
    background: #fff4eb !important;
    color: #e65c00 !important;
    border-color: #e65c00 !important;
}

.btn-filled-orange {
    background: #FF6A00 !important;
    color: #fff !important;
    border: 2px solid #FF6A00 !important;
    border-radius: 999px;
    font-weight: 600;
}

.btn-filled-orange:hover {
    background: #e65c00 !important;
    border-color: #e65c00 !important;
    color: #fff !important;
}

.btn-warning {
    border-radius: 12px;
    font-weight: 600;
}
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}
.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.dropdown-item:hover {
    background: var(--nepapex-orange);
    color: #fff;
}

/* Category Card Styling */
.category-card {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    color: inherit !important;
}
.category-card .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.category-card:hover .card {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Footer Link Styling - No Underline */
.footer a {
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.footer a:hover {
    color: var(--nepapex-orange) !important;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 8px 0;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 10px;
    flex: 1;
    position: relative;
    transition: all 0.2s ease;
}

.mobile-bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    color: #666;
    transition: all 0.2s ease;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.active {
    color: var(--nepapex-orange);
}



@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Space for bottom nav */
    }
}

/* New Bottom Navigation Bar matching the request */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 9999;
    height: 60px;
    border-top: 1px solid #eee;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #909090; /* Softer gray */
    font-size: 12px; /* Increased for better readability */
    font-weight: 500;
    flex: 1;
    transition: all 0.2s ease;
    position: relative;
    padding-top: 5px;
}

.bottom-nav .nav-item i {
    font-size: 22px; /* Increased for better touch target */
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

/* Active State for all items including Home */
.bottom-nav .nav-item.active {
    color: #FF6A00; /* Flat Orange */
}

.bottom-nav .nav-item.active i {
    color: #FF6A00;
}

.order-timeline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}

.order-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.order-timeline-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    margin-bottom: 6px;
}

.order-timeline-icon-completed {
    border-color: transparent;
}

.order-timeline-label {
    text-align: center;
    font-size: 12px;
}

@media (max-width: 576px) {
    .order-timeline-label {
        font-size: 11px;
    }
}
.bottom-nav .nav-item.active span::after {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    background: #FF6A00;
    border-radius: 2px;
    margin: 4px auto 0;
}

.bottom-nav .icon-container {
    position: relative;
    display: inline-block;
}

.bottom-nav .cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #FF4D4D; /* Red badge */
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    font-weight: bold;
    border: 1px solid #fff;
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

/* NEPAPEX Modern Action Button */
.btn-nepapex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8C1A 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(255, 106, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-nepapex:hover {
    background: linear-gradient(135deg, #e65c00 0%, #ff7b00 100%);
    box-shadow: 0 6px 12px rgba(255, 106, 0, 0.3);
    transform: translateY(-1px);
    color: #fff;
}

.btn-nepapex i {
    margin-right: 8px;
    font-size: 18px;
}

.btn-nepapex:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(255, 106, 0, 0.2);
}


.btn-nepapex.btn-sm {
    padding: 6px 16px;
    font-size: 14px;
}
.btn-nepapex.btn-sm i {
    font-size: 14px;
    margin-right: 6px;
}

/* Colorful variant for high-visibility CTAs */
.btn-nepapex-colorful {
    background: linear-gradient(135deg, #FF6A00 0%, #FF8C1A 33%, #FFB703 66%, #FFD166 100%);
}
.btn-nepapex-colorful:hover {
    background: linear-gradient(135deg, #e65c00 0%, #ff7b00 33%, #ffae00 66%, #ffcc66 100%);
}

/* Product price line */
/* Shows new price in orange and bold, old price gray with strikethrough, inline */
.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.price-section .current-price {
    color: #FF6A00;
    font-weight: 700;
    font-size: 16px;
}
.price-section .original-price {
    color: #9a9a9a;
    text-decoration: line-through;
    font-size: 14px;
}

/* Discount badge on product image */
.deal-badge,
.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FF6A00;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(255, 106, 0, 0.25);
    z-index: 2;
}

/* Ensure product card image container can show badge */
.card .card-img-top,
.product-card .image-container {
    position: relative;
}
.section-title {
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #FF6A00;
    border-radius: 2px;
}

/* =========================
   Responsive Baseline (A03)
   ========================= */
html {
    font-size: clamp(14px, 4vw, 16px);
    -webkit-text-size-adjust: 100%;
}
body {
    line-height: 1.6;
}
.container {
    max-width: 100%;
    padding-left: clamp(12px, 4vw, 16px);
    padding-right: clamp(12px, 4vw, 16px);
}
.header {
    padding: 1rem 0;
}
.logo img {
    height: 3rem;
    width: auto;
}
.search-container {
    width: 100%;
    max-width: min(100%, 42rem);
}
.search-input {
    border-radius: 1.5rem 0 0 1.5rem;
    border-width: 0.125rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
}
.search-btn {
    border-radius: 0 1.5rem 1.5rem 0;
    border-width: 0.125rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}
.cart-count {
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    top: -0.3125rem;
    right: -0.3125rem;
}
.card {
    border-radius: 0.5rem;
}
.card-body {
    padding: 1rem;
}

/* Touch-friendly controls */
.btn,
.btn-nepapex,
button,
input[type="button"],
input[type="submit"] {
    min-height: 2.75rem;
    font-size: clamp(0.95rem, 2.8vw, 1rem);
}
.btn-nepapex {
    border-radius: 2.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}
.btn-nepapex.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

/* Images: avoid stretching */
img {
    max-width: 100%;
    height: auto;
}
.img-cover,
.card img,
.product-card img {
    object-fit: cover;
}

.product-card .product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero banner: responsive with aspect ratio preservation on mobile */
.hero-banner-frame {
    width: 100%;
    /* Desktop: fixed height range */
    height: clamp(300px, 40vw, 550px);
    overflow: hidden;
    position: relative;
}

.hero-banner-frame .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Caption Color Scheme (White/Black/Red) - Global */
.carousel-caption {
    background: rgba(88, 158, 202, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    bottom: 10%;
    left: 10%;
    right: 10%;
    width: 80%;
}
.carousel-caption h2 {
    color: #fff; /* White Title */
    text-shadow: 2px 2px 4px #000; /* Black Shadow */
    font-weight: 700;
    -webkit-text-stroke: 1px #000;
}
.carousel-caption p {
    color: #f8f9fa; /* Off-white Text */
    text-shadow: 1px 1px 3px #000;
    -webkit-text-stroke: 0.4px #000;
}
.carousel-caption .btn-nepapex {
    background: #614bbb; /* Red Button */
    color: #fff;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.carousel-caption .btn-nepapex:hover {
    background: #431cc3; /* Darker Red on Hover */
    color: #fff;
}

/* Mobile optimizations for hero banner */
@media (max-width: 768px) {
    .hero-banner-frame {
        /* Use aspect ratio on mobile to avoid excessive cropping */
        height: auto;
        aspect-ratio: 4/3; 
        min-height: 240px;
    }
    
    /* Fix overlay blocking touch events */
    .carousel-caption {
        bottom: 1rem;
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
        pointer-events: none;
        width: 90%;
        left: 5%;
        right: 5%;
        background: rgba(135, 206, 250, 0.95);
    }
    
    .carousel-caption > * {
        pointer-events: auto; /* Re-enable interaction for text/buttons */
    }
    
    .carousel-caption h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .carousel-caption .btn {
        padding: 0.375rem 1rem;
        font-size: 0.9rem;
    }
}

/* Product images: uniform size and alignment */
.product-img-frame {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-frame .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Table fixes for small screens */
.table {
    width: 100%;
    table-layout: auto;
}
.table th,
.table td {
    white-space: nowrap;
    word-break: normal;
}
@media (max-width: 480px) {
    .table th,
    .table td {
        white-space: normal;
    }
}

/* Mobile bottom nav: fluid sizing */
.bottom-nav {
    height: 3.75rem;
    padding: 0.5rem 0;
}
.bottom-nav .nav-item {
    font-size: 0.75rem;
    padding-top: 0.3125rem;
}
.bottom-nav .nav-item i {
    font-size: 1.375rem;
}
.bottom-nav .cart-badge {
    top: -0.5rem;
    right: -0.5rem;
    padding: 0.125rem 0.3125rem;
    font-size: 0.625rem;
    min-width: 1rem;
}

/* Quantity input group: ensure good touch targets */
.qty-group .btn,
.qty-group .form-control {
    padding: 0.5rem;
    font-size: 1rem;
}
.qty-group .form-control {
    max-width: 6rem;
}

/* Media queries: scale spacing and text slightly on wider phones */
@media (min-width: 480px) {
  .card-body { padding: 1.25rem; }
  .search-container { max-width: 46rem; }
}

/* =========================
   A03 Baseline Enforcement
   Same feel across all phones
   ========================= */
@media (max-width: 768px) {
  :root { --mobile-canvas: 22.5rem; }
  html { font-size: 16px; } /* lock rem baseline to A03 */
  body { overflow-x: hidden; }
  .container,
  .container-fluid {
    width: 100%;
    max-width: var(--mobile-canvas); /* 360px baseline */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  /* lock common inner containers to canvas */
  .header .container,
  nav .container,
  main .container,
  .footer .container,
  .card .container {
    width: 100%;
    max-width: var(--mobile-canvas);
    margin-left: auto;
    margin-right: auto;
  }
  /* search width follows canvas */
  .search-container { width: 100%; max-width: var(--mobile-canvas); }
  /* prevent content overflow */
  .card, .table, .alert, .navbar, .footer { max-width: 100%; }
  .img-fluid, .card img, .product-card img { max-width: 100%; height: auto; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
  h4, .card-header { font-size: 1rem; }
  .btn { font-size: 1rem; padding: 0.625rem 1rem; }
  .form-control { font-size: 1rem; padding: 0.75rem; }
  .navbar .nav-link { font-size: 0.95rem; padding: 0.5rem 0.75rem; }
  /* keep bottom nav full width while content is locked */
  .bottom-nav { width: 100%; }
}

/* =========================
   SAFE MOBILE OVERRIDE (END OF FILE)
   Enforce A03 visual feel without overflow/cutting
   ========================= */
@media (max-width: 768px) {
  /* 1) Safe canvas: cap to 360px but allow smaller screens */
  .container,
  .container-fluid,
  .header .container,
  nav .container,
  main .container,
  .footer .container {
    max-width: min(22.5rem, 100%); /* <= 360px, never wider than screen */
    margin-left: auto;
    margin-right: auto; /* center canvas */
  }

  /* 2) Font scaling: clamp for different DPIs (no forced 16px) */
  html {
    font-size: clamp(15px, 3.8vw, 16px); /* keep A03 feel, avoid tiny/giant text */
  }

  /* 3) Avoid dangerous clipping: ensure parents don't hide children */
  body,
  .container,
  .card,
  .section,
  .content {
    overflow: visible !important; /* no accidental hidden content */
  }

  /* 4) Sticky header and fixed bottom nav spacing */
  :root {
    --header-height: 64px;      /* approximate sticky header height */
    --bottom-nav-height: 60px;  /* fixed bottom nav height */
  }
  body {
    padding-top: calc(var(--header-height) + 8px);   /* content not behind header */
    padding-bottom: calc(var(--bottom-nav-height) + 10px); /* content not behind nav */
    min-height: 100%;
    overflow-x: auto; /* allow safe horizontal scroll if needed */
  }

  /* 5) Remove tap highlight only on mobile UI */
  .btn,
  .btn-nepapex,
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  /* 6) Buttons, CTAs, forms always visible and usable */
  .btn {
    max-width: 100%;
  }
  .form-control,
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
  select, textarea {
    width: 100%;
  }
  .btn-nepapex {
    min-height: 2.75rem; /* touch-friendly */
  }

  /* 6) Images/tables never overflow canvas */
  .img-fluid, .card img, .product-card img {
    max-width: 100%;
    height: auto;
  }
  .table {
    width: 100%;
    table-layout: auto;
  }
  .table th, .table td {
    white-space: normal; /* avoid vertical letter stacks */
    word-break: break-word;
  }

  /* 7) Bottom nav stays full device width */
  .bottom-nav {
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* =========================================
   UI/UX IMPROVEMENTS & MOBILE FIXES
   Added on: 2026-02-04
   ========================================= */

/* -----------------------------------------
   1. Product Cards (Uniform 1:1 Ratio)
   ----------------------------------------- */
.product-img-frame {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 4px 4px 0 0;
    padding: 0 !important;
}

.product-img-frame img,
.product-img-frame .img-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

/* Desktop Hover Effect */
@media (min-width: 992px) {
    .product-card .card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .product-card .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .product-card .card:hover .product-img-frame img {
        transform: scale(1.05);
    }
}

/* Ensure equal height for cards */
.product-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card .price-section {
    margin-top: auto;
    margin-bottom: 10px;
}
.product-card .add-to-cart {
    margin-top: auto;
}

/* -----------------------------------------
   2. Layout & Spacing
   ----------------------------------------- */
section {
    position: relative;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nepapex-orange);
}

/* -----------------------------------------
   3. Trust UI Elements (Badges)
   ----------------------------------------- */
.trust-badges-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

.trust-item i {
    font-size: 1.2rem;
    color: var(--nepapex-blue);
    margin-bottom: 5px;
}

/* Product Page Specific Badge */
.product-trust-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.product-trust-badge span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}
.product-trust-badge i {
    color: #28a745;
}

/* -----------------------------------------
   4. Mobile Header (Sticky & Icons)
   ----------------------------------------- */
@media (max-width: 768px) {
    .header {
        position: sticky !important;
        top: 0;
        z-index: 1020;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        background: #fff;
    }
    
    .header .row {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .header .col-md-3:first-child {
        width: auto;
        flex: 0 0 auto;
    }
    .header .logo img {
        height: 32px !important;
    }
    .header .logo h1 {
        display: none;
    }

    .header .col-md-6 {
        display: none; 
    }
    
    .header .col-md-3:last-child {
        width: auto;
        flex: 0 0 auto;
        display: block !important;
    }
    
    .header-actions {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        gap: 15px;
    }
    
    .header-actions .btn:not(.mobile-icon-btn),
    .header-actions .dropdown {
        display: none;
    }

    .mobile-header-icon {
        font-size: 1.2rem;
        color: #333;
        position: relative;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }
    
    .mobile-cart-badge {
        position: absolute;
        top: 0;
        right: 0;
        background: var(--nepapex-orange);
        color: white;
        font-size: 10px;
        padding: 2px 4px;
        border-radius: 50%;
        min-width: 16px;
        text-align: center;
        line-height: 1;
    }
}

/* -----------------------------------------
   5. Bottom Mobile Navigation (Refined)
   ----------------------------------------- */
.bottom-nav {
    z-index: 1040 !important;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav .nav-item.active {
    color: var(--nepapex-orange);
}
.bottom-nav .nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav a {
    touch-action: manipulation;
}

/* -----------------------------------------
   6. Mobile UX Enhancements
   ----------------------------------------- */
a, button, .nav-link, .page-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
p a, .text-decoration-none {
    min-height: auto;
    min-width: auto;
    display: inline;
}

@media (hover: none) {
    .product-card .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
}

.offcanvas {
    transition: transform 0.3s ease-in-out;
}

/* -----------------------------------------
   7. Performance
   ----------------------------------------- */
img {
    height: auto;
}
