/* ==========================================================================
   Additions on top of the Lazo Power HTML template for the Laravel site.
   Uses the template's own colour variables (--crank-base etc.).
   ========================================================================== */

.site-page-title {
  font-size: 45px;
  font-weight: 600;
  text-align: center;
  text-transform: capitalize;
  margin: 20px 0 0;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .site-page-title { font-size: 32px; }
}

.site-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 14px;
  color: #6b6b6b;
}
.site-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b5b5b5; }
.site-breadcrumb a { color: #6b6b6b; }
.site-breadcrumb a:hover { color: var(--crank-base); }

/* Flash messages ---------------------------------------------------------- */
.site-flash {
  margin: 24px 0 0;
  padding: 14px 20px;
  border-left: 4px solid #1f9d55;
  background: #eef9f2;
  color: #14532d;
  font-weight: 500;
}
.site-flash--error { border-color: var(--crank-base); background: #fff1f3; color: #8a0a1f; }

/* Header wishlist link ---------------------------------------------------- */
.main-menu-three__top-right { display: flex; align-items: center; gap: 24px; }
.header-wishlist-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--crank-white);
  font-size: 14px;
  font-weight: 500;
}
.header-wishlist-link:hover { color: var(--crank-base); }
.header-wishlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--crank-base);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

/* Product grid ------------------------------------------------------------ */
.product__all-img {
  aspect-ratio: 1 / 1;
  background: #fff;
}
.product__all-img img {
  height: 100%;
  object-fit: contain;
}
.product__all-img img:first-child { height: 100%; }
.product__all-title { line-height: 1.35; min-height: 54px; padding: 0 14px; }
.product__all-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__all-sku { font-size: 13px; color: #888; margin: 0; }
.product__all-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  background: var(--crank-base);
}
.product-badge--dark { background: var(--crank-black); }
.product-badge--muted { background: #8b8b8b; }
.product__all-price del { color: #9a9a9a; margin-right: 6px; font-weight: 400; }

.thm-btn.is-in-wishlist { background-color: var(--crank-black); }
.thm-btn[disabled] { opacity: .6; pointer-events: none; }

/* Sidebar ----------------------------------------------------------------- */
.shop-category ul li ul { margin: 6px 0 0 16px; padding: 0; }
.shop-category ul li ul li { border: 0; padding: 4px 0; }
.shop-category .count { float: right; color: #9a9a9a; font-size: 13px; }
.shop-product-recent-products .img img { width: 70px; height: 70px; object-fit: cover; }

.product__empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--crank-bdr-color);
}
.product__empty h3 { font-size: 26px; margin-bottom: 10px; }

.product__active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -10px 0 25px; }
.product__active-filters a {
  font-size: 13px;
  padding: 4px 12px;
  border: 1px solid var(--crank-bdr-color);
  color: var(--crank-gray);
}
.product__active-filters a:hover { border-color: var(--crank-base); color: var(--crank-base); }

