/* ══ RESPONSIVE STYLES ══ */

/* ══ MOBILE BOTTOM NAVIGATION ══ */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: var(--white);
  display: none;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  border-top: 1px solid var(--border);
}

.m-nav-link {
  text-decoration: none;
  color: var(--text3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  transition: all 0.2s;
  position: relative;
  flex: 1;
}

.m-nav-link i {
  width: 20px;
  height: 20px;
}

.m-nav-link.active {
  color: var(--red);
}

.m-nav-badge {
  position: absolute;
  top: -5px;
  right: 50%;
  transform: translateX(12px);
  background: var(--red);
  color: white;
  font-size: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-nav-ico-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media all and (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .pgrid5 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .mini-banners {
    height: auto;
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .mini-banners .mini-banner {
    min-height: 120px;
  }

  .mini-banners .mini-banner-4 {
    display: flex !important;
  }
}

@media all and (max-width: 991px) {
  .container {
    max-width: 720px;
  }

  /* Header Fixes */
  .h-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .h-menu-btn {
    display: block;
    order: 3;
  }

  .h-actions .h-btn:nth-child(2),
  .h-actions .h-btn:nth-child(3),
  .h-actions .h-signin {
    display: none !important;
  }

  /* Hide Track in header on mobile */
  header .search-bar {
    display: none;
  }

  /* Hide search in main header on mobile */
  .h-search-toggle {
    display: flex !important;
  }

  /* Mobile Search Bar State */
  header.search-active .search-bar {
    display: flex;
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    background: white;
    z-index: 99;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
    border-radius: var(--r-md) !important;
  }

  header.search-active .search-bar input {
    border-radius: var(--r-md);
  }

  header.search-active .search-bar select,
  header.search-active .search-bar .custom-select-container {
    display: none !important;
  }


  /* Offcanvas Search Styling */
  .oc-search {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
  }

  .oc-search input {
    padding: 8px 12px;
  }

  /* Layout */
  .pgrid5,
  .pgrid6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .bs-grid {
    grid-template-columns: 1fr;
  }

  .bs-sidebar {
    order: -1;
    margin-bottom: 20px;
  }

  .catshow-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .promo-full {
    padding: 30px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  /* Section Head Fixes */
  .section-title-wrap {
    flex-direction: column;
    gap: 8px;
    align-items: baseline;
  }

  .flex-items-center-gap {
    flex-direction: column;
    gap: 12px;
  }

  /* -- SHOP RESPONSIVE -- */
  .shop-wrap {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
  }

  /* Hide sidebar on mobile/tablet for now or move to top */
  .pgrid-shop {
    grid-template-columns: repeat(2, 1fr);
  }

  /* -- PRODUCT DETAIL RESPONSIVE -- */
  .pd-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pd-title {
    font-size: 24px;
  }

  .rev-summary-box {
    flex-direction: column;
    gap: 30px;
  }

  .rs-left {
    border-right: none;
    border-bottom: 1px solid var(--border2);
    padding-right: 0;
    padding-bottom: 20px;
  }

  /* -- CART RESPONSIVE -- */
  .cart-wrap {
    grid-template-columns: 1fr;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: block;
    position: relative;
    padding: 20px 0;
    border-bottom: 1px solid var(--bg);
  }

  .cart-table td {
    display: block;
    padding: 5px 0;
    border: none;
    text-align: right;
  }

  .td-product {
    text-align: left !important;
  }

  .td-qty {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .td-remove {
    position: absolute;
    top: 20px;
    right: 0;
  }

  .cart-actions {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .coupon-box {
    width: 100%;
  }

  .coupon-box input {
    flex: 1;
  }

  /* -- CHECKOUT RESPONSIVE -- */
  .checkout-wrap {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    order: -1;
    margin-bottom: 30px;
  }

  /* -- ACCOUNT RESPONSIVE -- */
  .account-wrap {
    grid-template-columns: 1fr;
  }

  .ac-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .addr-grid {
    grid-template-columns: 1fr;
  }
}

@media all and (max-width: 767px) {
  .container {
    max-width: 540px;
  }

  /* Header Action Refinement */
  .h-btn,
  .h-menu-btn {
    padding: 0 !important;
    width: 36px;
    height: 36px;
    justify-content: center;
    background: var(--bg2);
    border-radius: 50%;
    display: flex;
    align-items: center;
  }

  .h-btn span:not(.ico):not(.h-badge) {
    display: none;
  }

  .h-btn .ico {
    font-size: 18px;
  }

  .h-badge {
    top: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    font-size: 9px;
  }

  .h-signin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .h-signin span {
    display: none;
  }

  .logo-name {
    font-size: 18px;
  }

  .see-all {
    padding: 6px 16px;
    font-size: 12px;
    width: fit-content;
  }

  .pgrid5,
  .pgrid6,
  .pgrid4,
  .bs-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Product Card Mobile Fixes */
  .pcard-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
    position: static !important;
  }

  .pcard:hover {
    transform: none !important;
  }

  /* Hide Quick View on small screens to save space */
  .btn-ac {
    padding: 10px;
    font-size: 12px;
  }

  .pcard-body {
    padding: 10px;
  }

  .stars-desktop {
    display: none !important;
  }

  .stars-mobile {
    display: inline-block !important;
  }

  .pcard-name {
    font-size: 12px;
    height: 34px;
  }

  /* Fixed height for name to align grids */

  .p-new {
    font-size: 15px;
  }

  .trust-slider {
    padding: 0 10px;
  }

  .trust-item {
    font-size: 13px;
    flex-shrink: 0;
    justify-content: center;
    width: auto;
  }

  .catshow-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rev-grid {
    grid-template-columns: 1fr;
  }

  .col-grid,
  .col-grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .f-brand p {
    margin: 12px auto;
  }

  .f-socials {
    justify-content: center;
  }

  .mobile-nav {
    display: flex;
  }

  .h-search-toggle {
    display: flex !important;
  }

  /* -- PRODUCT DETAIL RESPONSIVE -- */
  .pd-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-qty input {
    flex: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid textarea,
  .form-grid button {
    grid-column: span 1;
  }

  /* -- ACCOUNT RESPONSIVE -- */
  .ac-table {
    display: block;
    overflow-x: auto;
  }

  .ac-stats {
    grid-template-columns: 1fr;
  }

  .f-brand .logo {
    justify-content: center;
  }
}

@media all and (max-width: 575px) {

  .logo img {
    height: 30px;
  }

  .search-bar {
    border-radius: var(--r-sm);
  }

  header {
    padding: 10px 0;
  }

  .container {
    max-width: 100%;
  }

  .catshow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-main {
    border-radius: var(--r-sm);
  }

  .hero-slide {
    padding: 24px !important;
    text-align: center;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 20px !important;
  }

  .slide-title {
    font-size: 20px;
  }

  .slide-visual .lucide {
    width: 80px;
    height: 80px;
  }

  .slide-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .hero-next,
  .hero-prev {
    display: none;
  }

  .section-title {
    font-size: 18px;
  }

  .cd-box {
    min-width: 36px;
    padding: 4px;
  }

  .cd-n {
    font-size: 15px;
  }

  .footer-bot {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .mini-banners {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mini-banners .mini-banner {
    min-height: unset !important;
    padding: 10px 12px !important;
  }

  .mini-banners .mini-emo {
    font-size: 24px !important;
    margin-bottom: 2px !important;
  }

  .mini-banners .mini-emo .lucide {
    width: 22px !important;
    height: 22px !important;
  }

  .mini-banners .mini-sub {
    font-size: 8px !important;
  }

  .mini-banners .mini-title {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  .mini-banners .mini-off {
    font-size: 10px !important;
  }

  .catshow-grid {
    display: flex;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .catshow-grid .swiper-slide {
    height: auto;
  }

  /* Space for Bottom Nav */
  body {
    padding-bottom: 70px;
  }

  .pcard {
    border-radius: var(--r-md);
  }

  /* -- SHOP RESPONSIVE -- */
  .shop-toolbar {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .st-right {
    width: 100%;
    justify-content: space-between;
  }

  .pgrid-shop {
    gap: 10px;
  }

  .pay-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* -- CHECKOUT RESPONSIVE -- */
  .ck-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: span 1;
  }

  /* ══ QUICK CHECKOUT MODAL MOBILE REFINEMENTS ══ */
  .modal-head {
    padding: 12px 15px;
  }

  .modal-head h5 {
    font-size: 16px;
  }

  .checkout-input-group {
    padding: 8px 12px;
    border-radius: 12px;
  }

  .cig-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }

  .cig-icon svg {
    width: 15px;
    height: 15px;
  }

  .checkout-input-group input {
    font-size: 14px;
    padding: 6px 0 !important;
  }

  .checkout-product-card {
    padding: 10px;
    gap: 12px;
    margin-bottom: 15px;
    border-radius: 15px;
  }

  .cpc-img {
    width: 55px;
    height: 55px;
  }

  .cpc-info h6 {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .cpc-price {
    font-size: 14px;
  }

  .checkout-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .delivery-options {
    gap: 8px;
    margin-bottom: 15px;
  }

  .delivery-option {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .do-label,
  .do-price {
    font-size: 13px;
  }

  .checkout-total-box {
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 15px;
  }

  .ctb-line span:first-child,
  .ctb-line span:last-child {
    font-size: 13px;
  }

  .ctb-divider {
    margin: 10px 0;
  }

  .ctb-line.total span:first-child,
  .ctb-line.total span:last-child {
    font-size: 18px !important;
  }

  .btn-red.w-100.mt-20 {
    margin-top: 10px !important;
    padding: 12px;
    font-size: 14px;
  }

  /* ══ OFFCANVAS MOBILE REFINEMENTS ══ */
  .oc-title {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .oc-link {
    padding: 8px 0;
    font-size: 13px;
  }

  .oc-link i {
    width: 16px;
    height: 16px;
  }

  .oc-foot .btn-signin {
    padding: 10px;
    font-size: 14px;
  }

  /* ══ MOBILE BOTTOM NAV REFINEMENTS ══ */
  .mobile-nav {
    height: 60px;
  }

  .m-nav-link i {
    width: 18px;
    height: 18px;
  }

  /* ══ MINI CART DRAWER MOBILE REFINEMENTS ══ */
  /* .cart-drawer {
    width: 280px;
    right: -280px;
  }

  .cd-head {
    padding: 12px 15px;
  }

  .cd-head h4 {
    font-size: 15px;
  }

  .cd-body {
    padding: 15px;
  }

  .cd-item {
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .cd-item-img {
    width: 50px;
    height: 50px;
  }

  .cd-item-name {
    font-size: 12px;
  }

  .cd-item-price {
    font-size: 13px;
  }

  .cd-qty-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .cd-qty input {
    width: 30px;
    height: 24px;
    font-size: 12px;
  }

  .cd-subtotal .label {
    font-size: 13px;
  }

  .cd-subtotal .val {
    font-size: 15px;
  }

  .cd-btn {
    padding: 10px;
    font-size: 13px;
  } */

  /* ══ SUCCESS SCREEN MOBILE REFINEMENTS ══ */
  .success-body {
    padding: 25px 15px !important;
  }

  .success-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .success-icon svg {
    width: 30px;
    height: 30px;
  }

  .success-body h3 {
    font-size: 18px;
  }

  .success-body p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .mini-banners .mini-banner {
    min-height: unset;
  }

  .rev-summary {
    max-width: 135px;
    text-align: right;
  }

  .btn-qv {
    display: none !important;
  }

  .abar {
    font-size: 12px;
  }

  .payment-options {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .trust {
    padding: 8px 0;
  }

  .trust-ico {
    width: 30px;
    height: 30px;
  }

  .trust-ico .lucide,
  .trust-ico [data-lucide] {
    width: 18px;
    height: 18px;
  }

  .woocommerce-reviews-wrapper {
    padding: 20px;
  }

  #review_form_wrapper {
    padding: 20px;
  }

  .pd-tab-btn {
    padding: 12px 0;
    font-size: 14px;
  }

  .woocommerce-reviews-wrapper h2 {
    font-size: 16px;
  }

}

/* Hide search toggle on desktop */
.h-search-toggle {
  display: none;
}

/* FINAL OVERRIDE TO HIDE ARROWS */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  display: none !important;
  margin: 0 !important;
}

input[type=number] {
  -moz-appearance: textfield !important;
  appearance: none !important;
}