/* Reference homepage presentation. Existing API, links and authentication remain intact. */
body.reference-home{background:#fff;color:#111;font-family:Arial,"Microsoft YaHei",sans-serif}
.reference-home .store-header{display:flex;align-items:center;gap:24px;padding:18px 4%;background:linear-gradient(110deg,#e8ffff,#fff);border:0;box-shadow:none;flex-wrap:wrap}
.reference-home .store-brand{font-size:36px;letter-spacing:-2px;font-weight:950;color:#070909;line-height:1}
.reference-home .store-brand span{display:none}
.reference-home .home-search{flex:1 1 240px;max-width:420px;min-width:160px;border:1px solid #53d2cf;border-radius:2px;background:white;height:40px}
.reference-home .home-search input{background:transparent;border:0;font-size:13px;min-width:0}
.reference-home .home-search button{background:white;border:0;border-left:1px solid #c7eeee;color:#00b7b7;width:45px}
.reference-home .header-links{display:flex;gap:20px;margin:0;align-items:center;font-size:13px;flex-wrap:wrap}
.reference-home .header-links a{color:#111;text-decoration:none;white-space:nowrap}
.reference-home .header-links a[href="/catalog"]{display:none}
.reference-home .shell-locale{font-size:12px;white-space:nowrap;margin:0}
.reference-home .store-nav{padding:16px 4%;display:flex;gap:30px;background:#f6fdfd;border-bottom:1px solid #f0f3f3;overflow:auto;white-space:nowrap;scrollbar-width:thin}
.reference-home .store-nav a{color:#171a1a;text-decoration:none;font-size:14px;font-weight:400;flex-shrink:0}
.reference-home main#main{max-width:1500px;margin:auto;padding:0 4% 50px}
.reference-home #feedback:empty{display:none}
/* Keep configured banner and its controls; only remove the old fallback hero. */
.reference-home .home-hero:has(#banner-content:empty){display:none}
.reference-home .home-hero{margin:24px 0 0;border-radius:0;box-shadow:none;background:#f4faf9}
.reference-home .home-banner-default{display:none}
.reference-home .home-banner-status{display:none}
.reference-home .discovery-categories{margin:28px 0 30px;padding:0}
.reference-home .category-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.reference-home .category-tile{display:flex;flex-direction:column;align-items:center;border:0;border-radius:0;padding:0;background:white;box-shadow:none;gap:12px;text-decoration:none;color:#111}
.reference-home .category-picture{height:120px;width:100%;background:#f8f8fa;border-radius:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.reference-home .category-picture img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.reference-home .category-number{height:120px;display:flex;align-items:center;justify-content:center;width:100%;background:#f8f8fa;color:#93aaaa;font-size:35px;font-weight:300}
.reference-home .category-tile strong{font-size:14px;font-weight:600}
.reference-home .discovery-brands{display:flex;justify-content:space-between;align-items:center;gap:20px;border:0;margin:30px 0;padding:12px 0;overflow:auto;background:white}
.reference-home .discovery-brands a{border:0;background:white;font-size:24px;letter-spacing:-1px;color:#111;text-decoration:none;font-weight:800;white-space:nowrap;padding:10px}
.reference-home .discovery-brands a:last-child{font-size:13px;letter-spacing:0;font-weight:400;border:1px solid #eee}
.reference-home .discovery-service{background:linear-gradient(100deg,#ddffff,#f3ffff);border:0;border-radius:4px;padding:24px;margin:25px 0 38px;display:flex;justify-content:space-between;align-items:center;gap:20px;color:#111;font-size:14px}
.reference-home .discovery-service strong{font-size:23px;letter-spacing:-1px}
.reference-home .discovery-service a{color:#111}
.reference-home .public-discovery{padding:0;margin:0;background:white;border:0}
.reference-home .discovery-tabs{display:flex;gap:30px;align-items:center;border-bottom:1px solid #d9dddd;margin-bottom:24px;padding:0;background:white;overflow:auto}
.reference-home .discovery-tabs button{border:0;border-radius:0;background:white;color:#222;font-size:17px;font-weight:400;padding:16px 0;white-space:nowrap}
.reference-home .discovery-tabs button[aria-pressed="true"]{border-bottom:3px solid #00c5c6;color:#111;background:white;font-weight:700}
.reference-home .discovery-tabs a{margin-left:auto;white-space:nowrap;font-size:13px;color:#444}
.reference-home .shopping-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:32px 18px}
.reference-home .shopping-card{padding:0;border:0;border-radius:0;box-shadow:none;background:white;transition:transform .18s}
.reference-home .shopping-card:hover{transform:translateY(-3px)}
.reference-home .discovery-image{aspect-ratio:1;background:#f7f7f9;border-radius:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.reference-home .discovery-image img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.reference-home .shopping-card h3{font-size:13px;line-height:1.6;font-weight:400;margin:12px 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.reference-home .discovery-product-link{text-decoration:none;color:#111}
.reference-home .discovery-shop{font-size:11px;color:#818888;text-decoration:none}
.reference-home .shopping-price{font-size:18px;font-weight:700;margin:8px 0;color:#111}
.reference-home .home-service{margin-top:55px;background:#f8f9fa;border:0;border-radius:0;box-shadow:none}
.reference-home .store-footer{padding:48px 5%;background:#f5f5f8;border:0;color:#333;gap:50px}
.reference-home .store-footer h2{font-size:16px}.reference-home .store-footer a{color:#555;font-size:13px}
@media(max-width:1100px){.reference-home .store-header{gap:16px}.reference-home .header-links{gap:16px}.reference-home .shopping-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.reference-home .shell-locale{display:inline-flex;align-items:center;gap:4px;max-width:100%}}
@media(max-width:650px){.reference-home .store-header{padding:16px 5%;gap:14px}.reference-home .store-brand{font-size:30px}.reference-home .home-search{min-width:0;flex-basis:160px}.reference-home .header-links{width:100%;justify-content:space-between;font-size:12px;gap:8px}.reference-home .store-nav{gap:24px}.reference-home .category-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px}.reference-home .category-picture,.reference-home .category-number{height:100px}.reference-home .shopping-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 14px}.reference-home .discovery-brands{margin:20px 0;gap:20px}.reference-home .discovery-brands a{font-size:20px}.reference-home .discovery-service{flex-wrap:wrap;font-size:12px;padding:18px;gap:15px}.reference-home .discovery-tabs{gap:22px}.reference-home .discovery-tabs button{font-size:14px}.reference-home .store-footer{gap:28px}}

.reference-home .store-header{min-height:76px}.reference-home .store-nav{min-height:0;height:auto;padding-top:14px;padding-bottom:14px}.reference-home .category-tiles{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.reference-home .category-picture{max-width:180px}.reference-home .discovery-categories{margin:24px 0}.reference-home .discovery-brands{margin:18px 0}.reference-home .discovery-service{margin:18px 0 24px}.reference-home .discovery-tabs{margin-bottom:20px}@media(max-width:650px){.reference-home .category-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

.reference-home .category-stage{width:100%;min-height:120px;display:flex;justify-content:center;align-items:center;background:#f8f8fa}
.reference-home .category-product{display:block;width:100%;text-decoration:none}.reference-home .category-product .category-picture{max-width:none}
.reference-home .category-title{color:#111;text-decoration:none;font-size:14px;font-weight:600}.reference-home .category-empty{font-size:14px;color:#476666;padding:24px;text-decoration:none}
.reference-home .category-controls{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;font-size:12px;color:#687979}.reference-home .category-controls[hidden]{display:none}
.reference-home .category-controls button{background:white;color:#172727;border:1px solid #dfebeb;border-radius:2px;padding:3px 9px;min-height:28px;cursor:pointer}.reference-home .category-controls button:hover{background:#e4ffff}
.category-carousel:focus-within{outline:1px solid #68cccc;outline-offset:4px}
