/* Toolex-style layout & colors (inspired by opencart.mahardhi.com/MT05/toolex) */

/* Top bar - hidden per request */
.toolex-top,
#top.toolex-top,
nav#top.toolex-top {
  display: none !important;
}

/* Top bar - dark grey, light text (kept for reference if re-enabled) */
.toolex-top.restore,
#top.toolex-top.restore {
  display: block !important;
  background-color: #3d3d3d;
  border-bottom: 1px solid #2d2d2d;
  padding: 10px 0;
  margin: 0 0 0 0;
  min-height: 44px;
}
.toolex-top .list-inline-item,
.toolex-top .list-inline-item > a,
.toolex-top .dropdown-toggle,
.toolex-top .dropdown-menu .dropdown-item {
  color: #e0e0e0 !important;
  text-shadow: none;
}
.toolex-top a:hover,
.toolex-top .dropdown-menu .dropdown-item:hover {
  color: #fff !important;
  background-color: rgba(255,255,255,0.1);
}
.toolex-top .dropdown-menu {
  background-color: #3d3d3d;
  border: 1px solid #555;
}
.toolex-top .btn-link {
  color: #e0e0e0 !important;
}
.toolex-top .btn-link:hover {
  color: #fff !important;
}

/* Header - clean, logo + search; cart button hidden */
.toolex-header {
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  margin-bottom: 20px;
}
.toolex-header .row {
  display: flex;
  align-items: center;
}
.toolex-header .col-md-5 {
  margin-left: auto;
}
.toolex-header #search .form-control {
  text-align: right;
  direction: rtl;
}
.toolex-header #logo img {
  max-width: 220px;
}
#header-cart {
  display: none !important;
}
#header-cart .btn,
#header-cart .dropdown-toggle.btn {
  background-color: #3d3d3d !important;
  border-color: #3d3d3d !important;
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  font-size: 13px;
}
#header-cart .btn:hover,
#header-cart.open > .btn {
  background-color: #2d2d2d !important;
  border-color: #2d2d2d !important;
  color: #fff !important;
}
#header-cart .dropdown-menu {
  background: #fff;
  border: 1px solid #ddd;
}

/* Menu bar - Toolex style (dark bar, white text) */
#menu.toolex-menu,
#menu.navbar.toolex-menu {
  background-color: #2d2d2d;
  background-image: none;
  border: none;
  border-radius: 0;
  min-height: 48px;
  padding: 0 1rem;
  margin-bottom: 25px;
}
#menu.toolex-menu .nav-link,
#menu.toolex-menu .navbar-nav .nav-link {
  color: #e0e0e0 !important;
  padding: 14px 18px;
  font-weight: 500;
}
#menu.toolex-menu .nav-link:hover,
#menu.toolex-menu .nav-link:focus {
  color: #fff !important;
  background-color: rgba(255,255,255,0.1);
}
#menu.toolex-menu .dropdown-menu {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  padding: 15px;
  margin-top: 0;
  border-radius: 0;
}
#menu.toolex-menu .dropdown-menu .nav-link {
  color: #333 !important;
}
#menu.toolex-menu .dropdown-menu .nav-link:hover {
  color: #2d2d2d !important;
  background-color: #f5f5f5;
}
#menu.toolex-menu .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
  color: #e0e0e0;
}
#menu.toolex-menu .navbar-toggler-icon {
  filter: invert(1);
}

/* Menu: on mobile, category on the right and toggler on the left */
#menu.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
#menu #category {
  order: 2;
}
#menu .navbar-toggler {
  order: 1;
}
#menu .collapse.navbar-collapse {
  order: 0;
}

/* Category page: sidebar (column-left) on the right, content flush next to it */
#product-category .row {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 0;
  --bs-gutter-x: 0.5rem;
}
#product-category #column-left {
  flex: 0 0 auto;
}
#product-category #content {
  flex: 1 1 0%;
  min-width: 0;
  padding-right: 0;
  padding-left: 0.5rem;
}
#product-category #column-left,
#column-left {
  text-align: right;
  direction: rtl;
}

/* Category page: heading (h2) align right */
#product-category #content > h2 {
  text-align: right;
}

/* Category page: category description (row col-sm-10) align right */
#product-category #content > .row .col-sm-10,
#product-category #content > .row .col-sm-10 p {
  text-align: right;
  direction: rtl;
}

/* Category page: product thumb description align right */
#product-category .product-thumb .description,
#product-category .product-thumb .content .description {
  text-align: right;
  direction: rtl;
}

/* Category page: hide Refine Search (h3) and the subcategories row below it */
#product-category #content > h3,
#product-category #content > h3 + .row,
#product-category #content > h3 + .row + .row,
#product-category #content > h3 + .row + br {
  display: none !important;
}

/* Category page: Continue button on the left */
#product-category .d-inline-block.pt-2.pd-2.w-100,
#product-category .d-inline-block.pt-2.pd-2.w-100 .float-end {
  float: none !important;
  text-align: left;
}
#product-category .d-inline-block.pt-2.pd-2.w-100 .float-end {
  display: inline-block;
}

