/* ============================================================
   Handmade Market — Google Store Style
   Material Design 3 inspired: rounded, spacious, colorful
   ============================================================ */
:root {
    --bg:#f8f9fa; --surface:#fff; --surface-2:#f1f3f4; --surface-tint:#e8f0fe;
    --text:#202124; --sub:#5f6368; --sub2:#9aa0a6;
    --border:#dadce0; --border-l:#e8eaed;
    --accent:#1a73e8; --accent-h:#1967d2; --accent-light:#e8f0fe;
    --green:#1e8e3e; --red:#d93025; --yellow:#f9ab00; --orange:#e8710a;
    --font:'Google Sans','Inter','Noto Sans JP',system-ui,sans-serif;
    --r:20px; --r-sm:12px; --r-xs:8px; --r-full:9999px;
    --sh:0 1px 3px 0 rgba(60,64,67,.3),0 4px 8px 3px rgba(60,64,67,.15);
    --sh-sm:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);
    --sh-hover:0 1px 3px 0 rgba(60,64,67,.3),0 4px 8px 3px rgba(60,64,67,.15);
    --tr:.2s cubic-bezier(0.4,0,0.2,1); --mw:1280px;
    --safe-b:env(safe-area-inset-bottom,0px); --header-h:64px; --bnav-h:56px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:14px;scroll-behavior:smooth;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.75;-webkit-font-smoothing:antialiased;font-weight:400;padding-bottom:calc(var(--bnav-h) + var(--safe-b))}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}ul,ol{list-style:none}
button,input,select,textarea{font:inherit;color:inherit;border:1px solid var(--border);border-radius:var(--r-xs);background:var(--surface);-webkit-appearance:none}
button{cursor:pointer;touch-action:manipulation}
input,select,textarea{font-size:16px!important}
.container{max-width:var(--mw);margin:0 auto;padding:0 1.25rem}

/* ── Header — Google Store bar ── */
.site-header{background:var(--surface);position:sticky;top:0;z-index:100;box-shadow:0 1px 2px rgba(60,64,67,.1)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);gap:1rem}
.logo{font-family:var(--font);font-size:1.25rem;font-weight:500;color:var(--text);white-space:nowrap}
.logo:hover{text-decoration:none;color:var(--text)}
.main-nav{display:none}
.mobile-menu-btn{display:flex;flex-direction:column;gap:4px;background:none;border:none;padding:12px;min-width:48px;min-height:48px;align-items:center;justify-content:center;border-radius:50%}
.mobile-menu-btn:active{background:var(--surface-2)}
.mobile-menu-btn span{display:block;width:18px;height:2px;background:var(--sub);transition:var(--tr);border-radius:1px}
body.nav-open .mobile-menu-btn span:nth-child(1){transform:rotate(45deg) translate(4px,4px)}
body.nav-open .mobile-menu-btn span:nth-child(2){opacity:0}
body.nav-open .mobile-menu-btn span:nth-child(3){transform:rotate(-45deg) translate(4px,-4px)}
body.nav-open .main-nav{display:flex;flex-direction:column;position:fixed;top:var(--header-h);left:0;right:0;bottom:0;background:var(--surface);padding:1rem;gap:0;z-index:99;overflow-y:auto;-webkit-overflow-scrolling:touch}
body.nav-open .main-nav a{display:flex;align-items:center;padding:1rem;font-size:.95rem;font-weight:500;color:var(--text);border-radius:var(--r-full);min-height:48px;text-decoration:none;transition:var(--tr)}
body.nav-open .main-nav a:hover{background:var(--surface-2)}
.nav-sub{color:var(--sub2);font-weight:400}
.cart-link{position:relative}.cart-badge{position:absolute;top:-4px;right:-6px;background:var(--red);color:#fff;font-size:.6rem;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-weight:600;padding:0 4px}

/* ── Bottom Nav ────────── */
.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:calc(var(--bnav-h) + var(--safe-b));padding-bottom:var(--safe-b);background:var(--surface);box-shadow:0 -1px 3px rgba(60,64,67,.1);display:flex;justify-content:space-around;align-items:flex-start;padding-top:6px;z-index:100}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.62rem;color:var(--sub);min-width:56px;padding:4px 12px;transition:var(--tr);text-decoration:none;border-radius:var(--r-sm);font-weight:500}
.bottom-nav a .nav-icon{font-size:1.25rem;line-height:1.2;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--r-full);transition:var(--tr)}
.bottom-nav a.active{color:var(--accent)}.bottom-nav a.active .nav-icon{background:var(--accent-light)}
.bottom-nav .cart-badge{position:absolute;top:0;right:4px;background:var(--red);color:#fff;font-size:.5rem;min-width:14px;height:14px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-weight:600;padding:0 3px}

/* ── Footer ────────────── */
.site-footer{border-top:1px solid var(--border-l);padding:2.5rem 0;background:var(--surface);padding-bottom:calc(2.5rem + var(--bnav-h) + var(--safe-b))}
.footer-inner{display:flex;flex-direction:column;align-items:center;gap:.6rem;text-align:center}
.footer-copy{font-size:.75rem;color:var(--sub2)}
.footer-links{display:flex;gap:1.5rem;flex-wrap:wrap;justify-content:center;font-size:.78rem}
.footer-links a{color:var(--sub);text-decoration:none}.footer-links a:hover{color:var(--accent)}
.site-main{min-height:60vh;padding:1.5rem 0}

/* ── Flash ─────────────── */
.flash{padding:.85rem 1.25rem;margin-bottom:1rem;font-size:.85rem;border-radius:var(--r-xs);font-weight:500}
.flash-success{background:#e6f4ea;color:#137333}.flash-error{background:#fce8e6;color:#c5221f}
.flash-warning{background:#fef7e0;color:#9a6700}.flash-info{background:var(--accent-light);color:var(--accent-h)}

/* ── Page Header ───────── */
.page-header{margin-bottom:1.5rem}
.page-header h1{font-size:1.75rem;font-weight:400;letter-spacing:-.01em;color:var(--text)}
.page-header p{color:var(--sub);font-size:.88rem;margin-top:.15rem}

/* ── Buttons — Google Pill style ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.65rem 1.5rem;font-size:.88rem;font-weight:500;border:none;background:var(--accent);color:#fff;border-radius:var(--r-full);transition:all var(--tr);min-height:44px;box-shadow:none}
.btn:hover{background:var(--accent-h);text-decoration:none;box-shadow:var(--sh-sm)}
.btn:active{box-shadow:none;transform:scale(.98)}
.btn-outline{background:var(--surface);color:var(--accent);border:1px solid var(--border)}.btn-outline:hover{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}
.btn-sm{padding:.4rem 1rem;font-size:.82rem;min-height:36px}
.btn-danger{background:var(--red)}.btn-success{background:var(--green)}
.btn-block{display:flex;width:100%;justify-content:center}
.btn-tonal{background:var(--accent-light);color:var(--accent);border:none}.btn-tonal:hover{background:#d2e3fc}

/* ── Forms ─────────────── */
.form-group{margin-bottom:1.25rem}
.form-group label{display:block;font-size:.82rem;font-weight:500;margin-bottom:.35rem;color:var(--text)}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:.7rem 1rem;border:1px solid var(--border);border-radius:var(--r-xs);font-weight:400;transition:all var(--tr);min-height:48px;background:var(--surface)}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-light)}
.form-group textarea{resize:vertical;min-height:100px}
.form-row{display:grid;grid-template-columns:1fr;gap:1rem}
.form-hint{font-size:.72rem;color:var(--sub);margin-top:.25rem}