/* Pagination -------------------------------------------------------------- */
.site-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.site-pagination a,
.site-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--crank-bdr-color);
  background: var(--crank-white);
  color: var(--crank-black);
  font-weight: 500;
  transition: all .3s ease;
}
.site-pagination a:hover,
.site-pagination .active span { background: var(--crank-base); border-color: var(--crank-base); color: #fff; }
.site-pagination .disabled span { color: #bbb; }

/* Product details --------------------------------------------------------- */
.product-details__img .main-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--crank-bdr-color);
}
.product-details__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.product-details__thumbs button {
  width: 78px;
  height: 78px;
  padding: 0;
  border: 2px solid var(--crank-bdr-color);
  background: #fff;
  cursor: pointer;
}
.product-details__thumbs button.active { border-color: var(--crank-base); }
.product-details__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-details__title span del { color: #9a9a9a; font-size: .75em; margin-right: 8px; }
.product-details__meta { list-style: none; padding: 0; margin: 20px 0 0; }
.product-details__meta li { padding: 6px 0; border-bottom: 1px dashed var(--crank-bdr-color); }
.product-details__meta strong { display: inline-block; min-width: 120px; color: var(--crank-black); }
.stock-in { color: #1f9d55; font-weight: 600; }
.stock-out { color: var(--crank-base); font-weight: 600; }
.product-description__content { line-height: 1.8; }
.product-description__content img { max-width: 100%; height: auto; }
.product-description__content table { width: 100%; margin: 16px 0; border-collapse: collapse; }
.product-description__content td,
.product-description__content th { border: 1px solid var(--crank-bdr-color); padding: 8px 12px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.spec-table th, .spec-table td { border: 1px solid var(--crank-bdr-color); padding: 10px 14px; text-align: left; vertical-align: top; }
.spec-table th { width: 30%; background: #f7f7f7; color: var(--crank-black); font-weight: 600; }

.related-parts { padding: 0 0 90px; }
.related-parts h3 { font-size: 30px; margin-bottom: 30px; }

/* Wishlist page ----------------------------------------------------------- */
.wishlist-page { padding: 60px 0 120px; }
.wishlist-table { min-width: 0; }
@media (max-width: 1199px) { .wishlist-table { min-width: 760px; } }
.wishlist-table .product-box .img-box img { filter: none; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.wishlist-table .product-name h4 a { color: var(--crank-black); }
.wishlist-table .product-name h4 a:hover { color: var(--crank-base); }
.wishlist-table .product-name small { display: block; color: #888; font-size: 14px; font-weight: 400; margin-top: 6px; }
.wishlist-qty { display: flex; align-items: center; gap: 10px; }
.wishlist-qty input { width: 80px; height: 46px; text-align: center; border: 1px solid var(--crank-bdr-color); }
.wishlist-remove { background: none; border: 0; padding: 8px; cursor: pointer; }
.wishlist-remove:hover i::before { color: var(--crank-base) !important; }
.wishlist-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 30px; }
.wishlist-actions .left, .wishlist-actions .right { display: flex; flex-wrap: wrap; gap: 12px; }
.thm-btn--outline { background: transparent; color: var(--crank-black); border: 1px solid var(--crank-black); }
.thm-btn--outline:hover { color: #fff; }

/* Small toast for "added to wishlist" ------------------------------------ */
.site-toast {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 9999;
  max-width: 320px;
  padding: 14px 18px;
  background: var(--crank-black);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s ease;
}
.site-toast.show { transform: none; opacity: 1; }
.site-toast a { color: #fff; text-decoration: underline; }

/* Login / password forms: the template only styles text & email inputs */
.login-one__form form input[type="password"] {
  position: relative;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(var(--crank-bdr-color-rgb), .50);
  background-color: rgba(var(--crank-bdr-color-rgb), .50);
  width: 100%;
  height: 60px;
  color: var(--crank-gray);
  font-size: 16px;
  font-family: var(--crank-font);
  padding-left: 30px;
  padding-right: 30px;
  outline: none;
  transition: all 500ms ease;
}
.login-one__form form input[type="password"]:focus { border-color: var(--crank-base); background-color: var(--crank-white); }

/* Home page: Latest Spare Parts ----------------------------------------- */
.latest-parts { padding: 120px 0 90px; }
.latest-parts .section-title-two { margin-bottom: 50px; }
.latest-parts .product__all-single { margin-bottom: 0; height: 100%; }
.latest-parts .product__all-title { font-size: 17px; min-height: 46px; }
.latest-parts .product__all-btn-box .thm-btn { padding: 8px 20px; font-size: 13px; }
.latest-parts__btn-box { margin-top: 50px; }
@media (max-width: 767px) {
  .latest-parts { padding: 80px 0 60px; }
  .latest-parts .row { --bs-gutter-x: 12px; }
  .latest-parts .product__all-single { padding-bottom: 16px; }
  .latest-parts .product__all-content { margin-top: 12px; }
  .latest-parts .product__all-title { font-size: 15px; min-height: 40px; padding: 0 8px; }
  .latest-parts .product__all-btn-box .thm-btn { padding: 4px 12px; font-size: 11px; letter-spacing: .5px; }
}

/* Wishlist button label: the template's ".thm-btn span" rule is meant for arrow icons */
.thm-btn [data-label] { font-size: inherit; line-height: inherit; padding-left: 0; top: 0; }

/* ===== PPR template ===================================================== */
.page-header__inner h1.page-header__title {
  font-size: 45px;
  font-weight: 600;
  line-height: 55px;
  color: var(--crank-white);
  text-transform: capitalize;
  margin-bottom: 22px;
}
@media (max-width: 767px) { .page-header__inner h1.page-header__title { font-size: 34px; line-height: 44px; } }
.thm-breadcrumb li a { color: inherit; }

/* Wishlist icon in the header (template has no top bar) */
.main-menu__right { display: flex; align-items: center; gap: 22px; }
.main-menu .header-wishlist-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--crank-white);
  font-size: 17px;
}
.main-menu .header-wishlist-link:hover { background: var(--crank-base); color: #fff; }
.main-menu .header-wishlist-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
}

/* Flash message spacing below the page banner */
.page-header + .container .site-flash { margin-top: 30px; }

/* Home (dark) – latest spare parts */
.is-dark .latest-parts { background-color: transparent; }
.is-dark .latest-parts .product__all-single { border-color: rgba(255,255,255,.08); }
