/* Google Sheet Sync – front-end output of [gss_table] */
.gss { --gss-accent: #0f9d58; --gss-line: #e5e7eb; margin: 1.5em 0; }
.gss .gss-search { width: 100%; max-width: 320px; padding: 8px 12px; border: 1px solid var(--gss-line); border-radius: 8px; margin-bottom: 12px; font: inherit; }
.gss .gss-scroll { overflow-x: auto; }
.gss .gss-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.gss .gss-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--gss-line); white-space: nowrap; }
.gss .gss-table td { padding: 10px 12px; border-bottom: 1px solid var(--gss-line); vertical-align: middle; }
.gss .gss-table tbody tr:hover { background: rgba(0,0,0,.02); }
.gss .gss-img { max-width: 80px; height: auto; border-radius: 6px; display: block; }
.gss .gss-btn { display: inline-block; background: var(--gss-accent); color: #fff !important; text-decoration: none !important; padding: 6px 14px; border-radius: 6px; font-size: .9em; font-weight: 600; white-space: nowrap; }
.gss .gss-btn:hover { filter: brightness(.93); }
.gss .gss-empty { color: #6b7280; }
.gss .gss-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gss .gss-card { border: 1px solid var(--gss-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.gss .gss-card-img { aspect-ratio: 4 / 3; background: #f9fafb; display: grid; place-items: center; }
.gss .gss-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gss .gss-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gss .gss-card-title { margin: 0; font-size: 1em; line-height: 1.35; }
.gss .gss-card-meta { font-size: .88em; color: #374151; }
.gss .gss-card-meta span { color: #6b7280; }
.gss .gss-card .gss-btn { margin-top: auto; text-align: center; }
.gss .gss-hide { display: none !important; }
@media (max-width: 600px) {
	.gss .gss-table thead { display: none; }
	.gss .gss-table, .gss .gss-table tbody, .gss .gss-table tr, .gss .gss-table td { display: block; width: 100%; }
	.gss .gss-table tr { border: 1px solid var(--gss-line); border-radius: 10px; margin-bottom: 10px; padding: 6px 0; }
	.gss .gss-table td { border: 0; padding: 6px 12px; display: flex; gap: 12px; justify-content: space-between; }
	.gss .gss-table td::before { content: attr(data-label); font-weight: 600; color: #6b7280; }
}

/* ---------- [gss_products] ---------- */
.gss-products { --gss-off: #c2410c; --gss-off-soft: #fff1e6; --gss-muted: #6b7280; }
.gss .gss-tab-hide { display: none !important; }
.gss .gss-site-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gss .gss-site-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--gss-line); border-radius: 999px; text-decoration: none !important; color: inherit !important; font-size: .92em; font-weight: 600; background: #fff; }
.gss .gss-site-tab:hover { border-color: var(--gss-accent); }
.gss .gss-site-tab.is-active { background: var(--gss-accent); border-color: var(--gss-accent); color: #fff !important; }
.gss .gss-count { font-size: .8em; font-weight: 600; opacity: .7; }
.gss .gss-product .gss-card-body { gap: 5px; }
.gss .gss-p-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gss .gss-site { font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gss-muted); }
.gss .gss-off { background: var(--gss-off-soft); color: var(--gss-off); font-size: .78em; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.gss .gss-brand { font-size: .82em; color: var(--gss-muted); }
.gss .gss-product .gss-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gss .gss-p-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gss .gss-price { font-size: 1.15em; font-weight: 700; }
.gss .gss-mrp { color: var(--gss-muted); font-size: .88em; }
.gss .gss-rating { font-size: .85em; font-weight: 600; color: #15803d; }
.gss .gss-product .gss-btn { margin-top: auto; text-align: center; }
.gss-products .gss-table td.gss-td-name { min-width: 200px; }
.gss-products .gss-table td { white-space: nowrap; }
.gss-products .gss-table td.gss-td-name { white-space: normal; }
@media (max-width: 600px) { .gss-products .gss-table td, .gss-products .gss-table td.gss-td-name { white-space: normal; min-width: 0; } }
@media (max-width: 600px) { .gss .gss-table, .gss .gss-table tr, .gss .gss-table td { box-sizing: border-box; } .gss .gss-table td > * { min-width: 0; } }

.gss .gss-product .gss-card-img { aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--gss-line); padding: 12px; box-sizing: border-box; }
.gss .gss-product .gss-card-img img { width: 100%; height: 100%; object-fit: contain; }
.gss .gss-noimg { color: #d1d5db; background: #f9fafb !important; display: grid; place-items: center; }
.gss .gss-thumb { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: #fff; }
.gss .gss-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gss .gss-thumb.gss-noimg svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .gss-products .gss-table td.gss-td-img { justify-content: center; } .gss .gss-thumb { width: 96px; height: 96px; } }
