/* Rounded surfaces for the public catalogue and supporting pages. */
:root {
  --radius-card: 26px;
  --radius-panel: 32px;
  --soft-border: #e6e3db;
}

.btn,
.product-contact {
  border-radius: 999px;
}

.btn {
  padding-inline: 25px;
}

.category-card {
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: #dcd8ce;
  box-shadow: 0 12px 30px rgb(55 43 29 / 5%);
}

.category-card-image {
  border-radius: 18px;
}

.category-card.category-photo .category-card-image {
  margin: 20px 0 14px;
  border-radius: 18px;
}

.product-card {
  border-color: var(--soft-border);
  border-radius: var(--radius-card);
  box-shadow: 0 3px 14px rgb(45 37 24 / 2%);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}

.product-card:hover,
.product-card:focus-within {
  border-color: #d0cbc0;
  box-shadow: 0 14px 35px rgb(45 37 24 / 6%);
}

.product-visual {
  margin: 10px 10px 0;
  border-radius: 19px;
  background: #f7f6f1;
}

.product-contact {
  padding-inline: 17px;
  border-color: #dedbd2;
  background: #faf9f6;
}

.catalog-grid .product-contact {
  padding-inline: 19px;
}

.visual-arrow {
  width: 34px;
  height: 34px;
  right: 14px;
  bottom: 14px;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 3px 10px rgb(55 43 29 / 5%);
}

.collection-banner,
.about-image {
  border-radius: var(--radius-panel);
}

.collection-banner {
  background: #f0ede5;
}

.collection-image img,
.campaign-image img {
  transition: transform .65s var(--ease);
}

.collection-banner:hover .collection-image img,
.campaign-card:hover .campaign-image img {
  transform: scale(1.025);
}

.local-section {
  border-radius: 40px 40px 0 0;
}

.home-branches {
  gap: 20px;
}

.home-branch {
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 32px 28px;
  transition: border-color .3s, box-shadow .3s;
}

.home-branch + .home-branch {
  border-top: 1px solid var(--soft-border);
}

.home-branch > div {
  min-width: 0;
}

.home-branch:hover {
  border-color: #cecbbf;
  box-shadow: 0 10px 24px rgb(45 37 24 / 4%);
}

.branch-card,
.campaign-card {
  border-color: var(--soft-border);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

.branch-card {
  box-shadow: 0 5px 24px rgb(45 37 24 / 3%);
}

.contact-panel {
  border-radius: 28px;
  background: #f2f0e9;
}

.contact-list {
  gap: 18px;
}

.contact-branch {
  padding: 26px;
  border: 1px solid var(--soft-border);
  border-radius: 24px;
}

.contact-product {
  border: 1px solid #dedbd0;
  border-radius: 16px;
  padding: 16px 18px;
}

.value-item {
  border: 1px solid var(--soft-border);
  border-radius: 24px;
  padding: 28px;
  background: #fff;
}

.catalog-search {
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  background: #faf9f6;
  padding: 5px 14px;
}

.filter-toggle {
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 40px;
  background: #faf9f6;
}

.filter-toggle:hover,
.filter-toggle[aria-expanded="true"] {
  background: #f1eee7;
  border-color: #d6d1c6;
}

.active-filter-row {
  flex-wrap: wrap;
  gap: 10px 18px;
}

.active-filter-row > span {
  border-radius: 999px;
  background: #f3f1eb;
  padding: 7px 13px;
}

.search-dialog {
  border-radius: 28px;
  box-shadow: 0 25px 80px rgb(25 22 16 / 14%);
}

.global-search-form input {
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  background: #f7f6f1;
  padding: 13px 20px;
}

.filter-dialog {
  inset: 12px 12px 12px auto;
  width: min(440px, calc(100% - 24px));
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  border-radius: 28px;
  box-shadow: 0 20px 65px rgb(25 22 16 / 14%);
  overflow: hidden;
}

.filter-dialog > form { height: 100%; min-height: 0; }
.filter-panel-head, .filter-panel-footer { flex-shrink: 0; }
.filter-panel-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.filter-panel-head,
.filter-panel-footer {
  border-color: #eeece5;
}

.filter-field select {
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  background-color: #f8f7f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e7067' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  padding: 14px 40px 14px 16px;
}

.closing-cta {
  margin: 0 24px 24px;
  border-radius: 32px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .category-card:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 900px) {
  .home-branch {
    padding: 28px;
    gap: 25px;
  }

  .closing-cta {
    margin: 0 16px 16px;
    border-radius: 28px;
  }

  .value-item {
    padding: 23px;
  }
}

@media (max-width: 600px) {
  :root {
    --radius-card: 22px;
    --radius-panel: 26px;
  }

  .category-card-image,
  .category-card.category-photo .category-card-image {
    border-radius: 15px;
  }

  .category-card.category-photo .category-card-image {
    margin: 14px 0 12px;
  }

  .product-visual {
    margin: 8px 8px 0;
    border-radius: 17px;
  }

  .product-contact {
    padding-inline: 16px;
  }

  .home-branches {
    gap: 14px;
  }

  .home-branch {
    padding: 22px 18px;
    gap: 14px;
  }

  .home-branch .branch-number {
    font-size: 45px;
  }

  .home-branch h3 {
    font-size: 21px;
  }

  .home-branch p {
    font-size: 10px;
  }

  .branch-card,
  .campaign-card,
  .contact-panel {
    border-radius: 24px;
  }

  .contact-branch {
    padding: 23px;
    border-radius: 22px;
  }

  .filter-toggle {
    padding: 9px 13px;
  }

  .filter-panel-footer {
    gap: 16px;
  }

  .filter-panel-footer .btn {
    padding-inline: 16px;
    gap: 16px;
  }

  .search-dialog,
  .filter-dialog {
    border-radius: 24px;
  }

  .closing-cta {
    margin: 0 12px 12px;
    border-radius: 26px;
  }

  .closing-cta .container {
    width: calc(100% - 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-card,
  .product-card,
  .home-branch,
  .collection-image img,
  .campaign-image img {
    transition: none;
  }
}
