.em-category-page{padding:30px 25px 70px;min-height:55vh}.em-category-container{max-width:1400px;margin:0 auto}.em-category-page .woocommerce-breadcrumb{margin-bottom:25px;font-size:13px}.em-category-hero{display:grid;grid-template-columns:1fr minmax(0,350px);gap:32px;align-items:center;padding:34px 38px;border-radius:18px;background:var(--em-paper,#f8f5fa);margin-bottom:40px}.em-category-hero h1{margin:8px 0 15px;font-size:clamp(30px,4vw,48px);line-height:1.12}.em-category-eyebrow{font-size:12px;color:var(--em-purple,#76528d);text-transform:uppercase;letter-spacing:.08em}.em-category-description{line-height:1.7;color:color-mix(in srgb,var(--em-charcoal,#382b40) 38%,var(--em-sub,#625961))}.em-category-featured img{max-height:270px;width:100%;object-fit:contain;border-radius:12px}.em-category-section{margin:0 0 40px}.em-category-section h2{font-size:clamp(22px,2.5vw,30px);margin:0 0 22px}.em-category-subcats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.em-category-subcat{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--em-lavender,#eae2ef);border-radius:14px;color:var(--em-charcoal,#30283b);text-decoration:none!important;background:white}.em-category-subcat img,.em-category-placeholder{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:9px;background:var(--em-paper,#faf8fb)}.em-category-placeholder{display:flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--em-purple,#76528d) 77%,var(--em-lilac,#b39acf));font-size:32px}.em-category-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.em-category-card{min-width:0;border:1px solid var(--em-lavender,#eee7f0);border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}.em-category-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px color-mix(in srgb,var(--em-charcoal,#2f2a2d) 7%,transparent)}.em-category-picture{display:block;aspect-ratio:1/1;background:var(--em-paper,#faf8fb)}.em-category-picture img{width:100%;height:100%;object-fit:contain}.em-category-card-content{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:17px;flex:1}.em-category-name{font-weight:650;font-size:15px;line-height:1.4;color:color-mix(in srgb,var(--em-charcoal,#382b40) 82%,#000);text-decoration:none!important}.em-category-price{color:var(--em-purple,#76528d);font-size:16px;font-weight:700;margin:0}.em-category-action{display:inline-block;margin-top:auto;padding:11px 17px!important;text-decoration:none!important;border-radius:8px!important;background:var(--em-purple,#76528d)!important;color:white!important;font-size:13px!important;font-weight:600!important;line-height:1.3!important;box-shadow:none!important;border:1px solid var(--em-purple,#76528d)!important}.em-category-action:hover{background:color-mix(in srgb,var(--em-charcoal,#382b40) 34%,var(--em-purple,#76528d))!important;color:#fff!important}.em-category-outline{background:#fff!important;color:var(--em-purple,#76528d)!important}.em-category-outline:hover{color:white!important}.em-category-pagination ul{display:flex;justify-content:center;gap:8px;list-style:none;padding:0}.em-category-pagination a,.em-category-pagination span{display:inline-flex;padding:9px 13px;border-radius:7px;border:1px solid var(--em-lavender,#e9e1ec);text-decoration:none}.em-category-pagination .current{background:var(--em-purple,#76528d);color:white}@media(max-width:950px){.em-category-products,.em-category-subcats{grid-template-columns:repeat(2,minmax(0,1fr))}.em-category-hero{grid-template-columns:1fr 230px}}@media(max-width:600px){.em-category-page{padding:20px 15px 45px}.em-category-hero{grid-template-columns:1fr;padding:22px}.em-category-featured img{max-height:200px}.em-category-products{gap:12px}.em-category-card-content{padding:12px}.em-category-action{padding:10px!important}.em-category-subcats{gap:12px}}


/* V0.3.1 — compact empty hero and consistent, polished product cards. */
.em-category-page,.em-category-page *{box-sizing:border-box}
.em-category-page{padding:30px 25px 65px}
.em-category-container{width:100%;max-width:1400px!important;margin-inline:auto!important}
.em-category-page .woocommerce-breadcrumb{margin:0 0 18px!important}
.em-category-hero{margin-bottom:32px;padding:28px 32px}
.em-category-hero--compact{display:block;padding:19px 0 16px;background:transparent;border-radius:0;margin-bottom:22px}
.em-category-hero--compact h1{margin:4px 0 0;font-size:clamp(31px,3.1vw,43px)}
.em-category-hero--compact .em-category-eyebrow{margin:0 0 5px}
.em-category-section{margin:0 0 35px}
.em-category-section h2{font-family:inherit;font-weight:650;font-size:clamp(21px,2.2vw,27px);line-height:1.3;margin:0 0 18px}
.em-category-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:21px;align-items:stretch}
.em-category-card{border:1px solid var(--em-lavender,#ebe4ee)!important;border-radius:15px!important;box-shadow:0 2px 8px rgba(55,38,67,.035);overflow:hidden;min-width:0;height:100%;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.em-category-card:hover{transform:translateY(-4px);box-shadow:0 12px 27px rgba(55,38,67,.11);border-color:color-mix(in srgb,var(--em-lilac,#b39acf) 30%,var(--em-line,#e3dbe9))!important}
.em-category-card:focus-within{border-color:color-mix(in srgb,var(--em-purple,#76528d) 57%,var(--em-lilac,#b39acf))!important}
.em-category-picture{width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--em-paper,#faf8fb)}
.em-category-picture img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain;transition:transform .25s ease}
.em-category-card:hover .em-category-picture img{transform:scale(1.035)}
.em-category-card-content{width:100%;align-items:stretch;gap:10px;padding:16px 17px 18px}
.em-category-name{display:block;font-size:15px;line-height:1.5;min-height:2.9em;font-weight:650}
.em-category-name:hover{color:var(--em-purple,#76528d)}
.em-category-rating{min-height:16px;line-height:1}
.em-category-rating .star-rating{float:none!important;margin:0!important}
.em-category-price{font-size:17px;line-height:1.3;font-weight:700;margin:0 0 5px!important}
.em-category-action{align-self:flex-start;display:inline-flex!important;align-items:center;justify-content:center;min-height:41px;padding:10px 17px!important;margin-top:auto;border-radius:9px!important;text-align:center;white-space:normal}
.em-category-subcat{transition:transform .2s ease,box-shadow .2s ease}
.em-category-subcat:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(55,38,67,.09)}
@media(max-width:1000px){.em-category-products,.em-category-subcats{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:600px){.em-category-page{padding:20px 15px 45px}.em-category-hero{padding:20px;margin-bottom:20px}.em-category-hero--compact{padding:10px 0 8px}.em-category-section h2{margin-bottom:15px}.em-category-products,.em-category-subcats{gap:12px}.em-category-card-content{padding:12px;gap:8px}.em-category-name{font-size:14px}.em-category-action{font-size:12px!important;padding:10px 12px!important;min-height:40px}}
@media(max-width:380px){.em-category-products{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.em-category-card,.em-category-picture img,.em-category-subcat{transition:none!important}.em-category-card:hover,.em-category-card:hover img,.em-category-subcat:hover{transform:none!important}}

/* V0.3.2 category cards — preserve child-category-first ordering. */
.em-category-subcat{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}
.em-category-subcat:hover{transform:translateY(-3px);box-shadow:0 12px 27px rgba(55,38,67,.11);border-color:color-mix(in srgb,var(--em-lilac,#b39acf) 34%,var(--em-line,#e3dbe9))}
.em-category-subcat>img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain}
.em-category-child-title{font-weight:650;color:var(--em-charcoal,#30283b);font-size:16px;display:flex;justify-content:space-between;gap:10px}
.em-category-child-description{font-size:13px;color:color-mix(in srgb,var(--em-sub,#625961) 94%,var(--em-line,#e3dbe9));line-height:1.55}

/* V0.3.4 — one consistent split hero for all categories. */
.em-category-page .em-category-hero,.em-category-page .em-category-hero--compact{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,43%)!important;align-items:center;gap:clamp(20px,3.5vw,52px);padding:clamp(24px,3.3vw,48px)!important;min-height:300px;margin:0 0 32px!important;border:1px solid var(--em-lavender,#eee5f1);border-radius:18px!important;background:linear-gradient(115deg,var(--em-paper,#faf7fc) 0%,color-mix(in srgb,var(--em-lavender,#eadff0) 38%,var(--em-paper,#faf8fc)) 100%)!important;}
.em-category-page .em-category-hero-copy{min-width:0;max-width:650px;}
.em-category-page .em-category-hero h1{font-size:clamp(32px,3.5vw,50px)!important;line-height:1.12;margin:8px 0 18px;overflow-wrap:anywhere;}
.em-category-page .em-category-description{font-size:clamp(14px,1.2vw,17px);line-height:1.7;max-width:55ch;}
.em-category-page .em-category-description p:last-child{margin-bottom:0;}
.em-category-page .em-category-featured{width:100%;min-width:0;aspect-ratio:4/3;overflow:hidden;border-radius:13px;background:color-mix(in srgb,var(--em-lavender,#eadff0) 70%,var(--em-paper,#faf8fc));}
.em-category-page .em-category-featured img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center;border-radius:13px;}
.em-category-page .em-category-hero-placeholder{position:relative;width:100%;height:100%;min-height:225px;overflow:hidden;background:radial-gradient(circle at 74% 18%,var(--em-paper,#fefaff) 0%,var(--em-lavender,#e8dbf2) 52%,color-mix(in srgb,var(--em-lilac,#b39acf) 22%,var(--em-line,#e3dbe9)) 100%);}
.em-category-page .em-hero-paper{position:absolute;display:block;width:39%;height:58%;background:#fffafa;border:1px solid color-mix(in srgb,var(--em-lilac,#b39acf) 44%,var(--em-line,#e3dbe9));border-radius:10px;box-shadow:0 12px 24px color-mix(in srgb,var(--em-purple,#80619e) 16%,transparent);transform:rotate(-11deg);top:25%;left:25%;}
.em-category-page .em-hero-paper-b{background:var(--em-paper,#f9f1fc);transform:rotate(13deg);left:47%;top:17%;}
.em-category-page .em-hero-sparkle{position:absolute;right:12%;top:8%;font-size:36px;color:color-mix(in srgb,var(--em-purple,#76528d) 48%,var(--em-lilac,#b39acf));}
@media(max-width:720px){.em-category-page .em-category-hero,.em-category-page .em-category-hero--compact{grid-template-columns:1fr!important;min-height:0;padding:22px!important;gap:20px;}.em-category-page .em-category-featured{aspect-ratio:16/9;}.em-category-page .em-category-hero-placeholder{min-height:160px}.em-category-page .em-category-hero h1{margin:6px 0 12px!important}}

/* V0.3.6 — eight product cards per view with arrow navigation. */
.em-category-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:24px 0 6px}
.em-category-pagination a{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:104px;padding:11px 16px;border:1px solid color-mix(in srgb,var(--em-lilac,#b39acf) 15%,var(--em-line,#e3dbe9));border-radius:999px;background:#fff;color:var(--em-purple,#76528d);font-size:14px;font-weight:600;text-decoration:none;transition:background .2s ease,color .2s ease}
.em-category-pagination a:hover:not([aria-disabled=true]){background:var(--em-purple,#76528d);color:#fff}
.em-category-pagination a[aria-disabled=true]{opacity:.35;cursor:default;pointer-events:none}
.em-category-page-count{font-size:13px;color:var(--em-sub,#62596a);font-variant-numeric:tabular-nums}
@media(max-width:420px){.em-category-pagination{gap:8px}.em-category-pagination a{min-width:80px;padding:10px 11px}.em-category-pagination a span{font-size:12px}}


/* V0.3.8 — more compact eight-product carousel on the category landing page. */
.em-category-page .em-category-products{max-width:1040px;margin-inline:auto;gap:14px;overflow:visible}
.em-category-page .em-category-card-content{padding:12px 13px 14px;gap:7px}
.em-category-page .em-category-name{font-size:14px;min-height:2.75em}
.em-category-page .em-category-price{font-size:15px}
.em-category-page .em-category-action{min-height:36px;padding:8px 12px!important;font-size:12px!important}
.em-category-page .em-category-picture{aspect-ratio:1/0.88}
.em-category-page .em-category-picture img{object-fit:contain}
@media(max-width:1000px){.em-category-page .em-category-products{max-width:720px;gap:12px}}
@media(max-width:600px){.em-category-page .em-category-products{max-width:100%;gap:10px}.em-category-page .em-category-card-content{padding:10px}.em-category-page .em-category-picture{aspect-ratio:1/1}}


/* V0.3.11 — category cards use the same fixed-width SVG ratings as WooCommerce lists.
   The filled overlay still uses the actual WooCommerce rating percentage. */
.em-category-page .em-category-rating{display:flex;align-items:center;min-height:22px;line-height:1}
.em-category-page .em-category-rating .star-rating{
 display:block!important;position:relative!important;float:none!important;box-sizing:content-box!important;
 width:110px!important;min-width:110px!important;max-width:110px!important;
 height:22px!important;line-height:22px!important;overflow:hidden!important;
 margin:0!important;padding:0!important;letter-spacing:0!important;font-size:0!important;
 font-family:Arial,sans-serif!important;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath fill='%23d8ccd9' d='M11 1.3l2.99 6.05 6.67.97-4.83 4.71 1.14 6.64L11 16.54l-5.97 3.13 1.14-6.64-4.83-4.71 6.67-.97z'/%3E%3C/svg%3E") repeat-x 0 0/22px 22px!important
}
.em-category-page .em-category-rating .star-rating::before,
.em-category-page .em-category-rating .star-rating > span::before{content:none!important;display:none!important}
.em-category-page .em-category-rating .star-rating > span{
 display:block!important;position:absolute!important;top:0!important;left:0!important;height:22px!important;
 max-width:110px!important;overflow:hidden!important;white-space:nowrap!important;
 text-indent:-9999px!important;font-size:0!important;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath fill='%23e5a82e' d='M11 1.3l2.99 6.05 6.67.97-4.83 4.71 1.14 6.64L11 16.54l-5.97 3.13 1.14-6.64-4.83-4.71 6.67-.97z'/%3E%3C/svg%3E") repeat-x 0 0/22px 22px!important
}

/* Cleaner, balanced navigation beneath the eight-product slider. */
.em-category-page .em-category-pagination{gap:12px;margin:26px auto 8px;max-width:1040px}
.em-category-page .em-category-pagination a{
 min-width:118px;min-height:42px;box-sizing:border-box;padding:9px 15px;
 display:inline-flex;gap:9px;justify-content:center;align-items:center;
 border:1px solid var(--em-line,#e4d9e9);border-radius:999px;background:#fff;color:var(--em-purple,#76528d);
 font-size:13px;font-weight:650;line-height:1.2;text-decoration:none!important;
 box-shadow:0 2px 6px rgba(48,35,62,.035);
 transition:border-color .17s ease,background .17s ease,color .17s ease,box-shadow .17s ease
}
.em-category-page .em-category-pagination a:hover:not([aria-disabled="true"]){background:var(--em-purple,#76528d);border-color:var(--em-purple,#76528d);color:#fff;box-shadow:0 5px 12px color-mix(in srgb,var(--em-purple,#76528d) 14%,transparent)}
.em-category-page .em-category-pagination a:focus-visible{outline:2px solid var(--em-purple,#76528d);outline-offset:3px}
.em-category-page .em-category-pagination .em-category-page-count{border:0!important;padding:8px 10px!important;font-size:12px!important;letter-spacing:.01em;color:color-mix(in srgb,var(--em-sub,#625961) 92%,var(--em-line,#e3dbe9));background:transparent!important}
@media(max-width:420px){.em-category-page .em-category-pagination{gap:4px}.em-category-page .em-category-pagination a{min-width:92px;min-height:40px;padding:9px 10px;font-size:12px}.em-category-page .em-category-pagination .em-category-page-count{padding:8px 5px!important}}
@media(prefers-reduced-motion:reduce){.em-category-page .em-category-pagination a{transition:none}}

/* V0.3.12: paging animation uses opacity only; avoid horizontal transforms/overflow. */

/* V0.3.13 — Simple, borderless Previous / Next controls. */
.em-category-page .em-category-pagination{gap:clamp(16px,3vw,32px);margin-top:25px}
.em-category-page .em-category-pagination a,
.em-category-page .em-category-pagination a:hover,
.em-category-page .em-category-pagination a:active{
  min-width:0!important;min-height:42px!important;padding:8px 4px!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;color:var(--em-purple,#76528d)!important;
  text-decoration:none!important;font-size:14px!important;font-weight:600!important;
  transition:color .18s ease,opacity .18s ease!important;
}
.em-category-page .em-category-pagination a:hover:not([aria-disabled="true"]){color:color-mix(in srgb,var(--em-charcoal,#382b40) 57%,var(--em-purple,#76528d))!important;text-decoration:underline!important;text-underline-offset:4px}
.em-category-page .em-category-pagination a[aria-disabled="true"]{opacity:.3!important;text-decoration:none!important}
.em-category-page .em-category-pagination .em-category-page-count{color:color-mix(in srgb,var(--em-sub,#625961) 92%,var(--em-line,#e3dbe9))!important}
@media(max-width:420px){.em-category-page .em-category-pagination{gap:16px}.em-category-page .em-category-pagination a{font-size:13px!important;padding:7px 0!important}}


/* V0.3.14 — compact category heroes; preserve split layout and artwork. */
@media (min-width:721px) {
  .em-category-page .em-category-hero,
  .em-category-page .em-category-hero--compact {
    min-height:0!important;
    padding:22px 30px!important;
    gap:28px;
    margin-bottom:26px!important;
  }
  .em-category-page .em-category-featured {
    aspect-ratio:auto;
    height:220px;
  }
  .em-category-page .em-category-hero-placeholder {min-height:0;}
  .em-category-page .em-category-hero h1 {font-size:clamp(30px,3.2vw,44px)!important;margin:4px 0 12px;}
}
@media (max-width:720px) {
  .em-category-page .em-category-hero,
  .em-category-page .em-category-hero--compact {padding:18px!important;gap:14px;margin-bottom:22px!important;}
  .em-category-page .em-category-featured {aspect-ratio:auto;height:150px;}
  .em-category-page .em-category-hero-placeholder {min-height:0;}
  .em-category-page .em-category-hero h1 {font-size:clamp(28px,7vw,38px)!important;margin:3px 0 8px!important;}
}

/* V0.9.0: five products per row (ten per batch), three on tablets, two on every phone; "See more products" adds the
   next ten below instead of replacing them. (The old Previous / Next pagination styles above are no longer used.) */
.em-category-page .em-category-products{max-width:1200px;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
@media(max-width:1100px){.em-category-page .em-category-products{max-width:900px;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:760px){.em-category-page .em-category-products{max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:420px){.em-category-page .em-category-card-content{padding:9px}.em-category-page .em-category-name{font-size:13px}.em-category-page .em-category-action{padding-left:8px!important;padding-right:8px!important;font-size:12px!important}}
.em-category-more{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:1200px;margin:26px auto 6px}
.em-category-more-count{margin:0;font-size:13px;color:var(--em-sub,#625961)}
.em-category-more-button{display:inline-flex;align-items:center;justify-content:center;min-width:220px;min-height:46px;box-sizing:border-box;padding:11px 28px;border:1.5px solid var(--em-purple,#76528d);border-radius:999px;background:#fff;color:var(--em-purple,#76528d);font-size:15px;font-weight:700;text-decoration:none;transition:background .18s,color .18s}
.em-category-more-button:hover{background:var(--em-purple,#76528d);color:#fff}
.em-category-more-button:focus-visible{outline:2px solid var(--em-purple,#76528d);outline-offset:3px}
.em-category-more-button[aria-busy=true]{cursor:progress;opacity:.75}
@media(prefers-reduced-motion:reduce){.em-category-more-button{transition:none}}

/* V0.9.1: section titles get a small label above, the category name in purple on a soft highlight, and the product
   count on the right. Product cards now line up with the titles and category cards (the grid used to be capped
   narrower than the section and centred). The hero above is unchanged. */
.em-category-page .em-category-products,.em-category-page .em-category-more{max-width:none;margin-inline:0}
.em-category-page .em-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 22px;padding-bottom:14px;border-bottom:1px solid color-mix(in srgb,var(--em-purple,#80619e) 13%,var(--em-paper,#faf8f7))}
.em-category-page .em-section-eyebrow{display:flex;align-items:center;gap:7px;margin:0 0 6px;color:var(--em-purple,#80619e);font-size:11.5px;font-weight:800;line-height:1.3;letter-spacing:.14em;text-transform:uppercase}
.em-category-page .em-section-eyebrow::before{content:"✦";font-size:12px;letter-spacing:0}
.em-category-page .em-category-section .em-section-head h2{margin:0;font-family:'DM Serif Display',Georgia,serif;font-weight:400;font-size:clamp(26px,3vw,36px);line-height:1.15;letter-spacing:-.005em;color:var(--em-charcoal,#2f2a2d)}
.em-category-page .em-section-name{padding:0 .06em;color:var(--em-purple,#80619e);background:linear-gradient(transparent 64%,var(--em-lavender,#efe5f6) 64%,var(--em-lavender,#efe5f6) 94%,transparent 94%)}
.em-category-page .em-section-count{flex:0 0 auto;margin-bottom:4px;padding:6px 13px;border-radius:999px;background:color-mix(in srgb,var(--em-lavender,#eee8f5) 72%,var(--em-paper,#faf8f7));color:color-mix(in srgb,var(--em-purple,#80619e) 75%,var(--em-charcoal,#2f2a2d));font-size:12.5px;font-weight:700;line-height:1.3;white-space:nowrap}
@media(max-width:600px){
 .em-category-page .em-section-head{gap:10px;margin-bottom:16px;padding-bottom:11px}
 .em-category-page .em-category-section .em-section-head h2{font-size:24px}
 .em-category-page .em-section-eyebrow{font-size:10.5px}
 .em-category-page .em-section-count{padding:5px 10px;font-size:11.5px}
}
