:root {
  --sis-blue: #0143ad;
  --sis-blue-dark: #062a5b;
  --sis-green: #74a900;
  --sis-green-dark: #5a7f03;
  --sis-ink: #162233;
  --sis-muted: #687385;
  --sis-light: #f4f7fb;
  --sis-border: #e3e8ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sis-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}
a, a:hover { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.top-strip { color: #fff; background: var(--sis-blue-dark); font-size: 12px; }
.top-strip .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.top-strip a { margin-left: 22px; color: #fff; }
.top-strip i { margin-right: 6px; color: #b7dc42; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--sis-border);
  background: rgba(255,255,255,.98);
  box-shadow: 0 4px 20px rgba(15,38,71,.06);
}
.header-row { min-height: 84px; display: flex; align-items: center; gap: 25px; }
.brand { flex: 0 0 190px; }
.brand img { width: 185px; height: 68px; object-fit: contain; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; }
.main-nav > a, .nav-dropdown > a {
  display: block;
  padding: 31px 13px;
  color: #253349;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.main-nav > a:hover, .main-nav > a.active, .nav-dropdown > a:hover, .nav-dropdown > a.active { color: var(--sis-blue); }
.nav-dropdown { position: relative; }
.nav-dropdown > a i { margin-left: 5px; font-size: 10px; }
.nav-mega {
  position: absolute;
  top: calc(100% - 7px);
  left: 50%;
  width: 720px;
  padding: 24px;
  display: grid;
  visibility: hidden;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  border: 1px solid var(--sis-border);
  border-top: 3px solid var(--sis-green);
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(10,35,68,.14);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: .2s;
}
.nav-dropdown:hover .nav-mega { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.nav-mega a { display: block; padding: 5px 0; color: var(--sis-muted); font-size: 13px; }
.nav-mega a:hover { color: var(--sis-blue); }
.nav-mega .mega-category { padding-bottom: 8px; color: var(--sis-ink); font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search { position: relative; }
.header-search input {
  width: 190px;
  height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--sis-border);
  border-radius: 22px;
  outline: 0;
}
.header-search input:focus { border-color: var(--sis-blue); }
.header-search button {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--sis-blue);
}
.cart-button { position: relative; display: flex; align-items: center; gap: 7px; font-weight: 700; }
.cart-button i { font-size: 22px; }
.cart-button b {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sis-green-dark);
  font-size: 11px;
}
.mobile-toggle { display: none; border: 0; background: transparent; font-size: 24px; }

.flash-wrap { padding-top: 14px; }
.flash-wrap .alert { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.flash-close { border: 0; color: inherit; background: transparent; font-size: 24px; line-height: 1; }

.hero picture, .hero img { width: 100%; display: block; }
.hero img { max-height: 650px; object-fit: cover; }
.section { padding: 76px 0; }
.section-light { background: var(--sis-light); }
.section-heading { max-width: 680px; margin: 0 auto 38px; text-align: center; }
.section-heading span { color: var(--sis-green-dark); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.section-heading h2 { margin: 8px 0 10px; color: var(--sis-blue-dark); font-size: 36px; font-weight: 800; }
.section-heading p { margin: 0; color: var(--sis-muted); line-height: 1.7; }

.category-card {
  height: 100%;
  overflow: hidden;
  display: block;
  border: 1px solid var(--sis-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(17,48,87,.06);
  transition: .25s;
}
.category-card:hover { border-color: #b9d374; transform: translateY(-6px); box-shadow: 0 16px 35px rgba(17,48,87,.12); }
.category-card img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #f8fafc;
  transition: transform .35s ease;
}
.category-card:hover img { transform: scale(1.035); }
.category-card-body { padding: 20px; }
.category-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.category-card p { min-height: 44px; margin: 0 0 14px; color: var(--sis-muted); line-height: 1.5; }
.category-card small { color: var(--sis-blue); font-weight: 700; }

.product-card {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sis-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 26px rgba(16,43,77,.055);
  transition: .25s;
}
.product-card:hover {
  border-color: #cdd9e8;
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(16,43,77,.13);
}
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  background: #f7f9fc;
}
.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.product-card:hover .product-image img { transform: scale(1.045); }
.product-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 10px; border-radius: 20px; color: #fff; background: var(--sis-green-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.product-category { color: var(--sis-blue); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.product-card h3 {
  min-height: 48px;
  margin: 8px 0;
  overflow: hidden;
  display: -webkit-box;
  color: #10223a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card h3 a:hover { color: var(--sis-blue); }
.product-card p {
  min-height: 40px;
  margin: 0 0 15px;
  overflow: hidden;
  display: -webkit-box;
  color: var(--sis-muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.product-price strong { color: var(--sis-blue-dark); font-size: 21px; }
.product-price del { color: #98a0ac; }

.btn-brand, .btn-green, .btn-outline-brand {
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid var(--sis-blue);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--sis-blue);
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.btn-brand:hover { color: #fff; background: var(--sis-blue-dark); border-color: var(--sis-blue-dark); }
.btn-green { border-color: var(--sis-green-dark); background: var(--sis-green-dark); }
.btn-green:hover { color: #fff; background: #496704; }
.btn-outline-brand { color: var(--sis-blue); background: #fff; }
.btn-outline-brand:hover { color: #fff; background: var(--sis-blue); }
.btn-block { width: 100%; }
.btn-brand:disabled { border-color: #b6bdc8; background: #b6bdc8; cursor: not-allowed; }

.benefits { padding: 36px 0; color: #fff; background: var(--sis-blue-dark); }
.benefit { display: flex; align-items: center; gap: 14px; }
.benefit i { color: #b7dc42; font-size: 29px; }
.benefit strong, .benefit small { display: block; }
.benefit small { margin-top: 3px; color: #cbd5e3; }

.inner-hero { padding: 55px 0; color: #fff; background: linear-gradient(135deg, #062a5b, #0143ad); }
.inner-hero h1 { margin: 0 0 8px; font-size: 38px; font-weight: 800; }
.inner-hero p { max-width: 670px; margin: 0; color: #d9e5f7; }
.breadcrumb-links { margin-top: 14px; color: #b7dc42; font-size: 13px; }
.breadcrumb-links a { color: #fff; }

.filter-card, .content-card {
  border: 1px solid var(--sis-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(16,43,77,.05);
}
.filter-card { padding: 22px; }
.filter-card h3 { margin: 0 0 18px; font-size: 18px; font-weight: 800; }
.filter-card label { color: #3e4d62; font-size: 12px; font-weight: 700; }
.form-control {
  min-height: 46px;
  border-color: #dce2ea;
  border-radius: 7px;
}
textarea.form-control { min-height: auto; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.shop-toolbar p { margin: 0; color: var(--sis-muted); }
.pagination-row { display: flex; justify-content: center; gap: 7px; margin-top: 34px; }
.pagination-row a, .pagination-row span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sis-border); border-radius: 6px; background: #fff; }
.pagination-row .active { color: #fff; border-color: var(--sis-blue); background: var(--sis-blue); }

.product-detail-image { height: 540px; padding: 35px; border: 1px solid var(--sis-border); border-radius: 14px; background: #f7f9fc; }
.product-detail-image img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-content { padding-left: 25px; }
.product-detail-content h1 { margin: 8px 0 15px; font-size: 36px; font-weight: 800; }
.product-detail-content .lead { color: var(--sis-muted); font-size: 16px; line-height: 1.7; }
.stock-label { display: inline-block; padding: 7px 12px; border-radius: 20px; color: #176a3b; background: #e2f5e9; font-size: 12px; font-weight: 700; }
.stock-label.out { color: #a62735; background: #ffe5e8; }
.quantity-row { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.quantity-row input { width: 80px; height: 44px; border: 1px solid var(--sis-border); border-radius: 7px; text-align: center; }
.detail-description { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--sis-border); color: var(--sis-muted); line-height: 1.8; white-space: pre-line; }

.cart-table { width: 100%; }
.cart-table th { padding: 14px; border-bottom: 1px solid var(--sis-border); color: var(--sis-muted); background: #f7f9fc; font-size: 11px; text-transform: uppercase; }
.cart-table td { padding: 18px 14px; border-bottom: 1px solid var(--sis-border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 15px; min-width: 300px; }
.cart-product img { width: 80px; height: 80px; padding: 6px; object-fit: contain; border-radius: 8px; background: #f5f7fa; }
.cart-product strong, .cart-product small { display: block; }
.cart-product small { margin-top: 4px; color: var(--sis-muted); }
.cart-quantity { width: 75px; height: 42px; border: 1px solid var(--sis-border); border-radius: 6px; text-align: center; }
.remove-button { border: 0; color: #c52d3c; background: transparent; }
.summary-card { padding: 25px; }
.summary-card h3 { margin: 0 0 20px; font-size: 21px; font-weight: 800; }
.summary-line { display: flex; justify-content: space-between; padding: 9px 0; color: var(--sis-muted); }
.summary-line.total { margin-top: 10px; padding-top: 17px; border-top: 1px solid var(--sis-border); color: var(--sis-ink); font-size: 18px; font-weight: 800; }
.empty-state { padding: 70px 25px; text-align: center; }
.empty-state i { color: #cad2dc; font-size: 65px; }
.empty-state h2 { margin: 22px 0 8px; font-weight: 800; }
.empty-state p { color: var(--sis-muted); }

.checkout-section-title { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--sis-border); font-size: 21px; font-weight: 800; }
.payment-option { padding: 18px; border: 2px solid var(--sis-blue); border-radius: 8px; background: #edf4ff; }
.payment-coming { margin-top: 12px; padding: 16px; border: 1px dashed #c8ced7; border-radius: 8px; color: #9199a4; background: #fafafa; }
.success-icon { width: 90px; height: 90px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--sis-green-dark); font-size: 42px; }
.order-number { display: inline-block; padding: 13px 24px; border: 1px dashed var(--sis-blue); border-radius: 7px; color: var(--sis-blue); background: #eff5ff; font-weight: 800; }

.about-image { overflow: hidden; border-radius: 16px; box-shadow: 0 18px 50px rgba(8,39,75,.15); }
.about-image img { width: 100%; min-height: 430px; object-fit: cover; }
.about-copy h2 { margin-bottom: 20px; color: var(--sis-blue-dark); font-size: 36px; font-weight: 800; }
.about-copy p { color: var(--sis-muted); line-height: 1.8; }
.feature-list { margin-top: 25px; }
.feature-list div { margin-bottom: 14px; display: flex; gap: 12px; }
.feature-list i { margin-top: 3px; color: var(--sis-green-dark); }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--sis-border); }
.contact-item i { width: 42px; color: var(--sis-blue); font-size: 26px; }
.contact-item strong, .contact-item span { display: block; }
.contact-item span { margin-top: 4px; color: var(--sis-muted); }

.site-footer { padding-top: 60px; color: #d7e0ed; background: #061e3d; }
.footer-logo { width: 210px; height: 110px; margin-bottom: 18px; padding: 8px; object-fit: contain; border-radius: 8px; background: #fff; }
.site-footer p { color: #aebcd0; line-height: 1.75; }
.site-footer h5 { margin-bottom: 20px; color: #fff; font-size: 16px; font-weight: 800; }
.site-footer a { display: block; margin-bottom: 10px; color: #aebcd0; }
.site-footer a:hover { color: #b7dc42; }
.site-footer .footer-contact { margin: 0 0 10px; line-height: 1.5; }
.footer-contact i { width: 22px; color: #b7dc42; }
.site-footer .admin-link { margin-top: 18px; color: #b7dc42; }
.footer-bottom { margin-top: 50px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8fa1b9; font-size: 12px; }
.footer-bottom .container { display: flex; justify-content: space-between; }
.error-code { display: block; color: var(--sis-blue); font-size: 90px; font-weight: 900; line-height: 1; }

@media (max-width: 1199.98px) {
  .header-row { flex-wrap: wrap; min-height: 75px; padding-top: 8px; padding-bottom: 8px; }
  .brand { flex: 1; }
  .brand img { width: 165px; height: 58px; }
  .mobile-toggle { display: block; order: 2; }
  .header-actions { order: 1; }
  .main-nav { order: 3; width: 100%; display: none; align-items: stretch; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--sis-border); }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-dropdown > a { padding: 10px 4px; }
  .nav-mega { position: static; width: 100%; visibility: visible; display: grid; opacity: 1; transform: none; box-shadow: none; border-width: 1px; }
}

@media (max-width: 767.98px) {
  .top-strip .container { min-height: 32px; justify-content: center; }
  .top-strip .container > span, .top-strip a:first-child { display: none; }
  .top-strip a { margin: 0; }
  .header-search { display: none; }
  .cart-button span { display: none; }
  .nav-mega { grid-template-columns: 1fr 1fr; }
  .section { padding: 54px 0; }
  .section-heading h2, .about-copy h2 { font-size: 29px; }
  .hero img { min-height: 400px; object-fit: cover; }
  .benefit { margin: 12px 0; }
  .inner-hero h1 { font-size: 31px; }
  .category-card img { height: 320px; }
  .product-image { aspect-ratio: 1 / 1; }
  .product-detail-image { height: 390px; }
  .product-detail-content { padding: 30px 0 0; }
  .product-detail-content h1 { font-size: 29px; }
  .shop-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-bottom .container { flex-direction: column; gap: 7px; text-align: center; }
}

@media (max-width: 420px) {
  .category-card img { height: 285px; }
  .product-body { padding: 16px; }
}
