/**
 * ITC4 Theme - Bootstrap 5 / OpenCart 4 compatible
 *
 * Brand colors:
 *   Maroon: #7a1a0c (primary) / #4a0000 (dark) / #af4933 (light)
 *   Blue:   #0b7cb4 / #005084 / #58abe6
 *   Yellow: #F3C30B / #EB9D15
 *   Font:   Open Sans
 */
:root {
  --itc-maroon: #7a1a0c;
  --itc-maroon-dark: #4a0000;
  --itc-maroon-light: #af4933;
  --itc-blue: #0b7cb4;
  --itc-blue-dark: #005084;
  --itc-blue-light: #58abe6;
  --itc-yellow: #f3c30b;
  --itc-yellow-dark: #eb9d15;
  --bs-primary: #7a1a0c;
  --bs-primary-rgb: 122, 26, 12;
  --bs-link-color: #7a1a0c;
  --bs-link-hover-color: #4a0000;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #666;
  font-size: 14px;
  line-height: 20px;
}

h1, h2, h3, h4, h5, h6 {
  color: #444;
}

a {
  color: var(--itc-maroon);
  text-decoration: none;
}
a:hover {
  color: var(--itc-maroon-dark);
  text-decoration: none;
}

/* ---- Top bar ---- */
#top {
  background-color: var(--itc-maroon-light);
  background-image: linear-gradient(to bottom, var(--itc-maroon-light), var(--itc-maroon));
  border-bottom: 2px solid var(--itc-yellow);
  padding: 6px 0;
  margin-bottom: 10px;
  min-height: 40px;
}
#top a,
#top .dropdown-toggle {
  color: #fff;
}
#top a:hover,
#top .dropdown-toggle:hover {
  color: var(--itc-yellow);
}

#top .list-inline-item > a, #top .list-inline-item .dropdown > a {
  color:#fff !important;
}

#top-logo {
  display: flex;
  align-items: center;
  min-height: 36px;
}

#top-logo img {
  max-height: 96px;
  width: auto;
}

.top-logo-text {
  color: #fff;
  font-weight: 700;
}

.top-logo-text:hover {
  color: var(--itc-yellow);
}

/* ---- Middle categories/search/cart bar ---- */
#itc-middle-bar {
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  box-shadow: inset 0 8px 10px -12px rgba(0, 0, 0, 0.6);
}

.itc-menu-wrap #menu.navbar {
  margin-bottom: 0;
}

.itc-middle-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.itc-nav-search .input-group,
.itc-nav-search .input-group.mb-3 {
  margin-bottom: 0 !important;
}

.itc-nav-search .form-control {
  width: 220px;
}

#search .form-control {
  height: 44px;
}
#search .btn {
  background-color: var(--itc-blue);
  border-color: var(--itc-blue-dark);
  color: #fff;
}
#search .btn:hover {
  background-color: var(--itc-blue-dark);
}

#cart > .btn,
#cart button.dropdown-toggle {
  background-color: var(--itc-maroon);
  background-image: linear-gradient(to bottom, var(--itc-maroon-light), var(--itc-maroon));
  border-color: var(--itc-maroon-dark);
  color: #fff;
}
#cart > .btn:hover {
  background-color: var(--itc-maroon-dark);
}

.itc-nav-cart {
  min-width: 190px;
}

.itc-nav-cart .dropdown > .btn,
.itc-nav-cart button.dropdown-toggle {
  width: 100%;
}

/* ---- Menu (navbar) ---- */
#menu.navbar {
  background-color: var(--itc-maroon-dark) !important;
  background-image: linear-gradient(to bottom, var(--itc-maroon-light), var(--itc-maroon-dark));
  border: 1px solid var(--itc-yellow);
  border-radius: 4px;
  min-height: 44px;
}
#menu .nav-link {
  color: #fff;
  font-weight: 600;
  padding: 10px 15px;
}
#menu .nav-link:hover,
#menu .nav-item.show .nav-link {
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--itc-yellow);
}
#menu #category {
  color: #fff;
  font-weight: 700;
  line-height: 44px;
  padding-left: 15px;
}
#menu .navbar-toggler {
  color: #fff;
  border-color: var(--itc-yellow);
}
#menu .dropdown-item:hover {
  background-color: var(--itc-maroon-light);
  color: #fff;
}

@media (max-width: 991.98px) {
  #top {
    margin-bottom: 8px;
  }

  #top-logo img {
    max-height: 28px;
  }

  #itc-middle-bar {
    padding-top: 8px;
  }

  .itc-middle-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .itc-nav-search .form-control {
    width: auto;
  }

  .itc-nav-cart {
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  #top-logo img {
    max-height: 24px;
  }
}

/* ---- Buttons ---- */
.btn-primary {
  --bs-btn-bg: var(--itc-maroon);
  --bs-btn-border-color: var(--itc-maroon-dark);
  --bs-btn-hover-bg: var(--itc-maroon-dark);
  --bs-btn-hover-border-color: var(--itc-maroon-dark);
  --bs-btn-active-bg: var(--itc-maroon-dark);
  --bs-btn-active-border-color: var(--itc-maroon-dark);
  background-image: linear-gradient(to bottom, var(--itc-maroon-light), var(--itc-maroon));
  color: #fff;
}
.btn-primary:hover {
  background-image: linear-gradient(to bottom, var(--itc-maroon), var(--itc-maroon-dark));
}
.btn-secondary,
.btn-light {
  --bs-btn-bg: var(--itc-blue);
  --bs-btn-border-color: var(--itc-blue-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--itc-blue-dark);
  --bs-btn-hover-border-color: var(--itc-blue-dark);
  --bs-btn-hover-color: #fff;
  background-image: linear-gradient(to bottom, var(--itc-blue-light), var(--itc-blue));
}
.btn-warning {
  --bs-btn-bg: var(--itc-yellow);
  --bs-btn-border-color: var(--itc-yellow-dark);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 15px;
  margin-bottom: 20px;
}

/* ---- Product thumb ---- */
.product-thumb {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-thumb:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.product-thumb .image a:hover {
  opacity: 0.85;
}
.product-thumb .content {
  padding: 0;
}
.product-thumb .description {
  padding: 10px 15px;
}
.product-thumb h4 {
  font-weight: bold;
  font-size: 15px;
}
.product-thumb .price {
  color: #444;
  font-weight: 600;
}
.product-thumb .price-old {
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}
.product-thumb .price-tax {
  color: #999;
  font-size: 12px;
  display: block;
  font-weight: 400;
}
.product-thumb .button {
  display: flex;
  border-top: 1px solid #ddd;
}
.product-thumb .button button {
  flex: 1;
  border: none;
  border-radius: 0;
  background-color: var(--itc-maroon-light);
  color: #fff;
  line-height: 38px;
  font-weight: bold;
  text-transform: uppercase;
}
.product-thumb .button button + button {
  flex: 0 0 20%;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.product-thumb .button button:hover {
  background-color: var(--itc-maroon-dark);
  color: #fff;
}

/* ---- Ratings ---- */
.rating .fa-star {
  color: #fc0;
}
.rating .fa-star.fa-regular,
.rating .fa-regular.fa-star {
  color: #999;
}

/* ---- Footer ---- */
footer {
  margin-top: 30px;
  padding-top: 30px;
  background-color: var(--itc-maroon-dark);
  border-top: 2px solid var(--itc-yellow);
  color: #e2e2e2;
}
footer h5 {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}
footer a {
  color: #ccc;
}
footer a:hover {
  color: #fff;
}
footer hr {
  border-top: 1px solid #666;
}

/* ---- Content ---- */
#content {
  min-height: 600px;
}
