body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f5f5f5;
  color: #222222;
}

header {
  background-color: #1f3556;
  color: white;
  padding: 24px;
  text-align: center;
}

main {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

section {
  background-color: white;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #dddddd;
}

footer {
  background-color: #1f3556;
  color: white;
  text-align: center;
  padding: 18px;
}

/* Main navigation */

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

.cart-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cart-icon {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 46px;
  line-height: 1;
}

.cart-svg {
  width: 52px;
  height: 46px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  position: absolute;
  top: 20px;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%);
  background: none;
  color: #ff2400;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.cart-menu-link:hover {
  text-decoration: none;
}

/* Catalog category dropdown */

.catalog-menu,
.collectibles-menu {
  position: relative;
  display: inline-block;
}

.category-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 180px;
  white-space: nowrap;
  background-color: white;
  border: 1px solid #cccccc;
  z-index: 1000;
}

.category-dropdown a {
  display: block;
  padding: 10px 14px;
  color: black;
  text-align: left;
  text-decoration: none;
  font-weight: normal;
}

.category-dropdown a:hover {
  background-color: #f2f2f2;
  text-decoration: none;
}
.catalog-menu:hover .category-dropdown,
.catalog-menu.open .category-dropdown,
.collectibles-menu:hover .category-dropdown,
.collectibles-menu.open .category-dropdown {
  display: block;
}
/* Catalog shopping-cart display */

.catalog-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.catalog-header-row h2 {
  margin: 0;
}

.cart-display {
  margin: 0;
  text-align: right;
  box-sizing: border-box;
}

/* Product catalog grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.product-card {
  border: 1px solid #dddddd;
  padding: 16px;
  background-color: white;
  text-align: center;
}
.product-card img {
  width: 100%;
  max-width: 250px;
  height: 280px;
  object-fit: contain;
  background-color: #f5f5f5;
  border: 1px solid black;
  box-sizing: border-box;
}

.product-card a {
  color: #1f3556;
  text-decoration: none;
}

.product-card > a {
  display: inline-block;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0;
  background: none;
}

.product-card > a:focus,
.product-card > a:active,
.product-card > a:visited {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.product-card > a img {
  display: block;
  border: 1px solid black !important;
  outline: none !important;
  box-shadow: none !important;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-number {
  color: #666666;
  font-size: 14px;
}

.product-price {
  font-size: 22px;
  font-weight: bold;
  color: #7a1f1f;
}

/* Buttons and links */

.view-button,
.back-link {
  display: inline-block;
  background-color: #1f3556;
  color: white !important;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: bold;
}

.view-button:hover,
.back-link:hover {
  background-color: #162840;
}

.add-to-cart {
  margin-top: 10px;
}

.button {
  display: inline-block;
  border: 2px solid #14243d;
  border-radius: 4px;
  box-shadow: 0 4px 0 #0e192a;
  cursor: pointer;
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0e192a;
}

/* Product detail page */

.product-detail {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin: 30px auto;
  max-width: 1100px;
  padding: 20px;
}

.full-description-scroll {
  max-height: 10.5em;
  overflow-y: auto;
  padding-right: 10px;
}

.product-image-viewer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  flex: 1;
}

.product-image-and-buttons {
  flex: 1;
}

.product-image-and-buttons img {
  display: block;
}

.product-page-buttons {
  text-align: left;
  margin-top: 15px;
}

.product-image-and-buttons {
  flex: 1;
}

.product-image-and-buttons img {
  display: block;
}

.product-page-buttons {
  text-align: left;
  margin-top: 15px;
}

#main-product-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  background-color: #fff;
}

.image-arrow {
  font-size: 32px;
  font-weight: bold;
  background-color: #eeeeee;
  border: 1px solid #999999;
  cursor: pointer;
  padding: 8px 12px;
}

.image-arrow:hover {
  background-color: #dddddd;
}
.product-information {
  flex: 1;
}

.product-lower-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

.product-page-buttons {
  flex: 0 0 auto;
}

#product-miscellaneous {
  flex: 0 0 306px;
  width: 306px;
  min-width: 0;
  max-width: 306px;
  overflow-wrap: anywhere;
  word-break: normal;
}

