/* Minimal styles for mini shop */
:root {
	--bg: #0b0c10;
	--card: #15171c;
	--muted: #9aa0aa;
	--text: #e6e8eb;
	--accent: #2ea043;
	--danger: #d23c3c;
}

* { box-sizing: border-box; }
/* Page background override to ensure black even with Bootstrap */
html, body { margin: 0; padding: 0; background: #000 !important; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Noto Sans KR, Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }

.container { max-width: 960px; margin: 40px auto; padding: 0 16px; }
h1 { font-size: 28px; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 28px 0 12px; }
.hint { color: var(--muted); margin-bottom: 16px; }

.topbar { display: flex; justify-content: flex-end; margin-bottom: 10px; gap: 8px; }
.link-btn { display: inline-block; padding: 8px 12px; border: 1px solid #2a2e37; background: #0f1116; color: var(--text); border-radius: 8px; text-decoration: none; font-weight: 600; }
.link-btn:hover { background: #12151b; }

.card { background: var(--card); border: 1px solid #22242b; border-radius: 10px; padding: 16px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type="text"], textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #2a2e37; background: #0f1116; color: var(--text); }
textarea { resize: vertical; }
.actions { display: flex; gap: 8px; justify-content: flex-end; }
button { background: var(--accent); color: #fff; border: 0; padding: 10px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; }
button.delete { background: var(--danger); }
button:disabled { opacity: 0.7; cursor: not-allowed; }

.layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.sidebar { border-right: 1px solid #2a2e37; padding-right: 12px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cat-list a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.cat-list a.active, .cat-list a:hover { background: #0f1116; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.category-section { padding: 12px 0 20px; border-top: 1px solid #2a2e37; }
.category-section:first-of-type { border-top: 0; padding-top: 0; }
.category-title { margin: 14px 0 10px; font-size: 16px; color: var(--text); }
.category-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.more-link { color: var(--text); font-size: 13px; text-decoration: none; border-bottom: 1px dotted #3a3f47; }
.more-link:hover { color: #fff; }
.category-section .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.category-section .product { scroll-snap-align: start; }
@media (max-width: 1024px) { .category-section .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .category-section .grid { grid-template-columns: repeat(2, 1fr); } }

/* Dark cards */

/* Light product cards on dark page */
.product { background: #ffffff; border: 1px solid #22242b; border-radius: 10px; padding: 10px 10px 0 10px; display: flex; flex-direction: column; gap: 8px; color: #212529; }
.product.card { background-color: #ffffff !important; color: #212529 !important; border-color: #22242b !important; }
.product.card .card-header, .product.card .card-body { background-color: transparent; color: inherit; border-color: #e9ecef; }
.product.card .card-body { padding: 0 !important; }

.product-head { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.product-head-left { margin-right: auto; display: flex; align-items: center; gap: 6px; }
.badge { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 999px; background: #eef2ff; color: #1e3a8a; border: 1px solid #c7d2fe; }
.product-title { font-weight: 700; font-size: 14px; color: #212529; }
.iframe-wrap { display: block; position: relative; width: 100%; aspect-ratio: var(--ratio, 1 / 1); overflow: hidden; }
.loading, .empty, .error { color: var(--muted); padding: 16px; }

/* Ensure iframes scale responsively inside cards */
.iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Mobile sidebar toggle */
.mobile-cat-toggle { display: none; }
@media (max-width: 768px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar { display: none; }
	.mobile-cat-toggle { display: inline-flex; margin-bottom: 10px; }
}


