:root {
  --brand-red: #b60000;
  --brand-navy: #071e3d;
  --line: #ddd;
  --muted: #666;
}

html,
body {
  min-height: 100%;
  background: #fff;
  color: #222;
  font-family: "Open Sans", sans-serif;
}

a {
  color: inherit;
}

.app-loading {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}

.desktop-header {
  display: block;
}

.desktop-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4%;
  background: #f5f5f5;
  font-size: 13px;
}

.desktop-top nav a {
  margin-left: 22px;
}

.desktop-brand {
  display: grid;
  grid-template-columns: 280px minmax(300px, 620px) 100px;
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
}

.desktop-brand img,
.mobile-logo img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

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

.search-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 1px solid #bbb;
  border-right: 0;
  padding: 0 14px;
  font-size: 15px;
}

.search-form button {
  height: 42px;
  border: 0;
  padding: 0 22px;
  background: var(--brand-navy);
  color: #fff;
}

.desktop-categories {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #333;
}

.desktop-categories a {
  padding: 15px 28px;
  color: #fff;
  font-weight: 700;
}

.desktop-categories a:hover {
  background: var(--brand-red);
  text-decoration: none;
}

.mobile-header {
  display: none;
}

.mobile-menu-backdrop,
.mobile-menu-drawer {
  display: none;
}

.mobile-original-quick-links {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  background: #e7e7e7;
}

.mobile-original-quick-links a {
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

.promo {
  max-width: 960px;
  margin: 22px auto;
  padding: 0 16px;
  color: #bd3030;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
}

.banner-wrap {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 15px;
}

.banner-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  max-width: 1220px;
  margin: 45px auto;
  padding: 0 15px;
}

.section-title {
  margin: 0 0 28px;
  color: #082b50;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 2px 2px #f5b991;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 7px rgba(0, 0, 0, .45);
  background: #fff;
  text-align: center;
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: #fff;
}

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

.product-name {
  height: 68px;
  overflow: hidden;
  padding: 10px 8px 0;
  color: #4b674e;
  font-size: 12px;
  line-height: 1.45;
}

.product-price {
  padding: 10px 8px 18px;
  font-size: 18px;
  font-weight: 700;
}

.breadcrumbs {
  max-width: 1180px;
  margin: 20px auto;
  padding: 12px 18px;
  background: #f5f5f5;
  color: #666;
}

.breadcrumbs a {
  color: #555;
}

.product-page {
  max-width: 1180px;
  margin: 25px auto 60px;
  padding: 0 15px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.product-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
}

.product-gallery {
  min-width: 0;
}

.product-main-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.product-thumbnails button {
  width: 78px;
  height: 78px;
  overflow: hidden;
  padding: 3px;
  border: 1px solid #ccc;
  background: #fff;
}

.product-thumbnails button.active {
  border-color: #20aeb7;
  box-shadow: 0 0 0 1px #20aeb7;
}

