/* =============================================================
   Responsive Stylesheet - Office Plus
   Optimized for mobile-first approach
   ============================================================= */

/* ── Large Screens (992px+) ─────────────────────────────────── */
@media (min-width: 992px) {
  .hero-sidebar-wrapper {
    display: block;
  }
}

/* ── Tablet & Mobile (max 991.98px) ─────────────────────────── */
@media (max-width: 991.98px) {

  /* ═══ TOP HEADER: Hide hotline and top bar on mobile ═══ */
  .top-header {
    display: none !important;
  }

  /* ═══ MAIN HEADER ═══ */
  .main-header {
    display: block !important;
    height: auto !important;
    padding: 16px 0 12px !important;
    position: relative !important;
  }

  .sticky-header-wrapper.is-sticky .main-header {
    padding-bottom: 8px !important;
  }

  .main-header .row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .header-logo {
    text-align: left;
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .header-logo a {
    display: flex !important;
    align-items: center !important;
    height: 45px !important;
  }

  .header-logo img {
    max-height: 45px !important;
    height: 45px !important;
    width: auto !important;
    object-fit: contain;
  }

  .header-search {
    display: none !important;
  }

  .header-mobile-toggle-wrap {
    flex: 0 0 auto !important;
    width: auto !important;
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 45px !important;
    margin: 0 !important;
  }

  /* ═══ MOBILE HEADER BUTTONS (SEARCH & ACCOUNT) ═══ */
  .mobile-header-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background-color: #F0F4F9 !important;
    color: var(--primary-color, #0056B3) !important;
    border: 1px solid rgba(0, 86, 179, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  .mobile-header-btn:hover,
  .mobile-header-btn:active,
  .mobile-header-btn.active {
    background-color: var(--primary-color, #0056B3) !important;
    color: #FFFFFF !important;
    border-color: var(--primary-color, #0056B3) !important;
    box-shadow: 0 3px 8px rgba(0, 86, 179, 0.25) !important;
  }

  /* ═══ MOBILE EXPANDABLE SEARCH BAR CONTAINER ═══ */
  .mobile-search-container {
    display: none;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 86, 179, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    width: 100%;
    margin-top: 12px;
    padding: 10px 0 6px;
  }

  .mobile-search-container.active {
    display: block !important;
    animation: fadeInDown 0.25s ease forwards;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-search-form .input-group {
    box-shadow: 0 2px 10px rgba(0, 86, 179, 0.1);
    border-radius: 25px;
    overflow: hidden;
    border: 1.5px solid var(--primary-color, #0056B3);
  }

  .mobile-search-input {
    border: none !important;
    font-size: 0.85rem !important;
    height: 40px !important;
    padding-left: 16px !important;
    background-color: #FFFFFF !important;
  }

  .mobile-search-input:focus {
    box-shadow: none !important;
    outline: none !important;
    margin-right: 2px
  }

  .btn-mobile-search-submit {
    background-color: var(--primary-color, #0056B3) !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 0 16px !important;
    font-size: 0.9rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px !important;
  }

  .btn-mobile-search-close {
    background-color: #F0F4F9 !important;
    color: #555555 !important;
    border: none !important;
    border-left: 1px solid #E2E8F0 !important;
    padding: 0 14px !important;
    font-size: 0.9rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide default navbar container on mobile to use new Drawer */
  .navbar-plus {
    display: none !important;
  }

  /* ═══ MOBILE HAMBURGER TOGGLER BUTTON ═══ */
  .mobile-nav-toggler-btn {
    background: transparent;
    border: none;
    padding: 0;
    width: 36px;
    height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 1020;
    outline: none !important;
    margin: 0;
  }

  .hamburger-bar {
    width: 22px;
    height: 2.5px;
    background-color: var(--secondary-color, #002B5B);
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .mobile-nav-toggler-btn.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--primary-color, #E61E21);
  }

  .mobile-nav-toggler-btn.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggler-btn.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--primary-color, #E61E21);
  }

  /* ═══ MOBILE RIGHT-TO-LEFT OFFCANVAS DRAWER MENU ═══ */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 82vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 1090;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.35s ease;
  }

  .mobile-nav-drawer.active {
    transform: translateX(0);
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.15);
  }

  .mobile-nav-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light, #EAEAEA);
    background-color: #F8F9FA;
  }

  .mobile-nav-close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #666;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-nav-close-btn:hover {
    background-color: #E9ECEF;
    color: var(--primary-color, #0056B3);
  }

  .mobile-nav-drawer-body {
    padding: 16px 20px 30px;
    overflow-y: auto;
    flex-grow: 1;
  }

  .mobile-drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-drawer-nav-list li {
    border-bottom: 1px solid #F1F3F5;
  }

  .mobile-drawer-nav-list li:last-child {
    border-bottom: none;
  }

  .mobile-drawer-nav-list a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #333333;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .mobile-drawer-nav-list a i {
    color: var(--primary-color, #0056B3) !important;
    width: 22px;
    text-align: center;
    font-size: 1rem;
    margin-right: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .mobile-drawer-nav-list a:hover,
  .mobile-drawer-nav-list a.active {
    color: var(--primary-color, #0056B3) !important;
  }

  .mobile-drawer-nav-list a:hover i,
  .mobile-drawer-nav-list a.active i {
    color: var(--primary-color, #0056B3) !important;
  }

  .mobile-nav-item-title {
    padding: 10px 0;
  }

  .mobile-nav-item-title a {
    padding: 0;
    flex-grow: 1;
  }

  .sub-arrow {
    font-size: 0.8rem;
    color: #888;
    transition: transform 0.3s ease, color 0.25s ease;
    padding: 6px;
    cursor: pointer;
    display: inline-block;
  }

  .mobile-drawer-nav-list li.has-sub.open > .mobile-nav-item-title .sub-arrow {
    color: var(--primary-color, #0056B3);
  }

  .mobile-sub-menu {
    list-style: none;
    padding-left: 20px;
    margin: 0;
    display: none;
    background-color: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .mobile-sub-menu a {
    font-size: 0.84rem;
    font-weight: 500;
    color: #555;
    padding: 8px 10px;
  }

  /* ═══ HERO BANNER: Full Image Display & Navigation Arrows ═══ */
  .hero-sidebar-wrapper {
    display: none;
  }

  /* Remove dark background text box on mobile */
  .hero-slide-caption {
    display: none !important;
  }

  /* Banner image full view */
  .hero-swiper-slide {
    height: auto !important;
    min-height: 170px;
    max-height: 320px;
    aspect-ratio: 2.2 / 1;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 12px;
  }

  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #002B5B !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
    z-index: 10;
  }

  .hero-swiper .swiper-button-next::after,
  .hero-swiper .swiper-button-prev::after {
    font-size: 13px !important;
    font-weight: bold !important;
  }

  .hero-swiper .swiper-button-prev {
    left: 8px !important;
  }

  .hero-swiper .swiper-button-next {
    right: 8px !important;
  }

  .hero-swiper .swiper-pagination {
    bottom: 8px !important;
  }

  .hero-promo-container {
    margin-top: 10px;
  }

  .hero-promo-banner {
    height: auto;
    padding: 10px;
  }

  /* ═══ QUICK CATEGORY SWIPER: Larger Icons & Better Top Margin ═══ */
  .quick-cat-swiper {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .quick-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .quick-cat-icon-box {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.35rem !important;
    margin-bottom: 8px !important;
    border-radius: 16px !important;
    background: #FFF5F5;
    box-shadow: 0 3px 10px rgba(227, 32, 32, 0.08);
    border: 1px solid rgba(227, 32, 32, 0.12);
  }

  .quick-cat-item span {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    display: block;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    max-width: 80px !important;
    color: #222222 !important;
  }

  .quick-cat-prev,
  .quick-cat-next {
    display: none !important;
  }

  /* ═══ SECTION: PHÂN LOẠI PHÒNG BAN (EQUAL BALANCED 2-COL CARDS) ═══ */
  section h2 {
    word-break: break-word;
    hyphens: auto;
  }

  .need-category-card {
    padding: 14px 10px !important;
    gap: 8px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    height: 100% !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    justify-content: space-between !important;
    background: #FFFFFF !important;
  }

  .need-category-icon-box {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
    border-radius: 12px !important;
    margin: 0 auto 6px !important;
    flex-shrink: 0 !important;
  }

  .need-category-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: 100% !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .need-category-badge {
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 2px 8px !important;
    margin-bottom: 6px !important;
    border-radius: 8px !important;
    display: inline-block !important;
  }

  .need-category-body h3 {
    font-size: 0.88rem !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    min-height: 2.6em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .need-category-body p {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #666 !important;
    text-align: center !important;
    min-height: 2.7em !important;
  }

  .need-category-link {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: var(--primary-color, #E61E21) !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: auto !important;
  }

  /* ═══ FLASH SALE SECTION ═══ */
  #promotions-section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .flash-sale-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .flash-sale-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    flex: 1;
    min-width: 0;
  }

  .countdown-box {
    flex-shrink: 0;
  }

  .countdown-unit {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Flash sale slider padding */
  .flash-sale-slider {
    padding: 16px 12px;
  }

  /* ═══ BEST SELLERS & RECOMMENDED VPP FILTER CONTROLS ═══ */
  .category-filter-wrapper {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 8px !important;
    padding: 4px 4px 10px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }

  .category-filter-wrapper::-webkit-scrollbar {
    display: none;
  }

  .category-filter-wrapper .filter-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 7px 16px !important;
    font-size: 0.8rem !important;
    border-radius: 20px !important;
  }

  .custom-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start !important;
    max-width: 100%;
    padding: 4px 5px;
    margin: 0 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .custom-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .custom-tab-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  /* FIX: Best Sellers Quick Filters Row (Vertical Stack with Horizontal Scroll Rows) */
  .quick-filters-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(227, 32, 32, 0.15) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    overflow: visible !important;
  }

  .filter-group {
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-left: none !important;
  }

  .filter-group+.filter-group {
    border-left: none !important;
    border-top: 1px dashed rgba(227, 32, 32, 0.15) !important;
    padding-top: 8px !important;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .filter-label {
    flex-shrink: 0 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    margin-right: 4px !important;
    min-width: auto !important;
    white-space: nowrap !important;
  }

  .btn-filter-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    border-radius: 15px !important;
  }

  /* ═══ FURNITURE SECTION POLISH FOR MOBILE ═══ */
  .furniture-card {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #EAEAEA !important;
    height: 100% !important;
    background: #FFFFFF !important;
  }

  .furniture-card-img {
    height: 140px !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  .furniture-card-body {
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
  }

  .furniture-card-title {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.6em !important;
  }

  .furniture-features {
    padding-left: 0 !important;
    margin-bottom: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .furniture-features li {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #555 !important;
  }

  .furniture-card-footer {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px dashed #EAEAEA !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  .furniture-price {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: var(--primary-color, #E61E21) !important;
    white-space: nowrap !important;
  }

  .btn-furniture-add {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* ═══ WHY US SECTION (2 BLOCKS PER ROW) ═══ */
  .why-us-card {
    padding: 5px !important;
    text-align: center !important;
    height: 100% !important;
    border-radius: 12px !important;
  }

  .why-us-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
    margin: 0 auto !important;
  }

  .why-us-card h4 {
    font-size: 0.88rem !important;
    margin-bottom: 4px !important;
  }

  .why-us-card p {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
  }

  /* ═══ AD BANNER ═══ */
  .ad-banner-section {
    height: 260px;
    border-radius: var(--border-radius-md);
  }

  .ad-banner-content {
    padding: 0 20px;
    max-width: 100%;
  }

  .ad-banner-content h2 {
    font-size: 1.7rem;
  }

  .ad-banner-content p {
    font-size: 0.9rem;
  }

  /* ═══ TIMELINE ═══ */
  .timeline-container {
    flex-direction: column;
    gap: 28px;
    padding-left: 20px;
  }

  .timeline-container::before {
    top: 0;
    left: 42px;
    width: 2px;
    height: 100%;
  }

  .timeline-step {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 18px;
  }

  .timeline-number {
    margin: 0;
    flex-shrink: 0;
  }

  /* ═══ COMBO SAVER ═══ */
  .combo-img {
    min-height: 140px;
  }

  .combo-info {
    padding: 14px;
  }

  /* ═══ NEWSLETTER ═══ */
  .newsletter-section {
    text-align: center;
    padding: 36px 0;
  }

  .newsletter-form {
    margin-top: 16px;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px !important;
  }

  .newsletter-input-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 4px 6px 4px 16px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .newsletter-input-wrap.disabled-wrap {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
  }

  .newsletter-form .form-control.newsletter-email-input,
  .newsletter-form .form-control.newsletter-email-input[readonly],
  .newsletter-form .form-control.newsletter-email-input:disabled {
    flex: 1 1 auto !important;
    min-width: 120px !important;
    border: none !important;
    background: transparent !important;
    height: 42px !important;
    font-size: 0.84rem !important;
    padding: 0 8px 0 0 !important;
    color: #334155 !important;
    box-shadow: none !important;
    outline: none !important;
    text-overflow: ellipsis !important;
  }

  .newsletter-form .btn-newsletter {
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 30px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 120px !important;
    margin-left: 4px !important;
  }

  .btn-newsletter-disabled,
  .newsletter-form .btn-newsletter:disabled {
    background: #94a3b8 !important;
    color: #ffffff !important;
    opacity: 0.85 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
  }

  .newsletter-login-notice {
    text-align: center !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    justify-content: center !important;
  }

  .newsletter-login-notice a {
    width: 100% !important;
    max-width: 180px !important;
    margin: 4px auto 0 !important;
  }

  .newsletter-status-box {
    text-align: center !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
  }

  .newsletter-status-box #newsletter-actions {
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .newsletter-status-box #newsletter-actions button {
    font-size: 0.8rem !important;
    padding: 5px 12px !important;
    flex: 1;
    max-width: 160px;
  }

  /* ═══ FOOTER ═══ */
  .footer-main {
    padding: 44px 0 90px;
    /* Extra bottom pad for mobile bottom nav */
  }

  .footer-title {
    margin-top: 0px;
    margin-bottom: 14px;
  }

  /* ═══ MOBILE STICKY ACTIONS ═══ */
  .sticky-actions-wrapper {
    bottom: 80px;
    right: 12px;
    gap: 8px;
  }

  .sticky-btn {
    width: 42px;
    height: 42px;
  }

  /* ═══ MOBILE BOTTOM NAV ═══ */
  .mobile-bottom-nav {
    display: flex;
  }

  /* ═══ ACCOUNT DASHBOARD ═══ */
  .auth-tabs {
    margin-bottom: 20px;
  }

  .auth-body {
    padding: 0px 36px 30px;
  }

  .dashboard-wrapper {
    padding: 28px 0 50px;
  }

  .dashboard-sidebar {
    margin-bottom: 18px;
  }

  .user-profile-summary {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .user-profile-summary .avatar-wrap {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
    margin-bottom: 0;
  }

  .user-profile-summary .user-name {
    font-size: 1.05rem;
    margin-bottom: 0;
  }

  .user-profile-summary .user-role {
    display: none !important;
  }

  .user-profile-summary .user-points {
    font-size: 0.78rem;
  }

  .dashboard-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    scrollbar-width: none;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 10px 15px;
  }

  .dashboard-menu::-webkit-scrollbar {
    display: none;
  }

  .dashboard-menu-link {
    padding: 8px 16px;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
    border-radius: 30px;
    background: #ffffff;
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .dashboard-menu-link i {
    margin-right: 4px;
  }

  .dashboard-menu-link:hover {
    padding-left: 16px;
    color: var(--primary-color);
  }

  .dashboard-menu-link.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
  }

  .dashboard-content-card {
    padding: 18px;
  }

  .order-filter-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .order-filter-nav::-webkit-scrollbar {
    display: none;
  }

  .order-filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  /* ═══ CATEGORY HIGHLIGHT CARDS ═══ */
  .category-highlight-card {
    padding: 14px;
    gap: 10px;
  }

  .category-highlight-icon {
    font-size: 1.9rem;
  }

  .category-highlight-info h3 {
    font-size: 0.92rem;
  }
}

/* ── Extra Small / Mobile (max 575.98px) ─────────────────────── */
@media (max-width: 575.98px) {

  /* ═══ TOP HEADER: Hide email on very small screens ═══ */
  .top-header {
    padding: 5px 0;
    font-size: 0.68rem;
  }

  /* Show only phone in left col, show only 2 action links on right */
  .top-header .col-lg-6:first-child>span:last-child {
    display: none;
    /* Hide email on xs */
  }

  .top-header .header-top-right a {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    font-size: 0.68rem;
  }

  .top-header .header-top-right {
    gap: 4px !important;
  }

  /* ═══ HERO BANNER ═══ */
  .hero-swiper-slide {
    height: 340px;
  }

  .hero-slide-caption {
    bottom: 12px;
    left: 10px;
    right: 10px;
    padding: 14px 14px;
    border-radius: 10px;
  }

  .hero-slide-caption h2 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .hero-slide-caption p {
    display: none;
    /* Hide description on xs to keep caption compact */
  }

  .hero-slide-caption .btn-plus-primary {
    padding: 8px 16px;
    font-size: 0.72rem;
  }

  /* ═══ QUICK CATEGORY ═══ */
  .quick-cat-icon-box {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
    margin-bottom: 5px;
  }

  .quick-cat-item span {
    font-size: 0.65rem;
    max-width: 64px;
  }

  /* ═══ SECTION HEADINGS ═══ */
  .newsletter-section h2,
  .section-title-main {
    font-size: 1.12rem;
  }

  /* Fix section h2 text overflow on very small screens */
  section h2 {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  /* ═══ FLASH SALE ═══ */
  .flash-sale-title {
    font-size: 0.98rem;
  }

  .flash-sale-header {
    padding: 15px;
    gap: 10px !important;
  }

  .countdown-unit {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
    border-radius: 6px;
  }

  /* ═══ PRODUCT CARDS — 2 COLUMNS ═══ */
  .product-col {
    width: 50% !important;
  }

  .product-card {
    border-radius: var(--border-radius-md) !important;
  }

  .product-info {
    padding: 10px 8px 8px;
  }

  .product-title {
    font-size: 0.82rem;
    height: auto;
    max-height: 36px;
    margin-bottom: 3px;
  }

  .product-price-new {
    font-size: 0.9rem;
  }

  .product-price-old {
    font-size: 0.7rem;
  }

  .product-card-tags-list {
    display: none;
    /* Hide tags on xs to save space */
  }

  /* Hide hover actions on mobile (touch devices) */
  .product-card .product-actions-hover {
    display: none;
  }

  .product-badge {
    top: 6px;
    left: 6px;
    font-size: 0.62rem;
    padding: 3px 7px;
  }

  .product-rating {
    font-size: 0.62rem;
    gap: 2px;
    margin-bottom: 2px;
  }

  .product-sold {
    font-size: 0.65rem;
    margin-left: auto !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .product-rating-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 2px;
    margin-bottom: 3px;
  }

  /* ═══ NEED CATEGORY CARDS ═══ */
  .need-category-card {
    padding: 14px 12px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .need-category-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .need-category-body h3 {
    font-size: 0.95rem;
  }

  .need-category-body p {
    font-size: 0.8rem;
  }

  /* ═══ AD BANNER ═══ */
  .ad-banner-section {
    height: 220px;
  }

  .ad-banner-content h2 {
    font-size: 1.35rem;
  }

  .ad-banner-content p {
    font-size: 0.82rem;
    margin-bottom: 16px;
  }

  .ad-banner-content .btn-plus-primary {
    padding: 9px 18px;
    font-size: 0.78rem;
  }

  /* ═══ CART DRAWER on MOBILE ═══ */
  .cart-drawer {
    width: 100%;
    right: -100%;
    border-radius: 20px 20px 0 0;
    top: auto;
    bottom: -100%;
    height: 85vh;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .cart-drawer.active {
    right: 0;
    bottom: 0;
  }

  /* ═══ QUICK VIEW MODAL ON MOBILE ═══ */
  #quickViewModal .modal-dialog {
    margin: 12px;
  }

  #quickViewModal .modal-body {
    padding: 16px 14px !important;
  }

  #quickViewModal #qv-product-title {
    font-size: 1.1rem !important;
    line-height: 1.35;
  }

  #quickViewModal #qv-product-price {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
  }

  #quickViewModal .quickview-img-container img {
    max-height: 220px;
  }

  /* ═══ MOBILE FLOATING ACTIONS ═══ */
  .sticky-actions-wrapper {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 10px !important;
    gap: 8px !important;
    z-index: 998 !important;
  }

  .sticky-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }

  /* ═══ MOBILE BOTTOM NAV - Ensure proper spacing ═══ */
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* ═══ FOOTER ═══ */
  .footer-main {
    padding: 36px 0;
    /* More bottom pad for bottom nav + safe area */
  }

  .footer-bottom {
    padding-bottom: 85px;
    /* Extra space so bottom nav doesn't cover */
  }

  .d-block.mb-3 img {
    display: flex;
    margin: 0 auto;
  }

  .auth-page-wrapper {
    padding-top: 0px !important;
  }
}

/* ── Very Small Screens (max 375px) ─────────────────────────── */
@media (max-width: 375px) {
  .hero-swiper-slide {
    height: 300px;
  }

  .hero-slide-caption {
    padding: 12px;
  }

  .hero-slide-caption h2 {
    font-size: 0.95rem;
  }

  /* Ensure no horizontal overflow */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-info {
    padding: 8px 6px 6px;
  }

  .product-price-new {
    font-size: 0.85rem;
  }
}

/* ── Landscape Phones (max-height: 500px + max-width: 900px) ── */
@media (max-height: 500px) and (max-width: 900px) and (orientation: landscape) {
  .hero-swiper-slide {
    height: 240px;
  }

  .hero-slide-caption {
    bottom: 8px;
    left: 12px;
    right: 12px;
    padding: 12px 14px;
  }

  .hero-slide-caption h2 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .hero-slide-caption p {
    display: none;
  }

  .mobile-bottom-nav {
    height: 52px;
  }

  .mobile-bottom-nav .nav-item a {
    padding: 4px 0;
  }

  .mobile-bottom-nav .nav-icon {
    font-size: 1.1rem;
  }

  .mobile-bottom-nav .nav-label {
    font-size: 0.6rem;
  }
}

/* ═══ CATEGORY FILTER SYSTEM STYLES ═══ */
.active-filters-chips-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 500;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  border-radius: 50px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.filter-chip i {
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.filter-chip i:hover {
  color: #ef4444;
  transform: scale(1.2);
}

/* Mobile Filter Trigger Bar */
.mobile-filter-bar {
  border-radius: 12px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

span#mobileFilterBadge {
  top: 0px !important;
  padding-top: 5px;
}

.mobile-filter-bar .btn-primary {
  background-color: var(--primary-color, #0056b3) !important;
  border-color: var(--primary-color, #0056b3) !important;
  box-shadow: 0 2px 6px rgba(0, 86, 179, 0.25);
  font-size: 0.85rem;
}

.mobile-filter-bar #mobileSortSelect {
  font-size: 0.82rem;
  border-color: #cbd5e1 !important;
  color: #334155;
}

/* Mobile Filter Left Offcanvas Sidebar Drawer */
.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  max-height: 100vh;
  background: #ffffff;
  z-index: 1055;
  /* border-top-right-radius: 20px;
  border-bottom-right-radius: 20px; */
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-filter-drawer.active {
  transform: translateX(0);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15);
}

.mobile-filter-drawer-header {
  padding: 16px 18px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.mobile-filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  -webkit-overflow-scrolling: touch;
}

.mobile-filter-drawer-footer {
  padding: 14px 16px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

/* Mobile Title Typography Optimization */
@media (max-width: 767.98px) {
  .article-body h2 {
    font-size: 1.15rem !important;
    line-height: 1.4 !important;
  }

  .article-body h3 {
    font-size: 1.02rem !important;
    line-height: 1.4 !important;
  }

  .sidebar-prod-info h5,
  .sidebar-article-info h5 {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
  }

  .sidebar-prod-action {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
  }
}

/* Mobile Auth Card & Login Page Responsiveness */
@media (max-width: 991.98px) {
  .auth-page-wrapper {
    padding: 24px 12px 110px !important;
    min-height: auto !important;
  }

  .auth-card {
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    max-width: 100% !important;
    margin: 0 auto 30px !important;
  }

  .sticky-actions-wrapper {
    bottom: 75px !important;
  }
}

@media (max-width: 576px) {
  .auth-header {
    padding: 24px 16px 16px !important;
  }

  .auth-header .logo-wrap img {
    max-height: 60px !important;
  }

  .auth-header h1 {
    font-size: 1.15rem !important;
    margin: 10px 0 4px !important;
  }

  .auth-header p {
    font-size: 0.8rem !important;
  }

  .auth-body {
    padding: 20px 16px 24px !important;
  }

  .auth-tabs {
    margin-bottom: 20px !important;
  }

  .auth-tab-btn {
    padding: 8px 0 !important;
    font-size: 0.85rem !important;
  }

  .form-label {
    font-size: 0.82rem !important;
  }

  .input-icon-wrap .form-control {
    font-size: 0.88rem !important;
    padding-left: 38px !important;
    height: 44px !important;
  }

  .btn-auth-primary {
    padding: 11px !important;
    font-size: 0.92rem !important;
  }
}