/* =========================================================
   LABS.INCU — Shop / Product detail / Blog pages
   Scoped under .shop-page so it never leaks into other pages
   (this stylesheet is only @push('css')'d on the marketplace,
   product-details and blog views — the cart page has its own
   self-contained styles).
   ========================================================= */
.shop-page {
  --color-primary: #3700b3;
  --color-primary-dark: #1f0065;
  --color-primary-light: #efeaff;
  --color-accent-orange: #ff6f00;
  --color-heading: #101828;
  --color-text: #5f6b7a;
  --color-text-light: #8a94a6;
  --color-border: #e7e6ef;
  --color-white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card-hover: 0 12px 28px rgba(16, 24, 40, 0.12);
  --container-max: 1320px;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--color-text);
}

.shop-page img { max-width: 100%; }
.shop-page h1, .shop-page h2, .shop-page h3, .shop-page h4, .shop-page h5 {
  color: var(--color-heading);
  font-weight: 700;
}

.shop-page .container-xl-custom {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.shop-page .section-py { padding-top: 56px; padding-bottom: 56px; }

/* ---------- Page banner ---------- */
.shop-page .page-banner {
  background: var(--color-primary-light);
  padding: 60px 0 54px;
  text-align: center;
}
.shop-page .page-banner h1 { font-size: 34px; margin-bottom: 14px; }
.shop-page .page-banner .breadcrumb-trail { color: var(--color-text); font-size: 14.5px; }
.shop-page .page-banner .breadcrumb-trail a { color: var(--color-text); transition: color .2s ease; }
.shop-page .page-banner .breadcrumb-trail a:hover,
.shop-page .page-banner .breadcrumb-trail a:focus-visible { color: var(--color-primary); }
.shop-page .page-banner .breadcrumb-trail .sep { margin: 0 8px; color: var(--color-text-light); }

@media (max-width: 576px) {
  .shop-page .page-banner { padding: 44px 0 38px; }
  .shop-page .page-banner h1 { font-size: 26px; }
}

/* ---------- Sidebar / categories ---------- */
.shop-page .shop-sidebar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.shop-page .shop-sidebar h5 { font-size: 17px; margin-bottom: 6px; }
.shop-page .category-list { list-style: none; margin: 14px 0 0; padding: 0; }
.shop-page .category-list li { border-bottom: 1px solid var(--color-border); }
.shop-page .category-list li:last-child { border-bottom: none; }
.shop-page .category-list a {
  display: block; padding: 12px 2px; color: var(--color-text); font-size: 14.5px;
  transition: color .2s ease, padding-left .2s ease;
}
.shop-page .category-list a:hover,
.shop-page .category-list a.active,
.shop-page .category-list a:focus-visible { color: var(--color-primary); padding-left: 6px; font-weight: 600; }

/* ---------- Toolbar ---------- */
.shop-page .shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 16px 22px; margin-bottom: 24px; font-size: 14.5px;
}
.shop-page .sort-select {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 8px 14px;
  font-size: 14px; color: var(--color-heading); background-color: var(--color-white);
}
.shop-page .sort-select:focus { outline: none; border-color: var(--color-primary); }

