/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FDF2F8;
    color: #1F2937;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

a { color: #DB2777; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #F9A8D4;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #9D174D;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}
.hero h1 {
    font-size: 2.5rem;
    color: #831843;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #4B5563;
}
.stat span { font-weight: 700; color: #9D174D; }

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tab {
    padding: 0.6rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid #F9A8D4;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: #6B7280;
    transition: all 0.2s;
}
.tab.active {
    background: #FDF2F8;
    color: #9D174D;
    border-bottom-color: transparent;
}
.tab:hover { background: #FCE7F3; }

/* Panels */
.panel { display: none; background: #FFFFFF; border-radius: 0 12px 12px 12px; padding: 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.panel.active { display: block; }
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.panel-header h2 { font-size: 1.5rem; color: #831843; }
.controls { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: #DB2777; color: white; }
.btn.primary:hover { background: #BE185D; }
.btn.secondary { background: #FCE7F3; color: #9D174D; border: 1px solid #F9A8D4; }
.btn.secondary:hover { background: #F9A8D4; }

/* Item List */
.item-list {
    display: grid;
    gap: 0.8rem;
}
.item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #FDF2F8;
    border-radius: 8px;
    border: 1px solid #F9A8D4;
    transition: box-shadow 0.2s;
}
.item-card:hover { box-shadow: 0 2px 8px rgba(219, 39, 119, 0.15); }
.item-info { flex: 1; min-width: 0; }
.item-info strong { display: block; font-size: 1rem; color: #1F2937; }
.item-meta { font-size: 0.85rem; color: #6B7280; margin-top: 0.2rem; }
.item-actions { display: flex; gap: 0.4rem; margin-left: 1rem; }
.item-actions button {
    background: none;
    border: 1px solid #F9A8D4;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: #9D174D;
    transition: background 0.2s;
}
.item-actions button:hover { background: #FCE7F3; }
.purchased { opacity: 0.6; text-decoration: line-through; }
.purchased .item-info strong { text-decoration: line-through; }

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #9CA3AF;
    font-style: italic;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.close {
    position: absolute;
    top: 0.8rem; right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9CA3AF;
}
.close:hover { color: #1F2937; }

form label { display: block; margin: 0.8rem 0 0.3rem; font-weight: 600; font-size: 0.9rem; color: #4B5563; }
form input, form select, form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}
.price-range { display: flex; gap: 0.5rem; align-items: center; }
.price-range input { width: 45%; }
.form-actions { display: flex; gap: 0.5rem; margin-top: 1.2rem; justify-content: flex-end; }

/* Supporting Content */
.supporting-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.content-card {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.content-card h2 { font-size: 1.2rem; color: #831843; margin-bottom: 0.8rem; }
.content-card p, .content-card li { font-size: 0.95rem; color: #4B5563; margin-bottom: 0.5rem; }
.content-card ul { padding-left: 1.2rem; }

/* Footer */
.site-footer {
    margin-top: auto;
    background: #FFFFFF;
    border-top: 1px solid #F9A8D4;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #6B7280;
}
.site-footer a { color: #DB2777; }
.small { font-size: 0.8rem; margin-top: 0.5rem; color: #9CA3AF; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .panel-header { flex-direction: column; align-items: flex-start; }
    .controls { width: 100%; justify-content: flex-start; }
    .item-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .item-actions { margin-left: 0; }
}
@media (max-width: 480px) {
    .tabs { flex-direction: column; }
    .tab { border-radius: 8px; }
    .tab.active { border-bottom-color: #F9A8D4; }
    .panel { border-radius: 12px; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
