@charset "UTF-8";
:root {
  /* Kurca Orange Theme - Refined & Professional */
  --primary-color: #9A4618; /* A deep, accessible burnt orange for text and links (WCAG AA compliant) */
  --primary-hover-color: #853d15; /* Darker for hover */
  --accent-color: #9A4618; /* A vibrant, accessible orange for accents and badges (WCAG AA compliant) */
  --accent-hover-color: var(--primary-color); /* Use the primary color for a cohesive hover effect */
  --background-color: #fffcf7; /* A cleaner, very light warm off-white */
  --card-background-color: #ffffff;
  --text-color: #544235; /* A more neutral, dark brown-gray for text */
  --text-heading-color: #423429; /* Darker for headings */
  --text-muted-color: #75665B; /* Darker muted brown-gray for accessibility (WCAG AA compliant) */
  --border-color: #f7efe5; /* A soft, warm border to match the new background */
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(154, 70, 24, 0.1); /* Shadow based on new accent color */
  --box-shadow-hover: 0 6px 16px rgba(154, 70, 24, 0.18);
  /* Product Detail variables now inherit from the base theme for consistency */
  --product-detail-card-background: var(--card-background-color);
  --product-detail-border-color: var(--border-color);
  --product-detail-text-color: var(--text-color);
  --product-detail-muted-text-color: var(--text-muted-color);
  --product-detail-accent-color: var(--accent-color);
  --product-detail-primary-color: var(--primary-color);
  --product-detail-border-radius: var(--border-radius);
  --product-detail-box-shadow: var(--box-shadow);
  --product-detail-spacing-unit: 1rem;
  --contrast-color: #d9248f; /* Vibrant magenta to contrast orange */
  --contrast-hover-color: #b81e79; /* Darker magenta on hover */
  /* Page/Section specific colors */
  --color-discounts: #a81c1c; /* A strong, dark red */
  --color-trending: #945304; /* A deep, rich orange-brown */
  --color-coupons: #15793e; /* A classic dark forest green */
  --color-articles: #1a5183; /* A reliable dark navy blue */
  /* Market-specific accent color for components like category lists */
  --market-accent-color: var(--accent-color);
}

:root {
  /*
   * ==================================================================
   * Typographic Scale
   * ==================================================================
   * A consistent, ratio-based scale for font sizes. This ensures
   * visual harmony and makes the UI easier to read and scan.
   * Base size is 1rem (typically 16px).
   */
  --font-size-base: 0.9375rem;
  --font-size-sm: 0.8125rem;
  --font-size-xs: 0.75rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.125rem;
  --font-size-h3: 1.375rem;
  --font-size-h2: 1.625rem;
  --font-size-h1: 1.875rem;
  --font-size-display: 2.25rem;
  /*
   * ==================================================================
   * Font Weights
   * ==================================================================
   */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  /*
   * ==================================================================
   * Line Heights
   * ==================================================================
   */
  --line-height-base: 1.6;
  --line-height-heading: 1.3;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-normal);
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--text-heading-color, var(--text-color));
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

/* Base styles for content-section */
.content-section {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 0px auto;
  max-width: 1200px; /* Constrain width for non-wide pages */
  width: 100%;
  box-sizing: border-box;
}

/* Wide layout for homepage */
.content-section--wide {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* Heading styles */
.content-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1e1e2f;
}

/* Paragraph styles for text-heavy pages */
.content-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1rem;
}

/* Form styles for form-heavy pages */
.content-section .js-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Ensure table fits within content-section */
.content-section .custom-table {
  width: 100%;
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-section {
    padding: 1rem;
    margin: 1rem auto;
  }
  .content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .content-section p {
    font-size: 0.9375rem;
  }
}
@media (max-width: 480px) {
  .content-section h2 {
    font-size: 1.25rem;
  }
  .content-section p {
    font-size: 0.875rem;
  }
}
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  z-index: 9999;
  background: #222;
}
#cookie-banner button {
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 15px;
  background: #2A67B2;
  font-weight: 500;
}

.market-cz-alt #cookie-banner {
  background: #333333;
}
.market-cz-alt #cookie-banner button {
  background: #9A4618;
}

