/*
 * The rules of the edited stylesheet.css of the old local site that the theme pages use: a clean OC 4.1 has the stock
 * stylesheet.css (width 1170/1320, framed breadcrumbs, the discount badge without a place). Taken from it in its order
 * by the selectors the theme pages match (home, category, product, search, special, manufacturers, cart, checkout,
 * information, contact, sitemap, login, register, compare, 404, the account pages and the wish list with its empty
 * state); loaded right after stylesheet.css, where it was.
 */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #eb5858;
  --bs-btn-border-color: #eb5858;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #d94545;
  --bs-btn-hover-border-color: #d94545;
  --bs-btn-focus-shadow-rgb: 235, 88, 88;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c73838;
  --bs-btn-active-border-color: #c73838;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #eb5858;
  --bs-btn-disabled-border-color: #eb5858;
}

.btn-outline-primary {
  --bs-btn-color: #eb5858;
  --bs-btn-border-color: #eb5858;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #eb5858;
  --bs-btn-hover-border-color: #eb5858;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #d94545;
  --bs-btn-active-border-color: #d94545;
}

body {
  width: 100%;
  height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: #444;
}

legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

label {
  font-size: 12px;
  font-weight: normal;
}

button:focus {
  outline: none !important;
}

#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
}

#content, #column-left, #column-right {
  padding-bottom: 730px;
}

@media (min-width: 576px) {

  #content, #column-left, #column-right {
    padding-bottom: 400px;
  }

}

#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
}

@media (min-width: 992px) {

  #alert {
    width: 600px;
    margin-left: -300px;
  }

}

@media (min-width: 1140px) {

  #alert {
    width: 600px;
    margin-left: -300px;
  }

}

@media (min-width: 1320px) {

  #alert {
    width: 600px;
    margin-left: -300px;
  }

}

div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #F00;
  font-weight: bold;
}

.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}

.nav-tabs {
  margin-bottom: 15px;
}

.form-check .form-check-input {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {

  .col-form-label {
    text-align: right;
  }

}

footer {
  border: 1px solid #000000;
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 30px;
  background-color: #303030;
  border-top: 1px solid #ddd;
  color: #e2e2e2;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.breadcrumb {
  margin: 0 0 15px 0;
  padding: 8px 15px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  font-size: 13px;
}

.breadcrumb i {
  font-size: 12px;
}

.breadcrumb > li.breadcrumb-item {
  text-shadow: none;
  padding: 0;
  position: relative;
  white-space: nowrap;
}

.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
  color: #666;
  transition: color 0.2s;
}

.breadcrumb > li.breadcrumb-item > a:hover {
  color: #eb5858;
}

.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: none;
}

.breadcrumb > li.breadcrumb-item + li:before {
  content: "/";
  padding: 0 8px;
  color: #999;
}

header {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 15px 0;
}

.brand-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  flex: 0 0 150px;
  min-width: 150px;
}

.brand-item a {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.brand-item img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.brand-item .brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-top: 8px;
}

.brand-item:hover .brand-name {
  color: #eb5858;
}

.btn-outline-primary {
  color: #eb5858;
  border-color: #eb5858;
}

.btn-outline-primary:hover {
  background-color: #eb5858;
  border-color: #eb5858;
  color: #fff;
}

.product-module [class*="col-"],
.product-row [class*="col-"],
[class*="col-"].product-col {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.container {
  max-width: 1440px !important;
}

#common-home.container {
  max-width: 1440px !important;
}

@media (min-width: 1400px) {

  .container {
    max-width: 1440px !important;
  }

  #common-home.container {
    max-width: 1440px !important;
  }

}

#product-info .image {
  position: relative;
}

#product-info .discount-badge-main {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #eb5858;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  z-index: 5;
}

#product-info .product-tabs-top {
  border-bottom: 2px solid #dee2e6;
  margin-top: 20px;
}

#product-info .product-tabs-top .nav-link {
  font-weight: 600;
  color: #666;
  padding: 10px 15px;
  font-size: 14px;
}

#product-info .product-tabs-top .nav-link.active {
  color: #eb5858;
  border-bottom: 2px solid #eb5858;
}

#product-info .product-info-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

#product-info .product-info-right h1 {
  flex-shrink: 0;
  margin-bottom: 15px;
}

#product-info .product-tabs-top {
  flex-shrink: 0;
  margin-bottom: 0;
}

#product-info .row.mb-3 {
  position: relative;
}

#product-info .row.mb-3 > div[class*="col-"] {
  display: block;
}

#product-info .row.mb-3 > .col-sm-5 {
  display: block;
}

#product-info .row.mb-3 > .col-sm-7 {
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) {

  #product-info .row.mb-3 > .col-sm-5 {
    width: 41.66667%;
  }

  #product-info .row.mb-3 > .col-sm-7 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 58.33333%;
  }

}

#product-info .image.magnific-popup {
  display: block;
  position: relative;
}