/* ---------- Buttons ---------- */
.shop-page .btn-solid {
  background-color: var(--color-primary); color: var(--color-white); font-weight: 600;
  padding: 12px 30px; border-radius: var(--radius-sm); border: 1px solid var(--color-primary);
  transition: background-color .2s ease, transform .15s ease; display: inline-block;
}
.shop-page .btn-solid:hover, .shop-page .btn-solid:focus-visible {
  background-color: var(--color-primary-dark); border-color: var(--color-primary-dark);
  color: var(--color-white); transform: translateY(-1px);
}
.shop-page .btn-outline-primary-custom {
  background-color: transparent; color: var(--color-primary); font-weight: 600;
  padding: 12px 26px; border-radius: var(--radius-sm); border: 1px solid var(--color-primary);
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.shop-page .btn-outline-primary-custom:hover, .shop-page .btn-outline-primary-custom:focus-visible {
  background-color: var(--color-primary); color: var(--color-white); transform: translateY(-1px);
}
.shop-page .btn-solid:disabled, .shop-page .btn-solid.disabled {
  opacity: .55; cursor: not-allowed; transform: none;
}

/* ---------- Section head ---------- */
.shop-page .section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 18px; border-bottom: 1px solid var(--color-border); margin-bottom: 34px;
}
.shop-page .section-head h2 { font-size: 26px; line-height: 1.35; }
.shop-page .section-head .view-all { color: var(--color-text-light); font-size: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- Product grid card ---------- */
.shop-page .product-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 16px 20px;
  height: 100%; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  position: relative; display: flex; flex-direction: column;
}
.shop-page .product-card > form { margin-top: auto; }
.shop-page .product-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); border-color: transparent; }
.shop-page .product-card .thumb {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; overflow: hidden;
}
.shop-page .product-card .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-page .product-card h3 { font-size: 14px; font-weight: 500; color: #333c47; line-height: 1.4; margin-bottom: 10px; }
.shop-page .product-card h3 a { color: inherit; text-decoration: none; }
.shop-page .product-card h3 a:hover { color: var(--color-primary); }
.shop-page .product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.shop-page .product-price { color: var(--color-primary); font-weight: 700; font-size: 15px; }
.shop-page .product-old-price { color: var(--color-text-light); font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.shop-page .product-rating { color: var(--color-accent-orange); font-size: 12px; letter-spacing: 1px; }
.shop-page .product-card .wishlist-btn {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-white); border: 1px solid var(--color-border); display: flex; align-items: center;
  justify-content: center; color: var(--color-text-light); z-index: 2;
}
.shop-page .product-card .wishlist-btn.active,
.shop-page .product-card .wishlist-btn:hover { color: #e63946; border-color: #e63946; }
.shop-page .product-card .btn-add-cart {
  width: 100%; margin-top: 4px; background: var(--color-primary-light); color: var(--color-primary);
  border: none; border-radius: var(--radius-sm); padding: 8px 10px; font-size: 12.5px; font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}
.shop-page .product-card .btn-add-cart:hover:not(:disabled) { background: var(--color-primary); color: var(--color-white); }

/* ---------- Empty state ---------- */
.shop-page .shop-empty { text-align: center; padding: 60px 20px; color: var(--color-text-light); }

/* ---------- Pagination ---------- */
.shop-page .pagination { margin-top: 36px; justify-content: center; }
.shop-page .pagination .page-link { color: var(--color-primary); border-color: var(--color-border); }
.shop-page .pagination .page-item.active .page-link { background-color: var(--color-primary); border-color: var(--color-primary); }

/* ---------- Product detail card ---------- */
.shop-page .product-detail-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 28px; margin-bottom: 40px;
}
.shop-page .product-detail-gallery-main {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px;
  background: #f7f6fc; display: flex; align-items: center; justify-content: center; min-height: 320px;
}
.shop-page .product-detail-gallery-main img { max-height: 320px; object-fit: contain; }
.shop-page .product-detail-thumbs .thumb-box {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); height: 96px; background: #f4f3fb;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s ease;
}
.shop-page .product-detail-thumbs .thumb-box:hover { border-color: var(--color-primary); }
.shop-page .product-detail-thumbs .thumb-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-page .product-detail-info .model-name { color: var(--color-text-light); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.shop-page .product-detail-info h2 { font-size: 24px; line-height: 1.35; margin: 8px 0 16px; }
.shop-page .product-detail-info .divider { border-top: 1px solid var(--color-border); margin: 18px 0; }
.shop-page .product-detail-info .features-list { padding-left: 20px; margin: 12px 0 0; }
.shop-page .product-detail-info .features-list li { margin-bottom: 8px; font-size: 14.5px; }
.shop-page .product-detail-info .usage-note {
  background: var(--color-primary-light); border-radius: var(--radius-sm); padding: 16px 18px;
  font-size: 14px; color: var(--color-text); margin: 22px 0;
}

/* ---------- Small related-product card ---------- */
.shop-page .related-product-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; text-align: left;
  height: 100%; transition: box-shadow .2s ease, transform .2s ease;
}
.shop-page .related-product-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.shop-page .related-product-card .thumb { height: 110px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; overflow: hidden; }
.shop-page .related-product-card .thumb img { max-height: 100%; object-fit: contain; }
.shop-page .related-product-card small { color: var(--color-text-light); font-size: 12px; }
.shop-page .related-product-card h4 { font-size: 14.5px; margin: 6px 0; font-weight: 600; line-height: 1.4; }
.shop-page .related-product-card h4 a { color: inherit; text-decoration: none; }
.shop-page .related-product-card h4 a:hover { color: var(--color-primary); }
.shop-page .related-product-card .price { font-weight: 700; color: var(--color-heading); font-size: 14px; }

