/* Oleloni — professional manufacturing UI */

:root {
  --site-ink: #0f172a;
  --site-ink-muted: #475569;
  --site-muted: #64748b;
  --site-border: #e2e8f0;
  --site-surface: #ffffff;
  --site-canvas: #f8fafc;
  --site-canvas-deep: #f1f5f9;
  --site-accent: #60a5fa;
  --site-accent-hover: #3b82f6;
  --site-accent-subtle: rgba(96, 165, 250, 0.16);
  --site-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --site-shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --site-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --site-radius: 0.75rem;
  --site-radius-lg: 1rem;
  --site-transition: 0.2s ease;

  --bs-primary: #3b82f6;
  --bs-primary-rgb: 59, 130, 246;
  --bs-link-color: #3b82f6;
  --bs-link-hover-color: #2563eb;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: #334155;
  --bs-body-bg: #f8fafc;
  --bs-secondary-color: #64748b;
  --bs-border-color: #e2e8f0;
  --bs-border-radius: 0.75rem;
  --bs-btn-border-radius: 0.65rem;
  --bs-btn-padding-y: 0.55rem;
  --bs-btn-padding-x: 1.15rem;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

.page-main {
  background-color: var(--site-canvas);
}

/* ——— Top contact bar (above main nav) ——— */
.top-bar {
  background: linear-gradient(90deg, #0f172a 0%, #334155 40%, #3b82f6 78%, #60a5fa 100%);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar--mobile {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar__link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color var(--site-transition);
}

.top-bar__link:hover {
  color: #e0f2fe;
}

.top-bar__muted {
  color: rgba(255, 255, 255, 0.68);
}

.top-bar__icon {
  color: #bfdbfe;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.top-bar__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: background var(--site-transition), transform var(--site-transition);
}

.top-bar__social-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff !important;
  transform: translateY(-1px);
}

.top-bar__social-btn--tiktok {
  background: #000;
}

.top-bar__social-btn--tiktok:hover {
  background: #1a1a1a;
}

.top-bar__social-btn--sm {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.9rem;
}

/* ——— Floating social strip (left, desktop) ——— */
.social-float {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.5rem;
}

.social-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: transform var(--site-transition), box-shadow var(--site-transition);
}

.social-float__btn:hover {
  color: #fff !important;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.social-float__btn--facebook {
  background: #1877f2;
}

.social-float__btn--linkedin {
  background: #0a66c2;
}

.social-float__btn--instagram {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

.social-float__btn--tiktok {
  background: linear-gradient(145deg, #25f4ee 0%, #000 45%, #fe2c55 100%);
  color: #fff !important;
}

.social-float__btn--twitter {
  background: #0f1419;
}

.social-float__btn--youtube {
  background: #e62117;
}

/* WhatsApp: fixed bottom-right (all screen sizes) */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  left: auto;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  color: #fff !important;
  font-size: 1.65rem;
  text-decoration: none;
  background: linear-gradient(160deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 6px 24px rgba(18, 140, 126, 0.45);
  transition: transform var(--site-transition), box-shadow var(--site-transition);
}

.whatsapp-float:hover {
  color: #fff !important;
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(18, 140, 126, 0.55);
}

@media (min-width: 768px) {
  .whatsapp-float {
    right: 1.25rem;
    bottom: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.75rem;
  }
}

/* ——— Navbar ——— */
.site-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--site-border) !important;
  box-shadow: var(--site-shadow-sm);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.site-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--site-ink) !important;
  letter-spacing: -0.02em;
}

.site-navbar .nav-link {
  color: var(--site-ink-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
  transition: color var(--site-transition), background var(--site-transition);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: var(--site-accent) !important;
  background: var(--site-accent-subtle);
}

.site-navbar .nav-link.text-accent-staff {
  color: var(--site-accent) !important;
  font-weight: 600;
}

.site-navbar .form-control {
  border-color: var(--site-border);
  border-radius: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 0.875rem;
  background: var(--site-canvas-deep);
}

.site-navbar .form-control:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-subtle);
  background: var(--site-surface);
}

.site-navbar .navbar-toggler {
  border-color: var(--site-border);
  padding: 0.4rem 0.55rem;
}

/* ——— Footer ——— */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer h5,
.site-footer h6 {
  color: #f1f5f9;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer .footer-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color var(--site-transition);
}

.site-footer a:hover {
  color: #7dd3fc;
}

.site-footer hr {
  border-color: rgba(148, 163, 184, 0.15);
  opacity: 1;
}

/* ——— Hero ——— */
.hero-professional {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #475569 38%,
    #3b82f6 72%,
    #60a5fa 100%
  );
}

.hero-professional::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 70% 20%,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 55%
  );
  pointer-events: none;
}

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

.hero-professional .hero-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-professional .hero-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-professional .hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  line-height: 1.6;
  max-width: 36rem;
}

.hero-glass-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--site-radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ——— Sections ——— */
.section-py {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-alt {
  background: var(--site-canvas-deep);
  border-top: 1px solid var(--site-border);
  border-bottom: 1px solid var(--site-border);
}

.section-header .section-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--site-accent);
  margin-bottom: 0.35rem;
}

.section-header h2 {
  font-weight: 700;
  color: var(--site-ink);
  letter-spacing: -0.03em;
}

.section-header p {
  color: var(--site-muted);
  max-width: 32rem;
}

/* ——— Cards ——— */
.site-card {
  border: 1px solid var(--site-border) !important;
  border-radius: var(--site-radius-lg) !important;
  box-shadow: var(--site-shadow-sm);
  transition: transform var(--site-transition), box-shadow var(--site-transition), border-color var(--site-transition);
  overflow: hidden;
  background: var(--site-surface);
}