#product-info .image.magnific-popup > a {
  display: block;
}

#product-info .image.magnific-popup > a > img {
  width: 100%;
  height: auto;
}

#product-info .tab-content-wrapper {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-right: 10px;
}

#product-info .tab-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

#product-info .tab-content-wrapper::-webkit-scrollbar {
  width: 6px;
}

#product-info .tab-content-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#product-info .tab-content-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

#product-info .tab-content-wrapper::-webkit-scrollbar-thumb:hover {
  background: #999;
}

#product-info .options-section {
  margin-top: 30px;
  clear: both;
  position: relative;
  z-index: 1;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 20px 0;
}

.option-item .image {
  position: relative;
  order: 1;
}

.option-item .image a {
  cursor: zoom-in;
}

.option-actions {
  padding: 10px 12px;
  order: 4;
  background: #fff;
}

@media (max-width: 768px) {

  .options-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

}

.wishlist-empty {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  margin-top: 30px;
}

.wishlist-empty .empty-icon {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 24px;
}

.wishlist-empty p {
  font-size: 18px;
  color: #666;
}

.btn-wishlist-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto;
  height: auto;
  background: none;
  border: none;
  padding: 0;
  color: #fff;
  display: block !important;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 10;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
}

.btn-wishlist-toggle:hover {
  transform: scale(1.15);
}

.btn-wishlist-toggle.active {
  color: rgba(235, 88, 88, 0.95);
  -webkit-text-stroke: 0;
}

@media (max-width: 768px) {

  #tab-description {
    position: relative;
  }

}

#product-category .form-select {
  border-color: #dee2e6;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#product-category .form-select:focus {
  border-color: #eb5858;
  box-shadow: 0 0 0 0.25rem rgba(235, 88, 88, 0.25);
}

#product-info .btn-primary {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
}

#product-info .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(235, 88, 88, 0.4);
}

#product-info .qty-plus,
#product-info .qty-minus,
#product-info #button-plus,
#product-info #button-minus {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
  transition: all 0.2s;
}

#product-info .qty-plus:hover,
#product-info .qty-minus:hover,
#product-info #button-plus:hover,
#product-info #button-minus:hover {
  background-color: #eb5858;
  border-color: #eb5858;
  color: #fff;
}

.option-item {
  transition: all 0.3s;
}

.option-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.add-to-cart-option {
  background-color: #eb5858;
  border-color: #eb5858;
  transition: all 0.3s;
}

.add-to-cart-option:hover {
  background-color: #d94545;
  border-color: #d94545;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(235, 88, 88, 0.4);
}

.btn-wishlist-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto;
  height: auto;
  background: none;
  border: none;
  padding: 0;
  color: #fff;
  display: block !important;
  font-size: 28px;
  z-index: 11;
  transition: all 0.3s;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
}

.btn-wishlist-toggle i {
  transition: color 0.3s;
}

.btn-wishlist-toggle:hover {
  transform: scale(1.15);
}

.btn-wishlist-toggle.active {
  color: #eb5858;
  -webkit-text-stroke: 0;
}

.pagination {
  justify-content: center;
  gap: 5px;
  margin: 20px 0;
}

.pagination .page-item .page-link {
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
  min-width: 40px;
  text-align: center;
}

.pagination .page-item .page-link:hover {
  background-color: #f8f9fa;
  border-color: #eb5858;
  color: #eb5858;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(235, 88, 88, 0.2);
}

.pagination .page-item.active .page-link {
  background-color: #eb5858;
  border-color: #eb5858;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(235, 88, 88, 0.3);
}

.pagination .page-item.active .page-link:hover {
  transform: none;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  font-weight: 600;
}

#account-wishlist .wishlist-header h1 {
  display: flex;
  align-items: center;
  color: #333;
  font-weight: 600;
  margin-bottom: 0;
}

#account-wishlist .wishlist-header h1 i {
  color: #eb5858;
  font-size: 32px;
}

#account-wishlist .wishlist-actions {
  text-align: center;
  padding: 30px 0;
  border-top: 2px solid #f8f9fa;
}

#account-wishlist .wishlist-actions .btn {
  min-width: 200px;
}

.wishlist-empty {
  text-align: center;
  padding: 80px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 40px 0;
}

.wishlist-empty .empty-icon {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.wishlist-empty .empty-icon i {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.wishlist-empty h3 {
  color: #666;
  font-weight: 600;
  margin-bottom: 10px;
}

.wishlist-empty .text-muted {
  font-size: 16px;
  margin-bottom: 20px;
}

#account-wishlist .row.g-3 {
  margin-top: 20px;
}

.product-col {
  padding-bottom: 15px;
}

@media (max-width: 575px) {

  .option-item .option-actions .add-to-cart-option,
  #product-info .option-actions .add-to-cart-option {
    padding: 6px 10px !important;
    font-size: 16px !important;
    line-height: 1.4;
  }

}
