/*
Theme Name: SpunkShop
Author: OpenAI
Version: 1.3
*/

* { box-sizing: border-box; }

:root {
  --bg: #0f1115;
  --bg-2: #0b0d12;
  --panel: #171a21;
  --panel-2: #1d212b;
  --text: #f5f7fb;
  --muted: #aab2c2;
  --line: #2b3240;
  --accent: #d63829;
  --accent-2: #f04b3c;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1280px;
}

html, body { margin: 0; padding: 0; background: linear-gradient(180deg, #0b0d12 0%, #10141b 100%); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.site-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar { background: rgba(13, 15, 20, .92); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 50; }
.topbar-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #8c1f15); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); font-size: 22px; font-weight: 700; }
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: .2px; }
.brand-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.top-links { display: flex; gap: 18px; align-items: center; }
.top-links a { color: var(--muted); font-size: 14px; }

.panel, .card, .archive-card, .sidebar-card { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); box-shadow: var(--shadow); }
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-bottom: 34px; }
.article-panel { padding: 28px; }
.article-panel h1, .article-panel h2, .article-panel h3 { color: #fff; }
.article-panel h1 { font-size: 42px; margin: 0 0 18px; line-height: 1.08; }
.article-panel h2 { font-size: 28px; margin: 28px 0 14px; }
.article-panel h3 { font-size: 20px; margin: 22px 0 10px; }
.article-panel p, .article-panel li { color: #d5dce8; line-height: 1.8; font-size: 16px; }
.article-panel ul, .article-panel ol { padding-left: 24px; }
.sidebar { display: grid; gap: 16px; align-self: start; position: sticky; top: 92px; }
.sidebar-card { padding: 18px; }
.sidebar-card h3 { margin: 0 0 10px; font-size: 18px; }
.sidebar-card p, .sidebar-card li, .sidebar-card a, .sidebar-card span { margin: 0; color: #b8c1d2; line-height: 1.65; font-size: 14px; }
.sidebar-card ul { padding-left: 18px; margin: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 32px 0 18px; }
.section-head h2 { margin: 0; font-size: 30px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.product-grid, .archive-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.card-thumb { background: #0d1015; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .24s ease; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.45; min-height: 44px; }
.price { font-size: 25px; font-weight: 700; color: var(--accent-2); }
.small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.actions { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.btn-primary, .btn-secondary { flex: 1; min-height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 10px 24px rgba(214,56,41,.22); }
.btn-secondary { background: #222937; color: #fff; }
.archive-card { padding: 20px; }
.archive-card h2 { margin: 0 0 10px; font-size: 22px; }
.archive-card p { color: var(--muted); line-height: 1.7; margin: 0 0 14px; }
.notice { border-left: 4px solid var(--accent); padding: 12px 14px; background: rgba(214,56,41,.10); border-radius: 10px; margin-top: 18px; color: #ffb6ae; }
.footer { border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); padding: 24px 0 36px; font-size: 14px; margin-top: 36px; }

.search-home-panel { padding: 28px; margin-top: 32px; }
.search-home-inner { max-width: 900px; margin: 0 auto; }
.search-home-title { margin: 0 0 10px; font-size: 36px; line-height: 1.1; text-align: center; }
.search-home-text { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.7; text-align: center; }
.spunkshop-search-form { display: grid; grid-template-columns: 1fr 140px; gap: 12px; }
.spunkshop-search-input { width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid var(--line); background: #12161d; color: var(--text); padding: 0 16px; font-size: 16px; outline: none; }
.spunkshop-search-input::placeholder { color: #7f8898; }
.spunkshop-search-input:focus { border-color: rgba(240,75,60,.55); box-shadow: 0 0 0 3px rgba(214,56,41,.12); }
.spunkshop-search-button { min-height: 54px; border-radius: 14px; border: none; cursor: pointer; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 10px 24px rgba(214,56,41,.22); }
.spunkshop-search-button:hover { filter: brightness(1.06); }

.widget-card { padding: 18px; }
.widget-title { margin: 0 0 10px; font-size: 18px; color: #fff; }
.widget-card p, .widget-card li, .widget-card a, .widget-card span { color: #b8c1d2; line-height: 1.65; font-size: 14px; }
.widget-card ul { padding-left: 18px; margin: 0; }
.widget-card .menu, .widget-card .wp-block-latest-posts, .widget-card .wp-block-categories { margin: 0; padding-left: 18px; }
.collection-featured-image.float-left {
  float: left;
  width: 320px;
  max-width: 45%;
  margin: 0 20px 16px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}

.collection-featured-image.float-left img {
  width: 100%;
  height: auto;
  display: block;
}

/* Clear float so layout doesn't break */
.article-panel::after {
  content: "";
  display: block;
  clear: both;
}
@media (max-width: 1080px) { .content-wrap { grid-template-columns: 1fr; } .sidebar { position: static; } .product-grid, .archive-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .topbar-inner { min-height: 66px; } .brand-name { font-size: 21px; } .product-grid, .archive-grid, .related-grid { grid-template-columns: 1fr; } .article-panel { padding: 20px; } .top-links { display: none; } .search-home-title { font-size: 28px; } .spunkshop-search-form { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .collection-featured-image.float-left {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px 0;
  }
}