/* Jhajharia Computers — site overrides (load after main.css) */

/* Shop page: uniform product image size */
.tp-shop-area .tp-product-thumb-2,
.tp-shop-area .tp-product-list-thumb {
  width: 260px;
  height: 278px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background: #f5f7fa;
}
.tp-shop-area .tp-product-thumb-2 a,
.tp-shop-area .tp-product-list-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
.tp-shop-area .tp-product-thumb-2 img,
.tp-shop-area .tp-product-list-thumb img {
  width: 260px !important;
  height: 278px !important;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 575px) {
  .tp-shop-area .tp-product-thumb-2,
  .tp-shop-area .tp-product-list-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 260 / 278;
  }
  .tp-shop-area .tp-product-thumb-2 img,
  .tp-shop-area .tp-product-list-thumb img {
    width: 100% !important;
    height: 100% !important;
  }
}

/* Desktop header: keep nav pages on one row */
.tp-header-bottom .row.align-items-center,
.tp-header-sticky-area .row.align-items-center {
  flex-wrap: nowrap;
}
.tp-header-bottom .main-menu.menu-style-1,
.tp-header-sticky-area .main-menu.menu-style-1 {
  padding-left: 12px;
  margin-right: 0;
  min-width: 0;
}
.tp-header-bottom .main-menu.menu-style-1 > nav > ul.jh-main-nav,
.tp-header-sticky-area .main-menu.menu-style-1 > nav > ul.jh-main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.tp-header-bottom .main-menu.menu-style-1 > nav > ul.jh-main-nav > li,
.tp-header-sticky-area .main-menu.menu-style-1 > nav > ul.jh-main-nav > li {
  display: inline-flex;
  flex: 0 0 auto;
  float: none;
  margin-right: 18px;
}
.tp-header-bottom .main-menu.menu-style-1 > nav > ul.jh-main-nav > li:last-child,
.tp-header-sticky-area .main-menu.menu-style-1 > nav > ul.jh-main-nav > li:last-child {
  margin-right: 0;
}
.tp-header-bottom .main-menu.menu-style-1 > nav > ul.jh-main-nav > li > a,
.tp-header-sticky-area .main-menu.menu-style-1 > nav > ul.jh-main-nav > li > a {
  white-space: nowrap;
  font-size: 14px;
}
.tp-header-bottom .tp-header-contact,
.tp-header-bottom .tp-header-category {
  flex-shrink: 0;
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .tp-header-bottom .main-menu.menu-style-1 > nav > ul.jh-main-nav > li,
  .tp-header-sticky-area .main-menu.menu-style-1 > nav > ul.jh-main-nav > li {
    margin-right: 12px;
  }
  .tp-header-bottom .main-menu.menu-style-1 > nav > ul.jh-main-nav > li > a,
  .tp-header-sticky-area .main-menu.menu-style-1 > nav > ul.jh-main-nav > li > a {
    font-size: 13px;
    gap: 6px;
  }
  .tp-header-bottom .jh-nav-ico,
  .tp-header-sticky-area .jh-nav-ico {
    font-size: 12px;
  }
}