/* ---------- Blog listing / details ---------- */
.shop-page .blog-post-meta { font-size: 13.5px; color: var(--color-text-light); margin-bottom: 16px; }
.shop-page .blog-post-title { font-size: 32px; line-height: 1.3; margin-bottom: 24px; }
.shop-page .blog-post-image { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px; }
.shop-page .blog-post-body p { margin-bottom: 18px; font-size: 14.5px; }

.shop-page .blog-sidebar { border-left: 1px solid var(--color-border); padding-left: 32px; }
@media (max-width: 900px) {
  .shop-page .blog-sidebar { border-left: none; padding-left: 0; margin-top: 40px; border-top: 1px solid var(--color-border); padding-top: 32px; }
}
.shop-page .blog-sidebar-item { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.shop-page .blog-sidebar-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.shop-page .blog-sidebar-item .dot-marker { width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); display: inline-block; margin-bottom: 12px; }
.shop-page .blog-sidebar-item h4 { font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
.shop-page .blog-sidebar-item h4 a { color: inherit; text-decoration: none; }
.shop-page .blog-sidebar-item h4 a:hover { color: var(--color-primary); }
.shop-page .blog-sidebar-item p { font-size: 13.5px; margin-bottom: 12px; color: var(--color-text); }
.shop-page .read-more-link { font-size: 13.5px; font-weight: 600; color: var(--color-primary); transition: color .2s ease; }
.shop-page .read-more-link:hover, .shop-page .read-more-link:focus-visible { color: var(--color-primary-dark); }

.shop-page .blog-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease; background: var(--color-white);
}
.shop-page .blog-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.shop-page .blog-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f3fb; }
.shop-page .blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-page .blog-card-body { padding: 20px; }
.shop-page .blog-card-body h3 { font-size: 17px; line-height: 1.4; margin-bottom: 10px; }
.shop-page .blog-card-body h3 a { color: inherit; text-decoration: none; }
.shop-page .blog-card-body h3 a:hover { color: var(--color-primary); }
.shop-page .blog-card-excerpt { font-size: 13.5px; color: var(--color-text); margin-bottom: 12px; }

/* ---------- Contact page ---------- */
.shop-page .contact-form-card .form-control,
.shop-page .contact-form-card .form-select {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px;
}
.shop-page .contact-form-card .form-control:focus,
.shop-page .contact-form-card .form-select:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(55, 0, 179, .08);
}

.shop-page .official-address h5 { margin-bottom: 22px; font-size: 19px; }
.shop-page .official-address p { font-size: 14.5px; line-height: 1.95; color: var(--color-text); }

.shop-page .social-icons { display: flex; gap: 10px; margin-top: 0; }
.shop-page .social-icons a {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, color .2s ease;
}
.shop-page .official-address .social-icons a { background: var(--color-primary-light); color: var(--color-primary); }
.shop-page .official-address .social-icons a:hover,
.shop-page .official-address .social-icons a:focus-visible { background-color: var(--color-primary); color: var(--color-white); }

.shop-page .qa-item { display: flex; gap: 18px; margin-bottom: 26px; }
.shop-page .qa-number {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--color-primary);
  color: var(--color-white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.shop-page .qa-content h5 { font-size: 15.5px; margin-bottom: 8px; }
.shop-page .qa-content p { font-size: 13.5px; margin: 0; color: var(--color-text); }

.shop-page .map-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.shop-page .map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- FAQ page ---------- */
.shop-page .faq-accordion .accordion-item {
  border: 1px solid var(--color-border); border-radius: var(--radius-md) !important; overflow: hidden; margin-bottom: 14px;
}
.shop-page .faq-accordion .accordion-button {
  font-weight: 600; font-size: 15px; color: var(--color-heading); padding: 18px 20px; box-shadow: none;
}
.shop-page .faq-accordion .accordion-button:not(.collapsed) { background: var(--color-primary-light); color: var(--color-primary-dark); }
.shop-page .faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--color-border); }
.shop-page .faq-accordion .accordion-button::after { flex-shrink: 0; }
.shop-page .faq-accordion .accordion-body { font-size: 14.5px; color: var(--color-text); padding: 4px 20px 20px; }

.shop-page .faq-cta {
  text-align: center; margin-top: 40px; padding: 36px 24px; border-radius: var(--radius-md);
  background: var(--color-primary-light);
}
.shop-page .faq-cta h5 { margin-bottom: 8px; }
.shop-page .faq-cta p { color: var(--color-text); margin-bottom: 18px; }
