:root {
    --primary: #c9a84c;
    --dark: #1a1a2e;
}

body {
    background: #f8f9fa;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--dark);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Template Cards */
.template-card {
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    transition: all 0.2s;
}
.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.template-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}
.template-preview {
    height: 60px;
    border-radius: 6px;
    margin-bottom: 4px;
}
.template-name {
    font-size: 0.8rem;
    font-weight: 600;
}
.elegance-preview { background: linear-gradient(135deg, #fff 50%, #f5f0e0 50%); border: 1px solid #c9a84c; }
.urban-preview { background: linear-gradient(135deg, #1a1a2e 50%, #16213e 50%); }
.fresh-preview { background: linear-gradient(135deg, #e8f5f0 50%, #d4edda 50%); }
.classic-preview { background: linear-gradient(135deg, #f5f0e8 50%, #e8dcc8 50%); border: 1px solid #c4a35a; }
.bold-preview { background: linear-gradient(135deg, #0d0d0d 50%, #ff1a1a 50%); }

/* Grid Buttons */
.grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
}
.grid-btn:hover { border-color: var(--primary); }
.grid-btn.selected {
    border-color: var(--primary);
    background: #fdf6e3;
}
.grid-icon {
    display: grid;
    gap: 2px;
    width: 40px;
    height: 40px;
}
.grid-icon div {
    background: var(--primary);
    border-radius: 2px;
}
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-6 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* Drop Zone */
.drop-zone {
    border: 2px dashed #c9a84c;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.drop-zone:hover, .drop-zone.drag-over {
    background: #fdf6e3;
    border-color: #a88a30;
}

/* Product Card */
.product-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 10px;
    align-items: flex-start;
}
.product-card .thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.product-card .info {
    flex: 1;
    min-width: 0;
}
.product-card .info input {
    margin-bottom: 4px;
}
.product-card .remove-btn {
    flex-shrink: 0;
    align-self: flex-start;
}

/* Generate Button */
#generateBtn {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
}
#generateBtn:hover:not(:disabled) {
    background: #a88a30;
    border-color: #a88a30;
}
#generateBtn:disabled {
    background: #ccc;
    border-color: #ccc;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 576px) {
    .brand-title { font-size: 1.6rem; letter-spacing: 4px; }
    .product-card { flex-direction: column; }
    .product-card .thumb { width: 100%; height: 150px; }
}