/* ── Filter Chips — Material 3 style ── */
.filter-bar{display:flex;gap:.5rem;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.3rem;margin-bottom:1.25rem;scrollbar-width:none}
.filter-bar::-webkit-scrollbar{display:none}
.filter-bar a,.filter-bar .tag-pill{padding:.5rem 1rem;font-size:.82rem;white-space:nowrap;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xs);transition:all var(--tr);color:var(--sub);flex-shrink:0;min-height:36px;display:inline-flex;align-items:center;text-decoration:none;font-weight:500}
.filter-bar a:hover{background:var(--surface-2);border-color:var(--sub2);color:var(--text)}
.filter-bar a.active{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}

/* ── Search — rounded pill ── */
.search-form{display:flex;margin:0 0 1.5rem;background:var(--surface-2);border:none;border-radius:var(--r-full);overflow:hidden}
.search-form input{flex:1;padding:.65rem 1.25rem;border:none;background:transparent;min-height:48px;font-size:.88rem}
.search-form input:focus{outline:none}
.search-form .btn{border-radius:0 var(--r-full) var(--r-full) 0;min-height:48px;padding:.65rem 1.25rem;border:none;box-shadow:none}

/* ── Product Grid — Google Store cards ── */
.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
.product-card{background:var(--surface);border-radius:var(--r);overflow:hidden;transition:box-shadow var(--tr),transform var(--tr);display:block;position:relative;text-decoration:none;color:inherit}
.product-card:hover{text-decoration:none;box-shadow:var(--sh);transform:translateY(-2px)}
.product-card:active{transform:scale(.98);box-shadow:var(--sh-sm)}
.product-card-image{aspect-ratio:1;overflow:hidden;background:var(--surface-2);border-radius:var(--r) var(--r) 0 0}
.product-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.product-card:hover .product-card-image img{transform:scale(1.03)}
.product-card-body{padding:.75rem .85rem .9rem}
.product-card-body .artist-name{font-size:.68rem;color:var(--accent);font-weight:500;margin-bottom:.1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-card-body h3{font-size:.88rem;font-weight:500;line-height:1.35;margin-bottom:.25rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--text)}
.product-card-body .price{font-size:1rem;font-weight:500;color:var(--text)}
.no-image{font-size:.75rem;color:var(--sub2);display:flex;align-items:center;justify-content:center;height:100%;background:var(--surface-2)}
.product-card .card-badges{position:absolute;top:8px;left:8px;display:flex;gap:4px;z-index:2;flex-wrap:wrap}
.card-badge{padding:.2rem .55rem;font-size:.65rem;font-weight:500;border-radius:var(--r-full)}
.card-badge-new{background:var(--green);color:#fff}.card-badge-sale{background:var(--red);color:#fff}
.card-badge-featured{background:var(--yellow);color:var(--text)}.card-badge-recommended{background:var(--accent);color:#fff}
.product-card .card-fav{position:absolute;top:8px;right:8px;z-index:2;background:var(--surface);border:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.88rem;box-shadow:var(--sh-sm);transition:all var(--tr)}
.product-card .card-fav.active{background:var(--red);color:#fff}
.product-card-body .card-rating{display:flex;align-items:center;gap:.2rem;margin-top:.15rem;font-size:.68rem;color:var(--sub)}
.price-original{text-decoration:line-through;color:var(--sub2);font-size:.78rem;font-weight:400;margin-right:.25rem}
.price-sale{color:var(--red);font-weight:500}

/* ── Product Detail ────── */
.product-detail{display:flex;flex-direction:column;gap:1.25rem}
.media-gallery-main{aspect-ratio:1;background:var(--surface-2);overflow:hidden;border-radius:var(--r);position:relative}
.media-gallery-main img,.media-gallery-main video{width:100%;height:100%;object-fit:cover}
.media-gallery-main video{object-fit:contain;background:#000}
.media-badge{position:absolute;top:10px;right:10px;background:rgba(32,33,36,.7);color:#fff;padding:3px 10px;font-size:.68rem;border-radius:var(--r-full)}
.media-thumbs{display:flex;gap:6px;margin-top:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.media-thumbs::-webkit-scrollbar{display:none}
.media-thumb{width:64px;height:64px;flex-shrink:0;overflow:hidden;cursor:pointer;border:2px solid transparent;border-radius:var(--r-sm);transition:border-color var(--tr)}
.media-thumb:hover,.media-thumb.active{border-color:var(--accent)}
.media-thumb img,.media-thumb video{width:100%;height:100%;object-fit:cover;pointer-events:none}
.media-thumb .video-icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.3);color:#fff;font-size:.75rem}
.product-info h1{font-size:1.5rem;font-weight:400;letter-spacing:-.01em;margin-bottom:.4rem;line-height:1.3}
.product-info .price{font-size:1.75rem;font-weight:400;margin-bottom:.75rem}
.product-info .meta{font-size:.82rem;color:var(--sub);margin-bottom:1rem}
.product-info .meta .in-stock{color:var(--green);font-weight:500}
.product-info .description{font-size:.88rem;line-height:1.8;color:var(--sub);margin-bottom:1.5rem}
.product-tags{display:flex;gap:.35rem;flex-wrap:wrap;margin-bottom:.75rem}
.product-tags .tag{background:var(--surface-2);color:var(--sub);padding:.25rem .7rem;font-size:.72rem;border-radius:var(--r-full);text-decoration:none;transition:all var(--tr);font-weight:500}
.product-tags .tag:hover{background:var(--accent-light);color:var(--accent)}
.quantity-selector{display:flex;align-items:center;gap:.6rem;margin-bottom:1.25rem}
.quantity-selector label{font-size:.82rem;font-weight:500}
.quantity-selector input{width:60px;text-align:center;padding:.45rem;min-height:44px;border-radius:var(--r-xs)}

/* ── Promo Sections ────── */
.promo-section{margin-bottom:2.5rem}
.promo-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.85rem}
.promo-header h2{font-size:1.25rem;font-weight:400}
.promo-header a{font-size:.85rem;color:var(--accent);font-weight:500}
.promo-scroll{display:flex;gap:.6rem;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -1.25rem;padding:0 1.25rem .3rem}
.promo-scroll::-webkit-scrollbar{display:none}
.promo-scroll .product-card{min-width:48vw;max-width:56vw;flex-shrink:0;scroll-snap-align:start}

/* ── Featured Artists — chips ── */
.featured-artists{margin-bottom:2.5rem}
.featured-artists-scroll{display:flex;gap:.5rem;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -1.25rem;padding:0 1.25rem .3rem}
.featured-artists-scroll::-webkit-scrollbar{display:none}
.featured-artist-chip{display:flex;align-items:center;gap:.65rem;padding:.6rem 1rem;background:var(--surface);border:1px solid var(--border-l);border-radius:var(--r);white-space:nowrap;flex-shrink:0;scroll-snap-align:start;transition:all var(--tr);min-height:56px;text-decoration:none;color:inherit}
.featured-artist-chip:hover{box-shadow:var(--sh-sm);border-color:var(--border);text-decoration:none}
.featured-artist-chip .chip-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--surface-2);flex-shrink:0}
.featured-artist-chip .chip-avatar img{width:100%;height:100%;object-fit:cover}
.featured-artist-chip .chip-name{font-size:.85rem;font-weight:500;color:var(--text)}
.featured-artist-chip .chip-detail{font-size:.68rem;color:var(--sub)}

/* ── Artist Grid ───────── */
.artist-grid{display:flex;flex-direction:column;gap:.75rem}
.artist-card{background:var(--surface);border-radius:var(--r);overflow:hidden;transition:box-shadow var(--tr);display:flex;flex-direction:column;text-decoration:none;color:inherit}
.artist-card:hover{box-shadow:var(--sh);text-decoration:none}
.artist-card-cover{height:120px;background:var(--surface-2);overflow:hidden}
.artist-card-cover img{width:100%;height:100%;object-fit:cover}
.artist-card-avatar{width:56px;height:56px;border-radius:50%;border:3px solid var(--surface);background:var(--surface-2);overflow:hidden;margin:-28px 0 0 1.25rem;position:relative;z-index:2}
.artist-card-avatar img{width:100%;height:100%;object-fit:cover}
.artist-card-avatar .avatar-initial{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-weight:500;font-size:.88rem;color:var(--accent);background:var(--accent-light)}
.artist-card-body{padding:.5rem 1.25rem .85rem;flex:1}
.artist-card-body h3{font-size:1rem;font-weight:500}
.artist-card-rating{display:flex;align-items:center;gap:.25rem;font-size:.72rem;color:var(--sub)}
.artist-card-rating .stars{font-size:.72rem}
.artist-card-bio{font-size:.78rem;color:var(--sub);line-height:1.5;margin:.15rem 0}
.artist-card-meta{display:flex;gap:.3rem;font-size:.68rem;color:var(--sub2)}
.artist-card-previews{display:flex;gap:2px;border-top:1px solid var(--border-l)}
.artist-card-previews .preview-thumb{flex:1;aspect-ratio:1;overflow:hidden;background:var(--surface-2)}
.artist-card-previews .preview-thumb img{width:100%;height:100%;object-fit:cover}

/* ── Shop Page ─────────── */
.shop-cover{width:calc(100% + 2.5rem);height:180px;background:var(--surface-2);overflow:hidden;margin:-1.5rem -1.25rem 0;margin-bottom:-40px;border-radius:0 0 var(--r) var(--r)}
.shop-cover img{width:100%;height:100%;object-fit:cover}
.shop-profile{display:flex;align-items:flex-end;gap:1rem;margin-bottom:1.5rem;position:relative;z-index:2}
.shop-avatar{width:80px;height:80px;border-radius:50%;border:3px solid var(--surface);background:var(--surface-2);overflow:hidden;flex-shrink:0;box-shadow:var(--sh-sm)}
.shop-avatar img{width:100%;height:100%;object-fit:cover}
.shop-info h1{font-size:1.25rem;font-weight:500}
.shop-sns{display:flex;gap:.8rem;margin-top:.3rem;font-size:.78rem}
.shop-sns a{color:var(--accent)}
.shop-header-stats{display:flex;gap:1.5rem;margin-top:.4rem}
.shop-stat{text-align:center}.shop-stat .num{font-size:1.1rem;font-weight:500}
.shop-stat .lbl{font-size:.6rem;color:var(--sub);letter-spacing:.03em}
.shop-categories{display:flex;gap:.4rem;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-bottom:1rem}
.shop-categories::-webkit-scrollbar{display:none}
.shop-categories a{padding:.4rem .85rem;font-size:.78rem;border:1px solid var(--border);white-space:nowrap;transition:all var(--tr);color:var(--sub);flex-shrink:0;border-radius:var(--r-xs);min-height:34px;display:inline-flex;align-items:center;text-decoration:none;font-weight:500}
.shop-categories a:hover,.shop-categories a.active{background:var(--shop-accent,var(--accent));color:#fff;border-color:var(--shop-accent,var(--accent))}
.shop-custom{transition:all .2s}
.shop-custom .btn{background:var(--shop-accent,var(--accent));border-color:var(--shop-accent,var(--accent))}
.layout-masonry{columns:2;column-gap:.75rem}.layout-masonry .product-card{break-inside:avoid;margin-bottom:.75rem}
.layout-masonry .product-card-image{aspect-ratio:auto}
.layout-list{display:flex;flex-direction:column;gap:.75rem}
.layout-list .product-card{display:grid;grid-template-columns:120px 1fr;border-radius:var(--r)}

/* ── Cart / Order / Auth ── */
.cart-table{width:100%;border-collapse:collapse}.cart-table thead{display:none}
.cart-table tr{display:flex;flex-wrap:wrap;align-items:center;padding:.75rem 0;border-bottom:1px solid var(--border-l)}
.cart-table td{border:none;padding:.2rem 0;display:block}
.cart-item-info{display:flex;align-items:center;gap:.85rem}
.cart-item-thumb{width:64px;height:64px;background:var(--surface-2);overflow:hidden;flex-shrink:0;border-radius:var(--r-sm)}
.cart-item-thumb img{width:100%;height:100%;object-fit:cover}
.cart-summary{margin-top:1.5rem;padding:1.5rem;background:var(--surface);border-radius:var(--r);box-shadow:var(--sh-sm)}
.cart-total{font-size:1.5rem;font-weight:500;margin-bottom:.75rem}.cart-total span{font-size:.78rem;color:var(--sub);font-weight:400;margin-right:.3rem}
.cart-empty{text-align:center;padding:4rem 0;color:var(--sub)}
.order-section{background:var(--surface);border-radius:var(--r);padding:1.5rem;margin-bottom:1rem}
.order-section h2{font-size:.88rem;font-weight:500;margin-bottom:.85rem}
.order-item{display:flex;justify-content:space-between;font-size:.85rem;padding:.4rem 0}
.order-total-row{display:flex;justify-content:space-between;padding:1rem 0 0;margin-top:.5rem;border-top:1px solid var(--border-l);font-size:1.1rem;font-weight:500}
.order-grid{display:flex;flex-direction:column;gap:1rem}
.complete-msg{text-align:center;padding:3.5rem 0}
.complete-msg h1{font-size:1.75rem;font-weight:400;margin-bottom:.5rem}
.auth-wrap{max-width:100%;margin:1.5rem auto}
.auth-wrap h1{font-size:1.5rem;font-weight:400;text-align:center;margin-bottom:2rem}
.auth-footer{text-align:center;margin-top:1.5rem;font-size:.85rem;color:var(--sub)}

/* ── Stars / Reviews ───── */
.stars{display:inline-flex;gap:0;font-size:.88rem;line-height:1}.star{color:var(--border)}.star.filled{color:var(--yellow)}
.stars-input label{cursor:pointer;font-size:1.5rem;padding:2px}.stars-input input{display:none}
.rating-summary{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}
.review-list{margin-top:1rem}.review-card{border-bottom:1px solid var(--border-l);padding:1.25rem 0}.review-card:last-child{border-bottom:none}
.review-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}
.review-author{font-weight:500;font-size:.85rem}.review-date{font-size:.72rem;color:var(--sub2)}
.review-title{font-weight:500;font-size:.88rem;margin:.15rem 0}.review-body{font-size:.82rem;color:var(--sub);line-height:1.75}
.fav-btn{background:var(--surface);border:1px solid var(--border);border-radius:50%;width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;font-size:1.15rem;box-shadow:var(--sh-sm);transition:all var(--tr)}
.fav-btn.active{background:var(--red);border-color:var(--red);color:#fff}

/* ── Dashboard ─────────── */
.dash-layout{display:flex;flex-direction:column;gap:1rem}
.dash-sidebar{display:flex;overflow-x:auto;gap:.35rem;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:.2rem}
.dash-sidebar::-webkit-scrollbar{display:none}
.dash-sidebar h3{display:none}
.dash-sidebar a{flex-shrink:0;padding:.45rem .85rem;font-size:.78rem;color:var(--sub);white-space:nowrap;background:var(--surface);border:1px solid var(--border-l);border-radius:var(--r-xs);min-height:36px;display:inline-flex;align-items:center;text-decoration:none;font-weight:500;transition:all var(--tr)}
.dash-sidebar a:hover,.dash-sidebar a.active{background:var(--accent-light);color:var(--accent);border-color:var(--accent)}
.dash-content{min-width:0}
.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem;margin-bottom:1.5rem}
.stat-card{background:var(--surface);border-radius:var(--r);padding:1.25rem;text-align:center}
.stat-card .num{font-size:1.75rem;font-weight:400;color:var(--accent)}
.stat-card .label{font-size:.65rem;color:var(--sub);margin-top:.1rem;font-weight:500}
.chart-box{background:var(--surface);border-radius:var(--r);padding:1.25rem;margin-bottom:1rem}

/* ── Tables ────────────── */
.data-table{width:100%;border-collapse:separate;border-spacing:0;background:var(--surface);border-radius:var(--r);overflow:hidden}
.data-table th{font-size:.68rem;font-weight:500;color:var(--sub);padding:.75rem .65rem;background:var(--surface-2);text-align:left;border-bottom:1px solid var(--border-l)}
.data-table td{padding:.65rem;font-size:.82rem;border-bottom:1px solid var(--border-l);vertical-align:middle}
.data-table tr:last-child td{border-bottom:none}
.thumb{width:44px;height:44px;object-fit:cover;background:var(--surface-2);border-radius:var(--r-xs)}
.actions{display:flex;gap:.3rem;flex-wrap:wrap}
.badge{display:inline-block;padding:.2rem .6rem;font-size:.65rem;font-weight:500;border-radius:var(--r-full)}
.badge-warning{background:#fef7e0;color:#9a6700}.badge-info{background:var(--accent-light);color:var(--accent-h)}
.badge-primary{background:#e8f0fe;color:#1967d2}.badge-success{background:#e6f4ea;color:#137333}.badge-danger{background:#fce8e6;color:#c5221f}

/* ── Tabs / Pagination ─── */
.tabs{display:flex;gap:0;border-bottom:2px solid var(--border-l);margin-bottom:1.5rem;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{padding:.65rem 1.25rem;font-size:.85rem;font-weight:500;color:var(--sub);border-bottom:3px solid transparent;margin-bottom:-2px;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center;text-decoration:none;transition:all var(--tr)}
.tab:hover{color:var(--text);text-decoration:none}.tab.active{color:var(--accent);border-bottom-color:var(--accent)}
.pagination{margin-top:2rem;text-align:center}
.pagination ul{display:inline-flex;gap:4px}
.pagination li a,.pagination li span{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;font-size:.82rem;background:var(--surface);border:1px solid var(--border-l);border-radius:var(--r-full);transition:all var(--tr);text-decoration:none;color:var(--text);font-weight:500}
.pagination li a:hover{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}
.pagination li.active span{background:var(--accent);color:#fff;border-color:var(--accent)}
.pagination li.dots span{border:none;background:none}

/* ── Color Picker ──────── */
.color-picker-row{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;margin-bottom:1.25rem}
.color-pick{display:flex;flex-direction:column;align-items:center;gap:.2rem}
.color-pick label{font-size:.65rem;color:var(--sub);font-weight:500}
.color-pick input[type="color"]{width:48px;height:36px;border:1px solid var(--border);border-radius:var(--r-xs);padding:2px}

/* ── Admin ─────────────── */
.admin-layout{display:flex;flex-direction:column;min-height:100vh}
.admin-sidebar{width:100%;background:var(--surface);border-bottom:1px solid var(--border-l);display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:.5rem;gap:.3rem}
.admin-sidebar::-webkit-scrollbar{display:none}
.admin-sidebar .admin-logo{display:none}
.admin-sidebar nav{display:flex;gap:.3rem}
.admin-sidebar nav a{flex-shrink:0;padding:.4rem .8rem;font-size:.75rem;color:var(--sub);white-space:nowrap;border-radius:var(--r-full);min-height:34px;display:inline-flex;align-items:center;text-decoration:none;font-weight:500;transition:all var(--tr)}
.admin-sidebar nav a:hover,.admin-sidebar nav a.active{background:var(--accent-light);color:var(--accent)}
.admin-content{flex:1;padding:1.25rem;background:var(--bg)}
.admin-header{margin-bottom:1.5rem;display:flex;justify-content:space-between;align-items:center}
.admin-header h1{font-size:1.25rem;font-weight:400}
.admin-login-wrap{max-width:100%;margin:4rem auto;background:var(--surface);padding:2.5rem;border-radius:var(--r);box-shadow:var(--sh)}
.admin-login-wrap h1{font-size:1.25rem;font-weight:400;text-align:center;margin-bottom:2rem}

/* ═══════════════════════════════
   Desktop — 769px+
   ═══════════════════════════════ */
@media(min-width:769px){
:root{--header-h:64px}
body{padding-bottom:0}
.container{padding:0 2rem}
.bottom-nav{display:none}
.mobile-menu-btn{display:none}
.main-nav{display:flex!important;gap:.5rem;align-items:center;position:static;background:none;padding:0;flex-direction:row}
.main-nav a{padding:.5rem .85rem;font-size:.88rem;border:none;color:var(--sub);min-height:auto;text-decoration:none;font-weight:500;border-radius:var(--r-full);transition:all var(--tr)}
.main-nav a:hover{color:var(--text);background:var(--surface-2)}
.site-main{padding:2rem 0}
.page-header{margin-bottom:2rem}.page-header h1{font-size:2.25rem}
.product-grid{grid-template-columns:repeat(4,1fr);gap:1rem}
.product-card-body{padding:.85rem 1rem 1rem}
.product-card-body h3{font-size:.92rem}
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:3rem;flex-direction:row}
.media-gallery-main{border-radius:var(--r)}
.media-thumbs{padding:0}
.product-info h1{font-size:2rem}.product-info .price{font-size:2rem}
.promo-scroll{margin:0;padding:0 0 .3rem}.promo-scroll .product-card{min-width:240px;max-width:280px}
.featured-artists-scroll{margin:0;padding:0 0 .3rem}
.search-form{max-width:560px;margin:0 auto 2rem}
.filter-bar{flex-wrap:wrap}
.form-row{grid-template-columns:1fr 1fr}
.order-grid{display:grid;grid-template-columns:1fr 400px;gap:1.5rem}
.auth-wrap{max-width:440px}
.artist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1rem}
.artist-card-cover{height:150px}
.shop-cover{width:100%;height:280px;margin:0 0 -60px;border-radius:var(--r)}
.shop-profile{gap:1.75rem}.shop-avatar{width:110px;height:110px}
.shop-info h1{font-size:1.5rem}.shop-header-stats{gap:2.5rem}
.dash-layout{display:grid;grid-template-columns:200px 1fr;gap:2.5rem}
.dash-sidebar{flex-direction:column;overflow:visible;gap:0;padding:0}
.dash-sidebar h3{display:block;font-size:.88rem;font-weight:500;margin-bottom:.75rem}
.dash-sidebar a{border:none;border-radius:var(--r-full);padding:.5rem .85rem;font-size:.85rem;display:flex}
.dash-sidebar a:hover,.dash-sidebar a.active{background:var(--accent-light);border-color:transparent}
.dash-sidebar{position:sticky;top:76px;align-self:start}
.stat-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.cart-table thead{display:table-header-group}.cart-table tr{display:table-row}.cart-table td{display:table-cell;padding:.85rem .65rem}
.admin-layout{flex-direction:row}
.admin-sidebar{width:240px;flex-direction:column;border-bottom:none;border-right:1px solid var(--border-l);position:fixed;top:0;bottom:0;overflow-y:auto;padding:1.5rem .75rem;gap:.15rem}
.admin-sidebar .admin-logo{display:block;font-size:1.1rem;font-weight:500;color:var(--text);padding:.25rem .65rem;margin-bottom:1.5rem}
.admin-sidebar .admin-logo small{display:block;font-size:.65rem;color:var(--sub);margin-top:.15rem;font-weight:400}
.admin-sidebar nav{flex-direction:column;gap:.15rem}
.admin-sidebar nav a{border-radius:var(--r-full);padding:.5rem .85rem;font-size:.85rem;min-height:auto}
.admin-content{margin-left:240px;padding:2rem}
.admin-login-wrap{max-width:400px;margin:10vh auto;padding:3rem}
.footer-inner{flex-direction:row;text-align:left}
.site-footer{padding-bottom:2.5rem;margin-top:5rem}
.promo-header h2{font-size:1.5rem}
}
@media(min-width:1025px){
.container{padding:0 2.5rem}
.product-grid{grid-template-columns:repeat(4,1fr);gap:1.25rem}
.layout-masonry{columns:4;column-gap:1rem}
}

/* ============================================================
   Google Store Interactions & Animations
   ============================================================ */

/* ── Material Ripple ───────────── */
.md-ripple{position:absolute;border-radius:50%;background:currentColor;opacity:.12;transform:scale(0);animation:md-ripple-expand .5s cubic-bezier(0.4,0,0.2,1) forwards;pointer-events:none;z-index:0}
@keyframes md-ripple-expand{
    0%{transform:scale(0);opacity:.12}
    60%{opacity:.06}
    100%{transform:scale(1);opacity:0}
}
.btn .md-ripple{background:#fff}
.btn-outline .md-ripple,.btn-tonal .md-ripple{background:var(--accent)}
.product-card .md-ripple{background:var(--sub2)}
.bottom-nav a .md-ripple{background:var(--accent)}

/* ── Scroll Reveal ─────────────── */
.scroll-reveal{opacity:0;transform:translateY(24px);transition:opacity .5s cubic-bezier(0.4,0,0.2,1),transform .5s cubic-bezier(0.4,0,0.2,1)}
.scroll-reveal.revealed{opacity:1;transform:translateY(0)}

/* ── Flash Slide In ────────────── */
@keyframes slideInDown{
    from{opacity:0;transform:translateY(-16px)}
    to{opacity:1;transform:translateY(0)}
}

/* ── Header Scroll State ───────── */
.site-header{transition:box-shadow .3s cubic-bezier(0.4,0,0.2,1)}
.site-header.header-scrolled{box-shadow:0 1px 3px rgba(60,64,67,.15),0 4px 8px 3px rgba(60,64,67,.1)}

/* ── Bottom Nav Hide on Scroll ─── */
.bottom-nav{transition:transform .3s cubic-bezier(0.4,0,0.2,1)}
.bottom-nav.bnav-hidden{transform:translateY(100%)}

/* ── Card Hover — Google Store elevation change ── */
.product-card{transition:box-shadow .28s cubic-bezier(0.4,0,0.2,1),transform .28s cubic-bezier(0.4,0,0.2,1)}
.product-card:hover{box-shadow:0 1px 3px 0 rgba(60,64,67,.3),0 4px 8px 3px rgba(60,64,67,.15);transform:translateY(-2px)}
.product-card:active{transform:scale(.985);box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);transition-duration:.1s}

.artist-card{transition:box-shadow .28s cubic-bezier(0.4,0,0.2,1)}
.artist-card:hover{box-shadow:0 1px 3px 0 rgba(60,64,67,.3),0 4px 8px 3px rgba(60,64,67,.15)}
.artist-card:active{box-shadow:0 1px 2px rgba(60,64,67,.2);transition-duration:.1s}

.featured-artist-chip{transition:box-shadow .28s cubic-bezier(0.4,0,0.2,1),border-color .28s cubic-bezier(0.4,0,0.2,1)}
.featured-artist-chip:hover{box-shadow:0 1px 3px 0 rgba(60,64,67,.3),0 4px 8px 3px rgba(60,64,67,.15);border-color:var(--border)}
.featured-artist-chip:active{box-shadow:0 1px 2px rgba(60,64,67,.2);transition-duration:.1s}

/* ── Button States — Google Store exact ── */
.btn{transition:background .2s cubic-bezier(0.4,0,0.2,1),box-shadow .28s cubic-bezier(0.4,0,0.2,1),transform .1s cubic-bezier(0.4,0,0.2,1);position:relative;overflow:hidden;z-index:0}
.btn:hover{box-shadow:0 1px 3px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15)}
.btn:active{box-shadow:none;transform:scale(.97);transition-duration:.08s}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.btn-outline{transition:background .2s cubic-bezier(0.4,0,0.2,1),border-color .2s cubic-bezier(0.4,0,0.2,1),color .2s cubic-bezier(0.4,0,0.2,1),box-shadow .28s cubic-bezier(0.4,0,0.2,1)}
.btn-outline:hover{background:var(--accent-light);border-color:var(--accent);box-shadow:none}
.btn-outline:active{background:#d2e3fc;transform:scale(.97)}

/* ── Filter Chip States ────────── */
.filter-bar a,.shop-categories a{transition:background .2s cubic-bezier(0.4,0,0.2,1),border-color .2s cubic-bezier(0.4,0,0.2,1),color .2s cubic-bezier(0.4,0,0.2,1);position:relative;overflow:hidden}
.filter-bar a:active,.shop-categories a:active{transform:scale(.96);transition-duration:.08s}

/* ── Tab Indicator Transition ──── */
.tab{transition:color .2s cubic-bezier(0.4,0,0.2,1),border-bottom-color .2s cubic-bezier(0.4,0,0.2,1);position:relative;overflow:hidden}

/* ── Pagination Hover ──────────── */
.pagination li a{transition:background .2s cubic-bezier(0.4,0,0.2,1),border-color .2s cubic-bezier(0.4,0,0.2,1),color .2s cubic-bezier(0.4,0,0.2,1);position:relative;overflow:hidden}

/* ── Bottom Nav Pill ───────────── */
.bottom-nav a{transition:color .2s cubic-bezier(0.4,0,0.2,1);position:relative;overflow:hidden}
.bottom-nav a .nav-icon{transition:background .3s cubic-bezier(0.4,0,0.2,1)}
.bottom-nav a.active .nav-icon{background:var(--accent-light)}
.bottom-nav a:active .nav-icon{background:var(--surface-2);transition-duration:.08s}

/* ── Image Hover Zoom ──────────── */
.product-card-image img{transition:transform .6s cubic-bezier(0.4,0,0.2,1)}
.product-card:hover .product-card-image img{transform:scale(1.04)}
.artist-card-previews .preview-thumb img{transition:transform .5s cubic-bezier(0.4,0,0.2,1)}
.artist-card:hover .preview-thumb img{transform:scale(1.06)}

/* ── Gallery Main Transition ───── */
#mainMedia{transition:opacity .2s cubic-bezier(0.4,0,0.2,1),transform .2s cubic-bezier(0.4,0,0.2,1)}

/* ── Form Focus — Google style ─── */
.form-group input,.form-group select,.form-group textarea{transition:border-color .2s cubic-bezier(0.4,0,0.2,1),box-shadow .2s cubic-bezier(0.4,0,0.2,1)}
.form-group.form-focused label{color:var(--accent);transition:color .2s cubic-bezier(0.4,0,0.2,1)}

/* ── Mobile Menu Overlay ───────── */
body.nav-open::before{content:'';position:fixed;inset:0;background:rgba(0,0,0,.32);z-index:98;animation:fadeOverlay .2s cubic-bezier(0.4,0,0.2,1)}
@keyframes fadeOverlay{from{opacity:0}to{opacity:1}}
body.nav-open .main-nav{animation:slideInMenu .25s cubic-bezier(0,0,0.2,1)}
@keyframes slideInMenu{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
body.nav-open .main-nav a{animation:fadeInItem .3s cubic-bezier(0.4,0,0.2,1) both}
body.nav-open .main-nav a:nth-child(1){animation-delay:30ms}
body.nav-open .main-nav a:nth-child(2){animation-delay:60ms}
body.nav-open .main-nav a:nth-child(3){animation-delay:90ms}
body.nav-open .main-nav a:nth-child(4){animation-delay:120ms}
body.nav-open .main-nav a:nth-child(5){animation-delay:150ms}
body.nav-open .main-nav a:nth-child(6){animation-delay:180ms}
body.nav-open .main-nav a:nth-child(7){animation-delay:210ms}
@keyframes fadeInItem{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}

/* ── Stat Card Hover ───────────── */
.stat-card{transition:box-shadow .28s cubic-bezier(0.4,0,0.2,1),transform .28s cubic-bezier(0.4,0,0.2,1)}
.stat-card:hover{box-shadow:0 1px 3px 0 rgba(60,64,67,.3),0 4px 8px 3px rgba(60,64,67,.15);transform:translateY(-2px)}

/* ── Fav Button Pulse ──────────── */
.fav-btn{transition:all .2s cubic-bezier(0.4,0,0.2,1)}
.fav-btn:active{transform:scale(.88);transition-duration:.08s}
.card-fav{transition:all .2s cubic-bezier(0.4,0,0.2,1)!important}
.card-fav:active{transform:scale(.85)!important;transition-duration:.08s!important}

/* ── Smooth Scrollbar ──────────── */
.promo-scroll,.featured-artists-scroll,.filter-bar,.shop-categories,.tabs,.dash-sidebar,.media-thumbs{scroll-behavior:smooth;-webkit-overflow-scrolling:touch}

/* ── Link Hover — Google underline ── */
a{transition:color .15s cubic-bezier(0.4,0,0.2,1)}
.footer-links a,.shop-sns a,.auth-footer a{position:relative}
.footer-links a::after,.shop-sns a::after,.auth-footer a::after{content:'';position:absolute;bottom:-1px;left:0;width:0;height:1px;background:currentColor;transition:width .25s cubic-bezier(0.4,0,0.2,1)}
.footer-links a:hover::after,.shop-sns a:hover::after,.auth-footer a:hover::after{width:100%}
.footer-links a:hover,.shop-sns a:hover,.auth-footer a:hover{text-decoration:none}

/* ── Admin Sidebar Link Hover ──── */
@media(min-width:769px){
.admin-sidebar nav a{transition:background .2s cubic-bezier(0.4,0,0.2,1),color .2s cubic-bezier(0.4,0,0.2,1);position:relative;overflow:hidden}
.dash-sidebar a{transition:background .2s cubic-bezier(0.4,0,0.2,1),color .2s cubic-bezier(0.4,0,0.2,1);position:relative;overflow:hidden}
}

/* ── Prefers Reduced Motion ────── */
@media(prefers-reduced-motion:reduce){
.scroll-reveal{opacity:1;transform:none;transition:none}
.md-ripple{animation:none;display:none}
.product-card,.artist-card,.featured-artist-chip,.stat-card,.btn,.btn-outline{transition:none!important}
.product-card-image img,.artist-card-previews .preview-thumb img{transition:none!important}
.product-card:hover{transform:none!important}
body.nav-open .main-nav,body.nav-open .main-nav a{animation:none!important}
}