.site-footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  border-top: 3px solid var(--primary-color);
}
.site-footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer .footer-copyright {
  color: #adb5bd;
}
.site-footer .footer-links {
  display: flex;
  gap: 1.5rem;
}
.site-footer .footer-links a {
  color: #f8f9fa;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
.site-footer .footer-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .site-footer .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

.filter-bar {
  background-color: var(--card-background-color);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.filter-bar input[type=search],
.filter-bar select {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  flex-grow: 1;
}

.filter-bar input[type=search] {
  min-width: 250px;
}

.filter-bar button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.filter-bar button:hover {
  background-color: var(--primary-hover-color);
}

.filter-bar__browse-all-btn {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.filter-bar__browse-all-btn:hover {
  background-color: #218838;
}

/* Site Header Styles */
.site-header {
  background-color: var(--card-background-color);
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.site-header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Use a slightly larger gap for better separation */
  width: 90%;
  max-width: 1320px;
  margin: 0 auto; /* Padding is redundant with width: 90% */
  gap: 0.5rem;
}

.site-header__branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.site-header__logo-img {
  height: 77px; /* Desktop logo height */
  width: auto;
  margin-right: 0.5rem; /* Was 10px */
  /* vertical-align is not needed on a flex item */
}

.site-header__logo a {
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-header__logo a span {
  font-weight: 400;
  color: var(--text-color);
}

.site-header__tagline {
  font-size: 0.85rem;
  color: var(--text-muted-color);
  margin-top: -2px;
  margin-bottom: 0;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE 10+ and Edge */
  user-select: none; /* Standard syntax */
}

.site-header__nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-header__nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}
.site-header__nav a:hover, .site-header__nav a.active {
  color: var(--primary-color);
}

.site-header__main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-header__search-form {
  display: flex;
  align-items: center;
  position: relative; /* Needed for absolute positioning of suggestions */
  width: 100%;
  max-width: 500px; /* Prevent search from getting too wide */
}
.site-header__search-form input[type=search] {
  padding: 0.625rem 1rem; /* Was 10px 15px */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
  flex-grow: 1;
  min-width: 200px; /* Minimum width for the search input */
}
.site-header__search-form input[type=search]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color-translucent, rgba(45, 156, 219, 0.3));
}
.site-header__search-form button {
  padding: 0.625rem 1.25rem; /* Was 10px 20px */
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  border-left: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.site-header__search-form button:hover {
  background-color: var(--primary-hover-color);
}

.site-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-header__actions .btn {
  padding: 0.5rem 1.125rem; /* Was 8px 18px */
  text-decoration: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  /* Add flex properties to align icon and text */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-header__actions .btn-login, .site-header__actions .btn-logout {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.site-header__actions .btn-login:hover, .site-header__actions .btn-logout:hover {
  background-color: var(--primary-color);
  color: white;
}
.site-header__actions .btn-register, .site-header__actions .btn-account {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}
.site-header__actions .btn-register:hover, .site-header__actions .btn-account:hover {
  background-color: var(--primary-hover-color);
  border-color: var(--primary-hover-color);
}

/* Responsive adjustments for header */
/* Use a wider breakpoint to prevent crowding on tablets */
@media (max-width: 1024px) {
  .site-header {
    position: static;
  }
  .site-header__container {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; /* Vertically align logo and actions button */
  }
  .site-header__branding {
    order: 1;
  }
  .site-header__logo-img {
    height: 40px; /* Revert to smaller size on mobile */
  }
  .site-header__logo a {
    justify-content: flex-start;
  }
  .site-header__tagline {
    display: none;
  }
  .site-header__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
  .site-header__main-content {
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }
  .site-header__actions {
    order: 2;
  }
  .site-header__actions .btn span {
    /* Hide text on mobile to save space, leaving only the icon */
    display: none;
  }
  .site-header__actions .btn {
    padding: 0.6rem;
  }
  .site-header__actions { /* Make buttons more square for icon-only */ }
}
.category-header {
  margin-bottom: 1.25rem;
}
.category-header__title {
  font-size: var(--font-size-h1);
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}
.category-header__description {
  font-size: var(--font-size-base);
  color: var(--text-muted-color);
}

.active-filters-display {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background-color: var(--accent-background-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.active-filters-display__label {
  margin-right: 10px;
  color: var(--text-color);
  font-weight: bold;
}
.active-filters-display__pill {
  background-color: var(--primary-color);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
}
.active-filters-display__pill-remove {
  margin-left: 8px;
  color: white !important;
  text-decoration: none;
  font-weight: bold;
  line-height: 1;
  opacity: 0.7;
}
.active-filters-display__pill-remove:hover {
  opacity: 1;
}
.active-filters-display__clear-all {
  margin-left: auto;
  color: var(--text-muted-color);
  text-decoration: none;
  font-size: var(--font-size-sm);
}
.active-filters-display__clear-all:hover {
  text-decoration: underline;
}

.category-content-wrapper {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
@media (max-width: 991.98px) {
  .category-content-wrapper {
    flex-direction: column;
    gap: 1.25rem;
  }
}

.filters-column {
  flex: 0 0 280px;
}
@media (max-width: 991.98px) {
  .filters-column {
    flex-basis: auto;
    width: 100%;
  }
}

.filters-section {
  padding: 1.25rem;
  background-color: var(--card-background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.filters-section__title {
  font-size: var(--font-size-h3);
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.filter-group {
  margin-bottom: 1.25rem;
}
.filter-group__title {
  font-size: var(--font-size-lg);
  margin-bottom: 10px;
  color: var(--text-color);
}
.filter-group__options-scrollable {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--border-radius);
}
.filter-group__option-label {
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}
.filter-group__option-label input[type=checkbox] {
  margin-right: 5px;
  accent-color: var(--primary-color);
}
.filter-group__option-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.filter-group__option-item {
  margin-bottom: 5px;
}
.filter-group__option-link {
  color: var(--primary-color);
  text-decoration: none;
}
.filter-group__option-link:hover, .filter-group__option-link--active {
  text-decoration: underline;
}
.filter-group__option-link--active {
  font-weight: bold;
}

.filters-actions {
  margin-top: 1.25rem;
}
.filters-actions__clear-link {
  color: var(--text-muted-color);
  text-decoration: none;
  font-size: var(--font-size-sm);
}
.filters-actions__clear-link:hover {
  text-decoration: underline;
}

.products-column {
  flex: 1;
  min-width: 0;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.products-header__title {
  font-size: var(--font-size-h2);
  margin: 0;
  color: var(--text-color);
}
.products-header__count {
  color: var(--text-muted-color);
  font-size: var(--font-size-sm);
}

.sort-options-wrapper {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.sort-options-wrapper label {
  margin-right: 8px;
  font-size: var(--font-size-sm);
  color: var(--text-muted-color);
}
.sort-options-wrapper select {
  padding: 8px 10px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--card-background-color);
  color: var(--text-color);
  font-size: var(--font-size-sm);
}

.category-message {
  text-align: center;
  color: var(--text-muted-color);
  padding: 30px 0;
  background-color: var(--card-background-color);
  border-radius: var(--border-radius);
  margin-top: 20px;
}
.category-message--prominent {
  font-size: var(--font-size-lg);
  padding: 40px 0;
}
.category-message--subtle {
  font-size: var(--font-size-base);
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  list-style: none;
  display: none;
  position: absolute;
  padding-left: 0;
  background-color: var(--card-background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  min-width: 12rem;
  z-index: 1001;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  clear: both;
  font-weight: 400;
  color: var(--text-color);
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover, .dropdown-item:focus {
  color: var(--primary-color);
  background-color: var(--background-color);
  text-decoration: none;
}
.dropdown-item.disabled, .dropdown-item:disabled {
  color: var(--text-muted-color);
  pointer-events: none;
  background-color: transparent;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .dropdown {
    position: static;
  }
  .dropdown-menu {
    top: 60px;
    left: 0;
    width: 100vw;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
/*
 * Alerts
 *
 * A unified, accessible component for site-wide notifications.
 * Replaces flash_message.scss, error_messages.scss, and components/alert.scss.
 *
 * Usage:
 * <div class="alert alert--success" role="alert">
 *   <span>Your profile was updated successfully!</span>
 *   <button class="alert__close" aria-label="Dismiss message">&times;</button>
 * </div>
 */
.alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius, 8px);
  font-size: 1rem;
  font-weight: 500;
}
.alert--success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}
.alert--error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}
.alert--warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}
.alert--info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.alert-heading {
  color: inherit;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.alert:has(.alert-heading) {
  display: block;
}

.alert p {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.alert p:last-child {
  margin-bottom: 0;
}

.alert hr {
  border-top: 1px solid; /* Let the color be inherited */
  opacity: 0.25;
  margin: 1rem 0;
}

.alert__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 0 0 0 1.5rem;
}
.alert__close:hover {
  opacity: 1;
}

/* Shared button styles */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover-color);
}

.btn-secondary {
  background: var(--text-muted-color);
  color: white;
}

.btn-secondary:hover {
  background: var(--text-color);
}

.autocomplete-static-links-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}

.static-suggestion.autocomplete-suggestion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  min-height: 110px;
}
.static-suggestion.autocomplete-suggestion:hover {
  background-color: var(--card-background-color);
  border-color: var(--accent-color);
}
.static-suggestion.autocomplete-suggestion .title {
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
  margin-top: auto;
  color: var(--text-color);
  transition: color 0.2s ease;
}
.static-suggestion.autocomplete-suggestion:hover .title {
  color: var(--accent-color);
}

.static-suggestion__icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background-color: var(--text-muted-color);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.static-suggestion__icon-wrapper i {
  font-size: 1.75rem;
  color: #fff;
}

.static-suggestion--fire .static-suggestion__icon-wrapper {
  background-color: #e74c3c;
}

.static-suggestion--piggy-bank .static-suggestion__icon-wrapper {
  background-color: #3498db;
}

.static-suggestion--tags .static-suggestion__icon-wrapper {
  background-color: #9b59b6;
}

.static-suggestion--book-open .static-suggestion__icon-wrapper {
  background-color: #2ecc71;
}

.static-suggestion.autocomplete-suggestion:hover .static-suggestion__icon-wrapper {
  transform: scale(1.1);
  background-color: var(--accent-color);
}

#homepageSearchForm {
  position: relative;
  z-index: 999;
}

#autocompleteSuggestions {
  display: none;
  position: absolute;
  border: 1px solid var(--border-color);
  border-top: none;
  z-index: 999;
  top: 100%; /* Position below the input */
  left: 0;
  background-color: var(--card-background-color);
  box-shadow: var(--box-shadow);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  max-height: 450px;
  overflow-y: auto;
  min-width: 100%;
  width: max-content;
  max-width: min(700px, 95vw);
}

#autocompleteSuggestions.is-visible {
  display: block;
}

#autocomplete-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  display: none;
}

#autocomplete-overlay.is-visible {
  display: block;
}

body.autocomplete-is-open {
  overflow: hidden;
}

.autocomplete-header {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted-color);
  background-color: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.autocomplete-suggestion {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}
.autocomplete-suggestion.highlighted, .autocomplete-suggestion:hover {
  background-color: var(--accent-color-subtle, #f0f2f5);
  color: var(--accent-color-dark, var(--text-color));
}
.autocomplete-suggestion img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: 4px;
}
.autocomplete-suggestion .title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 12px;
}
.autocomplete-suggestion .price {
  font-weight: 600;
  color: var(--primary-color);
  flex-shrink: 0;
}
.autocomplete-suggestion .price .price-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}
.autocomplete-suggestion .price .price-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.autocomplete-suggestion .price .sale-price {
  font-weight: 700;
  color: var(--danger-color, #e53e3e);
}
.autocomplete-suggestion .price .original-price {
  font-size: 0.8em;
  color: var(--text-muted-color);
  text-decoration: line-through;
}
.autocomplete-suggestion .price .discount-badge {
  background-color: var(--danger-color, #e53e3e);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--border-radius-sm, 3px);
  font-size: 0.75em;
  font-weight: 700;
  white-space: nowrap;
}

.trending-suggestion .bi-arrow-up-right {
  margin-right: 10px;
  color: #6c757d;
  flex-shrink: 0;
}

.flash-messages-container {
  z-index: 1050; /* High z-index to appear above other content */
}

.flash-message {
  position: relative;
  padding: 1rem 2.5rem 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: black;
  font-weight: 500;
  animation: fadeInRight 0.4s ease-out;
}

.flash-close-btn {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
  font-weight: bold;
}

.flash-close-btn:hover {
  opacity: 1;
}

.flash-success {
  background-color: #28a745;
  border-color: #23923d;
}

.flash-error {
  background-color: #dc3545;
  border-color: #c82333;
}

.flash-info {
  background-color: #17a2b8;
  border-color: #1591a5;
}

.flash-warning {
  background-color: #ffc107;
  border-color: #e0a800;
  color: #212529;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.homepage-hero {
  background: hsla(from var(--primary-color) h s l/0.05);
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color, #e9ecef);
}

.homepage-hero__grid {
  display: grid;
  grid-template-areas: "main aside";
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 992px) {
  .homepage-hero__grid {
    grid-template-areas: "main" "aside";
    grid-template-columns: 1fr;
  }
}

.homepage-hero__main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.homepage-hero__main .trending-products-section {
  padding: 0;
  margin: 0;
  background: none;
  animation: none;
}
.homepage-hero__main .trending-products-section::after {
  content: none;
}

.homepage-hero__aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
}
@media (min-width: 992px) {
  .homepage-hero__aside {
    border-left: 1px solid var(--border-color, #e9ecef);
    padding-left: 1rem;
  }
}
.homepage-hero__aside .btn-view-all-coupons {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  text-align: center;
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  background-color: hsla(from var(--primary-color) h s l/0.1);
  border-radius: var(--border-radius);
  transition: background-color 0.2s, color 0.2s;
}
.homepage-hero__aside .btn-view-all-coupons:hover {
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

.homepage-hero .trending-products-section__title,
.homepage-hero .hero-aside__title {
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

body { /* Fallback background color in case the image doesn't load */
  background-color: var(--background-color);
  /*
   * Applies a semi-transparent background image directly to the body.
   * A linear-gradient overlay is used to control the image's visibility
   * without affecting the opacity of the page's content (text, elements).
   */
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url("/image/background.webp");
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1320px;
  margin: 1rem auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 1rem;
  }
}
@media (max-width: 768px) {
  .container {
    margin: 0.625rem auto; /* 10px, reduced vertical margin for mobile */
    padding: 0 0.75rem; /* Reduced horizontal padding for mobile */
  }
}
/* Refactored styles for category sections */
.category-section {
  margin-bottom: 2.5rem;
}

.category-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-section__title {
  font-size: var(--font-size-h2);
  color: var(--text-heading-color);
  margin: 0;
  padding: 0;
  border-bottom: none;
}

/* "View all in category" button */
.category-section__view-all-btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.category-section__view-all-btn:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-2px);
}

/* Modernized Styles for Root Categories Section */
.root-categories-section {
  background-color: var(--card-background-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 3rem;
}

.root-categories-section__title {
  font-size: var(--font-size-h3);
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-heading-color);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.root-categories-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.root-categories-section__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease-in-out;
}

.root-categories-section__item a:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center; /* Center pagination block */
  padding-left: 0;
  list-style: none;
  border-radius: var(--border-radius);
  margin-top: 2rem; /* Space above pagination (was 30px) */
  margin-bottom: 1.5rem; /* Space below pagination (was 20px) */
}

