:root {
  --color-primary: #e83c66;
  --color-bg-dark: #0b1e28;
  --color-bg-soft: #f6f6f6;
  --radius-6: 6px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-64: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  color: #000000;
  font-family: "Open Sans", sans-serif;
}

body.all-books-node {
  overflow-x: hidden;
  --shared-shell-width: 1200px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.all-books-page {
  display: block;
  width: 100%;
}

.all-books-canvas {
  background: var(--color-bg-soft);
  min-height: 3254px;
  position: relative;
  width: 100%;
}

.top-news {
  background: var(--color-primary);
  color: #ffffff;
  left: auto;
  position: relative;
  top: auto;
  width: 100%;
  z-index: 20;
}

.top-news-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  min-height: 44px;
  width: min(var(--shared-shell-width, 1200px), calc(100vw - 40px));
}

.top-news-left {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 400;
  gap: 8px;
  line-height: 18px;
}

.top-news-right {
  align-items: center;
  display: flex;
  gap: 16px;
}

.top-news-right a {
  align-items: center;
  display: inline-flex;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  gap: 6px;
  line-height: 20px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.top-news-right a:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.top-news-close {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0;
}

.contact-strip {
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-bg-dark);
  color: #f6f6f6;
  left: auto;
  position: relative;
  top: auto;
  width: 100%;
  z-index: 21;
}

.contact-strip-inner {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  min-height: 48px;
  width: min(var(--shared-shell-width, 1200px), calc(100vw - 40px));
}

.contact-links {
  align-items: center;
  display: flex;
  gap: 24px;
}

.contact-links a {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 400;
  gap: 8px;
  line-height: 18px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-left: 24px;
}

