/* =========================================================
   HOMEPAGE — Popular Stores & Categories (limited + View All)
   ========================================================= */

.home-taxonomies-section {
   padding: 56px 0 64px;
}

.home-stores-section {
   padding-top: 48px;
}

.home-taxonomies-heading {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 16px;
   margin-bottom: 28px;
}

.home-taxonomies-heading-text {
   min-width: 0;
}

.home-taxonomies-eyebrow {
   display: block;
   margin-bottom: 6px;
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: var(--theme-primary, #d377b0);
}

.home-taxonomies-title {
   text-align: left;
   margin: 0;
}

.home-taxonomies-viewall {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 18px;
   border: 1.5px solid rgba(var(--theme-primary-rgb, 211, 119, 176), 0.35);
   border-radius: 999px;
   background: #fff;
   color: var(--theme-primary-hover, #b95794);
   font-size: 14px;
   font-weight: 700;
   text-decoration: none;
   white-space: nowrap;
   transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.home-taxonomies-viewall svg {
   width: 15px;
   height: 15px;
   transition: transform 0.18s ease;
}

.home-taxonomies-viewall:hover {
   background: rgba(var(--theme-primary-rgb, 211, 119, 176), 0.1);
   border-color: var(--theme-primary, #d377b0);
   color: var(--theme-primary-hover, #b95794);
   transform: translateY(-1px);
}

.home-taxonomies-viewall:hover svg {
   transform: translateX(3px);
}

.home-category-grid {
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 16px;
   list-style: none;
   margin: 0;
   padding: 0;
}

.home-category-card {
   display: flex;
   flex-direction: column;
   min-height: 100%;
   overflow: hidden;
   border: 1px solid rgba(26, 26, 46, 0.08);
   border-radius: 18px;
   background: #fff;
   box-shadow: 0 10px 28px rgba(26, 26, 46, 0.06);
   text-decoration: none;
   color: inherit;
   transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-category-card:hover {
   transform: translateY(-3px);
   border-color: rgba(var(--theme-primary-rgb, 211, 119, 176), 0.4);
   box-shadow: 0 16px 36px rgba(var(--theme-primary-rgb, 211, 119, 176), 0.14);
}

.home-category-card__media {
   position: relative;
   display: block;
   aspect-ratio: 16 / 10;
   overflow: hidden;
   background: #f4f1f5;
}

.home-category-card__media img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
   transition: transform 0.35s ease;
}

.home-category-card:hover .home-category-card__media img {
   transform: scale(1.05);
}

.home-category-card__body {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
   padding: 14px 16px 16px;
}

.home-category-card__name {
   font-size: 15px;
   font-weight: 700;
   line-height: 1.35;
   color: #1a1a2e;
   overflow-wrap: anywhere;
}

.home-category-card__body::after {
   content: "";
   flex: 0 0 18px;
   width: 18px;
   height: 18px;
   background: no-repeat center / contain;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d377b0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
   opacity: 0.75;
   transition: transform 0.18s ease, opacity 0.18s ease;
}

.home-category-card:hover .home-category-card__body::after {
   transform: translateX(3px);
   opacity: 1;
}

.home-stores-grid.top-stores-main {
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 18px;
}

.home-stores-grid .index-str {
   min-width: 0;
}

.home-stores-grid .index-str-title {
   overflow-wrap: anywhere;
}

@media (max-width: 991px) {
   .home-category-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
   }

   .home-stores-grid.top-stores-main {
      grid-template-columns: repeat(3, minmax(0, 1fr));
   }
}

@media (max-width: 767px) {
   .home-taxonomies-section {
      padding: 40px 0 48px;
   }

   .home-taxonomies-heading {
      margin-bottom: 22px;
   }

   .home-category-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
   }

   .home-category-card__body {
      padding: 12px 14px 14px;
   }

   .home-category-card__name {
      font-size: 14px;
   }

   .home-stores-grid.top-stores-main {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
   }
}

@media (max-width: 520px) {
   .home-taxonomies-heading {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
   }

   .home-taxonomies-viewall {
      width: 100%;
      justify-content: center;
   }
}

/* Categories redesign — match Top Categories reference */
.hcat {
   position: relative;
   padding: 64px 0 72px;
   background:
      radial-gradient(circle at 12% 18%, rgba(226, 91, 138, 0.07) 0 2px, transparent 3px) 0 0 / 28px 28px,
      radial-gradient(circle at 88% 12%, rgba(226, 91, 138, 0.06) 0 2px, transparent 3px) 0 0 / 32px 32px,
      radial-gradient(420px 240px at 6% 8%, rgba(var(--theme-primary-rgb, 211, 119, 176), 0.16), transparent 70%),
      radial-gradient(360px 220px at 96% 0%, rgba(var(--theme-primary-rgb, 211, 119, 176), 0.12), transparent 68%),
      linear-gradient(180deg, #fff7fa 0%, #fffafc 48%, #ffffff 100%);
}
.hcat-wrap {
   position: relative;
}
.hcat-head {
   position: relative;
   max-width: 720px;
   margin: 0 auto 36px;
   text-align: center;
   z-index: 1;
}
.hcat-kicker {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   margin: 0 0 14px;
   padding: 8px 16px;
   border-radius: 999px;
   background: rgba(var(--theme-primary-rgb, 211, 119, 176), 0.12);
   color: var(--theme-primary, #d377b0);
   font-size: 12px;
   font-weight: 800;
   letter-spacing: 0.1em;
   text-transform: uppercase;
}
.hcat-title {
   margin: 0 0 12px;
   color: #17182b;
   font-size: clamp(30px, 4vw, 46px);
   font-weight: 800;
   line-height: 1.15;
   letter-spacing: -0.03em;
   text-transform: none;
}
.hcat-title span {
   position: relative;
   color: #e25b8a;
   display: inline-block;
}
.hcat-title span::after {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: 3px;
   height: 8px;
   border-radius: 99px;
   background: rgba(226, 91, 138, 0.28);
   z-index: -1;
}
.hcat-lead {
   margin: 0 auto;
   max-width: 48ch;
   color: #6d7385;
   font-size: 16px;
   line-height: 1.6;
}
.hcat-note {
   position: absolute;
   left: 0;
   top: 36px;
   z-index: 2;
   width: 120px;
   color: #e25b8a;
   font-family: "Segoe Script", "Brush Script MT", "Comic Sans MS", cursive;
   font-size: 18px;
   font-weight: 700;
   line-height: 1.2;
   transform: rotate(-8deg);
   pointer-events: none;
   text-align: left;
}
.hcat-note__arrow {
   display: block;
   width: 64px;
   height: 48px;
   margin-top: 2px;
   margin-left: 28px;
}
.hcat-bag {
   position: absolute;
   right: 0;
   top: 0;
   z-index: 2;
   width: 160px;
   pointer-events: none;
   filter: drop-shadow(0 18px 20px rgba(226, 91, 138, 0.22));
   animation: hcat-float 4.5s ease-in-out infinite;
}
.hcat-bag svg { width: 100%; height: auto; display: block; }
@keyframes hcat-float {
   0%, 100% { transform: translateY(0); }
   50% { transform: translateY(-8px); }
}
.hcat-grid {
   display: grid;
   grid-template-columns: repeat(5, minmax(0, 1fr));
   gap: 18px;
   list-style: none;
   margin: 0 0 24px;
   padding: 0;
}
.hcat-card {
   display: flex;
   flex-direction: column;
   min-height: 100%;
   overflow: hidden;
   border: 1px solid rgba(23, 24, 43, 0.05);
   border-radius: 22px;
   background: #fff;
   box-shadow: 0 14px 32px -20px rgba(23, 24, 43, 0.5);
   text-decoration: none;
   color: inherit;
   transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hcat-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 22px 36px -18px rgba(23, 24, 43, 0.3);
   color: inherit;
}
.hcat-card__art {
   display: flex;
   align-items: center;
   justify-content: center;
   height: 128px;
   background: var(--hcat-bg, #fde8f1);
}
.hcat-card__art svg {
   width: 108px;
   height: 86px;
   transition: transform 0.28s ease;
}
.hcat-card:hover .hcat-card__art svg { transform: translateY(-5px) scale(1.05); }
.hcat-card__foot {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   padding: 14px 14px 16px;
}
.hcat-card__name {
   display: block;
   color: #17182b;
   font-size: 14.5px;
   font-weight: 800;
   line-height: 1.3;
}
.hcat-card__count {
   display: block;
   margin-top: 3px;
   color: #8b919e;
   font-size: 12.5px;
   font-weight: 600;
}
.hcat-card__go {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 32px;
   height: 32px;
   flex: 0 0 32px;
   border-radius: 50%;
   background: var(--hcat-arrow, #e25b8a);
   color: #fff;
   font-size: 12px;
   box-shadow: 0 6px 14px rgba(23, 24, 43, 0.12);
   transition: transform 0.2s ease;
}
.hcat-card:hover .hcat-card__go { transform: translateX(3px); }
.hcat-banner {
   display: flex;
   align-items: center;
   gap: 18px;
   padding: 18px 22px;
   border-radius: 22px;
   background: linear-gradient(90deg, #ffe9f1 0%, #fff5f8 45%, #ffeef4 100%);
   border: 1px solid rgba(226, 91, 138, 0.12);
   box-shadow: 0 10px 24px -18px rgba(226, 91, 138, 0.35);
}
.hcat-banner__mark {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 48px;
   height: 48px;
   flex: 0 0 48px;
   border-radius: 8px;
   background: #e25b8a;
   color: #fff;
   font-size: 20px;
   font-weight: 800;
   line-height: 1;
   transform: rotate(45deg);
   box-shadow: 0 8px 18px rgba(226, 91, 138, 0.35);
}
.hcat-banner__mark > span {
   transform: rotate(-45deg);
   display: block;
}
.hcat-banner > div:first-of-type {
   min-width: 0;
}
.hcat-banner__title {
   margin: 0 0 2px;
   color: #17182b;
   font-size: 19px;
   font-weight: 800;
}
.hcat-banner__text {
   margin: 0;
   color: #6d7385;
   font-size: 14px;
}
.hcat-banner__cta {
   position: relative;
   margin-left: auto;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 13px 22px;
   border-radius: 999px;
   background: #e25b8a;
   color: #fff !important;
   font-weight: 800;
   text-decoration: none;
   white-space: nowrap;
   box-shadow: 0 12px 24px rgba(226, 91, 138, 0.32);
   transition: background 0.18s ease, transform 0.18s ease;
}
.hcat-banner__cta::before {
   content: "";
   position: absolute;
   top: -10px;
   right: 18px;
   width: 28px;
   height: 10px;
   background:
      linear-gradient(90deg, transparent 0 4px, #e25b8a 4px 6px, transparent 6px 12px, #e25b8a 12px 14px, transparent 14px 20px, #e25b8a 20px 22px, transparent 22px) center / 100% 2px no-repeat,
      linear-gradient(90deg, transparent 2px 6px, #e25b8a 6px 8px, transparent 8px 14px, #e25b8a 14px 16px, transparent 16px) 0 5px / 100% 2px no-repeat;
   opacity: 0.7;
   pointer-events: none;
}
.hcat-banner__cta:hover {
   background: #c94474;
   color: #fff !important;
   transform: translateY(-1px);
}
@media (max-width: 1200px) {
   .hcat-note { font-size: 15px; width: 100px; }
   .hcat-bag { width: 130px; }
}
@media (max-width: 1100px) {
   .hcat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
   .hcat-note,
   .hcat-bag { display: none; }
}
@media (max-width: 640px) {
   .hcat { padding: 40px 0 48px; }
   .hcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
   .hcat-card { border-radius: 18px; }
   .hcat-card__art { height: 104px; }
   .hcat-card__art svg { width: 92px; height: 72px; }
   .hcat-card__name { font-size: 13.5px; }
   .hcat-banner { flex-direction: column; align-items: flex-start; text-align: left; padding: 16px; }
   .hcat-banner__cta { margin-left: 0; width: 100%; justify-content: center; }
   .hcat-banner__cta::before { display: none; }
}

/* Popular Stores redesign — scoped (.hstr) */
.hstr {
   position: relative;
   padding: 56px 0 64px;
   background:
      radial-gradient(420px 240px at 6% 8%, rgba(var(--theme-primary-rgb, 211, 119, 176), 0.13), transparent 70%),
      radial-gradient(360px 220px at 94% 4%, rgba(var(--theme-primary-rgb, 211, 119, 176), 0.1), transparent 68%),
      #fffafc;
   overflow: hidden;
}
.hstr::before {
   content: "";
   position: absolute;
   left: 4%;
   top: 72px;
   width: 140px;
   height: 140px;
   background-image: radial-gradient(rgba(var(--theme-primary-rgb, 211, 119, 176), 0.28) 1.2px, transparent 1.2px);
   background-size: 12px 12px;
   opacity: 0.55;
   pointer-events: none;
}
.hstr-head {
   position: relative;
   max-width: 720px;
   margin: 0 auto 22px;
   text-align: center;
}
.hstr-kicker {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   margin: 0 0 12px;
   padding: 7px 14px;
   border-radius: 999px;
   background: rgba(var(--theme-primary-rgb, 211, 119, 176), 0.12);
   color: var(--theme-primary, #d377b0);
   font-size: 12px;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
}
.hstr-title {
   margin: 0 0 10px;
   color: #17182b;
   font-size: clamp(30px, 4vw, 44px);
   font-weight: 800;
   line-height: 1.15;
   letter-spacing: -0.03em;
}
.hstr-title span {
   position: relative;
   color: var(--theme-primary, #d377b0);
}
.hstr-title span::after {
   content: "";
   position: absolute;
   right: -22px;
   top: 8px;
   width: 16px;
   height: 16px;
   background:
      linear-gradient(135deg, transparent 40%, var(--theme-primary, #d377b0) 40%, var(--theme-primary, #d377b0) 52%, transparent 52%),
      linear-gradient(135deg, transparent 48%, var(--theme-primary, #d377b0) 48%, var(--theme-primary, #d377b0) 58%, transparent 58%),
      linear-gradient(135deg, transparent 56%, var(--theme-primary, #d377b0) 56%, var(--theme-primary, #d377b0) 64%, transparent 64%);
   opacity: 0.75;
}
.hstr-lead {
   margin: 0 auto;
   max-width: 48ch;
   color: #6d7385;
   font-size: 16px;
   line-height: 1.55;
}
.hstr-note {
   position: absolute;
   left: -150px;
   top: 58%;
   color: #e25b8a;
   font-family: "Segoe Script", "Brush Script MT", "Apple Chancery", cursive;
   font-size: 15px;
   font-weight: 600;
   transform: rotate(-8deg);
   pointer-events: none;
   white-space: nowrap;
}
.hstr-note::after {
   content: "";
   position: absolute;
   left: 70%;
   top: 100%;
   width: 54px;
   height: 28px;
   border: 2px solid #e25b8a;
   border-left: 0;
   border-top: 0;
   border-radius: 0 0 40px 0;
   transform: rotate(12deg);
   opacity: 0.8;
}
.hstr-bag {
   position: absolute;
   right: -150px;
   top: -24px;
   width: 170px;
   pointer-events: none;
   filter: drop-shadow(0 16px 18px rgba(226, 91, 138, 0.18));
}
.hstr-bag svg { width: 100%; height: auto; display: block; }
.hstr-filters {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 10px;
   margin: 0 0 22px;
}
.hstr-filter {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 16px;
   border: 1.5px solid rgba(23, 24, 43, 0.1);
   border-radius: 999px;
   background: #fff;
   color: #5b6172;
   font-size: 13.5px;
   font-weight: 700;
   line-height: 1;
   cursor: pointer;
   text-decoration: none;
   transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.hstr-filter:hover {
   border-color: rgba(var(--theme-primary-rgb, 211, 119, 176), 0.4);
   color: var(--theme-primary-hover, #b95794);
   transform: translateY(-1px);
}
.hstr-filter.is-active {
   background: var(--theme-primary, #d377b0);
   border-color: var(--theme-primary, #d377b0);
   color: #fff;
   box-shadow: 0 10px 20px rgba(var(--theme-primary-rgb, 211, 119, 176), 0.28);
}
.hstr-filter--more { color: #5b6172; }
.hstr-grid {
   display: grid;
   grid-template-columns: repeat(5, minmax(0, 1fr));
   gap: 16px;
   list-style: none;
   margin: 0 0 22px;
   padding: 0;
}
.hstr-item[hidden] { display: none !important; }
.hstr-card {
   position: relative;
   display: flex;
   flex-direction: column;
   min-height: 100%;
   overflow: hidden;
   border: 1px solid rgba(23, 24, 43, 0.06);
   border-radius: 18px;
   background: #fff;
   box-shadow: 0 12px 28px -18px rgba(23, 24, 43, 0.45);
   text-decoration: none;
   color: inherit;
   transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hstr-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 18px 32px -16px rgba(23, 24, 43, 0.28);
   color: inherit;
}
.hstr-card__badge {
   position: absolute;
   top: 10px;
   left: 10px;
   z-index: 2;
   display: inline-flex;
   align-items: center;
   gap: 4px;
   padding: 4px 9px;
   border-radius: 999px;
   background: var(--hstr-badge, #e25b8a);
   color: #fff;
   font-size: 10.5px;
   font-weight: 800;
   letter-spacing: 0.02em;
   box-shadow: 0 6px 14px rgba(23, 24, 43, 0.12);
}
.hstr-card__logo {
   display: flex;
   align-items: center;
   justify-content: center;
   height: 118px;
   padding: 18px 16px 8px;
   background: linear-gradient(180deg, var(--hstr-bg, #fff5f8) 0%, #fff 100%);
}
.hstr-card__logo img {
   max-width: 96px;
   max-height: 72px;
   width: auto;
   height: auto;
   object-fit: contain;
   transition: transform 0.25s ease;
}
.hstr-card:hover .hstr-card__logo img { transform: translateY(-3px) scale(1.04); }
.hstr-card__foot {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   padding: 10px 12px 14px;
}
.hstr-card__name {
   display: block;
   color: #17182b;
   font-size: 14.5px;
   font-weight: 800;
   line-height: 1.3;
   overflow-wrap: anywhere;
}
.hstr-card__count {
   display: block;
   margin-top: 2px;
   color: #8b919e;
   font-size: 12px;
   font-weight: 600;
}
.hstr-card__go {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 30px;
   height: 30px;
   flex: 0 0 30px;
   border-radius: 50%;
   background: var(--hstr-arrow, #e25b8a);
   color: #fff;
   font-size: 12px;
   transition: transform 0.2s ease;
}
.hstr-card:hover .hstr-card__go { transform: translateX(3px); }
.hstr-banner {
   display: flex;
   align-items: center;
   gap: 16px;
   padding: 16px 18px;
   border-radius: 20px;
   background: linear-gradient(90deg, #fff5f8 0%, #fff 55%, #fff0f5 100%);
   border: 1px solid rgba(var(--theme-primary-rgb, 211, 119, 176), 0.12);
}
.hstr-banner__mark {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 46px;
   height: 46px;
   border-radius: 14px;
   background: #ffe4ee;
   color: var(--theme-primary, #d377b0);
   font-size: 18px;
   flex: 0 0 46px;
}
.hstr-banner__title {
   margin: 0 0 2px;
   color: #17182b;
   font-size: 18px;
   font-weight: 800;
}
.hstr-banner__text {
   margin: 0;
   color: #6d7385;
   font-size: 14px;
}
.hstr-banner__cta {
   position: relative;
   margin-left: auto;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 12px 18px;
   border-radius: 999px;
   background: var(--theme-primary, #d377b0);
   color: #fff !important;
   font-weight: 800;
   text-decoration: none;
   white-space: nowrap;
   box-shadow: 0 10px 22px rgba(var(--theme-primary-rgb, 211, 119, 176), 0.28);
   transition: background 0.18s ease, transform 0.18s ease;
}
.hstr-banner__cta:hover {
   background: var(--theme-primary-hover, #b95794);
   color: #fff !important;
   transform: translateY(-1px);
}
@media (max-width: 1100px) {
   .hstr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
   .hstr-bag,
   .hstr-note,
   .hstr::before { display: none; }
}
@media (max-width: 640px) {
   .hstr { padding: 36px 0 44px; }
   .hstr-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
   .hstr-filter { flex: 0 0 auto; }
   .hstr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
   .hstr-card__logo { height: 100px; }
   .hstr-card__name { font-size: 13.5px; }
   .hstr-banner { flex-direction: column; align-items: flex-start; text-align: left; }
   .hstr-banner__cta { margin-left: 0; width: 100%; justify-content: center; }
}