/* Footer - dark like Toolex */
.toolex-footer {
  background-color: #3d3d3d;
  color: #b0b0b0;
  padding: 40px 0 25px;
  margin-top: 40px;
}
.toolex-footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.toolex-footer a {
  color: #b0b0b0;
  text-decoration: none;
}
.toolex-footer a:hover {
  color: #fff;
}
.toolex-footer .list-unstyled {
  margin-bottom: 0;
}
.toolex-footer .list-unstyled li {
  margin-bottom: 8px;
}
.toolex-footer-hr {
  border-color: #555;
  margin: 30px 0 20px;
}
.toolex-footer p.text-center a {
  color: #e0e0e0;
}
.toolex-footer p.text-center a:hover {
  color: #fff;
}

/* Product thumb: hide Add to Cart, Wish List, Compare buttons */
.product-thumb .button-group,
#content .product-thumb .button-group {
  display: none !important;
}

/* Product thumb: hide price */
.product-thumb .price,
.product-thumb .content .description .price,
#content .product-thumb .price {
  display: none !important;
}

/* Product page: hide Wish List & Compare buttons */
#product-info .btn-group {
  display: none !important;
}

/* Product page: hide Qty label and quantity input */
#form-product label[for="input-quantity"],
#input-quantity {
  display: none !important;
}

/* Product page: hide Add to Cart button */
#button-cart {
  display: none !important;
}

/* Product page: hide reviews line (0 reviews / Write a review) */
#product-info .rating p {
  display: none !important;
}

/* Product page: hide Ex Tax line */
#product-info .price-tax,
#product-info li.price-tax {
  display: none !important;
}

/* Product page: product details column (h1, list, price) align right */
#product-info .row.mb-3 .col-sm:first-child h1,
#product-info .row.mb-3 .col-sm:first-child .list-unstyled,
#product-info .row.mb-3 .col-sm:first-child ul.list-unstyled li,
#product-info .row.mb-3 .col-sm:first-child h2 {
  text-align: right;
  direction: rtl;
}

/* Product page: options section (Available Options, option labels) align right */
#product-info #form-product h3,
#product-info #form-product .mb-3,
#product-info #form-product .form-label,
#product-info #form-product .form-check-label {
  text-align: right;
  direction: rtl;
}

/* Product page: alert (minimum quantity) align right */
#product-info #form-product .alert.alert-info {
  text-align: right;
  direction: rtl;
}

/* Product page: additional images (thumbnails) align right */
#product-info .image.magnific-popup > div {
  text-align: right;
  direction: rtl;
}

/* Product page: hide points and discount lines */
#product-info .product-points,
#product-info .product-discount,
#product-info .product-discount-hr {
  display: none !important;
}

/* Product page: Related Products heading align right */
#product-info #content > h3 {
  text-align: right !important;
  direction: rtl;
}

/* Product page: Related Products thumb (h4, description) align right */
#product-info .product-thumb .content .description,
#product-info .product-thumb .content .description h4,
#product-info .product-thumb .content .description p {
  text-align: right;
  direction: rtl;
}

/* Product page: Related Products grid align right */
#product-info .row.row-cols-1.row-cols-sm-2.row-cols-md-3.row-cols-xl-4 {
  direction: rtl;
  text-align: right;
}
#product-info .row.row-cols-xl-4 .col {
  direction: rtl;
  text-align: right;
}

/* Product page: tabs and tab content align right */
#product-info .nav.nav-tabs {
  justify-content: flex-end;
  text-align: right;
}
#product-info #tab-description,
#product-info #tab-description > div,
#product-info .tab-content .tab-pane {
  text-align: right;
  direction: rtl;
}

/* Product page: hide Reward Points and Availability */
#product-info .product-reward,
#product-info .product-stock {
  display: none !important;
}

/* Product page: hide Reviews tab and its content */
#product-info .nav-item-review,
#review-tab,
#tab-review {
  display: none !important;
}

/* Footer: hidden */
footer.toolex-footer {
  display: none !important;
}

/* Homepage section headings: align right */
#common-home #content > h3 {
  text-align: right;
}

/* Product thumb: description and title align right */
#common-home .product-thumb .content .description,
#common-home .product-thumb .content .description h4,
#common-home .product-thumb .content .description p {
  text-align: right;
}

/* Search page: RTL and right align */
#product-search {
  direction: rtl;
  text-align: right;
}
#product-search .breadcrumb,
#product-search #content h1,
#product-search #content h2,
#product-search #content p,
#product-search .col-form-label,
#product-search .form-check-label,
#product-search .form-control,
#product-search .form-select,
#product-search #button-search {
  text-align: right;
}
#product-search #category {
  text-align: right;
}

/* Search page: hide Compare link */
#product-search #compare-total,
#compare-total {
  display: none !important;
}

/* Search page: stick grid/list buttons to the right */
#product-search #display-control .row {
  display: flex;
  flex-wrap: wrap;
}
#product-search #display-control .col-md-1.d-none.d-md-block {
  margin-right: auto;
}

/* Search page: hide Sort By label */
#product-search label[for="input-sort"],
#product-search #input-sort ~ .input-group-text,
#product-search .input-group:has(#input-sort) label.input-group-text {
  display: none !important;
}

/* Search page: hide Show (limit) label */
#product-search label[for="input-limit"] {
  display: none !important;
}

/* Product cards / buttons - accent */
.btn-primary,
.product-layout .btn-primary {
  background-color: #2d2d2d;
  border-color: #2d2d2d;
}
.btn-primary:hover {
  background-color: #3d3d3d;
  border-color: #3d3d3d;
}
