
  :root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --text: #333333;
    --light-text: #f8f9fa;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --border: #dee2e6;
    --success: #2ecc71;
    --warning: #f39c12;
    --grey-100: #f8f9fa;
    --grey-200: #e9ecef;
    --grey-300: #dee2e6;
    --grey-400: #ced4da;
    --grey-500: #adb5bd;
    --grey-600: #6c757d;
    --grey-700: #495057;
    --grey-800: #343a40;
    --grey-900: #212529;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
    --radius: 0.375rem;
    --transition: all 0.3s ease;
  }

  /* Global Styles */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light-bg);
  }

  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.2;
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  p {
    margin-bottom: 1rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  a:hover {
    color: var(--secondary);
  }

  button, .btn {
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
  }

  .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  /* Hero Section */
  .search-hero {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
  }

  .search-hero h1 {
    color: var(--light-text);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .search-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .search-form-container {
    max-width: 800px;
    margin: 0 auto;
  }

  .search-form {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
  }

  .search-input-group {
    display: flex;
    position: relative;
  }

  .search-input-group label {
    position: absolute;
    left: -9999px;
  }

  .search-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid var(--grey-300);
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    transition: border-color 0.3s ease;
  }

  .search-input-group input:focus {
    border-color: var(--accent);
  }

  .search-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    font-size: 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background-color 0.3s ease;
  }

  .search-button:hover {
    background-color: #c0392b;
  }

  /* Filters Section */
  .search-filters {
    padding: 3rem 0;
    background-color: var(--light-bg);
  }

  .filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .filter-group {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
  }

  .filter-group h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 1px solid var(--grey-300);
    padding-bottom: 0.5rem;
  }

  .filter-list {
    list-style: none;
  }

  .filter-list li {
    margin-bottom: 0.5rem;
  }

  .filter-option {
    display: block;
    padding: 0.5rem 0;
    color: var(--grey-700);
    transition: color 0.3s ease;
  }

  .filter-option:hover {
    color: var(--secondary);
  }

  .filter-option.active {
    color: var(--secondary);
    font-weight: 500;
  }

  .price-range {
    padding: 0.5rem 0;
  }

  .price-range input[type="range"] {
    width: 100%;
    margin-bottom: 1rem;
  }

  .price-labels {
    display: flex;
    justify-content: space-between;
    color: var(--grey-700);
    font-size: 0.875rem;
  }

  .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
    color: var(--grey-700);
  }

  .checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }

  .checkbox-custom {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid var(--grey-400);
    border-radius: 3px;
    background-color: white;
  }

  .checkbox-label input:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border-radius: 1px;
  }

  /* Results Section */
  .search-results {
    padding: 3rem 0;
    background-color: white;
  }

  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey-300);
  }

  .results-sorting {
    display: flex;
    align-items: center;
  }

  .results-sorting label {
    margin-right: 0.5rem;
    color: var(--grey-700);
  }

  .results-sorting select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--grey-300);
    border-radius: var(--radius);
    background-color: white;
    color: var(--grey-800);
    cursor: pointer;
  }

  .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .book-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  .book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
  }

  .book-cover {
    position: relative;
    height: 380px;
    overflow: hidden;
  }

  .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .book-card:hover .book-cover img {
    transform: scale(1.05);
  }

  .book-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
  }

  .book-badge.bestseller {
    background-color: var(--warning);
  }

  .book-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .book-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .book-author {
    color: var(--grey-600);
    margin-bottom: 0.75rem;
    font-style: italic;
  }

  .book-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .book-rating {
    margin-bottom: 0.75rem;
    color: var(--warning);
  }

  .book-rating span {
    color: var(--grey-600);
    font-size: 0.875rem;
    margin-left: 0.5rem;
  }

  .book-rating.pre-order {
    color: var(--grey-600);
    font-size: 0.875rem;
  }

  .book-availability {
    color: var(--success);
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .book-availability.pre-order {
    color: var(--accent);
  }

  .add-to-cart-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: background-color 0.3s ease;
  }

  .add-to-cart-btn:hover {
    background-color: #1a2530;
  }

  .add-to-cart-btn.pre-order {
    background-color: var(--accent);
  }

  .add-to-cart-btn.pre-order:hover {
    background-color: #2980b9;
  }

  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .pagination-item, .pagination-next {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    background-color: white;
    color: var(--grey-700);
    font-weight: 500;
    border: 1px solid var(--grey-300);
    transition: all 0.3s ease;
  }

  .pagination-item:hover, .pagination-next:hover {
    background-color: var(--grey-100);
    color: var(--primary);
    border-color: var(--grey-400);
  }

  .pagination-item.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .pagination-dots {
    margin: 0 0.25rem;
    color: var(--grey-600);
  }

  .pagination-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  /* Search Tips Section */
  .search-tips {
    padding: 4rem 0;
    background-color: var(--grey-100);
    position: relative;
  }

  .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .tip-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
  }

  .tip-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
  }

  .tip-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .search-help {
    text-align: center;
    background-color: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
  }

  .search-help p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
  }

  .contact-btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background-color 0.3s ease;
  }

  .contact-btn:hover {
    background-color: #c0392b;
    color: white;
  }

  /* Advanced Search Section */
  .advanced-search {
    padding: 4rem 0;
    background-color: white;
  }

  .advanced-search-form {
    background-color: var(--grey-100);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  @media (min-width: 768px) {
    .form-row {
      grid-template-columns: 1fr 1fr;
    }
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--grey-700);
  }

  .form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--grey-300);
    border-radius: var(--radius);
    background-color: white;
    transition: border-color 0.3s ease;
  }

  .form-group input:focus, .form-group select:focus {
    border-color: var(--accent);
    outline: none;
  }

  .year-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .year-range input {
    width: calc(50% - 0.5rem);
  }

  .year-separator {
    color: var(--grey-600);
  }

  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
  }

  .reset-btn, .search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    border: none;
  }

  .reset-btn {
    background-color: var(--grey-200);
    color: var(--grey-700);
  }

  .reset-btn:hover {
    background-color: var(--grey-300);
  }

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

  .search-btn:hover {
    background-color: #c0392b;
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    h1 {
      font-size: 2rem;
    }

    h2 {
      font-size: 1.75rem;
    }

    .search-hero {
      padding: 3rem 0;
    }

    .search-hero h1 {
      font-size: 2.5rem;
    }

    .results-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }

    .book-cover {
      height: 320px;
    }

    .form-actions {
      flex-direction: column;
    }

    .reset-btn, .search-btn {
      width: 100%;
      justify-content: center;
    }
  }

  @media (min-width: 1024px) {
    .search-hero h1 {
      font-size: 4rem;
    }

    .search-subtitle {
      font-size: 1.5rem;
    }

    .results-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
