/* Shared brand refinements and the photo-to-product journey. */
.market-hero__copy > .home-search-help { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #625f58; }
.search-understanding { padding: 20px 24px; margin-bottom: 24px; border-radius: 16px; background: #e9e8da; }
.search-understanding strong { display: block; color: #3e293d; font-size: 17px; overflow-wrap: anywhere; }
.search-understanding p { color: #625f58; font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
:root { --pigmo-ink: #3e293d; --pigmo-coral: #e87958; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #9b647f; outline-offset: 4px; }
.site-header { border-bottom: 1px solid #3e293d10; }
.market-hero__inner { background: #e9e8da; padding: 58px 64px; }
.market-hero h1 { font-size: clamp(48px, 6.2vw, 88px); line-height: 1; color: var(--pigmo-ink); }
.pigmo-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; }
.studio-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border-radius: 12px; background: var(--pigmo-ink); color: #fff; text-decoration: none; font-size: 14px; line-height: 1.5; font-weight: 600; text-align: center; }
.studio-primary:hover { background: #5a3b55; color: #fff; }
.studio-primary[hidden], .studio-selection[hidden], .studio-shop[hidden] { display: none; }
.market-card { border: 1px solid #3e293d0c; }
.market-card__placeholder img { width: 147px; height: 40px; object-fit: contain; }
.market-card__link { color: var(--pigmo-ink); }
/* One homepage hero: product search and a compact colour studio preview. */
.market-hero--with-studio .market-hero__inner { min-height: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding: 44px 48px; }
.market-hero--with-studio .market-hero__copy { min-width: 0; }
.market-hero--with-studio h1 { font-size: clamp(40px, 5.1vw, 72px); }
.market-hero--with-studio .market-hero__copy > p:not(.home-search-help) { margin: 22px 0; font-size: 15px; }
.market-hero--with-studio .market-hero__stats { margin-top: 22px; }
.market-hero--with-studio + .market-section { padding-top: 56px; }
.hero-studio { min-width: 0; overflow: hidden; border-radius: 20px; background: var(--pigmo-ink); color: #fff9f0; box-shadow: 0 14px 36px #3e293d12; }
.hero-studio__visual { position: relative; isolation: isolate; height: clamp(210px, 22vw, 290px); background: linear-gradient(90deg, #ddd5c6 0 40%, #859582 40% 100%); }
.hero-studio__visual > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-studio__labels { position: absolute; inset: 16px 16px auto; display: flex; justify-content: space-between; }
.hero-studio__labels > span { padding: 5px 10px; border-radius: 30px; background: #fff9f0ed; color: #3e293d; font-size: 10px; font-weight: 600; }
.hero-studio__divider { position: absolute; top: 0; bottom: 0; left: 40%; width: 1px; background: #fff9f080; }
.hero-studio__swatches { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 10px; padding: 10px 14px; border-radius: 30px; background: #fff9f0f5; box-shadow: 0 4px 20px #3e293d20; }
.hero-studio__swatches i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--preview-swatch); color: #fff; font-style: normal; font-size: 14px; }
.hero-studio__swatches .is-selected { outline: 1px solid #3e293d; outline-offset: 3px; }
.hero-studio__copy { padding: 22px 26px; }
.hero-studio__eyebrow { display: block; margin-bottom: 8px; color: #f1b39c; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.hero-studio h2 { margin: 0; font-size: clamp(20px, 2vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.hero-studio__copy > p { margin: 8px 0 12px; color: #e1d3db; font-size: 12px; line-height: 1.6; }
.hero-studio__cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; width: 100%; padding: 10px 14px; border-radius: 10px; background: #f1b39c; color: #3e293d; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s ease; }
.hero-studio__cta:hover { background: #ffd0bb; color: #3e293d; }
.hero-studio__cta:focus-visible { outline-color: #fff9f0; }
.hero-studio__cta > span { font-size: 18px; line-height: 1; }
@media (max-width: 1000px) {
    .market-hero--with-studio .market-hero__inner { gap: 28px; padding: 32px; }
    .market-hero--with-studio h1 { font-size: clamp(36px, 5vw, 50px); }
    .hero-studio__copy { padding: 20px; }
}
@media (max-width: 700px) {
    .market-hero--with-studio .market-hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px; }
    .market-hero--with-studio h1 { font-size: clamp(36px, 9.5vw, 56px); }
    .market-hero--with-studio .market-hero__copy > p:not(.home-search-help) { margin: 18px 0; font-size: 14px; }
    .market-hero--with-studio .pigmo-hero-actions { align-items: flex-start; margin-top: 16px; }
    .market-hero--with-studio .market-hero__stats { margin-top: 16px; }
    .market-hero--with-studio + .market-section { padding-top: 36px; }
    .hero-studio__visual { height: 180px; }
    .hero-studio__copy { padding: 18px; }
    .hero-studio h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .hero-studio__cta { transition: none; } }

.custom-studio-head { padding-bottom: 0; }
.custom-studio-head h1 { color: var(--pigmo-ink); font-size: clamp(36px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -.045em; }
.custom-studio-head p { max-width: 630px; line-height: 1.7; }
.studio-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; list-style: none; padding: 0; margin: 0 0 28px; }
.studio-steps li { display: flex; gap: 14px; align-items: center; padding: 20px 0; border-top: 1px solid #3e293d25; }
.studio-steps b { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; background: #e879581c; color: #93412a; border-radius: 50%; font-size: 13px; }
.studio-steps span { font-size: 15px; font-weight: 600; }
.studio-steps small { display: block; margin-top: 4px; color: #746d70; font-size: 12px; font-weight: 400; }
.custom-upload { background: #fffdf8; border: 1px dashed #c6b8b3; }
.custom-upload__drop strong { color: var(--pigmo-ink); }
.custom-upload__actions button { background: var(--pigmo-ink); }
.custom-studio__panel { box-shadow: 0 12px 40px #3e293d06; }
.custom-surfaces button { min-height: 48px; }
.custom-surfaces button.is-active { background: #f5eef2; border-color: #75506c; box-shadow: inset 0 0 0 1px #75506c; }
.custom-surfaces strong { font-size: 14px; }
#customMaskTools { margin-top: 18px; color: #726870; font-size: 13px; }
#customMaskTools summary { padding: 8px 0; cursor: pointer; }
.studio-selection { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; padding-top: 18px; border-top: 1px solid #3e293d16; }
.studio-selection i { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; border: 1px solid #0001; }
.studio-selection strong,.studio-selection small,.studio-selection span { display: block; overflow-wrap: anywhere; }
.studio-selection small,.studio-selection span { font-size: 11px; color: #726870; }
.studio-selection strong { margin: 3px 0; font-size: 14px; }
.custom-studio__panel > .studio-primary { width: 100%; }
#customColors .cd.is-selected { outline: 3px solid var(--pigmo-ink); outline-offset: 3px; position: relative; z-index: 1; }
.custom-palette > .partes-colors { width: 100%; }
#customColors { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); width: 100%; max-height: 310px; overflow-y: auto; gap: 12px; padding: 8px; margin: 0; }
#customColors .cd { position: relative; width: auto; height: 86px; margin: 0; border-radius: 10px; transform: none; cursor: pointer; box-shadow: inset 0 0 0 1px #0001; }
#customColors .cd:hover { transform: none; box-shadow: inset 0 0 0 2px #3e293d80; }
#customColors .cd::after { content: attr(title); position: absolute; bottom: 5px; left: 5px; right: 5px; padding: 3px 5px; background: #ffffffe6; border-radius: 5px; color: #3e293d; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#customColors .cd[hidden] { display: none; }
#customColors .interior-palette-message { grid-column: 1 / -1; }
.studio-shop { scroll-margin-top: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid #3e293d20; }
.studio-shop .section-heading { margin-bottom: 20px; }
.studio-shop h2 { color: var(--pigmo-ink); font-size: clamp(28px, 3vw, 42px); }
#customShopChoice { background: #eae2e6; border-radius: 30px; padding: 9px 16px; font-size: 13px; }
.studio-shop__explanation { max-width: 760px; color: #726870; font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.studio-products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.studio-products .market-card { display: flex; flex-direction: column; margin: 0; }
.studio-products .market-card__visual { height: 210px; }
.studio-products .market-card__body { flex: 1; display: flex; flex-direction: column; }
.studio-products .market-card__footer { margin-top: auto; padding-top: 20px; }
.studio-products .market-card__footer a { text-decoration: underline; text-underline-offset: 4px; }
.studio-materials { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; margin-top: 28px; padding: 32px; background: #e9e8da; border-radius: 20px; }
.studio-materials h3 { font-size: 24px; color: var(--pigmo-ink); }
.studio-related { margin-top: 32px; }
.studio-related h3 { color: var(--pigmo-ink); font-size: 24px; }
.studio-related > p { color: #726870; font-size: 14px; }
.studio-related .product-related-card { display: block; }
.studio-related .product-related-card__body > span { margin-top: 10px; font-size: 12px; text-decoration: underline; }
.studio-materials p { font-size: 14px; line-height: 1.7; color: #625f58; max-width: 540px; margin: 10px 0; }
.studio-empty { background: #fffdf8; border: 1px solid #ddd3cc; border-radius: 18px; padding: 28px; }
.studio-empty p { max-width: 640px; color: #726870; margin: 10px 0 18px; }
.studio-retry { background: transparent; border: 0; text-decoration: underline; color: var(--pigmo-ink); }
.studio-transfer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 22px; background: #ece4e8; border-radius: 14px; margin-bottom: 28px; font-size: 14px; }
.studio-transfer a { color: var(--pigmo-ink); }
@media (max-width: 1100px) { .studio-products { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
    .market-search input { font-size: 12px; }
    #customColors { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
    .market-hero__inner { padding: 32px 24px; }
    .market-hero h1 { font-size: clamp(38px, 10vw, 60px); }
    .pigmo-hero-actions { align-items: stretch; flex-direction: column; }
    .pigmo-hero-actions .text-link { text-align: center; }
    .studio-steps { grid-template-columns: 1fr; gap: 0; margin-bottom: 16px; }
    .studio-steps li { padding: 12px 0; }
    .studio-steps small { display: inline; margin-left: 8px; }
    .studio-materials { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
    .studio-shop .section-heading { align-items: flex-start; gap: 16px; }
    .studio-products { grid-template-columns: 1fr; }
    .custom-studio__panel { padding: 20px; }
    .custom-studio__actions { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .market-card { transition: none; } }