.social-links a {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.site-header {
  background: #fafafa;
  border-bottom: 1px solid #ececec;
  left: auto;
  position: relative;
  top: auto;
  width: 100%;
  z-index: 22;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  margin: 0 auto;
  min-height: 80px;
  padding: 16px 0;
  width: min(var(--shared-shell-width, 1200px), calc(100vw - 40px));
}

.brand {
  display: inline-flex;
  height: 40px;
  margin-right: 32px;
  width: 128px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 32px;
  margin-right: auto;
}

.main-nav a {
  align-items: center;
  color: #000000;
  display: inline-flex;
  font-size: 14px;
  font-weight: 400;
  gap: 4px;
  line-height: 20px;
  padding: 10px 0;
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 24px;
}

.btn-cart {
  align-items: center;
  background: #fcf0f3;
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  min-width: 72px;
  padding: 12px 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-cart:hover {
  box-shadow: 0 8px 18px rgba(232, 60, 102, 0.22);
  transform: translateY(-1px);
}

.btn-login {
  align-items: center;
  background: var(--color-primary);
  border-radius: 12px;
  color: #ffffff;
  display: inline-flex;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  gap: 6px;
  line-height: 20px;
  min-height: 48px;
  padding: 12px 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-login:hover {
  box-shadow: 0 10px 20px rgba(232, 60, 102, 0.24);
  transform: translateY(-1px);
}

.all-books-main {
  background: var(--color-bg-soft);
  height: 2553px;
  left: 50%;
  max-width: 1586px;
  position: absolute;
  top: 168px;
  transform: translateX(-50%);
  width: 100%;
}

.all-books-title {
  color: #000000;
  font-size: 49.525px;
  font-weight: 600;
  letter-spacing: -0.9905px;
  line-height: 59.43px;
  margin: 0;
  position: absolute;
  left: 84px;
  top: 89px;
  width: 504px;
}

.filters-panel {
  display: contents;
}

.mobile-filters-toggle {
  display: none;
}

.filters-left {
  align-items: center;
  display: flex;
  gap: 20px;
  left: 84px;
  position: absolute;
  top: 185px;
  z-index: 90;
}

.filters-label {
  color: #000000;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.filter-item,
.sort-item {
  align-items: center;
  background: transparent;
  border: 0;
  color: #000000;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 400;
  gap: 6px;
  line-height: 28px;
  opacity: 1;
  padding: 0;
  transition: color 180ms ease, opacity 180ms ease;
}

.filter-item:hover,
.sort-item:hover {
  color: #0b1e28;
  opacity: 0.92;
}

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

.dropdown-trigger {
  user-select: none;
}

.dropdown-chevron {
  border-bottom: 2px solid currentcolor;
  border-right: 2px solid currentcolor;
  display: inline-block;
  height: 8px;
  margin-left: 2px;
  pointer-events: none;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  width: 8px;
}

.dropdown.is-open .dropdown-chevron {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.dropdown-menu {
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(11, 30, 40, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
  left: 0;
  min-width: 180px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 10px);
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
  z-index: 60;
}

.sort-dropdown .dropdown-menu {
  left: auto;
  min-width: 218px;
  right: 0;
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.dropdown-option {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #0b1e28;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  padding: 8px 10px;
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
}

.dropdown-option:hover {
  background: #f4f7fa;
}

.dropdown-option.is-selected {
  color: #e83c66;
  font-weight: 600;
}

.filters-right {
  align-items: center;
  display: flex;
  gap: 38px;
  left: 1019px;
  position: absolute;
  top: 185px;
  z-index: 90;
}

.sort-item,
.total-count {
  color: #000000;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  margin: 0;
  opacity: 0.7;
  white-space: nowrap;
}

.sort-item span {
  opacity: 1;
}

.products-grid {
  align-items: stretch;
  column-gap: 76px;
  display: grid;
  grid-template-columns: repeat(4, 244px);
  left: 166px;
  position: absolute;
  row-gap: 105px;
  top: 317px;
  z-index: 10;
}

.product-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 260ms ease;
  width: 244px;
}

.product-cover {
  height: 324px;
  margin-left: 14px;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
  width: 230px;
}

.product-cover-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.product-cover-link:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(232, 60, 102, 0.28);
  outline-offset: 5px;
}

.product-desc {
  color: #000000;
  flex: 1 1 auto;
  font-size: 20.392px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 31.721px;
  margin: 25px 0 0;
  text-align: center;
  width: 100%;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.product-title-link:hover,
.product-title-link:focus-visible {
  color: #e83c66;
}

.product-title-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(232, 60, 102, 0.24);
  outline-offset: 4px;
}

.product-price {
  color: #000000;
  font-size: 18.773px;
  font-weight: 400;
  line-height: 29.203px;
  margin: 9px auto 0;
  text-align: center;
  width: 100%;
}

.product-btn {
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), inset 0 4px 4px rgba(0, 0, 0, 0.25);
  color: #000000;
  display: flex;
  font-size: 24.762px;
  font-weight: 400;
  height: 54px;
  justify-content: center;
  letter-spacing: -0.4952px;
  line-height: 29.715px;
  margin: 20px auto 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
  width: 244px;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card:hover .product-cover {
  filter: saturate(1.06);
  transform: scale(1.02);
}

.product-btn:hover {
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.18), inset 0 2px 3px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.product-btn.is-disabled,
.product-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  pointer-events: none;
  transform: none;
}

.product-btn.is-added {
  background: #000000;
  color: #ffffff;
}

.site-footer {
  height: auto;
  left: auto;
  margin-top: 0;
  padding: 0;
  position: relative;
  top: auto;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 1200px;
}

.footer-top {
  display: grid;
  gap: 32px;
  grid-template-columns: 492px 1fr;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-newsletter p {
  color: #f6f6f6;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 279px;
}

.footer-newsletter-form label {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  gap: 4px;
  line-height: 20px;
}

.footer-newsletter-form input {
  background: transparent;
  border: 1px solid #b0b0b0;
  border-radius: var(--radius-6);
  color: #ffffff;
  min-height: 48px;
  padding: 14px 16px;
}

.footer-newsletter-form input::placeholder {
  color: #888888;
}

.footer-newsletter-btn {
  align-items: center;
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius-64);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  gap: 6px;
  justify-content: center;
  line-height: 20px;
  min-height: 44px;
  padding: 12px 24px;
  width: fit-content;
}

.footer-newsletter-note {
  color: #f6f6f6;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.footer-links-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col h4 {
  color: #f6f6f6;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0 0 4px;
}

.footer-links-col a {
  color: #f6f6f6;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.footer-contact-link {
  align-items: center;
  display: flex;
  gap: 12px;
}

.footer-contact-icon {
  align-items: center;
  background: #344b63;
  border-radius: var(--radius-10);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.footer-contact-address {
  color: #f6f6f6;
  display: grid;
  gap: 0;
  grid-template-columns: 40px 1fr;
  line-height: 24px;
}

.footer-contact-address span:first-child {
  align-items: center;
  display: inline-flex;
  grid-row: 1 / 3;
}

.footer-contact-address span:last-child {
  display: block;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid #344b63;
  display: flex;
  justify-content: space-between;
  padding-top: 33px;
}

.footer-copy {
  color: #f6f6f6;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  align-items: center;
  background: #344b63;
  border-radius: var(--radius-10);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: #f6f6f6;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.fade-in-up {
  animation: fadeInUp 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-delay-1 {
  animation-delay: 100ms;
}

.reveal-card {
  animation: fadeInUp 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-delay-1 {
  animation-delay: 120ms;
}

.reveal-delay-2 {
  animation-delay: 180ms;
}

.reveal-delay-3 {
  animation-delay: 240ms;
}

.reveal-delay-4 {
  animation-delay: 300ms;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1600px) {
  .all-books-canvas {
    width: 100%;
  }

  .top-news-inner,
  .contact-strip-inner,
  .header-inner {
    width: min(var(--shared-shell-width, 1200px), calc(100vw - 48px));
    padding-left: 24px;
    padding-right: 24px;
  }

  .all-books-main {
    width: 100%;
  }

  .site-footer {
    width: 100%;
  }
}

@media (max-width: 1279px) {
  .all-books-page {
    overflow-x: hidden;
  }

  .all-books-canvas {
    min-height: 0;
  }

  .top-news,
  .contact-strip,
  .site-header,
  .all-books-main,
  .site-footer {
    left: auto;
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
  }

  .top-news-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: space-between;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .top-news-left {
    min-width: 0;
  }

  .top-news-left span {
    white-space: normal;
  }

  .contact-strip-inner {
    justify-content: space-between;
    min-height: 44px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 14px 20px;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    margin-right: 0;
  }

  .main-nav {
    gap: 20px;
    order: 3;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    width: 100%;
  }

  .nav-actions {
    gap: 12px;
    margin-left: auto;
  }

  .btn-cart {
    min-width: 52px;
    padding: 12px;
  }

  .btn-login {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 16px;
  }

  .all-books-main {
    height: auto;
    padding: 36px 24px 64px;
  }

  .all-books-title {
    font-size: 42px;
    left: auto;
    letter-spacing: -0.8px;
    line-height: 1.12;
    margin-bottom: 24px;
    position: static;
    top: auto;
    width: auto;
  }

  .filters-left,
  .filters-right {
    left: auto;
    position: static;
    top: auto;
  }

  .filters-left {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
  }

  .filters-right {
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .products-grid {
    column-gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: auto;
    position: static;
    row-gap: 42px;
    top: auto;
  }

  .product-card {
    width: 100%;
  }

  .product-cover {
    aspect-ratio: 230 / 324;
    height: auto;
    margin-left: 0;
    width: 100%;
  }

  .product-desc {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 16px;
    width: 100%;
  }

  .product-price {
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: auto;
  }

  .product-btn {
    font-size: 18px;
    height: 48px;
    margin-top: 14px;
    width: 100%;
  }

  .site-footer {
    height: auto;
    padding: 48px 24px;
  }

  .footer-container {
    gap: 36px;
    margin: 0 auto;
    width: min(100%, 1120px);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-newsletter-form {
    max-width: 360px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .top-news-inner,
  .contact-strip-inner,
  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .all-books-main {
    padding: 34px 20px 56px;
  }

  .all-books-title {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .filters-left {
    gap: 12px;
    margin-bottom: 12px;
  }

  .filters-right {
    gap: 12px;
    margin-bottom: 22px;
  }

  .products-grid {
    column-gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .product-btn {
    font-size: 17px;
  }

  .site-footer {
    padding: 42px 20px;
  }

  .footer-links-grid {
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .top-news-inner,
  .contact-strip-inner,
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-strip {
    display: none;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 13px;
    line-height: 18px;
    padding: 8px 0;
  }

  .all-books-main {
    padding: 30px 16px 52px;
  }

  .all-books-title {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .filters-left {
    gap: 10px;
    margin-bottom: 10px;
  }

  .filters-label {
    font-size: 16px;
    line-height: 24px;
    width: 100%;
  }

  .filter-item,
  .sort-item,
  .total-count {
    font-size: 16px;
    line-height: 24px;
  }

  .filter-dropdown {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .filter-dropdown .dropdown-trigger {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    justify-content: space-between;
    padding: 10px 12px;
    width: 100%;
  }

  .filters-right {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .sort-dropdown {
    width: 100%;
  }

  .sort-item {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    justify-content: space-between;
    padding: 10px 12px;
    width: 100%;
  }

  .total-count {
    opacity: 0.85;
    white-space: normal;
  }

  .dropdown-menu,
  .sort-dropdown .dropdown-menu {
    left: 0;
    min-width: 0;
    right: auto;
    width: 100%;
  }

  .products-grid {
    column-gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  .product-desc {
    font-size: 16px;
    line-height: 24px;
  }

  .product-price {
    font-size: 17px;
    line-height: 26px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .top-news-inner,
  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .top-news-left {
    font-size: 11px;
    line-height: 16px;
  }

  .top-news-right {
    justify-content: space-between;
    width: 100%;
  }

  .top-news-right a {
    font-size: 13px;
    line-height: 18px;
  }

  .brand {
    height: 34px;
    width: auto;
  }

  .brand img {
    height: 34px;
    width: auto;
  }

  .main-nav {
    gap: 14px;
    margin-right: 0;
    width: 100%;
  }

  .nav-actions {
    gap: 10px;
  }

  .btn-login {
    font-size: 0;
    min-width: 44px;
    padding: 10px;
  }

  .btn-login img {
    height: 20px;
    width: 20px;
  }

  .all-books-main {
    padding: 24px 14px 42px;
  }

  .all-books-title {
    font-size: 32px;
    margin-bottom: 18px;
  }

  .mobile-filters-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    color: #0b1e28;
    cursor: pointer;
    display: flex;
    font-size: 18px;
    font-weight: 500;
    justify-content: space-between;
    line-height: 26px;
    margin: 0 0 14px;
    min-height: 54px;
    padding: 12px 16px;
    width: 100%;
  }

  .mobile-filters-toggle[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(-135deg) translate(-1px, -1px);
  }

  .filters-panel {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(11, 30, 40, 0.08);
    display: block;
    margin-bottom: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 14px;
    pointer-events: none;
    transition: max-height 260ms ease, opacity 220ms ease, margin-bottom 220ms ease, padding 220ms ease;
  }

  .filters-panel.is-open {
    margin-bottom: 18px;
    max-height: 720px;
    opacity: 1;
    padding-bottom: 14px;
    padding-top: 14px;
    pointer-events: auto;
  }

  .filters-left {
    margin-bottom: 12px;
  }

  .filters-right {
    margin-bottom: 0;
  }

  .dropdown {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .dropdown-menu,
  .sort-dropdown .dropdown-menu {
    box-shadow: none;
    display: none;
    margin-top: 8px;
    position: static;
    transform: none;
    width: 100%;
  }

  .dropdown.is-open .dropdown-menu {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .products-grid {
    column-gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .product-desc {
    font-size: 15px;
    line-height: 22px;
    margin-top: 12px;
  }

  .product-price {
    font-size: 16px;
    line-height: 24px;
  }

  .product-btn {
    font-size: 16px;
    height: 44px;
    margin-top: 12px;
  }

  .site-footer {
    padding: 34px 14px;
  }

  .footer-container {
    gap: 28px;
  }

  .footer-top {
    gap: 24px;
  }

  .footer-newsletter {
    gap: 20px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .top-news-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .top-news-right {
    gap: 10px;
  }

  .top-news-right a {
    font-size: 14px;
    line-height: 18px;
  }

  .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .btn-login {
    font-size: 13px;
    gap: 4px;
    padding: 10px 12px;
  }

  .btn-login img {
    height: 20px;
    width: 20px;
  }

  .all-books-main {
    padding: 26px 12px 40px;
  }

  .all-books-title {
    font-size: 30px;
  }

  .filters-left {
    flex-direction: column;
  }

  .filter-dropdown {
    flex: 1 1 100%;
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    margin: 0 auto;
    max-width: 340px;
  }

  .site-footer {
    padding: 36px 16px;
  }

  .footer-newsletter-form {
    max-width: 100%;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .top-news-inner,
  .header-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .all-books-main {
    padding: 22px 10px 34px;
  }

  .all-books-title {
    font-size: 28px;
    letter-spacing: -0.4px;
  }

  .filter-item,
  .sort-item,
  .total-count {
    font-size: 15px;
    line-height: 22px;
  }

  .products-grid {
    row-gap: 18px;
  }

  .product-desc {
    font-size: 14px;
    line-height: 21px;
  }

  .product-price {
    font-size: 15px;
    line-height: 22px;
  }

  .product-btn {
    font-size: 15px;
    height: 42px;
  }

  .site-footer {
    padding: 30px 12px;
  }

  .footer-copy,
  .footer-legal a {
    font-size: 12px;
    line-height: 18px;
  }

  .footer-social a {
    height: 32px;
    width: 32px;
  }

  .footer-contact-icon {
    height: 34px;
    width: 34px;
  }
}
