/* FAT CONTEL — B2B catalogue: light theme for shop / category / single product */

:root {
  --fc-navy: #0B1B33;
  --fc-blue: #0B5ED7;
  --fc-blue-dark: #0A4FBF;
  --fc-blue-tint: rgba(11, 94, 215, 0.1);
  --fc-white: #ffffff;
  --fc-border: #E7ECF3;
  --fc-text: #4A5A76;
  --fc-gray: #8FA0BD;
  --fc-whatsapp: #25D366;
  --fc-whatsapp-dark: #1DA851;
}

/* ---- Page background ---- */
body.woocommerce #content,
body.woocommerce-page #content {
  background-color: #ffffff;
  padding: 40px 0 60px;
}

body.woocommerce .container,
body.woocommerce-page .container {
  max-width: 1280px;
}

/* ---- Sidebar ---- */
.fc-shop-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.fc-shop-sidebar {
  flex: 0 0 300px;
  width: 300px;
  position: sticky;
  top: 100px;
}
.fc-shop-main {
  flex: 1;
  min-width: 0;
}

.fc-sidebar-block {
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(11, 27, 51, 0.06);
}

.fc-search-form {
  display: flex;
  align-items: center;
  background: #F5F8FC;
  border: 1px solid var(--fc-border);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  transition: border-color .2s ease;
}
.fc-search-form:focus-within {
  border-color: var(--fc-blue);
}
.fc-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fc-navy);
  font-size: 14px;
  padding: 10px 4px;
}
.fc-search-input::placeholder { color: var(--fc-gray); }
.fc-search-btn {
  background: var(--fc-blue);
  color: #fff;
  border: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.fc-search-btn svg { flex-shrink: 0; }
.fc-search-btn:hover { background: var(--fc-blue-dark); }

.fc-sidebar-title {
  color: var(--fc-navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.fc-sidebar-title i { color: var(--fc-blue); }

.fc-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fc-cat-sublist {
  margin: 4px 0 8px 20px;
  padding-left: 14px;
  border-left: 1px dashed var(--fc-border);
}
.fc-cat-item > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--fc-text);
  text-decoration: none;
  font-size: 13.5px;
  transition: background .15s ease, color .15s ease;
}
.fc-cat-item > a:hover {
  background: var(--fc-blue-tint);
  color: var(--fc-blue);
}
.fc-cat-item.fc-active > a {
  background: var(--fc-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 94, 215, 0.3);
}
.fc-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fc-blue-tint);
  color: var(--fc-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}
.fc-cat-item.fc-active .fc-cat-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.fc-cat-name { flex: 1; }
.fc-cat-count {
  font-size: 11px;
  background: #F0F3F8;
  color: var(--fc-gray);
  border-radius: 999px;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
}
.fc-cat-item.fc-active .fc-cat-count {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.fc-help-block { text-align: center; }
.fc-help-block i {
  font-size: 26px;
  color: var(--fc-blue);
  margin-bottom: 10px;
  display: inline-block;
}
.fc-help-block p {
  color: var(--fc-text);
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.5;
}

/* ---- Buttons: view product (theme blue) + WhatsApp (green) ---- */
.fc-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: auto 18px 18px;
}
.fc-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--fc-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background .2s ease, transform .15s ease;
}
.fc-view-btn:hover { background: var(--fc-blue-dark); transform: translateY(-1px); color: #fff; }

.fc-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--fc-whatsapp);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background .2s ease, transform .15s ease;
}
.fc-wa-btn:hover { background: var(--fc-whatsapp-dark); transform: translateY(-1px); color: #fff; }
.fc-wa-btn svg { flex-shrink: 0; }
.fc-wa-btn-large { padding: 15px 22px; font-size: 15.5px; border-radius: 12px; max-width: 360px; }
.fc-wa-btn-ghost { background: transparent; color: var(--fc-whatsapp) !important; border: 1px solid var(--fc-whatsapp); }
.fc-wa-btn-ghost:hover { background: var(--fc-whatsapp); color: #fff !important; }
.fc-wa-note {
  color: var(--fc-gray);
  font-size: 12.5px;
  margin: 10px 0 0;
}

/* ---- Product grid cards ---- */
.woocommerce ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; }
.woocommerce ul.products li.product {
  float: none !important;
  width: calc(33.333% - 18px) !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(11, 27, 51, 0.07);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(11, 27, 51, 0.14);
}
.woocommerce ul.products li.product a img {
  background: #F5F8FC;
  padding: 24px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  width: 100%;
  height: auto;
}
.woocommerce ul.products li.product .fc-cat-chip {
  display: inline-block;
  align-self: flex-start;
  background: var(--fc-blue-tint);
  color: var(--fc-blue);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 18px 8px;
}
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fc-navy);
  padding: 0 18px;
  margin: 0 0 10px;
  line-height: 1.4;
}
.woocommerce ul.products li.product > a:first-child {
  display: flex;
  flex-direction: column;
}

