/* ============================================
   Axioma Shop - Custom Styles
   Only product-specific styles here.
   Everything else comes from the design system CDN.
   ============================================ */

/* ── Accent (Shop) ── */
:root {
    --accent: #4f6ef7;
    --accent-light: #eef2ff;
    --accent-dark: #3b5de7;
    --accent-glow: rgba(79, 110, 247, 0.10);
}

/* ── Onboarding Wizard ── */
.wizard {
    max-width: 560px;
    margin: 40px auto;
    padding: 0 20px;
}

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.2s;
}
.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--green); }

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.wizard-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ── Attribute Builder ── */
.attr-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.attr-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.attr-options-container {
    width: 100%;
    flex-basis: 100%;
}

.attr-item .form-group { margin-bottom: 0; flex: 1; }

.attr-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    line-height: 1;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    margin-top: 20px;
}
.attr-remove:hover { color: var(--red); background: rgba(239, 68, 68, 0.06); }

.attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.attr-option-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.attr-option-tag button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
}

/* ── Product Card (Grid view) ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-input);
}

.product-card-body {
    padding: 14px;
}

.product-card-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.product-card-cost {
    font-size: 12px;
    color: var(--text-muted);
}

.product-card-profit {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
}

.product-card-stock {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ── Image Upload ── */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: var(--text-muted);
}
.image-upload-area:hover,
.image-upload-area.drag-over {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.image-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Profit display ── */
.profit-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    color: var(--green);
    font-weight: 600;
}

/* ── View Toggle (grid/table) ── */
.view-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.view-btn:not(:last-child) { border-right: 1px solid var(--border); }
.view-btn.active { background: var(--accent-light); color: var(--accent); }

/* ── Delivery Fee inline ── */
.fee-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.fee-inline .form-input { margin-bottom: 0; }

/* ── Public Store: Cart badge ── */
.cart-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform 0.2s;
}
.cart-fab:hover { transform: scale(1.08); }

.cart-fab svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Slug preview ── */
.slug-preview {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.slug-preview strong {
    color: var(--accent);
}

/* ── Landing Page (dark) ── */
.landing-dark {
    background: #0B0E14;
    color: #fff;
}

.landing-dark .hero {
    padding: 100px 20px 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 110, 247, 0.08) 0%, transparent 60%);
}

.landing-dark .hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
    max-width: 720px;
    margin: 0 auto 20px;
    letter-spacing: -0.02em;
}

.landing-dark .hero .lead {
    font-size: 1.15rem;
    color: #8B95A5;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.landing-dark .navbar {
    background: rgba(11, 14, 20, 0.95);
    border-bottom: 1px solid #1A1F2E;
}

.landing-dark .navbar-brand { color: #fff; }

.landing-dark .section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.landing-dark .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.landing-dark .feature-card {
    background: #12161F;
    border: 1px solid #1A1F2E;
    border-radius: 12px;
    padding: 24px;
}

.landing-dark .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(79, 110, 247, 0.1);
    color: #4f6ef7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.landing-dark .feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.landing-dark .feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.landing-dark .feature-text {
    font-size: 14px;
    color: #8B95A5;
    line-height: 1.6;
}

.landing-dark .cta-section {
    text-align: center;
    padding: 80px 20px;
}

.landing-dark .btn-landing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #4f6ef7;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.landing-dark .btn-landing:hover {
    background: #3b5de7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 110, 247, 0.3);
}

/* ── Responsive landing ── */
@media (max-width: 768px) {
    .landing-dark .hero h1 { font-size: 2rem; }
    .landing-dark .hero { padding: 60px 16px 40px; }
    .landing-dark .section-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .landing-dark .hero h1 { font-size: 1.75rem; }
}