#product-miscellaneous h3 {
  margin-top: 0;
}

#product-miscellaneous .full-description-scroll {
  width: 100%;
  max-height: 10.5em;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}

#product-miscellaneous:empty {
  display: none;
}
.product-information h2 {
  margin-top: 0;
}

#add-to-cart-button {
  margin-top: 20px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* Older product gallery support */

#additional-images-gallery {
  margin-top: 24px;
}

.additional-product-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background-color: #f5f5f5;
  border: 1px solid #dddddd;
  padding: 8px;
  margin: 8px;
}

/* Cart page item layout */

.cart-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  border: 1px solid #cccccc;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #ffffff;
}

.cart-item-image {
  width: 100px;
  height: auto;
  border: 1px solid #cccccc;
}

.cart-item-info {
  flex: 1;
}

/* Cart order summary */

.order-summary {
  border: 1px solid #cccccc;
  padding: 15px;
  margin-top: 20px;
  background-color: #ffffff;
  max-width: 400px;
}

.cart-total-line {
  font-size: 20px;
  font-weight: bold;
}

/* Home page banner */

.home-banner {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background-color: #111111;
  overflow: hidden;
}

.home-banner img {
  width: 100%;
  max-width: 1400px;
  height: 325px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .home-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: initial;
  }
}

/* Home page intro sections */

.home-intro,
.home-trust {
  max-width: 900px;
  margin: 30px auto;
  padding: 25px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  text-align: center;
}

.home-intro h2,
.home-trust h2 {
  margin-top: 0;
}

.home-buttons {
  margin-top: 25px;
}

.home-button {
  display: inline-block;
  margin: 8px;
  padding: 12px 20px;
  background-color: #5b1a1a;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

.home-button:hover {
  background-color: #7a2525;
}

/* Home page featured categories carousel */

.featured-categories {
  max-width: 1100px;
  margin: 30px auto;
  padding: 25px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  text-align: center;
  overflow: hidden;
}

.featured-categories h2 {
  margin-top: 0;
}

.featured-category-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  width: 100%;
}

.featured-category-track {
  min-width: 0;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 5px 15px 5px;
  scrollbar-width: none;
}

.featured-category-track::-webkit-scrollbar {
  display: none;
}
.featured-category-card {
  flex: 0 0 96px;
  display: block;
  padding: 4px 5px;
  border: 1px solid #d6b98c;
  background: linear-gradient(180deg, #fffaf3, #f3e4d3);
  color: #000000;
  text-decoration: none;
  min-height: 0;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
}

.featured-category-card h3 {
  margin: 1px 0;
  color: #5b1a1a;
  font-size: 15px;
  line-height: 1.1;
}

.featured-category-card p {
  display: none;
}

.featured-category-card:hover {
  background: linear-gradient(180deg, #fff3df, #ead2b8);
  border-color: #5b1a1a;
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.category-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.category-arrow {
  width: 48px;
  height: 48px;
  display: block;
  font-size: 28px;
  font-weight: bold;
  background-color: #5b1a1a;
  color: #ffffff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}

.category-arrow:hover {
  background-color: #7a2525;
}

/* Smaller screens */

@media screen and (max-width: 800px) {
  .product-detail {
    flex-direction: column;
  }

  .product-image-column {
    flex: 1;
  }

  .product-page-buttons {
    text-align: left;
    margin-top: 15px;
  }

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


  #main-product-image {
    max-width: 100%;
  }
}

@media screen and (max-width: 700px) {
  nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .cart-display {
    text-align: center;
    padding-right: 0;
  }
}

@media screen and (max-width: 600px) {
  .featured-category-carousel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 4px;
  }

  .featured-category-card {
    flex: 0 0 96px;
  }

  .category-arrow {
    width: 34px;
    height: 40px;
    font-size: 20px;
  }
}

/* Force Featured Category arrows to display correctly */

.category-arrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
  z-index: 10;
}

.category-arrow.arrow-hidden {
  visibility: hidden;
}
/* Catalog search */

.catalog-search-area {
  margin: 20px 0;
  padding: 15px;
  background-color: #f7f2ed;
  border: 1px solid #cccccc;
}

.catalog-search-area label {
  font-weight: bold;
  margin-right: 10px;
}

#catalog-search {
  padding: 8px;
  font-size: 16px;
  width: 260px;
  max-width: 100%;
}