/* Result count / ordering bar */
.woocommerce-result-count,
.woocommerce-ordering {
  color: var(--fc-text);
}
.woocommerce-ordering select {
  border-radius: 8px;
  border: 1px solid var(--fc-border);
  background: var(--fc-white);
  color: var(--fc-navy);
  padding: 6px 10px;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; background: transparent; }
body.woocommerce nav.woocommerce-pagination ul li a,
body.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  background: var(--fc-white) !important;
  color: var(--fc-navy);
  border-radius: 8px;
  margin: 0 4px;
  border: 1px solid var(--fc-border);
  font-weight: 600;
}
body.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--fc-blue-tint) !important;
  color: var(--fc-blue);
  border-color: var(--fc-blue);
}
body.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--fc-blue) !important;
  color: #fff !important;
  border-color: var(--fc-blue);
  box-shadow: 0 4px 12px rgba(11, 94, 215, 0.35);
}

/* ---- Single product page ---- */
.single-product #content {
  padding-top: 30px;
}
.single-product div.product {
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 8px 26px rgba(11, 27, 51, 0.08);
}
.single-product div.product .woocommerce-product-gallery img {
  border-radius: 12px;
  background: #F5F8FC;
}
.single-product div.product .product_title {
  color: var(--fc-navy);
}
.single-product .fc-cat-chip {
  display: inline-block;
  background: var(--fc-blue-tint);
  color: var(--fc-blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.single-product div.product .woocommerce-product-details__short-description {
  color: var(--fc-text);
  line-height: 1.7;
}

/* ---- Related products: horizontal carousel (~3 cards, peek of next) ---- */
/* body.single-product prefix boosts specificity above the theme's own
   ".woocommerce .related.products ul.products { flex-wrap: wrap !important }" rule */
body.single-product .related.products {
  position: relative;
  padding: 0 44px;
}
body.single-product .related.products ul.products {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
body.single-product .related.products ul.products li.product {
  flex: 0 0 285px !important;
  width: 285px !important;
  scroll-snap-align: start;
}
body.single-product .related.products ul.products::-webkit-scrollbar { height: 6px; }
body.single-product .related.products ul.products::-webkit-scrollbar-thumb { background: var(--fc-border); border-radius: 6px; }

.fc-carousel-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: none;
  background: var(--fc-blue);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(11, 27, 51, 0.2);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.fc-carousel-nav svg { display: block; flex-shrink: 0; }
.fc-carousel-nav:hover { background: var(--fc-blue-dark); }
.fc-carousel-prev { left: 0; }
.fc-carousel-next { right: 0; }

/* ---- Catalogue email-gate modal ---- */
.fc-catalogue-block .rs-brochures a { cursor: pointer; }
.fc-catalogue-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 51, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  padding: 20px;
}
.fc-catalogue-modal-overlay.fc-open {
  opacity: 1;
  visibility: visible;
}
.fc-catalogue-modal {
  background: var(--fc-white);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(11, 27, 51, 0.3);
  transform: translateY(10px);
  transition: transform .2s ease;
}
.fc-catalogue-modal-overlay.fc-open .fc-catalogue-modal { transform: translateY(0); }
.fc-catalogue-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  min-width: 30px;
  max-width: 30px;
  min-height: 30px;
  max-height: 30px;
  padding: 0;
  margin: 0;
  border: none;
  background: #F0F3F8;
  color: var(--fc-navy);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-catalogue-modal-close:hover { background: var(--fc-border); }
.fc-catalogue-modal-icon {
  font-size: 32px;
  color: var(--fc-blue);
  margin-bottom: 14px;
  display: inline-block;
}
.fc-catalogue-modal h4 {
  color: var(--fc-navy);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}
.fc-catalogue-modal p {
  color: var(--fc-text);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.fc-catalogue-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--fc-border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--fc-navy);
  margin-bottom: 8px;
  outline: none;
  transition: border-color .2s ease;
}
.fc-catalogue-input:focus { border-color: var(--fc-blue); }
.fc-catalogue-note {
  color: var(--fc-gray);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: left;
  margin: 0 0 14px;
}
.fc-catalogue-submit {
  width: 100%;
  background: var(--fc-blue);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.fc-catalogue-submit:hover { background: var(--fc-blue-dark); }
.fc-catalogue-submit:disabled { opacity: .7; cursor: default; }
.fc-catalogue-modal-msg {
  font-size: 13px;
  margin: 14px 0 0;
  min-height: 16px;
}
.fc-catalogue-modal-msg.fc-success { color: var(--fc-whatsapp-dark); }
.fc-catalogue-modal-msg.fc-error { color: #D93025; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .woocommerce ul.products li.product { width: calc(50% - 13px) !important; }
  body.single-product .related.products ul.products li.product { flex-basis: 240px !important; width: 240px !important; }
}
@media (max-width: 767px) {
  .woocommerce ul.products li.product { width: 100% !important; }
  .fc-shop-layout { flex-direction: column; }
  .fc-shop-sidebar { position: static; width: 100%; flex-basis: auto; }
  body.single-product .related.products { padding: 0 34px; }
  body.single-product .related.products ul.products li.product { flex-basis: 78% !important; width: 78% !important; }
}