.product-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-panel {
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.product-panel h1 {
  margin: 0;
  padding: 18px;
  background: linear-gradient(#fff, #f2f2f2);
  border-bottom: 1px solid #ddd;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.product-info-row {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  line-height: 1.6;
}

.product-info-row:last-child {
  border-bottom: 0;
}

.contact-lines img {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.product-wholesale-price {
  color: #777;
  font-size: 21px;
  font-weight: 700;
}

.product-description {
  margin-top: 35px;
}

.product-description > .panel-heading {
  font-size: 18px;
  font-weight: 700;
}

.product-description h4 {
  margin: 0 0 12px;
  font-weight: 700;
}

.product-description .table {
  margin-bottom: 28px;
}

.products-description-images {
  text-align: center;
}

.products-description-images img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.products-description-images hr {
  margin: 20px 0;
}

.size-table {
  width: 100%;
  margin: 24px 0 15px;
  border-collapse: collapse;
}

.size-table td {
  border: 1px solid #ddd;
  padding: 9px 8px;
  vertical-align: middle;
}

.size-label {
  width: 35%;
}

.qty-control {
  display: flex;
  width: 100%;
  max-width: 260px;
}

.qty-control button,
.qty-control input {
  height: 40px;
  border: 1px solid #ccc;
}

.qty-control button {
  flex: 0 0 42px;
  background: linear-gradient(#fff, #e5e5e5);
  font-size: 16px;
}

.qty-control input {
  min-width: 0;
  flex: 1;
  border-left: 0;
  border-right: 0;
  text-align: center;
}

.buy-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.buy-actions button {
  border: 0;
  padding: 11px 22px;
  color: #fff;
  font-weight: 700;
}

.btn-cart {
  background: #111;
}

.btn-buy {
  background: var(--brand-red);
}

.simple-purchase {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr);
  gap: 12px;
  align-items: start;
  margin-top: 24px;
}

.simple-qty-control {
  max-width: none;
}

.simple-qty-control input {
  min-width: 48px;
  width: 48px;
}

.simple-qty-label {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-right: 0;
  background: #eee;
}

.simple-purchase .buy-actions {
  display: grid;
  gap: 8px;
}

.product-options {
  margin: 20px 0;
}

.product-option.input-group {
  width: 100%;
}

.product-option .input-group-addon {
  min-width: 145px;
  text-align: left;
}

.product-option .form-control {
  height: 40px;
}

.product-option textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.product-option-choices {
  margin: 0;
  padding: 12px 15px;
  border: 1px solid #ccc;
}

.product-option-choices legend {
  width: auto;
  margin: 0 12px 0 0;
  border: 0;
  font-size: 14px;
  font-weight: 700;
}

.product-option-choices label {
  margin: 0 18px 0 0;
  font-weight: 400;
}

.cart-options {
  margin-top: 5px;
  color: #666;
  font-size: 12px;
}

.empty-state {
  max-width: 900px;
  margin: 70px auto;
  padding: 35px;
  border: 1px solid #ddd;
  text-align: center;
}

.footer {
  margin-top: 60px;
  padding: 30px 15px;
  background: #262626;
  color: #ddd;
  text-align: center;
}

.floating-contact {
  position: fixed;
  z-index: 20;
  right: 12px;
  top: 55%;
  display: grid;
  gap: 10px;
}

.floating-contact img {
  display: block;
  width: 50px;
  height: 50px;
}

@media (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: block;
  }

  .header-menu-trigger {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 12px;
    width: 54px;
    height: 45px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 27px;
    line-height: 45px;
  }

  .mobile-header > hr {
    margin: 20px 0;
  }

  .mobile-header .header_search_box {
    padding: 0;
  }

  .mobile-logo {
    padding: 6px 15px;
    text-align: center;
  }

  .mobile-icon-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    padding: 0 17px;
    background: var(--brand-red);
    color: #fff;
  }

  .mobile-icon-bar a,
  .mobile-icon-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 998;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
  }

  .mobile-menu-drawer {
    position: fixed;
    z-index: 999;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 240px;
    max-width: 100%;
    background: #a91e22;
    box-shadow: 1px 0 2px rgba(0, 0, 0, .2);
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .mobile-menu-open {
    overflow: hidden;
  }

  .mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-open .mobile-menu-drawer {
    transform: translateX(0);
  }

  .mobile-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 18px;
    background: #000;
    color: #fff;
    font-size: 18px;
  }

  .mobile-menu-heading button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
  }

  .mobile-menu-drawer nav {
    flex: 1;
    overflow-y: auto;
  }

  .mobile-menu-level {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-menu-level-1 {
    display: block;
  }

  .mobile-menu-row {
    position: relative;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #fff;
  }

  .mobile-menu-drawer nav a {
    display: flex;
    align-items: center;
    min-height: 47px;
    flex: 1;
    padding: 13px 17px;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
  }

  .mobile-menu-row > button {
    flex: 0 0 46px;
    width: 46px;
    border: 0;
    border-left: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 18px;
  }

  .mobile-menu-level-2 a {
    padding-left: 27px;
    font-size: 14px;
  }

  .mobile-menu-level-3 a {
    padding-left: 37px;
    font-size: 13px;
  }

  .mobile-menu-drawer li.submenu-open > .mobile-menu-level {
    display: block;
    background: rgba(0, 0, 0, .12);
  }

  .mobile-menu-drawer li.submenu-open > .mobile-menu-row > button i {
    transform: rotate(90deg);
  }

  .mobile-menu-drawer nav a:active,
  .mobile-menu-row > button:active {
    background: #8d191d;
  }

  .mobile-quick-links {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 15px;
    background: #e7e7e7;
  }

  .mobile-quick-links a {
    color: #111;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-search {
    padding: 15px 12%;
  }

  .promo {
    margin: 18px auto;
    font-size: 18px;
  }

  .banner-wrap {
    padding: 0;
  }

  .section {
    margin: 42px auto;
    padding: 0 10px;
  }

  .section-title {
    margin-bottom: 22px;
    font-size: clamp(27px, 8vw, 38px);
    white-space: nowrap;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .product-image {
    aspect-ratio: 1 / 1.12;
  }

  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .product-main-image {
    width: 100%;
  }

  .product-main-image img {
    width: 100%;
  }

  .product-thumbnails button {
    width: 66px;
    height: 66px;
  }

  .product-page {
    padding: 0 12px;
  }

  .product-description {
    margin-top: 28px;
  }

  .product-description .panel-body {
    padding: 10px;
  }

  .product-description .table {
    font-size: 12px;
  }

  .product-panel h1 {
    font-size: 16px;
  }

  .size-table {
    table-layout: fixed;
  }

  .size-label {
    width: 35%;
    font-size: 14px;
  }

  .qty-control {
    max-width: none;
  }

  .buy-actions {
    justify-content: stretch;
  }

  .simple-purchase {
    grid-template-columns: minmax(180px, 1.1fr) minmax(120px, 1.9fr);
    gap: 0;
  }

  .simple-qty-control button {
    flex-basis: 36px;
  }

  .simple-qty-label {
    flex: 0 0 52px;
    padding: 0 8px;
  }

  .product-option .input-group-addon {
    min-width: 120px;
    padding: 6px 9px;
    white-space: normal;
  }

  .buy-actions button {
    flex: 1;
  }

  .floating-contact img {
    width: 45px;
    height: 45px;
  }
}