#catalog-search-button {
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
}

#catalog-grid-button {
  margin-left: 35px;
  padding: 8px 18px;
  font-size: 16px;
  color: white;
  background-color: #1f3556;
  border: 2px solid #14243d;
  border-radius: 4px;
  box-shadow: 0 4px 0 #0e192a;
  cursor: pointer;
}

#catalog-grid-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0e192a;
}
.catalog-search-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.catalog-search-area label {
  font-weight: bold;
}

#catalog-search {
  padding: 8px;
  font-size: 1rem;
  max-width: 300px;
  width: 100%;
}

#catalog-search-button {
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}
.product-card a,
.product-card button {
  display: block;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 10px 14px;
  margin-top: 10px;
  background-color: #87CEFA;
  color: #000;
  text-decoration: none;
  border: 2px solid #4FA3D1;
  border-bottom: 5px solid #357FA8;
  border-radius: 6px;
  font: inherit;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 0 #2F7196;
}

.product-card a:hover,
.product-card button:hover {
  background-color: #6CB6E8;
}

.product-card a:active,
.product-card button:active {
  border-bottom-width: 2px;
  box-shadow: 0 1px 0 #2F7196;
  transform: translateY(3px);
}
.catalog-product-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 2px solid #1f3556;
}

.catalog-product-table th,
.catalog-product-table td {
  padding: 10px 12px;
  border: 1px solid #b8b8b8;
  text-align: left;
  vertical-align: top;
}

.catalog-product-table th {
  background-color: #1f3556;
  color: white;
  font-weight: bold;
}

.catalog-product-table tbody tr:nth-child(even) {
  background-color: #f7f2ed;
}

.catalog-product-table tbody tr:hover {
  background-color: #dce6f3;
}

.catalog-product-table th:first-child,
.catalog-product-table td:first-child {
  width: 120px;
  white-space: nowrap;
}

.catalog-product-table th:nth-child(2),
.catalog-product-table td:nth-child(2) {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: break-word;
}
.catalog-product-table th:nth-child(3),
.catalog-product-table td:nth-child(3) {
  width: 768px;
  min-width: 768px;
  max-width: 768px;
  white-space: normal;
  overflow-wrap: break-word;
}
.catalog-product-table th:last-child,
.catalog-product-table td:last-child {
  width: 90px;
  white-space: nowrap;
  text-align: right;
}

.catalog-product-row {
  cursor: pointer;
}
.product-card a.button {
  display: block;
  width: 70%;
  margin: 10px auto 0;
  box-sizing: border-box;
  padding: 10px 14px;

  background-color: #87CEFA;
  color: #000;
  text-decoration: none;

  border: 2px solid #4FA3D1;
  border-bottom: 6px solid #2F7196;
  border-radius: 6px;

  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    0 3px 0 #245B78;

  font: inherit;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

.product-card a.button:hover {
  background-color: #6CB6E8;
}

.product-card a.button:active {
  border-bottom-width: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 0 #245B78;
  transform: translateY(4px);
}
.product-card > a.button {
  border: 2px solid #4fa3d1 !important;
  border-bottom: 6px solid #2f7196 !important;
  box-shadow: 0 4px 0 #245b78 !important;
  border-radius: 6px !important;
}

.product-card > a.button:active {
  border-bottom-width: 2px !important;
  box-shadow: 0 1px 0 #245b78 !important;
  transform: translateY(4px);
}
.catalog-grid-option {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-24px);
}

.catalog-grid-note {
  white-space: nowrap;
}

.catalog-select-label {
  display: inline-block;
  padding: 4px 10px;
  border: 2px outset #d9d9d9;
  border-radius: 3px;
  background-color: #e6e6e6;
  color: #000;
  font-weight: bold;
  line-height: 1.2;
  cursor: default;
}