:root {
  --brand-navy: #1a2332;
  --brand-navy-deep: #0f1620;
  --brand-bar: #243447;
  --brand-orange: #e85d04;
  --brand-orange-hover: #d04f00;
  --brand-wa: #25d366;
  --brand-sand: #ffffff;
  --brand-mist: #f2f4f7;
  --brand-line: #e5e8ee;
  --brand-ink: #1a2332;
  --brand-muted: #6b7785;
  --brand-white: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 0.35rem;
  --shadow-soft: 0 8px 28px rgba(15, 22, 32, 0.08);
  --transition: 0.22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--brand-ink);
  background: var(--brand-sand);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  background: var(--brand-sand);
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-orange);
}

/* ===== Header (312-style: logo / search / cats) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-top {
  background: #fff;
  border-bottom: 1px solid var(--brand-line);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--brand-navy);
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
}

.brand-name span {
  color: var(--brand-orange);
}

.brand-divider {
  width: 1px;
  height: 1.6rem;
  background: #cfd5de;
}

.brand-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--brand-orange);
  font-size: 1.05rem;
}

.header-contact {
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brand-navy);
  font-size: 0.9rem;
}

.header-contact i {
  color: var(--brand-wa);
  font-size: 1.15rem;
}

.header-search-bar {
  background: var(--brand-bar);
}

.btn-menu {
  color: #fff;
  font-size: 1.5rem;
  padding: 0.15rem 0.4rem;
  line-height: 1;
}

.btn-menu:hover {
  color: var(--brand-orange);
}

.header-search {
  display: flex;
  max-width: 100%;
}

.header-search .form-control {
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

.header-search .form-control:focus {
  box-shadow: none;
}

.btn-search {
  background: #111827;
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 1rem;
  border: none;
}

.btn-search:hover {
  background: #000;
  color: #fff;
}

.header-cats-bar {
  background: var(--brand-mist);
  border-bottom: 1px solid var(--brand-line);
}

.btn-all-cats {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--brand-navy);
  padding: 0.25rem 0;
}

.btn-all-cats:hover {
  color: var(--brand-orange);
}

.header-quick-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand-muted);
}

.header-quick-links a:hover {
  color: var(--brand-orange);
}

/* Offcanvas menu */
.offcanvas-probas {
  background: var(--brand-navy-deep);
  color: #fff;
  max-width: 320px;
}

.category-accordion .accordion-item,
#sideAccordion .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.offcanvas-probas .accordion-button {
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-weight: 500;
  padding: 0.9rem 1rem;
}

.offcanvas-probas .accordion-button::after {
  filter: invert(1);
}

.offcanvas-probas .accordion-button:not(.collapsed) {
  background: rgba(232, 93, 4, 0.15);
  color: #fff;
}

.offcanvas-probas .accordion-body {
  background: rgba(0, 0, 0, 0.2);
}

.menu-link-plain,
.submenu-link {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.submenu-link {
  padding-left: 1.5rem;
  font-size: 0.92rem;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.menu-link-plain:hover,
.submenu-link:hover {
  color: var(--brand-orange);
  background: rgba(255, 255, 255, 0.04);
}

/* Sidebar (desktop catalog) */
.category-sidebar {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 11rem;
}

.category-sidebar-title {
  background: var(--brand-mist);
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-muted);
  border-bottom: 1px solid var(--brand-line);
}

#sideAccordion .accordion-button {
  background: #fff;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.8rem 1rem;
  box-shadow: none;
  border-bottom: 1px solid var(--brand-line);
}

#sideAccordion .accordion-button:not(.collapsed) {
  background: var(--brand-mist);
  color: var(--brand-orange);
}

#sideAccordion .accordion-body {
  background: #fafbfc;
}

.side-sub,
.side-main {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  color: var(--brand-muted);
  border-bottom: 1px solid var(--brand-line);
}

.side-sub.active,
.side-main.active,
.side-sub:hover,
.side-main:hover {
  color: var(--brand-orange);
  background: rgba(232, 93, 4, 0.06);
}

/* Hero / home banners */
.hero-slider {
  background: linear-gradient(115deg, #0f1620 0%, #243447 55%, rgba(232, 93, 4, 0.55) 100%);
  color: #fff;
  padding: 2.75rem 0;
  position: relative;
  overflow: hidden;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.02) 18px,
    rgba(255, 255, 255, 0.02) 19px
  );
  pointer-events: none;
}

.hero-slider .container {
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.65rem;
}

.hero-brand span {
  color: var(--brand-orange);
}

.hero-lead {
  max-width: 34rem;
  opacity: 0.9;
  margin-bottom: 1.4rem;
}

