/* =========================
   Modern UI theme (2026)
   ========================= */

:root {
  --brand-950: #061826;
  --brand-900: #082033;
  --brand-800: #0b2a4a;
  --brand-700: #0b3e66;
  --brand-600: #0f5a90;
  --brand-500: #1f85c7;
  --brand-400: #47a6dc;

  --accent-600: #d97706; /* amber */
  --accent-500: #f59e0b;

  --bg-0: #f6f8fd;
  --bg-1: #eef3fb;
  --text-0: #0f172a;
  --text-1: #334155;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.10);

  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --shadow-sm: 0 6px 18px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 16px 40px rgba(2, 6, 23, 0.10);
  --shadow-lg: 0 22px 70px rgba(2, 6, 23, 0.14);

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --ease: cubic-bezier(.2,.8,.2,1);

  /* Bootstrap theme override (v5.3) */
  --bs-primary: var(--brand-500);
  --bs-primary-rgb: 31, 133, 199;
  --bs-body-color: var(--text-0);
  --bs-body-bg: transparent;
  --bs-link-color: var(--brand-600);
  --bs-link-hover-color: var(--brand-500);
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-0);
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(31, 133, 199, 0.22), transparent 55%),
    radial-gradient(900px 520px at 90% 10%, rgba(245, 158, 11, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

a { text-decoration-color: rgba(31, 133, 199, 0.35); }
a:hover { text-decoration-color: rgba(31, 133, 199, 0.65); }

::selection { background: rgba(31, 133, 199, 0.24); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================
   Navbar / header
   ========================= */

.navbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  padding: 0;
}

.logo img {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  transition: transform 280ms var(--ease), filter 280ms var(--ease);
}

.logo:hover img {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 10px 14px rgba(2, 6, 23, 0.14));
}

/* ===== BURGER ===== */
.burger {
  width: 34px;
  height: 26px;
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-700);
  border-radius: 999px;
  transition: 360ms var(--ease);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { bottom: 0; }

.burger.active span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg); bottom: 11px; }

/* =========================
   Sidebar
   ========================= */

.sidebar {
  background: var(--surface-strong);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.sidebar h6 {
  font-weight: 800;
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: var(--text-0);
  padding-bottom: 10px;
  position: relative;
}

.sidebar h6::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 133, 199, 0.45), rgba(15, 23, 42, 0.08));
  margin-top: 10px;
}

.sidebar a {
  font-size: 14px;
  color: var(--text-1);
  text-decoration: none;
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  position: relative;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.sidebar a:hover {
  color: var(--brand-700);
  background: rgba(31, 133, 199, 0.10);
  transform: translateX(2px);
}

.sidebar a:focus-visible {
  outline: 2px solid rgba(31, 133, 199, 0.55);
  outline-offset: 2px;
}

/* ===== Mobile sidebar ===== */
@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -110%;
    width: 86%;
    max-width: 340px;
    height: 100vh;
    z-index: 1050;
    overflow-y: auto;
    transition: left 320ms var(--ease);
    box-shadow: var(--shadow-lg);
    padding-bottom: 18px;
  }

  .sidebar.active { left: 0; }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1040;
    display: none;
  }

  .sidebar-overlay.active { display: block; }
}

/* ===== Desktop sidebar fixed layout ===== */
@media (min-width: 992px) {
  .sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    width: 16.666%;
    height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 1000;
  }
  main { margin-left: 16.666%; }
}

/* =========================
   Buttons / chips
   ========================= */

.btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  box-shadow: 0 10px 22px rgba(31, 133, 199, 0.25);
}
.btn-primary:hover { filter: brightness(1.02); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline-secondary {
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--text-1);
}
.btn-outline-secondary:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.18);
  color: var(--text-0);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 133, 199, 0.10);
  border: 1px solid rgba(31, 133, 199, 0.16);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   Cards / product grid
   ========================= */

.card-surface {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.product-card {
  background: var(--surface-strong);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 133, 199, 0.24);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.01));
}

.product-card h6 {
  margin: 10px 0 6px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text-0);
}

.price {
  font-weight: 900;
  color: var(--brand-700);
  letter-spacing: 0.1px;
}

.muted { color: var(--muted); }

/* =========================
   Floating contact buttons
   ========================= */

.mobile-actions {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-actions a {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.20);
  transform: translateZ(0);
}

.call { background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); }
.wa   { background: linear-gradient(135deg, #16a34a, #22c55e); }
.tg   { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.ig   { background: linear-gradient(135deg, #9333ea, #fb7185); }

.pulse { animation: pulse 1.55s infinite; }

.desktop-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
}

.desktop-call a {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.22);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 133, 199, 0.35); }
  70%  { box-shadow: 0 0 0 16px rgba(31, 133, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 133, 199, 0); }
}

/* =========================
   Footer
   ========================= */

.footer {
  position: relative;
  width: 100%;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.footer i {
  font-size: 16px;
  color: var(--brand-400);
}

.footer span { margin-left: 4px; }

@media (max-width: 575px) {
  .footer { font-size: 13px; text-align: center; }
  .footer i { font-size: 14px; }
}

/* =========================
   Category cards (home)
   ========================= */

.category-card-img {
  position: relative;
  display: block;
  height: 292px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 230ms var(--ease), box-shadow 230ms var(--ease);
  box-shadow: var(--shadow-sm);
}

.category-card-img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 420ms var(--ease);
}
.category-card-img:hover img { transform: scale(1.07); }

.category-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.00), rgba(2, 6, 23, 0.40));
  pointer-events: none;
}

.category-card-img .title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 12px;
  background: rgba(11, 42, 74, 0.78);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  z-index: 4;
}

.category-card-img .title:hover { text-decoration: underline; }

.subcategory {
  position: absolute;
  inset: 0 0 44px 0;
  background: rgba(8, 32, 51, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 18px;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 240ms var(--ease);
}

.category-card-img:hover .subcategory { opacity: 1; pointer-events: auto; }

.subcategory a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 650;
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background-color 180ms var(--ease);
}
.subcategory a:hover { background: rgba(31, 133, 199, 0.18); }

/* =========================
   Product page (detail)
   ========================= */

.product-page {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.product-image {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.02));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.product-image img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.product-title {
  font-weight: 900;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.product-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--brand-700);
  margin-bottom: 10px;
}

.product-desc { color: var(--text-1); margin-bottom: 14px; }

.product-info { padding-left: 18px; margin-bottom: 18px; color: var(--text-1); }
.product-info li { margin-bottom: 6px; }

.product-actions .btn { padding: 12px 18px; font-size: 15px; border-radius: 14px; }

/* Thumbs (optional) */
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumbs button {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.08);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}
.thumbs button:hover { transform: translateY(-2px); border-color: rgba(31, 133, 199, 0.28); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive logo */
@media (max-width: 991px) {
  .logo img { height: 38px; max-width: 150px; }
}
@media (max-width: 575px) {
  .logo img { height: 34px; max-width: 130px; }
}
