/* The commerce home is a working desk: one place to start, then useful layouts. */
.commerce-home {
  --commerce-ink: #24262b;
  --commerce-muted: #6c6d76;
  --commerce-brand: #875561;
  --commerce-line: #e5e5e9;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--commerce-ink);
}
.commerce-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; margin-bottom: 26px; }
.commerce-intro-copy { min-width: 0; }
.commerce-intro h1 { font-size: 34px; line-height: 1.3; letter-spacing: -.04em; font-weight: 650; }
.commerce-intro p { margin-top: 10px; color: var(--commerce-muted); font-size: 14px; line-height: 1.75; }
.commerce-mascot { position: relative; flex: 0 0 64px; width: 64px; height: 76px; padding: 0; overflow: hidden; border-radius: 28px 28px 17px 17px; background: #f3edf0; }
.commerce-mascot img { position: absolute; top: 2px; left: 5px; width: 54px; max-width: none; height: 105px; object-fit: contain; }
.commerce-mascot-play { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid #fbfbfc; border-radius: 50%; color: #fff; background: var(--commerce-brand); }
.commerce-mascot-play svg { margin-left: 1px; }
.commerce-home .resume-card { min-height: 64px; margin-bottom: 18px; padding: 12px 0; gap: 12px; border: 0; border-top: 1px solid var(--commerce-line); border-radius: 0; background: transparent; }
.commerce-home .resume-card:hover { background: #f4f3f5; }
.commerce-home .resume-icon { width: 34px; height: 38px; border-radius: 7px; color: var(--commerce-brand); background: #f1e9ec; }
.commerce-home .resume-copy strong { color: var(--commerce-ink); font-size: 13px; font-weight: 600; }
.commerce-home .resume-copy span { color: var(--commerce-muted); font-size: 12px; }
.commerce-launcher { display: grid; grid-template-columns: minmax(0,2fr) repeat(2,minmax(0,1fr)); width: 100%; min-height: 174px; overflow: hidden; border: 1px solid var(--commerce-line); border-radius: 14px; background: #fff; }
.commerce-tool { position: relative; min-width: 0; margin: 0; padding: 26px 24px 24px; text-align: left; transition: background .15s; }
.commerce-tool:hover { background: #f7f5f7; }
.commerce-tool-title { display: block; color: var(--commerce-ink); font-size: 19px; font-weight: 600; letter-spacing: -.025em; line-height: 1.5; }
.commerce-tool-description { display: block; margin-top: 7px; color: var(--commerce-muted); font-size: 13px; line-height: 1.7; }
.commerce-tool-action { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; margin-top: 19px; color: var(--commerce-brand); font-size: 12px; line-height: 1.6; font-weight: 550; }
.commerce-tool-video { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-right: 22px; background: #f8f5f7; }
.commerce-tool-video:hover { background: #f3edf1; }
.commerce-video-copy { position: relative; z-index: 1; min-width: 0; }
.commerce-tool-video .commerce-tool-title { font-size: 23px; }
.commerce-video-sample { position: relative; display: block; flex: 0 0 112px; width: 112px; height: 131px; margin: -9px 0 -9px; overflow: hidden; border: 4px solid #fff; border-radius: 8px; background: #eeeaf2; transform: rotate(5deg); box-shadow: 0 2px 7px #3d27300a; }
.commerce-video-sample>img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%; }
.commerce-video-sample>span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.commerce-video-sample>span>svg { box-sizing: content-box; padding: 10px 10px 10px 12px; border: 1px solid #fff9; border-radius: 50%; background: #3e31425e; }
.commerce-tool-compact { border-left: 1px solid var(--commerce-line); }
.commerce-tool-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.commerce-tool-heading>svg { width: 19px; height: 19px; color: #8b7d84; }
.commerce-tool-compact .commerce-tool-title { font-size: 17px; }
.commerce-example-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; min-height: 44px; margin: 9px 0 32px; color: var(--commerce-muted); font-size: 12px; line-height: 1.7; }
.commerce-example-row button { min-height: 44px; padding: 8px 2px; color: var(--commerce-brand); text-decoration: underline; text-decoration-color: #bda5ad; text-underline-offset: 3px; }
.commerce-layouts { min-width: 0; }
.commerce-layout-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.commerce-layout-heading>div { min-width: 0; }
.commerce-layout-heading h2 { scroll-margin-top: 90px; color: var(--commerce-ink); font-size: 23px; line-height: 1.5; font-weight: 600; letter-spacing: -.03em; }
.commerce-layout-heading p { margin-top: 4px; color: var(--commerce-muted); font-size: 13px; line-height: 1.7; }
.commerce-search { display: flex; align-items: center; gap: 8px; width: 226px; max-width: 100%; min-height: 42px; margin: 0; padding: 0 12px; border: 1px solid var(--commerce-line); border-radius: 9px; color: #888990; background: #fff; }
.commerce-search:focus-within { border-color: #af8d99; box-shadow: 0 0 0 3px #8755610a; }
.commerce-search svg { width: 17px; height: 17px; }
.commerce-search input { min-width: 0; padding: 10px 0; border: 0; border-radius: 0; color: var(--commerce-ink); background: transparent; font-size: 13px; line-height: 1.6; font-weight: 400; box-shadow: none; }
.commerce-search input:focus { border: 0; box-shadow: none; }
.commerce-search input::placeholder { color: #888990; }
.commerce-layout-toolbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 45px; border-bottom: 1px solid var(--commerce-line); }
.commerce-type-tabs { display: flex; align-items: stretch; gap: 25px; min-width: 0; }
.commerce-type-tab { position: relative; min-height: 45px; padding: 10px 0 12px; color: var(--commerce-muted); font-size: 13px; line-height: 1.7; white-space: nowrap; }
.commerce-type-tab.is-active { color: var(--commerce-ink); font-weight: 600; }
.commerce-type-tab.is-active:after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--commerce-brand); }
.commerce-type-tab:hover { color: var(--commerce-brand); }
.commerce-category-filter { position: relative; flex-shrink: 0; min-width: 0; }
.commerce-category-filter>summary { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-height: 44px; padding: 9px 0 10px 10px; color: #64616a; font-size: 12px; line-height: 1.7; cursor: pointer; list-style: none; }
.commerce-category-filter>summary::-webkit-details-marker { display: none; }
.commerce-category-filter[open]>summary>svg { transform: rotate(180deg); }
.commerce-category-options { position: absolute; z-index: 5; top: calc(100% + 7px); right: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; width: 224px; padding: 7px; border: 1px solid #dedbe0; border-radius: 11px; background: #fff; box-shadow: 0 8px 28px #28212c12; }
.commerce-category-option { min-width: 0; min-height: 42px; padding: 9px 13px; border-radius: 6px; color: var(--commerce-muted); text-align: left; font-size: 13px; line-height: 1.6; }
.commerce-category-option:hover { background: #f6f3f5; }
.commerce-category-option.is-active { color: var(--commerce-brand); background: #f2e9ed; font-weight: 550; }
.commerce-filter-summary { margin: 12px 0 17px; color: #82818a; font-size: 12px; line-height: 1.7; }
.commerce-home .template-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px 21px; }
.commerce-home .template-card { overflow: visible; border: 0; border-radius: 0; background: transparent; transition: none; }
body[data-space="commerce"] .commerce-home .template-card:hover { transform: none; box-shadow: none; }
.commerce-home .template-art { overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid #e4e2e7; border-radius: 10px; background: #eeeef1; }
body[data-space="commerce"] .commerce-home .template-art>img { transition: none; }
body[data-space="commerce"] .commerce-home .template-card:hover .template-art>img { transform: none; }
.commerce-home .template-open:hover .template-art { border-color: #bdabb5; }
.commerce-home .template-text { padding: 12px 2px 0; }
.commerce-home .template-text h3 { color: #38373f; font-size: 14px; font-weight: 550; letter-spacing: 0; line-height: 1.65; }
.commerce-home .template-text p { margin-top: 3px; color: #7a7882; font-size: 12px; line-height: 1.7; }
.commerce-home .favorite-button { top: 5px; right: 5px; width: 36px; height: 36px; border: 1px solid #fff9; border-radius: 8px; color: #77717b; background: #ffffffeb; backdrop-filter: none; }
.commerce-home .favorite-button.saved { color: var(--commerce-brand); }
.commerce-home .favorite-button>svg { width: 15px; height: 15px; }
.commerce-home .empty-state { border: 1px dashed var(--commerce-line); border-radius: 10px; background: transparent; }
.commerce-home .empty-state h2 { font-size: 18px; }
.commerce-home .empty-state p { font-size: 13px; }
.commerce-more-layouts { display: flex; justify-content: center; margin-top: 24px; }
.commerce-more-layouts button { min-height: 44px; padding: 10px 22px; border: 1px solid #dedbe1; border-radius: 8px; color: #655c67; background: transparent; font-size: 13px; line-height: 1.7; }
.commerce-more-layouts button:hover { background: #f2edf0; }

/* A small art direction strip gives the home a point of view without turning
   the workspace into a noisy template wall. */
.art-gallery { margin: 52px 0 54px; }
.art-gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.art-overline { margin: 0 0 8px; color: #9a6d7a; font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.art-gallery-heading h2 { color: var(--commerce-ink); font-size: 23px; line-height: 1.5; font-weight: 600; letter-spacing: -.03em; }
.art-gallery-heading p:last-child { margin-top: 5px; color: var(--commerce-muted); font-size: 13px; line-height: 1.7; }
.art-gallery-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--commerce-brand); font-size: 13px; white-space: nowrap; }
.art-gallery-link:hover { color: #593844; }
.art-gallery-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 11px; }
.art-gallery-card { display: block; min-width: 0; color: var(--commerce-ink); }
.art-gallery-card img { width: 100%; aspect-ratio: 1 / 1.12; border: 1px solid #e4e2e7; border-radius: 10px; background: #eeeef1; object-fit: cover; transition: transform .18s, box-shadow .18s; }
.art-gallery-card:hover img { transform: translateY(-3px); box-shadow: 0 11px 23px #3b233111; }
.art-gallery-card span { display: block; padding: 8px 2px 0; }
.art-gallery-card strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.6; }
.art-gallery-card small { display: block; margin-top: 2px; color: var(--commerce-muted); font-size: 11px; line-height: 1.5; }
.admin-link { color: #75646c !important; }
.admin-link:hover { color: var(--commerce-brand) !important; }

@media (min-width: 761px) and (max-width: 1150px) {
  .commerce-launcher { grid-template-columns: minmax(0,1.55fr) repeat(2,minmax(0,1fr)); }
  .commerce-tool { padding-left: 20px; padding-right: 20px; }
  .commerce-tool-video { gap: 12px; }
  .commerce-video-sample { flex-basis: 80px; width: 80px; height: 112px; margin-right: -3px; }
  .commerce-tool-title { font-size: 17px; }
  .commerce-tool-video .commerce-tool-title { font-size: 21px; }
  .commerce-tool-heading { flex-wrap: wrap; gap: 5px; }
  .commerce-tool-heading>svg { display: none; }
  .commerce-tool-description { font-size: 12px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .commerce-home .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .commerce-video-sample { display: none; }
}
@media (max-width: 760px) {
  .art-gallery { margin: 42px 0 43px; }
  .art-gallery-heading { align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 15px; }
  .art-gallery-heading h2 { font-size: 21px; }
  .art-gallery-heading p:last-child { font-size: 12px; }
  .art-gallery-link { min-height: 38px; font-size: 12px; }
  .art-gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px 10px; }
  .art-gallery-card img { border-radius: 8px; }
  .art-gallery-card strong { font-size: 11px; }
  .art-gallery-card small { font-size: 10px; }
  .commerce-intro { gap: 18px; min-height: 75px; margin-bottom: 22px; }
  .commerce-intro h1 { font-size: 29px; }
  .commerce-intro p { max-width: 245px; margin-top: 8px; font-size: 13px; line-height: 1.75; }
  .commerce-mascot { flex-basis: 56px; width: 56px; height: 68px; border-radius: 23px 23px 14px 14px; }
  .commerce-mascot img { width: 49px; height: 95px; left: 4px; }
  .commerce-mascot-play { width: 22px; height: 22px; right: 0; bottom: 0; }
  .commerce-home .resume-card { min-height: 60px; padding: 10px 0; margin-bottom: 14px; }
  .commerce-launcher { grid-template-columns: repeat(2,minmax(0,1fr)); min-height: 0; border-radius: 12px; }
  .commerce-tool-video { grid-column: 1 / -1; min-height: 154px; padding: 22px 23px; gap: 18px; }
  .commerce-tool-video .commerce-tool-title { font-size: 23px; }
  .commerce-tool-video .commerce-tool-description { font-size: 13px; }
  .commerce-video-sample { flex-basis: 91px; width: 91px; height: 113px; margin: -6px 3px -6px 0; }
  .commerce-tool-compact { min-height: 132px; padding: 18px 20px 14px; border-top: 1px solid var(--commerce-line); border-left: 0; }
  .commerce-tool-compact+.commerce-tool-compact { border-left: 1px solid var(--commerce-line); }
  .commerce-tool-heading { gap: 7px; }
  .commerce-tool-heading>svg { width: 17px; height: 17px; }
  .commerce-tool-compact .commerce-tool-title { font-size: 16px; }
  .commerce-tool-compact .commerce-tool-description { display: block; margin-top: 5px; font-size: 12px; }
  .commerce-tool-action { margin-top: 13px; min-height: 28px; font-size: 12px; }
  .commerce-example-row { margin-top: 8px; margin-bottom: 25px; font-size: 12px; }
  .commerce-layout-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 13px; }
  .commerce-layout-heading h2 { font-size: 22px; }
  .commerce-layout-heading p { margin-top: 4px; font-size: 12px; }
  .commerce-search { width: 100%; min-height: 44px; border-radius: 8px; }
  .commerce-search input { padding-top: 9px; padding-bottom: 9px; font-size: 16px; }
  .commerce-layout-toolbar { gap: 12px; }
  .commerce-type-tabs { gap: 23px; }
  .commerce-type-tab { min-height: 44px; font-size: 13px; }
  .commerce-category-filter>summary { padding-left: 4px; font-size: 12px; }
  .commerce-category-options { width: 214px; }
  .commerce-category-option { min-height: 44px; }
  .commerce-filter-summary { margin: 12px 0 15px; font-size: 12px; }
  .commerce-home .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .commerce-home .template-art { border-radius: 8px; }
  .commerce-home .template-text { padding: 9px 1px 0; }
  .commerce-home .template-text h3 { font-size: 13px; line-height: 1.65; }
  .commerce-home .template-text p { font-size: 12px; line-height: 1.7; }
  .commerce-home .favorite-button { top: auto; bottom: 0; right: -5px; width: 44px; height: 44px; border: 0; border-radius: 0; color: #8e808a; background: transparent; }
  .commerce-home .favorite-button.saved { color: var(--commerce-brand); }
  .commerce-home .template-text p { padding-right: 31px; }
  .commerce-more-layouts { margin-top: 23px; }
}
@media (max-width: 380px) {
  .art-gallery-grid { gap: 15px 8px; }
  .commerce-intro { gap: 12px; }
  .commerce-intro h1 { font-size: 28px; }
  .commerce-intro p { max-width: 215px; font-size: 12px; }
  .commerce-tool-video { min-height: 150px; padding: 20px 17px; gap: 10px; }
  .commerce-tool-video .commerce-tool-title { font-size: 21px; }
  .commerce-tool-video .commerce-tool-description { font-size: 12px; }
  .commerce-video-sample { flex-basis: 78px; width: 78px; height: 103px; margin-right: 0; }
  .commerce-tool-compact { padding: 17px 14px 13px; }
  .commerce-tool-heading { gap: 6px; }
  .commerce-tool-heading>svg { display: none; }
  .commerce-tool-compact .commerce-tool-title { font-size: 16px; }
  .commerce-tool-compact .commerce-tool-description { font-size: 11px; }
  .commerce-type-tabs { gap: 18px; }
  .commerce-type-tab { font-size: 12px; }
  .commerce-category-filter>summary { gap: 4px; font-size: 11px; }
  .commerce-home .template-grid { gap: 20px 11px; }
  .commerce-home .template-text h3 { font-size: 12px; }
  .commerce-home .template-text p { font-size: 11px; padding-right: 25px; }
  .commerce-home .favorite-button { right: -7px; }
}
@media (prefers-reduced-motion: reduce) {
  .commerce-home *, .commerce-home *:before, .commerce-home *:after { transition: none !important; animation: none !important; }
}