/* Mobile offcanvas sidebar */
.jh-offcanvas.offcanvas__area {
  width: min(100%, 360px) !important;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.12);
  overflow-x: hidden !important;
}
.jh-offcanvas .offcanvas__wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 0 28px !important;
}
.jh-offcanvas-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e8edf3;
}
.jh-offcanvas-head .offcanvas__logo {
  flex: 1 1 auto;
  min-width: 0;
}
.jh-offcanvas-head .offcanvas__logo a {
  display: inline-flex;
  max-width: 100%;
}
.jh-offcanvas-head .offcanvas__logo img {
  max-height: 40px;
  max-width: min(220px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}
.jh-offcanvas-head .offcanvas__close-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 0;
  padding: 0;
}
.jh-offcanvas-head .offcanvas__close-btn:hover {
  background: #e11d2e;
  color: #fff;
}
.jh-offcanvas .offcanvas__content {
  flex: 1 1 auto;
  padding: 8px 0 24px !important;
}
.jh-offcanvas-nav {
  padding: 0 8px;
}
.jh-offcanvas .tp-main-menu-mobile {
  margin-bottom: 0 !important;
}
.jh-offcanvas .tp-main-menu-mobile ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.jh-offcanvas .tp-main-menu-mobile > nav > ul > li,
.jh-offcanvas .tp-main-menu-mobile ul.jh-main-nav > li {
  width: 100%;
  padding: 0 4px;
  margin: 0;
}
.jh-offcanvas .tp-main-menu-mobile > nav > ul > li > a,
.jh-offcanvas .tp-main-menu-mobile ul.jh-main-nav > li > a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 44px 12px 12px !important;
  margin: 0;
  border-radius: 10px;
  border-bottom: 0 !important;
  color: #0f172a !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  position: relative;
}
.jh-offcanvas .tp-main-menu-mobile > nav > ul > li > a:hover,
.jh-offcanvas .tp-main-menu-mobile ul.jh-main-nav > li > a:hover,
.jh-offcanvas .tp-main-menu-mobile ul li.has-dropdown > a.expanded {
  background: #f8fafc;
  color: #0989ff !important;
}
.jh-offcanvas .tp-main-menu-mobile .jh-nav-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  font-size: 14px;
}
.jh-offcanvas .tp-main-menu-mobile ul li.has-dropdown > a.expanded .jh-nav-ico,
.jh-offcanvas .tp-main-menu-mobile > nav > ul > li > a:hover .jh-nav-ico {
  background: #e8f3ff;
  color: #0989ff;
}
.jh-offcanvas .tp-main-menu-mobile ul li.has-dropdown > a .dropdown-toggle-btn {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px;
  height: 32px;
  line-height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 14px;
}
.jh-offcanvas .tp-main-menu-mobile ul li.has-dropdown > a .dropdown-toggle-btn.dropdown-opened,
.jh-offcanvas .tp-main-menu-mobile ul li.has-dropdown > a.expanded .dropdown-toggle-btn.dropdown-opened {
  background: #0989ff !important;
  border-color: #0989ff !important;
  color: #fff !important;
}
.jh-offcanvas .tp-main-menu-mobile ul li.has-dropdown > a .dropdown-toggle-btn.dropdown-opened i,
.jh-offcanvas .tp-main-menu-mobile ul li.has-dropdown > a.expanded .dropdown-toggle-btn.dropdown-opened i {
  color: #fff !important;
  transform: rotate(90deg);
}

/* Force desktop mega panel into a single-column accordion */
.jh-offcanvas .tp-main-menu-mobile ul li .jh-mega-panel.tp-mega-menu,
.jh-offcanvas .tp-main-menu-mobile ul li .tp-submenu.tp-mega-menu,
.jh-offcanvas .tp-main-menu-mobile ul li > .jh-mega-panel,
.jh-offcanvas .tp-main-menu-mobile ul li > .tp-submenu,
.jh-offcanvas .tp-main-menu-mobile ul li > .tp-mega-menu {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 8px !important;
  padding: 6px 8px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  transform: none !important;
  z-index: auto !important;
  float: none !important;
  height: auto !important;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-grid,
.jh-offcanvas .tp-main-menu-mobile .jh-mega-cols {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  align-items: stretch !important;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-list {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-list li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-list a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  min-height: 42px;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 8px;
  border-bottom: 0 !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: normal !important;
  line-height: 1.35;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-list a::after {
  display: none !important;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-list a:hover {
  background: #fff;
  color: #0989ff !important;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-ico {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  box-shadow: 0 0 0 1px #e2e8f0;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-list a:hover .jh-mega-ico {
  background: #e8f3ff;
  color: #0989ff;
  box-shadow: none;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-promo {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  margin: 6px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  background: #fff1f2 !important;
  text-decoration: none !important;
  white-space: normal !important;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-promo-label,
.jh-offcanvas .tp-main-menu-mobile .jh-mega-promo p {
  display: none !important;
}
.jh-offcanvas .tp-main-menu-mobile .jh-mega-promo strong {
  font-size: 13px;
  color: #e11d2e;
}

.jh-offcanvas-actions {
  margin: 18px 16px 0;
  padding-top: 18px;
  border-top: 1px solid #e8edf3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jh-offcanvas-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
}
.jh-offcanvas-phone-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f3ff;
  color: #0989ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
}
.jh-offcanvas-phone small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 2px;
}
.jh-offcanvas-phone strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.jh-offcanvas-contact-btn {
  width: 100%;
  text-align: center;
  border-radius: 10px !important;
  justify-content: center;
}
.jh-offcanvas .offcanvas__bottom,
.jh-offcanvas .offcanvas__close {
  display: none !important;
}

@media (max-width: 380px) {
  .jh-offcanvas.offcanvas__area {
    width: 100% !important;
  }
}
