* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #f8f8f7; color: #241c15; font-family: system-ui, "Malgun Gothic", sans-serif; }
a { text-decoration: none; color: inherit; }
.shell { width: min(1152px, calc(100% - 32px)); margin-inline: auto; }
main { flex: 1; padding-block: 32px; }
.site-header, .site-footer { background: #fff; border-block: 1px solid #ece8e3; }
.site-footer { padding: 18px 0; color: #665b51; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 1.6rem; font-weight: 850; color: #c54200; }
.brand span { font-size: .875rem; color: #665b51; font-weight: 600; }
.search-panel { margin-bottom: 26px; }
.search { display: flex; align-items: center; gap: 8px; width: min(780px, 100%); margin-inline: auto; padding: 4px; border: 2px solid #ed580e; border-radius: 14px; background: #fff; }
.search:focus-within { outline: 3px solid #ffd2b9; outline-offset: 2px; }
.search-source { padding-inline: 14px; border-right: 1px solid #eee4de; color: #a63200; font-weight: 800; }
.search input { flex: 1; min-width: 0; height: 44px; padding-inline: 8px; border: 0; box-shadow: none; outline: none; background: #fff; }
.search-button { height: 44px; padding-inline: clamp(12px, 3vw, 28px); border: 0; border-radius: 9px; background: #b93800; color: #fff; white-space: nowrap; }
.suggestions, .pagination { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 14px; }
.suggestions { justify-content: center; font-size: .83rem; color: #64564c; }
.suggestions > span { color: #a63200; font-weight: 750; }
.suggestions a:hover, .category-panel a:hover { color: #a63200; }
.market-grid { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 16px; }
.category-panel, .browse-panel { background: #fff; border: 1px solid #eee6df; border-radius: 18px; }
.category-panel { padding: 15px 12px; }
.category-panel h2 { margin: 0 8px 8px; font-size: 1.05rem; font-weight: 800; }
.category-panel a { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 8px; border-radius: 7px; font-size: .88rem; }
.category-panel a:hover { background: #fff2e9; }
.category-panel .arrow { margin-left: auto; color: #76665d; }
.hero-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 326px; padding: clamp(24px, 4.5vw, 58px); border-radius: 18px; background: linear-gradient(108deg, #ffead4 0%, #ffd0a4 57%, #ffab70 100%); }
.hero-copy { max-width: 56%; }
.hero-copy .badge { background: #fff7ee; color: #a63200; border: 0; font-weight: 750; }
.hero-panel h1 { margin: 14px 0 10px; font-size: clamp(1.65rem, 3.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 850; }
.hero-panel p { max-width: 330px; margin-bottom: 18px; color: #634433; font-size: .95rem; }
.hero-button { border: 0; background: #3b2115; color: #fff; }
.hero-art { position: absolute; z-index: -1; width: 44%; right: 1%; bottom: 0; }
.browse-panel { margin-top: 16px; padding: clamp(15px, 3vw, 26px); scroll-margin-top: 16px; }
.browse-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 15px; }
.browse-heading h2 { font-size: 1.2rem; font-weight: 800; }
.browse-heading p { color: #64564c; font-size: .87rem; }
.category-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; }
.category-tiles a { display: grid; place-content: center; gap: 7px; min-height: 82px; padding: 8px 4px; border-radius: 10px; background: #fff5ec; text-align: center; }
.category-tiles a:hover { background: #ffe4d1; }
.category-tiles span { font-size: 1.45rem; }
.category-tiles strong { font-size: .78rem; }
@media (max-width: 800px) {
    .market-grid { grid-template-columns: 1fr; }
    .category-panel { order: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-panel h2 { grid-column: 1 / -1; }
    .category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    main { padding-block: 20px; }
    .search-source { display: none; }
    .hero-panel { min-height: 250px; padding: 22px; }
    .hero-copy { max-width: 76%; }
    .hero-art { width: 46%; right: -8%; opacity: .65; }
    .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.results h2 { font-size: 1.35rem; font-weight: 750; margin: 28px 0 14px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: 14px; }
.product { overflow: hidden; border: 1px solid #ece8e3; border-radius: 12px; background: #fff; }
.product-photo { aspect-ratio: 1; background: #f0ede9; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { padding: 12px; }
.product-copy h3 { font-size: .9rem; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-copy strong, .product-copy small { display: block; margin-top: 5px; }
.product-copy strong { color: #b63b00; }
.product-copy small { color: #665b51; }
.alert { margin-top: 16px; }
.site-header .navbar { justify-content: space-between; gap: 12px; }
.shop-links { display: flex; gap: clamp(8px, 2vw, 20px); font-size: .85rem; white-space: nowrap; }
.shop-links a:hover, .text-link { color: #a63200; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.detail-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.detail-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; }
.detail-gallery img:first-child { grid-column: 1 / -1; }
.demo-panel { padding: clamp(18px, 4vw, 34px); border: 1px solid #eee6df; background: #fff; border-radius: 18px; }
.demo-panel h1 { margin: 8px 0 12px; font-size: clamp(1.35rem, 3.5vw, 2rem); font-weight: 800; }
.demo-panel p { margin: 8px 0 12px; }
.demo-panel strong { color: #a63200; }
.demo-form { display: grid; gap: 12px; margin: 18px 0; }
.demo-form label { display: grid; gap: 6px; }
.demo-form :is(select, input) { width: 100%; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eee6df; }
.cart-total { font-size: 1.16rem; }
@media (max-width: 650px) {
    .detail-grid { grid-template-columns: 1fr; }
    .brand { gap: 6px; }
    .brand span { display: none; }
}
