:root { --bs-primary: #2740a3; --bs-primary-rgb: 39,64,163; --brand-accent: #ffda00;}
body { padding-top: 78px; }
.site-logo { display: block; width: auto; height: 58px; }
.hero {
  background-color: #f7f7f7;
  background-image:
    linear-gradient(rgba(247,247,247,.68), rgba(247,247,247,.68)),
    url('../hero-background.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 0;
  text-align: center;
}
.hero h1,
.hero .lead { text-shadow: 0 1px 2px rgba(255,255,255,.95); }
#upload { scroll-margin-top: 78px; }
.features { padding: 40px 0; }
.upload-form { background: #fff; padding: 40px; border-radius: .5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 2px solid var(--brand-accent); }
footer { background: #222; color: #aaa; padding: 20px 0; text-align: center; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--brand-accent); border-color: var(--brand-accent); }
.navbar-nav .nav-link:hover { color: var(--brand-accent)!important; }
.card { border: 1px solid var(--brand-accent); }
.form-control:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .25); }
.navbar-light .navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%232740a3' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }
i, svg { color: var(--bs-primary); }
.is-invalid { border-color: #dc3545; }
.progress { height: 1.5rem; }
.progress-bar { font-weight: 600; }
.muted { color: #6c757d; }
.badge-okay { background: #28a745; }
.badge-bad  { background: #dc3545; }
.guide-img { border: 2px solid #e9ecef; border-radius: .5rem; overflow: hidden; }
.pricing-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
.product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.pricing-catalog .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid .card { height: 100%; }
.floating-cart { width: min(360px, 90vw)!important; }
.floating-cart .card { border-width: 2px; }
.cart-items { display: grid; gap: .75rem; }
.cart-item { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.cart-item-name { line-height: 1.25; }
.cart-item-qty { display: block; margin-top: .2rem; color: #6c757d; font-size: .8rem; font-weight: 400; }
.cart-empty { color: #6c757d; text-align: center; padding: 1rem 0; }
.mobile-cart-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .7rem 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.mobile-cart-button i { color: currentColor; }
.mobile-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #222;
  font-size: .75rem;
  font-weight: 700;
}
.product-image-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #e9ecef;
  border-radius: .375rem;
  background: #f7f7f7;
}
.product-image-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@media (min-width: 1200px) {
  .pricing-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .floating-cart { position: sticky!important; top: 80px; width: 300px!important; align-self: start; }
}
@media (max-width: 575.98px) {
  body { padding-top: 70px; }
  .site-logo { height: 50px; }
}
@media (min-width: 1800px) {
  .pricing-layout { display: block; }
  .pricing-catalog { max-width: 1140px; margin-inline: auto; }
  .floating-cart {
    position: fixed!important;
    top: 80px;
    right: 1.5rem;
    z-index: 1030;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }
}
@media (max-width: 991.98px) {
  .product-grid,
  .pricing-catalog .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .product-grid,
  .pricing-catalog .product-grid { grid-template-columns: 1fr; }
  .mobile-cart-label { display: none; }
  .mobile-cart-button { width: 3.5rem; height: 3.5rem; justify-content: center; padding: 0; }
  .mobile-cart-count { position: absolute; top: -.25rem; right: -.25rem; }
}
