body:has(.product-page) {
  background: #f5f6f8;
}

body:has(.product-page) .navbar {
  background: #fff !important;
  border-bottom: 1px solid #e9ecef;
}

.product-page .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.product-page .section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #e5e7eb;
}

.product-page .table {
  border-color: transparent;
  margin-left: 1rem;
  margin-right: 1rem;
  width: calc(100% - 2rem);
}

.product-page .table th,
.product-page .table td {
  border-color: #f0f2f5;
}

.product-page .table thead.table-light th {
  background: transparent;
  border-bottom: 1px solid #eef0f3;
  font-weight: 500;
  font-size: 0.78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 10px;
  padding-bottom: 10px;
}

.product-page .table tbody tr:last-child td {
  border-bottom: none;
}

@media (min-width: 992px) {
  .h-100-desktop {
    height: 100% !important;
  }
}

.product-page {
  .price-amount {
    font-weight: 700;
    font-size: 1.15rem;

    &.success {
      color: #84b31c;
    }

    &.info {
      color: #4ac7ef;
    }

    &.warn {
      color: #fa9512;
    }

    &.muted {
      color: #999999;
    }
  }

  .widget-label-text {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid transparent;
    line-height: 1.2;

    &.muted {
      background: #eee;
      border-color: #ddd;
      color: #555;
    }

    &.info {
      background: #edf9ff;
      border-color: #4ac7ef;
      color: #001321;
    }

    &.success {
      background: #def4a6;
      border-color: #9fcc3b;
      color: #2c4700;
    }

    &.warn {
      background: #fff5e3;
      border-color: #ffca69;
      color: #814d00;
    }
  }

  .w-140 {
    width: 140px;
  }

  .w-120 {
    width: 120px;
  }

  .product-img-main-sm {
    max-height: 72px;
    width: auto;
    object-fit: contain;
  }

  .no-img-placeholder-sm {
    width: 90px;
    height: 72px;
  }

  .logo-img {
    max-height: 30px;
    width: auto;
  }

  .logo-img-sm {
    max-height: 24px;
  }

  .store-logo-sm {
    max-height: 24px;
    width: auto;
    object-fit: contain;
  }

  .store-link-section {
    .store-url-link {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.4;
      max-height: calc(1.4em * 2);
      word-break: break-all;
    }
  }

  .similar-img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
  }

  .hist-graph {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    display: flex;
    gap: .5rem;
    margin-bottom: 31px;

    .scaleY {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      color: #666;
      font-size: 12px;

      > div {
        text-align: right;
      }
    }

    .bars {
      background-image: repeating-linear-gradient(#ddd 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, #ddd 0 1px, transparent 1px 100%);
      background-size: 52px 25px;
      background-position: left bottom;
      flex-grow: 1;
      display: flex;
      flex-direction: row;
      align-items: flex-end;
      height: 150px;
      position: relative;

      .bar {
        flex-grow: 1;
        position: relative;
        height: 100%;
        display: flex;
        align-items: flex-end;

        .bar-fill {
          width: 100%;
          background: rgba(80, 179, 234, 0.82);
          position: relative;
          transition: box-shadow .08s ease-in-out;

          .point {
            width: 6px;
            height: 6px;
            background: #33b7e1;
            border: 1px solid #0789b8;
            border-radius: 10px;
            position: absolute;
            top: -4px;
            left: -4px;

            &.hide {
              display: none;
            }
          }
        }

        @media (hover: hover) and (pointer: fine) {
          &:hover {
            .bar-fill {
              box-shadow: -1px 0 0 0 #333;

              .point {
                display: block;
                border-color: #333;
                background: rgba(0, 0, 0, 0.7);
                z-index: 1;
              }
            }
          }
        }

        &.hover {
          .bar-fill {
            box-shadow: -1px 0 0 0 #333;

            .point {
              display: block;
              border-color: #333;
              background: rgba(0, 0, 0, 0.7);
              z-index: 1;
            }
          }
        }
      }

      .cursor-tooltip {
        display: none;
        position: fixed;
        font-size: 12px;
        line-height: 13px;
        padding: 3px 5px;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        z-index: 9999;
        white-space: nowrap;
        text-align: left;
        border-radius: 5px;
        pointer-events: none;

        .date {
          color: #ccc;
        }

        .price {
          font-weight: bold;
        }
      }

      .legend-x {
        font-size: 12px;
        color: #666;
        display: flex;
        justify-content: space-between;
        position: absolute;
        margin-top: 5px;
        top: 100%;
        left: 0;
        right: 0;
      }
    }

  }

  .faq-item {
    padding: 0.9rem 0;
    margin-bottom: 0;
    background: transparent;
    border-bottom: 1px solid #f0f2f5;

    &:first-child {
      padding-top: 0;
    }

    &:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .faq-question {
      font-weight: 600;
      font-size: 0.95rem;
      margin-bottom: 0.3rem;
    }

    .faq-answer {
      color: #6c757d;
      margin: 0;
      font-size: 0.9rem;
      line-height: 1.5;
    }
  }

  .extension-cta-small {
    .extension-banner {
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 8px 12px;
      font-size: 0.75rem;
      color: #5783b3;
      display: flex;
      align-items: center;
      gap: 6px;
      position: relative;
      overflow: hidden;
      animation: slideIn 0.8s ease-out;

      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
      }

      &:hover {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-color: #4ac7ef;
        transform: scale(1.02);
        transition: all 0.2s ease;
      }

      i.bi-puzzle-fill {
        color: #4ac7ef;
        font-size: 0.8rem;
        animation: pulse 2s infinite;
      }

      .extension-text {
        flex: 1;
        line-height: 1.2;
      }

      .btn-mini {
        width: 20px;
        height: 20px;
        padding: 0;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        transition: all 0.2s ease;
        text-decoration: none;

        i {
          font-size: 0.65rem;
        }

        &:hover {
          transform: scale(1.1);
        }

        &.btn-chrome {
          background: #4285f4;
          color: white;
          border: 1px solid #3367d6;
        }

        &.btn-firefox {
          background: #ff9500;
          color: white;
          border: 1px solid #e67700;
        }

        &.btn-edge {
          background: #0078d4;
          color: white;
          border: 1px solid #106ebe;
        }

        &.btn-opera {
          background: #ff1b2d;
          color: white;
          border: 1px solid #cc1528;
        }

        &.btn-default {
          background: #84b31c;
          color: white;
          border: 1px solid #6a9016;
        }
      }
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes shimmer {
      0% {
        left: -100%;
      }
      100% {
        left: 100%;
      }
    }

    @keyframes pulse {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0.6;
      }
    }
  }
}

.search-card {
  border: none;
  border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.15s;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.search-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.search-card .card-img-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 16px;
}
.search-card .card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.search-card .card-img-wrap-mobile {
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 12px;
}
.search-card .card-img-wrap-mobile img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}
.search-card .card-body {
  padding: 16px;
}
.search-card .product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
}
.search-card .store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f0f2f5;
  font-size: 0.75rem;
  color: #6c757d;
}
.search-card .store-badge img {
  max-height: 14px;
  width: auto;
}
.search-card .price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
}
.search-card .price-tag sup {
  font-size: 0.7rem;
  font-weight: 600;
}
.search-card .checked-text {
  font-size: 0.7rem;
}
.search-card .card-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.search-card .card-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 8px;
}

@keyframes hl {
  0% {
    box-shadow: 0 0 0 7px #ffca69 inset;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) inset;
  }
}
