// Yeti 3.3.7
// Bootswatch
// -----------------------------------------------------

$web-font-path: "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700&display=swap" !default;
@import url($web-font-path);

// Navbar =====================================================================

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000; /* kolor podobny do palety abStore */
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 2rem;
}

.navbar-links a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: #000000;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-actions button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #0056b3;
  background-color: #0056b3;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.navbar-actions button:hover {
  background-color: #ffffff;
}

// Buttons ====================================================================

.btn {
  padding: $padding-base-vertical $padding-base-horizontal;

  &-lg {
    padding: $padding-large-vertical $padding-large-horizontal;
  }

  &-sm {
    padding: $padding-small-vertical $padding-small-horizontal;
  }

  &-xs {
    padding: $padding-xs-vertical $padding-xs-horizontal;
  }
}

.cart-btn {

  .loyalty-button & {
    padding: 2px 23px;

    & .cart-point-btn-text {

      .text {
        display: block;
        font-size: 0.85em;
      }
      .spending-points {
        margin-top: -3px;
        display: block;
        text-transform: none;
      }
    }
  }
}

.abs-products-panel .abs-products-media .loyalty-button .cart-btn {
  padding: 1px 8px;
  min-width: auto;
}

.btn-group {

  .btn ~ .dropdown-toggle {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dropdown-menu {
    border-top-width: 0;
  }

  &.dropup .dropdown-menu {
    border-top-width: 1px;
    border-bottom-width: 0;
    margin-bottom: 0;
  }

  .dropdown-toggle {

    &.btn-default ~ .dropdown-menu {
      background-color: $000000;
      border-color: $000000;

      > li > a {
        color: $btn-default-color;
      }

      > li > a:hover {
        background-color: darken($btn-default-bg, 8%);
      }
    }

    &.btn-primary ~ .dropdown-menu {
      background-color: $btn-primary-bg;
      border-color: $btn-primary-border;

      > li > a {
        color: $btn-primary-color;
      }

      > li > a:hover {
        background-color: darken($btn-primary-bg, 8%);
      }
    }

    &.btn-success ~ .dropdown-menu {
      background-color: $btn-success-bg;
      border-color: $btn-success-border;

      > li > a {
        color: $btn-success-color;
      }

      > li > a:hover {
        background-color: darken($btn-success-bg, 8%);
      }
    }

    &.btn-info ~ .dropdown-menu {
      background-color: $btn-info-bg;
      border-color: $btn-info-border;

      > li > a {
        color: $btn-info-color;
      }

      > li > a:hover {
        background-color: darken($btn-info-bg, 8%);
      }
    }

    &.btn-warning ~ .dropdown-menu {
      background-color: $btn-warning-bg;
      border-color: $btn-warning-border;

      > li > a {
        color: $btn-warning-color;
      }

      > li > a:hover {
        background-color: darken($btn-warning-bg, 8%);
      }
    }

    &.btn-danger ~ .dropdown-menu {
      background-color: $btn-danger-bg;
      border-color: $btn-danger-border;

      > li > a {
        color: $btn-danger-color;
      }

      > li > a:hover {
        background-color: darken($btn-danger-bg, 8%);
      }
    }
  }
}

// Typography =================================================================

.lead {
  color: $gray;
}

cite {
  font-style: italic;
}

blockquote {
  border-left-width: 1px;
  color: $gray;

  &.pull-right {
    border-right-width: 1px;
  }

  small {
    font-size: $font-size-small;
    font-weight: 300;
  }
}

// Tables =====================================================================

table {
  font-size: $font-size-small;
}

// Forms ======================================================================

label,
.control-label,
.help-block,
.checkbox,
.radio {
  font-size: $font-size-small;
  font-weight: normal;
}

input[type="radio"],
input[type="checkbox"] {
  margin-top: 1px;
}

// Navs =======================================================================

.nav {
  .open > a,
  .open > a:hover,
  .open > a:focus {
    border-color: transparent;
    color: #fff;
  }
}

.nav-tabs {
  .caret {
    border-top-color: $text-color;
    border-bottom-color: $text-color;
  }
}

.nav-pills {
  font-weight: 300;
}

.breadcrumb {
  border: 1px solid $table-border-color;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 300;
  text-transform: uppercase;
}

.pagination {
  font-size: $font-size-small;
  font-weight: 300;
  color: $gray-light;

  > li {
    > a,
    > span {
      margin-left: 4px;
      color: $gray-light;
    }
  }

  > .active {
    > a,
    > span {
      color: #fff;
    }
  }

  > li,
  > li:first-child,
  > li:last-child {
    > a,
    > span {
      border-radius: 3px;
    }
  }

  &-lg > li > a,
  &-lg > li > span {
    padding-left: 22px;
    padding-right: 22px;
  }

  &-sm > li > a,
  &-sm > li > span {
    padding: 0 5px;
  }
}

.pager {
  font-size: $font-size-small;
  font-weight: 300;
  color: $gray-light;
}

.list-group {
  font-size: $font-size-small;
  font-weight: 300;
}

// Indicators =================================================================

.close {
  opacity: 0.4;
  text-decoration: none;
  text-shadow: none;

  &:hover,
  &:focus {
    opacity: 1;
  }
}

.alert {
  font-size: $font-size-small;
  font-weight: 300;

  .alert-link {
    font-weight: normal;
    color: #fff;
    text-decoration: underline;
  }
}

.label {
  padding-left: 1em;
  padding-right: 1em;
  border-radius: 0;
  font-weight: 300;

  &-default {
    background-color: $btn-default-bg;
    color: $btn-default-color;
  }
}

.badge {
  font-weight: 300;
}

// Progress bars ==============================================================

.progress {
  height: 22px;
  padding: 2px;
  background-color: #f6f6f6;
  border: 1px solid #ccc;
  @include box-shadow(none);
}

// Containers =================================================================

.dropdown {

  &-menu {
    padding: 0;
    margin-top: 0;
    font-size: $font-size-small;

    > li > a {
      padding: 12px 15px;
    }
  }

  &-header {
    padding-left: 15px;
    padding-right: 15px;
    font-size: 9px;
    text-transform: uppercase;
  }
}

.popover {
  font-size: 12px;
  font-weight: 300;
}

.panel {
  &-heading,
  &-footer {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
  }

  &-default {
    .close {
      color: $text-color;
    }
  }
}

.modal {
  .close {
    color: $text-color;
  }
}

// ABS Custom -------------------------------------------------

.btn {
  line-height: 19px;
}

.abs-search-options-links, .abs-header-menu-top nav > ul > li > a {
  font-size: small;
}

.abs-special-tabs-panel {
  background-color: #fff;
  border-top: 0;

  .nav-tabs > li {
    > a, a:hover, a:active, a:focus {
      border-width: 0;
      background-color: transparent;
    }
    > a:hover {
      color: $brand-primary;
    }

    &.active {
      > a {
        font-weight: bold;
        &:hover {
          background-color: transparent;
        }
      }
    }
  }
}

.abs-side-menu li.abs-slctd > a {
  background-color: #F5F5F5;
}

.abs-special-tabs-panel {
  background-color: $table-bg-accent;
}

.abs-item-price-box .abs-price-unit, .abs-item-price-box .abs-price-type, .abs-catalog-index {
  color: $gray;
}

a span.abs-items-count {
  opacity: 1.0;
}

.list-group-item .abs-list-label, .abs-attribute-table tr td:first-child {
  color: $gray !important;
}

.breadcrumb {
  background-color: #fff;
  border: 1px solid $gray-lighter;
}

.abs-item-price-box .abs-item-price-breakdown {
  color: $gray;
}

footer {
  a {
    color: $gray-light;
  }
}

#cart-box-content .abs-payment-delivery-panels span.abs-item-price-amount {
  opacity: 0.9;
}