.page-item {
  margin: 0 3px; /* Spacing between page items */
}

.page-item .page-link {
  position: relative;
  display: block;
  padding: 0.65rem 0.95rem; /* Slightly adjusted padding */
  line-height: 1.25;
  color: var(--primary-color);
  background-color: var(--card-background-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
  border-radius: var(--border-radius); /* Apply border-radius to links */
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.page-item .page-link:hover {
  z-index: 2;
  color: var(--primary-hover-color);
  background-color: #e9ecef; /* Light hover background */
  border-color: #dee2e6;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
}

.page-item.disabled .page-link {
  color: var(--text-muted-color);
  pointer-events: none;
  cursor: auto;
  background-color: var(--card-background-color);
  border-color: var(--border-color);
}

.page-link .sr-only {
  /* Screen reader only text */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-container {
  padding: 4rem 2rem;
  background: var(--card-background-color);
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  box-sizing: border-box;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.form-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  color: var(--text-color);
  box-sizing: border-box;
}

.form-container input[type=radio],
.form-container input[type=checkbox] {
  width: auto;
  margin-right: 0.5rem;
  display: inline-block;
}

.form-container .radio-group,
.form-container .checkbox-group {
  margin-bottom: 1.5rem;
}

.form-container .radio-group label,
.form-container .checkbox-group label {
  display: inline-block;
  margin-right: 1rem;
}

.form-container .button-container {
  text-align: center;
}

.form-container button {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-container button:hover {
  background-color: var(--primary-hover-color);
}

.row-with-button-on-right-side {
  display: grid;
  grid-template-columns: auto 180px;
  grid-column-gap: 10px;
}
.row-with-button-on-right-side .action-button {
  float: right;
  text-align: right;
}

.features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.features li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border-radius: var(--border-radius);
  background-color: var(--card-background-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--box-shadow);
}
.features li a:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
  color: var(--market-accent-color);
  border-color: hsla(from var(--market-accent-color) h s l/0.5);
}
.features li a::before {
  font-size: 1.75rem;
  line-height: 1;
  display: block;
  background-color: hsla(from var(--market-accent-color) h s l/0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  transition: background-color 0.2s ease;
}
.features li a:hover::before {
  background-color: hsla(from var(--market-accent-color) h s l/0.2);
}

.features li:nth-child(1) a::before {
  content: "⚖️";
}

.features li:nth-child(2) a::before {
  content: "✅";
}

.features li:nth-child(3) a::before {
  content: "💰";
}

.features li:nth-child(4) a::before {
  content: "🚫";
}

@media (max-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .features li a {
    padding: 0.75rem 0.25rem;
    font-size: 0.85rem;
  }
}
/* --- Newsletter Section --- */
.newsletter-section {
  background-color: var(--background-color);
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--card-background-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.newsletter-box h3 {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.newsletter-box p {
  color: var(--text-muted-color);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input[type=email] {
  flex-grow: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form input[type=email]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px hsla(from var(--primary-color) h s l/0.2);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: var(--primary-hover-color);
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
}
.featured-products-section {
  padding: 2.5rem 0;
  margin-top: 2rem;
  background-color: var(--background-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.featured-products-section .section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  border-bottom: none;
}
.featured-products-section .section-subtitle {
  text-align: center;
  color: var(--text-muted-color);
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.article-grid,
.article-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background-color: var(--card-background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-5px);
}
.article-card__image-link {
  display: block;
  aspect-ratio: 4/3;
  background-color: #f0f0f0;
}
.article-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card__content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-card__category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.article-card__category a {
  color: var(--market-accent-color);
  text-decoration: none;
}
.article-card__category a:hover {
  text-decoration: underline;
}
.article-card__title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}
.article-card__title a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease;
}
.article-card__title a:hover {
  color: var(--market-accent-color);
}
.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted-color);
  line-height: 1.5;
  flex-grow: 1;
}
.article-card__excerpt p {
  margin: 0 0 1rem 0;
}
.article-card__excerpt p:last-child {
  margin-bottom: 0;
}
.article-card__meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted-color);
}
.article-card__actions {
  padding: 0 1rem 1rem 1rem;
}

@media (max-width: 768px) {
  .article-grid,
  .article-list-grid {
    gap: 0.75rem;
  }
  .article-card {
    flex-direction: row;
    align-items: center;
    margin-right: 10px;
  }
  .article-card__image-link {
    flex: 0 0 100px;
    aspect-ratio: 1/1;
  }
  .article-card__content {
    padding: 0.5rem 1rem;
  }
  .article-card__excerpt, .article-card__actions, .article-card__meta {
    display: none;
  }
}
/* A Selection of Our Partners Section */
.pinned-datasources-section {
  margin-bottom: 2.5rem;
  margin-top: 2.5rem;
}

.datasources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.datasource-item {
  display: flex;
  flex-direction: column;
  background-color: var(--card-background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  overflow: hidden;
  height: 100%;
}

.datasource-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
}

.datasource-item__content {
  flex-grow: 1;
}

.datasource-item__main-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.datasource-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 1rem;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.datasource-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.datasource-logo-placeholder {
  font-weight: 600;
  color: var(--text-muted-color);
  text-align: center;
}

.datasource-info {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.datasource-info__name {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 600;
}

.datasource-product-count {
  font-size: 0.9rem;
  color: var(--text-muted-color);
  margin-top: auto;
}

.datasource-item__actions {
  padding: 0 1rem 1rem 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  text-align: center;
}
@media (max-width: 768px) {
  .datasources-grid {
    gap: 0.75rem;
  }
  .datasource-logo-wrapper {
    height: 80px;
    padding: 0.75rem;
  }
  .datasource-info {
    padding: 0.75rem;
  }
  .datasource-item__actions {
    padding: 0 0.75rem 0.75rem 0.75rem;
    padding-top: 0.75rem;
  }
}
/* Trust & Newsletter Section */
.trust-newsletter-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

@media (min-width: 992px) {
  .trust-newsletter-section {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
  }
}
.trust-info .section-title {
  margin-bottom: 2rem;
  text-align: left;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.trust-item__icon {
  font-size: 1.75rem;
  color: var(--primary-color);
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  margin-top: 5px;
}

.trust-item__text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: var(--text-heading-color);
}

.trust-item__text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted-color);
  line-height: 1.5;
}