.site-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--site-shadow-md);
  border-color: rgba(96, 165, 250, 0.45) !important;
}

.site-card .card-title a {
  color: var(--site-ink);
  transition: color var(--site-transition);
}

.site-card .card-title a:hover {
  color: var(--site-accent);
}

.card-img-top {
  object-fit: cover;
  height: 200px;
}

/* Product / catalog images: zoom only while hovering the image area */
.product-img-zoom {
  overflow: hidden;
  cursor: zoom-in;
  background: var(--site-canvas-deep);
}

.product-img-zoom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
  will-change: transform;
}

.product-img-zoom:hover img {
  transform: scale(1.15);
}

/* Detail page: main hero image (taller) */
.product-img-zoom--hero {
  aspect-ratio: 4 / 3;
  max-height: 480px;
}

.product-img-zoom--hero img {
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

/* Gallery thumbnails on product detail */
.product-img-zoom--thumb {
  aspect-ratio: 1;
}

.product-img-zoom--thumb img {
  aspect-ratio: 1;
  object-fit: cover;
}

/* Product grid cards: fixed media height */
.product-img-zoom--card {
  height: 200px;
}

.product-img-zoom--card img.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Product detail: gallery + Alibaba-style hover zoom ——— */
.product-media-layout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex-direction: row-reverse;
}

.product-media-main {
  flex: 1 1 0;
  min-width: 0;
}

.product-media-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 76px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
}

.product-media-thumb {
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--site-border);
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  background: var(--site-surface);
  transition: border-color var(--site-transition), box-shadow var(--site-transition);
  flex-shrink: 0;
}

.product-media-thumb:hover,
.product-media-thumb:focus-visible {
  border-color: var(--site-accent);
  outline: none;
}

.product-media-thumb.is-active {
  border-color: var(--site-accent-hover);
  box-shadow: 0 0 0 2px var(--site-accent-subtle);
}

.product-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-zoom-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  max-height: min(520px, 85vw);
  margin: 0 auto;
  background: linear-gradient(180deg, #fff 0%, var(--site-canvas-deep) 100%);
  border: 1px solid var(--site-border);
}

.product-zoom-stage--zoomable {
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

.product-zoom-stage__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.product-key-features__list .product-key-features__item:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 991.98px) {
  .product-media-layout {
    flex-direction: column;
  }

  .product-media-thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
}

@media (pointer: coarse) {
  .product-zoom-stage:not(.product-zoom-stage--zoomable) {
    cursor: default;
  }
}

.site-card .ratio-placeholder {
  height: 200px;
  background: linear-gradient(145deg, var(--site-canvas-deep) 0%, #e2e8f0 100%);
  color: var(--site-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ——— CTA band ——— */
.cta-band {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(186, 230, 253, 0.35) 0%, transparent 48%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band .btn-light {
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 2rem;
  box-shadow: var(--site-shadow-md);
}

/* ——— Buttons ——— */
.btn {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-primary {
  border: none;
  background: linear-gradient(180deg, #7dd3fc 0%, #3b82f6 45%, #2563eb 100%);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
}

.btn-outline-primary {
  border-width: 1.5px;
  color: var(--site-accent-hover);
  border-color: rgba(96, 165, 250, 0.65);
}

.btn-outline-primary:hover {
  background: var(--site-accent-hover);
  border-color: var(--site-accent-hover);
  color: #fff !important;
}

.btn-outline-light {
  border-width: 1.5px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ——— Page shells ——— */
.page-shell {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.page-hero-title {
  font-weight: 700;
  color: var(--site-ink);
  letter-spacing: -0.03em;
}

.about-page__photo {
  max-height: min(440px, 70vh);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--site-border);
}

@media (max-width: 991.98px) {
  .about-page__photo {
    max-height: 320px;
    aspect-ratio: 16 / 10;
  }
}

/* ——— Forms ——— */
.form-control,
.form-select {
  border-radius: 0.65rem;
  border-color: var(--site-border);
}

.form-control:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-subtle);
}

/* ——— Alerts ——— */
.site-alerts .alert {
  border: none;
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow-sm);
}

/* ——— Tables (dashboard) ——— */
.table {
  --bs-table-border-color: var(--site-border);
}

/* ——— Breadcrumb ——— */
.breadcrumb {
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--site-muted);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--site-accent);
}

/* ——— Pagination ——— */
.pagination .page-link {
  border-radius: 0.5rem;
  margin: 0 0.15rem;
  border: 1px solid var(--site-border);
  color: var(--site-ink-muted);
  font-weight: 500;
  background: var(--site-surface);
}

.pagination .page-item:not(.disabled) .page-link:hover {
  background: var(--site-accent-subtle);
  border-color: rgba(96, 165, 250, 0.55);
  color: var(--site-accent-hover);
}

.pagination .page-item.disabled .page-link {
  background: var(--site-canvas-deep);
  border-color: var(--site-border);
  color: var(--site-muted);
}

/* ——— Filter pills (catalog) ——— */
.filter-pills .btn {
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
}

.filter-pills .btn-outline-secondary {
  border-color: var(--site-border);
  color: var(--site-ink-muted);
  background: var(--site-surface);
}

.filter-pills .btn-outline-secondary:hover {
  border-color: var(--site-accent);
  color: var(--site-accent-hover);
  background: var(--site-accent-subtle);
}

/* ——— Content card (forms, article body) ——— */
.content-panel {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  box-shadow: var(--site-shadow-sm);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
}