.btn-brand {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn-brand:hover {
  background: var(--brand-orange-hover);
  border-color: var(--brand-orange-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(232, 93, 4, 0.3);
}

.btn-outline-light-brand {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
}

.btn-outline-light-brand:hover {
  background: #fff;
  color: var(--brand-navy);
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-sub {
  color: var(--brand-muted);
  margin-bottom: 1.5rem;
}

.home-cat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .home-cat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-cat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 88px;
  padding: 1rem;
  background: var(--brand-mist);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--brand-navy);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.home-cat-card:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Product card — catalog style */
.product-card {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: #cfd6e0;
}

.product-card-img-wrap {
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--brand-line);
  overflow: hidden;
}

.product-card-img {
  aspect-ratio: 1;
  object-fit: contain;
  width: 100%;
  padding: 0.75rem;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 0.85rem 0.9rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-card-code {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  margin-bottom: 0.2rem;
}

.product-card-title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
  color: var(--brand-muted);
  line-height: 1.35;
}

.product-card-title a {
  color: inherit;
}

.product-card-title a:hover {
  color: var(--brand-orange);
}

.btn-incele {
  display: inline-block;
  margin-top: auto;
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  align-self: center;
}

.btn-incele:hover {
  background: var(--brand-orange);
  color: #fff;
}

/* Page banner / category title */
.page-banner {
  background: #fff;
  border-bottom: 1px solid var(--brand-line);
  padding: 1.25rem 0 1rem;
}

.page-banner h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  text-transform: uppercase;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-navy);
  display: inline-block;
}

.page-banner .breadcrumb {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.page-banner .breadcrumb-item a {
  color: var(--brand-muted);
}

.page-banner .breadcrumb-item.active {
  color: var(--brand-orange);
}

/* Product detail */
.product-gallery-main {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.product-gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 1rem;
}

.product-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 0.25rem;
  cursor: pointer;
  border: 2px solid var(--brand-line);
  padding: 0.25rem;
  background: #fff;
  opacity: 0.8;
  transition: opacity var(--transition), border-color var(--transition);
}

.product-thumbs img:hover,
.product-thumbs img.active {
  opacity: 1;
  border-color: var(--brand-orange);
}

.product-meta-table th {
  width: 38%;
  color: var(--brand-muted);
  font-weight: 500;
  background: var(--brand-mist);
}

.btn-whatsapp {
  background: var(--brand-wa);
  border-color: var(--brand-wa);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  font-size: 1.02rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.chip {
  display: inline-block;
  background: var(--brand-mist);
  color: var(--brand-navy);
  padding: 0.25rem 0.65rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  margin: 0.15rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
}

.empty-state i {
  font-size: 2.25rem;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}

/* Floating actions */
.fab-whatsapp,
.fab-top {
  position: fixed;
  right: 1rem;
  z-index: 1040;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), opacity var(--transition);
}

.fab-whatsapp {
  bottom: 5.5rem;
  background: var(--brand-wa);
  color: #fff;
  font-size: 1.55rem;
}

.fab-whatsapp:hover {
  color: #fff;
  transform: scale(1.06);
}

.fab-top {
  bottom: 1.5rem;
  background: var(--brand-bar);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
}

.fab-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fab-top:hover {
  background: var(--brand-navy);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--brand-navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.75rem 0 1.35rem;
  margin-top: auto;
}

.site-footer h5 {
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: var(--brand-orange);
}

.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  font-weight: 700;
}

.site-footer .footer-brand span {
  color: var(--brand-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  font-size: 0.85rem;
}

.pagination .page-link {
  color: var(--brand-navy);
  border-color: var(--brand-line);
}

.pagination .page-item.active .page-link {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

/* Admin leftovers */
.admin-body {
  background: #eef1f5;
}

.admin-sidebar {
  background: var(--brand-navy);
  min-height: 100vh;
  color: #fff;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(232, 93, 4, 0.2);
  color: #fff;
}

.admin-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--brand-orange);
}

.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand-navy);
}

/* Admin image previews */
.admin-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.admin-preview-item {
  width: 110px;
  text-align: center;
}

.admin-preview-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--brand-line, #e5e8ee);
  background: #f5f6f8;
  display: block;
}

.admin-preview-caption {
  font-size: 0.7rem;
  color: #6b7785;
  margin-top: 0.35rem;
  word-break: break-all;
  line-height: 1.2;
}

.admin-preview-existing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.admin-preview-existing img {
  max-height: 96px;
  max-width: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e8ee;
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.55s ease both;
}

@media (max-width: 991.98px) {
  .category-sidebar {
    position: static;
  }
  .mega-menu-panel {
    display: none !important;
  }
}

/* Brand logo */
.brand-logo {
  max-height: 44px;
  width: auto;
  display: block;
}

.footer-logo {
  display: block;
  filter: brightness(0) invert(1);
}

/* Mega menu */
.mega-trigger-wrap {
  position: relative;
}

.mega-menu-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 1050;
  min-width: min(920px, 92vw);
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.mega-menu-panel[hidden] {
  display: none !important;
}

.mega-menu-inner {
  padding: 1.25rem;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem 1.5rem;
}

.mega-menu-parent {
  display: block;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.mega-menu-children a {
  display: block;
  font-size: 0.88rem;
  color: var(--brand-muted);
  padding: 0.2rem 0;
}

.mega-menu-children a:hover,
.mega-menu-parent:hover {
  color: var(--brand-orange);
}

.btn-all-cats.is-open {
  color: var(--brand-orange);
}

/* Home carousel */
.home-carousel-section {
  background: #111;
}

.home-slide {
  min-height: min(62vh, 480px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}

.home-slide-content {
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

.home-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.home-slide-sub {
  max-width: 34rem;
  opacity: 0.92;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.home-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.custom-html-block {
  width: 100%;
}