/* Breadcrumb Styles */
.breadcrumb {
  list-style: none;
  padding-left: 0;
  border-radius: var(--border-radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px; /* Spacing below breadcrumbs */
  font-size: 0.9rem;
}

.breadcrumb li {
  color: var(--text-muted-color);
  display: flex;
  align-items: center;
}

.breadcrumb li a {
  text-decoration: none;
  color: var(--primary-color);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.breadcrumb li a:hover {
  background-color: var(--background-color);
  color: var(--primary-hover-color);
  text-decoration: none;
}

.breadcrumb li + li::before {
  content: "›";
  padding: 0 0.6rem;
  color: var(--text-muted-color);
}

.breadcrumb li.active {
  color: var(--text-color);
  font-weight: 500;
}

/* Mobile-specific adjustments for single-line scrolling */
@media (max-width: 768px) {
  .breadcrumb {
    flex-wrap: nowrap; /* Prevent wrapping to new lines */
    overflow-x: auto; /* Enable horizontal scrolling */
    padding-bottom: 0.5rem; /* Add some padding for the scrollbar area */
    margin-bottom: calc(20px - 0.5rem); /* Adjust margin to keep total space consistent */
    /* Hide the scrollbar for a cleaner look */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
  .breadcrumb::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
  }
  .breadcrumb li {
    white-space: nowrap; /* Ensure list items themselves don't wrap text */
  }
}
.site-header__highlights-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
  gap: 0.5rem;
}

.feature-highlights-bar {
  background-color: var(--card-background-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
  position: relative;
  z-index: 10;
}
.feature-highlights-bar .feature-highlights-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  list-style: none;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  gap: 0.75rem;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.feature-highlights-bar .feature-highlights-list::-webkit-scrollbar {
  display: none;
}
@media (min-width: 992px) {
  .feature-highlights-bar .feature-highlights-list {
    justify-content: flex-start;
    gap: 1.25rem;
  }
}
@media (max-width: 1200px) {
  .feature-highlights-bar .feature-highlights-list {
    padding: 0 1rem;
  }
}
@media (max-width: 768px) {
  .feature-highlights-bar .feature-highlights-list {
    padding: 0 0.75rem;
  }
}
.feature-highlights-bar .feature-highlights-item {
  flex: 0 0 auto;
}
.feature-highlights-bar .feature-highlights-item__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.feature-highlights-bar .feature-highlights-item__link:hover {
  text-decoration: none;
}
.feature-highlights-bar .feature-highlights-item__link--highlight {
  background-color: hsla(from var(--market-accent-color) h s l/0.1);
  color: var(--market-accent-color);
  border-color: hsla(from var(--market-accent-color) h s l/0.2);
}
.feature-highlights-bar .feature-highlights-item__link--highlight:hover {
  background-color: hsla(from var(--market-accent-color) h s l/0.2);
}
@keyframes warm-pulse {
  0% {
    fill: #ff8c00;
    transform: scale(1);
    filter: drop-shadow(0 0 1px rgba(255, 140, 0, 0.4));
  }
  50% {
    fill: #ff9900;
    transform: scale(1.01);
    filter: drop-shadow(0 0 2px rgba(255, 153, 0, 0.6));
  }
  100% {
    fill: #ff8c00;
    transform: scale(1);
    filter: drop-shadow(0 0 1px rgba(255, 140, 0, 0.4));
  }
}
.feature-highlights-bar .feature-highlights-item__icon {
  width: 1.4em;
  height: 1.4em;
  fill: #ff8c00;
  animation: warm-pulse 2s infinite alternate ease-in-out;
  transform-origin: center;
}
.feature-highlights-bar .feature-highlights-item--discounts .feature-highlights-item__link {
  color: var(--color-discounts);
}
.feature-highlights-bar .feature-highlights-item--discounts .feature-highlights-item__link:hover, .feature-highlights-bar .feature-highlights-item--discounts .feature-highlights-item__link.active {
  background-color: hsla(from var(--color-discounts) h s l/0.1);
  border-color: hsla(from var(--color-discounts) h s l/0.2);
}
.feature-highlights-bar .feature-highlights-item--trending .feature-highlights-item__link {
  color: var(--color-trending);
}
.feature-highlights-bar .feature-highlights-item--trending .feature-highlights-item__link:hover, .feature-highlights-bar .feature-highlights-item--trending .feature-highlights-item__link.active {
  background-color: hsla(from var(--color-trending) h s l/0.1);
  border-color: hsla(from var(--color-trending) h s l/0.2);
}
.feature-highlights-bar .feature-highlights-item--coupons .feature-highlights-item__link {
  color: var(--color-coupons);
}
.feature-highlights-bar .feature-highlights-item--coupons .feature-highlights-item__link:hover, .feature-highlights-bar .feature-highlights-item--coupons .feature-highlights-item__link.active {
  background-color: hsla(from var(--color-coupons) h s l/0.1);
  border-color: hsla(from var(--color-coupons) h s l/0.2);
}
.feature-highlights-bar .feature-highlights-item--articles .feature-highlights-item__link {
  color: var(--color-articles);
}
.feature-highlights-bar .feature-highlights-item--articles .feature-highlights-item__link:hover, .feature-highlights-bar .feature-highlights-item--articles .feature-highlights-item__link.active {
  background-color: hsla(from var(--color-articles) h s l/0.1);
  border-color: hsla(from var(--color-articles) h s l/0.2);
}
.feature-highlights-bar .scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  opacity: 0;
  visibility: hidden;
}
.feature-highlights-bar .scroll-arrow:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
}
.feature-highlights-bar .scroll-arrow.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-header--with-highlights .feature-highlights-bar {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  width: 100%;
}
.site-header--with-highlights .feature-highlights-bar .feature-highlights-list {
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  justify-content: center; /* Center the links if they don't fill the space */
  flex-wrap: wrap; /* Allow links to wrap on smaller desktop/tablet screens */
}
@media (max-width: 1024px) {
  .site-header--with-highlights .feature-highlights-bar .feature-highlights-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
  .site-header--with-highlights .feature-highlights-bar .feature-highlights-list::-webkit-scrollbar {
    display: none;
  }
}
.site-header--with-highlights .feature-highlights-bar .feature-highlights-item__link {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
}
.site-header--with-highlights .feature-highlights-bar .feature-highlights-item__icon {
  width: 1.3em;
  height: 1.3em;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: left;
  background-color: var(--card-background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}
.page-header__image-wrapper {
  flex-shrink: 0;
}
.page-header__image {
  display: block;
  height: 90px;
  width: 90px;
  object-fit: contain;
  border-radius: var(--border-radius);
}
.page-header__content {
  flex-grow: 1;
  min-width: 0;
}
.page-header__animation {
  display: none;
  position: relative;
  width: 150px;
  height: 90px;
  flex-shrink: 0;
  margin-left: auto;
}
@media (min-width: 992px) {
  .page-header__animation {
    display: block;
  }
}
.page-header__anim-shape {
  position: absolute;
  border-radius: 50%;
  background-color: hsla(from var(--primary-color) h s l/0.08);
  animation: float 6s ease-in-out infinite;
}
.page-header__anim-shape--1 {
  width: 70px;
  height: 70px;
  top: 5%;
  left: 15%;
  animation-delay: 0s;
}
.page-header__anim-shape--2 {
  width: 30px;
  height: 30px;
  top: 55%;
  left: 55%;
  animation-delay: -2s;
  background-color: hsla(from var(--primary-color) h s l/0.15);
}
.page-header__anim-shape--3 {
  width: 45px;
  height: 45px;
  top: 25%;
  left: 75%;
  animation-delay: -4s;
}
.page-header .page-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin: 0 0 0.25rem 0;
}
.page-header .page-description__text {
  font-size: var(--font-size-base);
  color: var(--text-muted-color);
  margin: 0 0 0.5rem 0;
  max-width: 75ch;
}
.page-header .page-last-updated {
  font-size: var(--font-size-sm);
  color: var(--text-muted-color);
  margin: 0;
}
@media (max-width: 768px) {
  .page-header {
    gap: 1rem;
    padding: 0.75rem 1rem;
  }
  .page-header__image {
    height: 60px;
    width: 60px;
  }
  .page-header .page-title {
    font-size: var(--font-size-h4);
  }
  .page-header .page-description__text {
    font-size: var(--font-size-sm);
    margin-bottom: 0.25rem;
  }
  .page-header .page-last-updated {
    font-size: var(--font-size-xs);
  }
}
.page-header--discounts {
  border-color: var(--color-discounts);
  background-color: hsla(from var(--color-discounts) h s l/0.05);
}
.page-header--discounts .page-title {
  color: var(--color-discounts);
}
.page-header--discounts .page-header__anim-shape {
  background-color: hsla(from var(--color-discounts) h s l/0.08);
}
.page-header--discounts .page-header__anim-shape--2 {
  background-color: hsla(from var(--color-discounts) h s l/0.15);
}
.page-header--trending {
  border-color: var(--color-trending);
  background-color: hsla(from var(--color-trending) h s l/0.05);
}
.page-header--trending .page-title {
  color: var(--color-trending);
}
.page-header--trending .page-header__anim-shape {
  background-color: hsla(from var(--color-trending) h s l/0.08);
}
.page-header--trending .page-header__anim-shape--2 {
  background-color: hsla(from var(--color-trending) h s l/0.15);
}
.page-header--coupons {
  border-color: var(--color-coupons);
  background-color: hsla(from var(--color-coupons) h s l/0.05);
}
.page-header--coupons .page-title {
  color: var(--color-coupons);
}
.page-header--coupons .page-header__anim-shape {
  background-color: hsla(from var(--color-coupons) h s l/0.08);
}
.page-header--coupons .page-header__anim-shape--2 {
  background-color: hsla(from var(--color-coupons) h s l/0.15);
}
.page-header--articles {
  border-color: var(--color-articles);
  background-color: hsla(from var(--color-articles) h s l/0.05);
}
.page-header--articles .page-title {
  color: var(--color-articles);
}
.page-header--articles .page-header__anim-shape {
  background-color: hsla(from var(--color-articles) h s l/0.08);
}
.page-header--articles .page-header__anim-shape--2 {
  background-color: hsla(from var(--color-articles) h s l/0.15);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
  100% {
    transform: translateY(0px);
  }
}
/* --- Unified Product Card Styles --- */
/* This is the single source of truth for all product card variations. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-grid--widget {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background-color: var(--card-background-color, #fff);
  border: 1px solid var(--border-color, #e9ecef);
  border-radius: var(--border-radius-base, 8px);
  box-shadow: var(--box-shadow, 0 2px 5px rgba(0, 0, 0, 0.04));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-sizing: border-box;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover, 0 4px 12px rgba(0, 0, 0, 0.08));
}
.product-card:hover .product-card__title {
  color: var(--market-accent-color, var(--primary-color)); /* Change title color on card hover */
}
.product-card > :first-child {
  border-top-left-radius: calc(var(--border-radius-base, 8px) - 1px);
  border-top-right-radius: calc(var(--border-radius-base, 8px) - 1px);
}
.product-card > :last-child {
  border-bottom-left-radius: calc(var(--border-radius-base, 8px) - 1px);
  border-bottom-right-radius: calc(var(--border-radius-base, 8px) - 1px);
}
.product-card__image-wrapper {
  position: relative;
  padding: 0.75rem;
  text-align: center;
  background-color: #fff;
}
.product-card__image {
  max-width: 100%;
  height: 160px;
  object-fit: contain;
}
.product-card__content {
  padding: 0 1rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 0.25rem 0;
  height: 3em; /* Ensures consistent height for 2 lines of text */
  line-height: 1.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.product-card__brand {
  font-size: var(--font-size-sm);
  color: var(--text-muted-color, #6c757d);
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  height: 1.2em;
}
.product-card__category {
  display: block;
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--text-muted-color, #6c757d);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding: 0.6rem 1.25rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  transition: color 0.2s ease;
}
.product-card__category:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.product-card__price {
  margin-top: auto; /* Pushes price to the bottom */
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: var(--font-weight-bold);
}
.product-card__price-original {
  font-size: var(--font-size-sm);
  text-decoration: line-through;
  color: var(--text-muted-color, #6c757d);
  font-weight: normal;
}
.product-card__price-sale {
  font-size: var(--font-size-lg);
  color: var(--accent-color, #e74c3c);
}
.product-card__price-current {
  font-size: var(--font-size-lg);
  color: var(--text-color, #343a40);
}
.product-card__discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color, #e74c3c);
  color: #fff;
  padding: 0.3em 0.6em;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}
.product-card__discount-badge--angled {
  left: -5px;
  right: auto;
  transform: rotate(-4deg);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.4em 0.8em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Actions section for watched products */
.product-card__actions {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color, #e9ecef);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card__actions form {
  display: block;
  width: 100%;
  margin: 0;
}

.btn-unwatch {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius-sm);
  background-color: transparent;
  color: var(--text-muted-color, #6c757d);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn-unwatch:hover {
  background-color: #f8f9fa;
  color: #dc3545; /* Red on hover to signify removal */
}

/* --- MODIFIERS --- */
.product-card--large {
  border-radius: var(--border-radius-large);
}
.product-card--large .product-card__image-wrapper {
  aspect-ratio: 1/1;
}
.product-card--large .product-card__image {
  height: auto;
  max-height: 100%;
}
.product-card--large .product-card__content {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}
.product-card--large .product-card__title {
  font-size: 1rem;
  height: 2.8em;
  line-height: 1.4;
}
.product-card--large .product-card__price-sale,
.product-card--large .product-card__price-current {
  font-size: 1.25rem;
}
.product-card--large .product-card__price-original {
  font-size: 0.9rem;
}
.product-card--large > :first-child {
  border-top-left-radius: calc(var(--border-radius-large) - 1px);
  border-top-right-radius: calc(var(--border-radius-large) - 1px);
}
.product-card--large > :last-child {
  border-bottom-left-radius: calc(var(--border-radius-large) - 1px);
  border-bottom-right-radius: calc(var(--border-radius-large) - 1px);
}

.product-card--widget .product-card__image-wrapper {
  padding: 0.5rem;
  aspect-ratio: 1/1;
}
.product-card--widget .product-card__image {
  height: 100%;
}
.product-card--widget .product-card__content {
  padding: 0.75rem;
}
.product-card--widget .product-card__title {
  font-size: var(--font-size-sm);
  height: 2.6em;
  line-height: 1.3;
}
.product-card--widget .product-card__price-sale, .product-card--widget .product-card__price-current {
  font-size: 1rem;
}

.product-card--horizontal {
  flex-direction: row;
  align-items: center;
  padding: 0.5rem;
  height: auto;
}
.product-card--horizontal .product-card__image-wrapper {
  flex: 0 0 70px;
  height: 70px;
  padding: 0;
  margin-right: 0.75rem;
  background-color: transparent;
}
.product-card--horizontal .product-card__image {
  height: 100%;
  object-fit: cover;
}
.product-card--horizontal .product-card__content {
  padding: 0;
  flex-grow: 1;
  min-width: 0;
}
.product-card--horizontal .product-card__title {
  height: auto;
  -webkit-line-clamp: 2;
  margin-bottom: 0.5rem;
}

/* --- Mobile Compact Styles --- */
/* Makes the default product card more compact on small screens */
@media (max-width: 576px) {
  .product-grid {
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .product-card__image-wrapper {
    padding: 0.5rem;
  }
  .product-card__image {
    height: 130px;
  }
  .product-card__content {
    padding: 0.75rem;
  }
  .product-card__title {
    font-size: 0.9rem;
    height: 2.8em;
    line-height: 1.4em;
  }
  .product-card__category {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  .product-card__price-sale,
  .product-card__price-current {
    font-size: 1.1rem;
  }
}
/* Trust & Newsletter Section */
.trust-newsletter-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem;
  background-color: hsla(from var(--primary-color) h s l/0.05);
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 992px) {
  .trust-newsletter-section {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .trust-newsletter-section {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
    margin-top: 2rem;
  }
}
/* Trust Info side */
.trust-info .section-title {
  margin-bottom: 2rem;
  border-bottom: none;
  padding-bottom: 0;
}

.trust-items {
  display: grid;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.trust-item__icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-background-color);
  border-radius: 50%;
  box-shadow: var(--box-shadow);
}
.trust-item__text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: var(--text-heading-color);
}
.trust-item__text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted-color);
}

/* Newsletter Signup side */
.newsletter-signup {
  background-color: var(--card-background-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}
.newsletter-signup__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--text-heading-color);
}
.newsletter-signup__text {
  margin: 0 0 1.5rem 0;
  color: var(--text-muted-color);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 576px) {
  .newsletter-form {
    flex-direction: row;
  }
}
.newsletter-form input[type=email] {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
}
.newsletter-form input[type=email]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px hsla(from var(--accent-color) h s l/0.2);
}

/*# sourceMappingURL=most_discounted_products_2.css.map */
